/* =========================================================
   স্নানঘাটা উচ্চ বিদ্যালয় — Website Stylesheet
   থিম: নীল ও সাদা | মিনিমাল, প্রফেশনাল
   ========================================================= */

:root{
  /* ---- Color tokens ---- */
  --navy:        #0d2b4e;   /* প্রধান হেডিং, হেডার টেক্সট */
  --blue:        #1f5fa8;   /* প্রাইমারি অ্যাকশন/বাটন */
  --blue-deep:   #164a89;   /* বাটন হোভার */
  --blue-tint:   #eaf2fb;   /* হালকা নীল ব্যাকগ্রাউন্ড */
  --blue-tint-2: #dbe9fa;   /* একটু গাঢ় টিন্ট (বর্ডার/ডিভাইডার) */
  --white:       #ffffff;
  --ink:         #16212c;   /* বডি টেক্সট */
  --muted:       #64748b;   /* সেকেন্ডারি টেক্সট */
  --line:        #e2e9f2;   /* সাধারণ বর্ডার */

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 18px 40px -18px rgba(13, 43, 78, 0.18);
  --shadow-btn:  0 12px 26px -10px rgba(31, 95, 168, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  background: var(--white);
  color: var(--ink);
  font-family: 'Hind Siliguri', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

ul{
  list-style: none;
}

.container{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   টপ বার (হেডার) — সব পেজে ব্যবহৃত হয়
   ========================================================= */

.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-btn{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.2s var(--ease);
}

.topbar-icon-btn:hover,
.topbar-icon-btn:focus-visible{
  background: var(--blue-tint);
}

.topbar-icon-btn svg{
  width: 22px;
  height: 22px;
}

.topbar-logo{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--blue-tint-2);
}

.topbar-title{
  flex: 1;
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   হ্যামবার্গার নেভিগেশন মেনু (সব পেজে কমন)
   ========================================================= */

.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 78, 0.45);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 300px);
  background: var(--navy);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 20px 22px 28px;
}

.nav-drawer.is-open{
  transform: translateX(0);
}

.nav-drawer-header{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.nav-close-btn{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-close-btn svg{
  width: 18px;
  height: 18px;
}

.nav-links{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-links a{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 16px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-links a svg{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.is-active{
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-drawer-footer{
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

body.nav-lock{
  overflow: hidden;
}

/* =========================================================
   হিরো সেকশন (হোম পেজ)
   ========================================================= */

.hero{
  padding: 36px 0 12px;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title{
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* গেট-আর্চের অনুপ্রেরণায় হিরো ছবির ফ্রেম — সাইনেচার এলিমেন্ট */
.hero-image-frame{
  position: relative;
  margin-top: 26px;
  border-radius: 28px 28px 90px 90px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--blue-tint-2);
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.7s var(--ease) 0.1s forwards;
}

.hero-image-frame img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-image-frame::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13,43,78,0.28) 100%);
  pointer-events: none;
}

@keyframes rise-in{
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================================================
   বাটন
   ========================================================= */

.btn-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn svg{
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-primary{
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover{
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(31, 95, 168, 0.55);
}

.btn-outline{
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-outline:hover{
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn:active{
  transform: translateY(0);
}

/* =========================================================
   গ্যালারি পেজ
   ========================================================= */

.page-header{
  padding: 24px 0 6px;
}

.page-header-title{
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}

.page-header-sub{
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.gallery-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 0 40px;
}

.gallery-card{
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.gallery-card.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-card-body{
  padding: 18px 20px 22px;
}

.gallery-card-index{
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.gallery-card-title{
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.gallery-card-desc{
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================================================
   প্রোফাইল পেজ (আবিষ্কারক / আবেদন — একই লেআউট)
   ========================================================= */

.profile-section{
  padding: 40px 0 44px;
  text-align: center;
}

.profile-avatar-wrap{
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 22px;
}

.profile-avatar-ring{
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.profile-avatar-inner{
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
}

.profile-avatar-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name{
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
}

.profile-role{
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}

.profile-bio{
  margin: 18px auto 0;
  max-width: 400px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-card{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.contact-card-icon{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg{
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-card-text{
  flex: 1;
}

.contact-card-label{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-card-number{
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.contact-card-arrow{
  flex-shrink: 0;
  color: var(--blue);
}

.contact-card-arrow svg{
  width: 18px;
  height: 18px;
}

/* =========================================================
   ফুটার
   ========================================================= */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  text-align: center;
}

.site-footer-school{
  font-family: 'Baloo Da 2', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}

.site-footer-address{
  font-size: 13px;
  color: var(--muted);
}

.site-footer-credit{
  margin-top: 14px;
  font-size: 11.5px;
  color: #a3adba;
}

/* =========================================================
   অ্যাক্সেসিবিলিটি ও রেসপন্সিভনেস
   ========================================================= */

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-image-frame,
  .gallery-card{ animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (min-width: 420px){
  .hero-title{ font-size: 30px; }
}
