:root{
    --maroon:#6c1524;
    --maroon-dark:#4a0d19;
    --maroon-soft:#8a2233;
    --gold:#c1892f;
    --gold-light:#e3b45f;
    --ivory:#faf5ea;
    --ivory-deep:#f1e8d6;
    --brown:#2c1c14;
    --green:#204b3c;
    --white:#ffffff;
    --line:rgba(44,28,20,0.12);
    --shadow:0 10px 30px rgba(74,13,25,0.12);
    --radius-card:6px;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:'Catamaran',sans-serif;
    color:var(--brown);
    background:var(--ivory);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3{font-family:'Kavivanar',cursive; margin:0; line-height:1.3; font-weight:400;}
  p{margin:0;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none; margin:0; padding:0;}
  img,svg{display:block; max-width:100%;}
  button{font-family:inherit; cursor:pointer;}
  section{padding:72px 0;}
  .wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }

  /* ---------- Top utility bar ---------- */
  .topbar{
    background:var(--maroon-dark);
    color:var(--ivory-deep);
    font-size:13.5px;
  }
  .topbar .wrap{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:8px; padding-bottom:8px;
    gap:16px; flex-wrap:wrap;
  }
  .topbar-left{display:flex; gap:20px; flex-wrap:wrap;}
  .topbar-left span{opacity:0.92;}
  .topbar-right{display:flex; gap:14px;}
  .topbar-right span{opacity:0.92;}

  /* ---------- Header ---------- */
  header.site-header{
    background:var(--ivory);
    border-bottom:1px solid var(--line);
    /*position:sticky; top:0; z-index:50;*/
  }
  .header-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 0;
    gap:20px;
  }
  .brand{display:flex; align-items:center; gap:14px;}
  .brand img{border-radius:50%;}
  .brand-text .en{font-size:12px; letter-spacing:0.02em; color:var(--maroon-soft); font-weight:600;}
  .brand-text h1{font-size:20px; color:var(--maroon-dark);}
  .brand-text .dept-en{font-size:12px; color:#6b584a; margin-top:2px;}
  .brand-text .reg-no{font-size:11.5px; color:var(--gold); font-weight:700; margin-top:2px;}

  nav.main-nav ul{display:flex; gap:30px;}
  nav.main-nav a{
    font-size:16px; font-weight:600; color:var(--brown);
    position:relative; padding:6px 0;
  }
  nav.main-nav a::after{
    content:""; position:absolute; left:0; bottom:0;
    width:0; height:2px; background:var(--gold);
    transition:width 0.25s ease;
  }
  nav.main-nav a:hover::after, nav.main-nav a:focus-visible::after{width:100%;}
  nav.main-nav a:focus-visible{outline:2px solid var(--gold); outline-offset:3px; border-radius:2px;}

  .menu-toggle{
    display:none; background:none; border:none; padding:6px;
  }
  .menu-toggle span{
    display:block; width:26px; height:2.5px; background:var(--maroon-dark);
    margin:5px 0; border-radius:2px;
  }

nav.main-nav a.active{
  color:var(--maroon-dark);
  font-weight:700;
}
nav.main-nav a.active::after{
  width:100%;
  background:var(--gold);
}

  /* ---------- Mobile-only sub-nav group inside the slide-out panel ---------- */
  .mobile-sub-nav{ display:none; }

  /* ---------- Hero ---------- */
  .hero{
    position:relative;
    background:var(--ivory);
    padding:0px 0 0;
    overflow:hidden;
  }
  .hero-top{ padding-bottom:36px; }
  .hero-top .eyebrow-line{
    display:flex; align-items:center; gap:10px;
    color:var(--maroon-soft); font-weight:700; font-size:14.5px; margin-bottom:18px;
  }
  .hero-top .eyebrow-line .rule{width:34px; height:2px; background:var(--gold);}
  .hero-top h2{
    font-size:clamp(30px,4.6vw,44px);
    color:var(--maroon-dark);
    margin-bottom:18px;
    max-width:20ch;
  }
  .hero-top p.lead{
    font-size:17px; color:#4a382c; max-width:62ch; margin-bottom:28px;
  }
  .hero-actions{display:flex; gap:16px; flex-wrap:wrap;}

  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:13px 26px; border-radius:4px; font-weight:700; font-size:15.5px;
    border:2px solid transparent; transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  }
  .btn-primary{background:var(--maroon); color:var(--white);}
  .btn-primary:hover{background:var(--maroon-dark); box-shadow:var(--shadow);}
  .btn-outline{border-color:var(--maroon); color:var(--maroon-dark);}
  .btn-outline:hover{background:var(--maroon); color:var(--white);}
  .btn-sm{padding:9px 18px; font-size:13.5px; border-radius:4px;}
  .btn-gold{background:var(--gold); color:var(--white);}
  .btn-gold:hover{background:#a97525;}

  /* ---------- Full-width modern hero slider ---------- */
  .hero-slider{
    position:relative;
    width:100vw;
    left:50%; right:50%;
    margin-left:-50vw; margin-right:-50vw;
    height:min(74vh, 640px);
    min-height:380px;
    overflow:hidden;
    background:var(--maroon-dark);
  }
  .slides-track{
    display:flex; height:100%;
    transition:transform 0.7s cubic-bezier(.65,.05,.36,1);
  }
  .slide{
    position:relative; flex:0 0 100%; height:100%;
    background-size:cover; background-position:center;
  }
  .slide::before{
    content:""; position:absolute; inset:0;
    background:
      linear-gradient(90deg, rgba(20,8,10,.75) 0%, rgba(20,8,10,.35) 45%, rgba(20,8,10,.05) 70%),
      linear-gradient(0deg, rgba(20,8,10,.55) 0%, rgba(20,8,10,0) 40%);
  }
  .slide-overlay{
    position:absolute; left:0; right:0; bottom:0; top:0; z-index:2;
    display:flex; flex-direction:column; justify-content:center;
    padding:0 28px; color:var(--white);
  }
  .slide-eyebrow{
    display:inline-block;
    font-size:12.5px; font-weight:700; color:var(--maroon-dark);
    letter-spacing:0.03em; margin-bottom:14px;
    background:var(--gold-light);
    padding:5px 12px; border-radius:100px;
    width:fit-content;
  }
  .slide-overlay h3{
    font-family:'Kavivanar',cursive; font-size:clamp(26px,4.4vw,42px); color:var(--white);
    margin-bottom:14px; max-width:16ch;
  }
  .slide-overlay p.slide-desc{
    font-size:15.5px; color:#f0e4d6; margin-bottom:22px; max-width:42ch;
  }
  .slide-overlay .btn-gold{ width:fit-content; }

  .slider-arrow{
    position:absolute; top:50%; transform:translateY(-50%);
    width:48px; height:48px; border-radius:50%;
    background:rgba(255,255,255,0.14);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,0.35);
    color:var(--white);
    display:flex; align-items:center; justify-content:center;
    z-index:3; transition:background 0.2s ease, transform 0.2s ease;
  }
  .slider-arrow svg{ width:20px; height:20px; }
  .slider-arrow:hover{ background:rgba(255,255,255,0.28); transform:translateY(-50%) scale(1.06); }
  .slider-arrow.prev{ left:24px; }
  .slider-arrow.next{ right:24px; }

  .slider-dots{
    position:absolute; left:28px; bottom:26px; z-index:3;
    display:flex; gap:8px;
  }
  .slider-dots button{
    width:34px; height:4px; border-radius:100px;
    background:rgba(255,255,255,0.35); border:none; padding:0;
    position:relative; overflow:hidden;
  }
  .slider-dots button.active{ background:rgba(255,255,255,0.35); }
  .slider-dots button.active::after{
    content:""; position:absolute; inset:0; left:0;
    background:var(--gold-light);
    animation:dotFill 5s linear forwards;
    transform-origin:left;
  }
  @keyframes dotFill{
    from{ transform:scaleX(0); }
    to{ transform:scaleX(1); }
  }

  /* ---------- Section headings ---------- */
  .section-head{margin-bottom:40px; max-width:640px;}
  .section-head .tag{
    display:flex; align-items:center; gap:10px;
    color:var(--maroon-soft); font-weight:700; font-size:14.5px; margin-bottom:12px;
  }
  .section-head .tag .rule{width:30px; height:2px; background:var(--gold);}
  .section-head h2{font-size:clamp(26px,3.4vw,36px); color:var(--maroon-dark);}
  .section-head p{margin-top:12px; color:#5a4636; font-size:16px;}
  .section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
  .section-head.center .tag{justify-content:center;}

  /* ---------- Services ---------- */
  .services{background:var(--white);}
  .service-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
  }
  .service-card{
    border:1px solid var(--line); border-radius:var(--radius-card);
    padding:26px 22px; background:var(--ivory);
    transition:border-color 0.2s ease, transform 0.2s ease;
  }
  .service-card:hover{border-color:var(--gold); transform:translateY(-4px);}
  .service-card .icon{
    width:42px; height:42px; margin-bottom:16px; color:var(--maroon);
  }
  .service-card h3{font-family:'Catamaran',sans-serif; font-weight:800; font-size:17.5px; color:var(--maroon-dark); margin-bottom:9px;}
  .service-card p{font-size:14.5px; color:#5a4636;}


  /* ---------- Page banner (inner pages) ---------- */
  .page-banner{
    position:relative; overflow:hidden;
    background:linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
    padding:46px 0 40px;
  }
  .page-banner .wrap{position:relative; z-index:1;}
  .breadcrumb{
    display:flex; align-items:center; gap:8px;
    font-size:13.5px; color:#6b584a; margin-bottom:14px;
  }
  .breadcrumb a{color:var(--maroon-soft); font-weight:600;}
  .breadcrumb a:hover{text-decoration:underline;}
  .breadcrumb .sep{color:#c9b8a5;}
  .breadcrumb .current{color:var(--maroon-dark); font-weight:700;}
  .page-banner h1{
    font-size:clamp(28px,4vw,38px); color:var(--maroon-dark);
  }
  .page-banner p{margin-top:10px; color:#5a4636; font-size:16px; max-width:60ch;}
  
  
  
  /* ---------- Stats ---------- */
  .stats{
    background:var(--maroon-dark);
    color:var(--ivory-deep);
  }
  .stats .wrap{
    display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;
  }
  .stat-num{font-family:'Kavivanar',cursive; font-size:clamp(28px,4vw,42px); color:var(--gold-light);}
  .stat-label{font-size:14px; margin-top:6px; color:#e6d9c8;}
  .stats-note{
    text-align:center; font-size:12.5px; color:#c9b8a5; margin-top:26px;
  }

  /* ---------- Announcements ---------- */
  .announcements .wrap{
    display:grid; grid-template-columns:1fr 1.2fr; gap:56px; align-items:start;
  }
  .announcements .section-head{margin-bottom:26px;}
  .notice-list li{
    display:flex; gap:18px; padding:20px 0; border-bottom:1px solid var(--line);
  }
  .notice-list li:first-child{padding-top:0;}
  .notice-date{
    flex-shrink:0; width:64px; text-align:center;
    background:var(--ivory-deep); border-radius:4px; padding:8px 4px;
    color:var(--maroon-dark); font-weight:700;
  }
  .notice-date .day{font-size:20px; display:block; line-height:1;}
  .notice-date .month{font-size:12px; display:block; margin-top:2px;}
  .notice-body h3{font-family:'Catamaran',sans-serif; font-weight:700; font-size:16.5px; color:var(--brown); margin-bottom:6px;}
  .notice-body p{font-size:14.5px; color:#6b584a;}

  .about-panel{
    background:var(--green); color:var(--ivory-deep);
    border-radius:8px; padding:36px 34px;
  }
  .about-panel h3{font-family:'Kavivanar',cursive; font-size:26px; color:var(--gold-light); margin-bottom:16px;}
  .about-panel p{font-size:15px; color:#dfe8e2; margin-bottom:22px;}
  .about-panel ul{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  .about-panel li{
    font-size:14.5px; padding-left:20px; position:relative; color:#e8f0ea;
  }
  .about-panel li::before{
    content:""; position:absolute; left:0; top:8px; width:7px; height:7px;
    background:var(--gold-light); border-radius:50%;
  }

  /* ---------- Training camps ---------- */
  .temples{background:var(--white);}
  .temple-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
  }
  .temple-card{
    border-radius:var(--radius-card); overflow:hidden; border:1px solid var(--line);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
  }
  .temple-card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
  .temple-thumb{
    height:140px; overflow:hidden; position:relative;
  }
  .temple-thumb img{width:100%; height:100%; object-fit:cover;}
  .temple-info{padding:18px 18px 22px;}
  .temple-info .district{font-size:12.5px; color:var(--maroon-soft); font-weight:700; margin-bottom:6px;}
  .temple-info h3{font-family:'Catamaran',sans-serif; font-weight:800; font-size:16px; color:var(--brown); margin-bottom:8px;}
  .temple-info a{font-size:14px; font-weight:700; color:var(--maroon);}
  .temple-info a:hover{text-decoration:underline;}

  /* ---------- Donate ---------- */
  .donate{
    background:var(--ivory-deep);
  }
  .donate .wrap{
    display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; align-items:center;
  }
  .donate-card{
    background:var(--white); border-radius:10px; padding:30px 32px;
    box-shadow:var(--shadow); border:1px solid var(--line);
  }
  .donate-card table{width:100%; border-collapse:collapse; font-size:15px;}
  .donate-card td{padding:9px 0; border-bottom:1px solid var(--line);}
  .donate-card td:first-child{color:#6b584a; font-weight:600; width:38%;}
  .donate-card td:last-child{color:var(--brown); font-weight:700;}
  .donate-gpay{
    margin-top:18px; display:flex; align-items:center; gap:10px;
    background:var(--ivory); border-radius:6px; padding:12px 16px;
  }
  .donate-gpay .gpay-label{font-size:13px; color:#6b584a; font-weight:600;}
  .donate-gpay .gpay-num{font-size:16px; color:var(--maroon-dark); font-weight:800;}
  .donate-note{font-size:14px; color:#5a4636; margin-top:18px;}

  /* ---------- Footer ---------- */
  footer{
    background:var(--maroon-dark); color:#e6d9c8;
    padding:64px 0 26px;
  }
  .footer-grid{
    display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px;
    padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.12);
  }
  .footer-grid h4{
    font-family:'Catamaran',sans-serif; font-weight:800; font-size:15.5px;
    color:var(--gold-light); margin-bottom:18px;
  }
  .footer-brand p{font-size:14px; color:#d8c7b6; max-width:32ch;}
  .footer-grid li{margin-bottom:11px; font-size:14px;}
  .footer-grid a:hover{color:var(--gold-light);}
  .social-row{display:flex; gap:12px; margin-top:18px;}
  .social-row a{
    width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.25);
    display:flex; align-items:center; justify-content:center;
  }
  .social-row a:hover{background:var(--gold); border-color:var(--gold);}
  .social-row svg{width:16px; height:16px;}
  .footer-bottom{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    padding-top:22px; font-size:12.5px; color:#b7a493;
  }

  /* ---------- Responsive ---------- */
  @media (max-width:980px){
    .service-grid{grid-template-columns:repeat(2,1fr);}
    .temple-grid{grid-template-columns:repeat(2,1fr);}
    .announcements .wrap{grid-template-columns:1fr;}
    .donate .wrap{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .stats .wrap{grid-template-columns:repeat(2,1fr); row-gap:32px;}
  }

  @media (max-width:760px){
    nav.main-nav{
      position:fixed; top:0; right:0; height:100vh; width:78%; max-width:320px;
      background:var(--ivory); box-shadow:-6px 0 24px rgba(0,0,0,0.15);
      transform:translateX(100%); transition:transform 0.3s ease;
      padding:30px 30px 30px; z-index:6000!important;
      overflow-y:auto;
    }
    nav.main-nav.open{transform:translateX(0);}
    nav.main-nav ul{flex-direction:column; gap:6px;}
    nav.main-nav a{display:block; padding:14px 4px; font-size:17px; border-bottom:1px solid var(--line);}
    .menu-toggle{display:block;}
    .topbar-left{display:none;}
    .nav-backdrop{
      display:none; position:fixed; inset:0; background:rgba(0,0,0,0.35); z-index:10;
    }
    .nav-backdrop.show{display:block;}
	.brand-text h1 {
		font-size: 13px;
		 
	}

    .hero-slider{ height:88vw; min-height:320px; }
    .slide-overlay{ padding:0 20px; }
    .slider-arrow{ width:38px; height:38px; }
    .slider-dots{ left:20px; bottom:16px; }
	
	.banner-description{
		display:none;
	}
	  .page-banner{
		 
		padding:30px 0 30px;
	  }

    /* ---- Sub-nav folds into the mobile slide-out panel here ---- 
    .sub-nav{ display:none; }*/
    .mobile-sub-nav{
      display:block;
      /*margin-top:22px;*/
      padding-top:5px;
     /* border-top:1px solid var(--line);*/
    }
    .mobile-sub-nav .mobile-sub-label{
      font-size:12px; text-transform:uppercase; letter-spacing:0.05em;
      color:var(--maroon-soft); font-weight:700; margin-bottom:8px;
    }
    .mobile-sub-nav ul{ flex-direction:column; gap:0; }
    .mobile-sub-nav a{
      display:block; padding:12px 4px; font-size:15.5px;
      color:var(--brown); border-bottom:1px solid var(--line);
    }
  }

  @media (max-width:640px){
    section{padding:52px 0;}
    .service-grid{grid-template-columns:1fr;}
    .temple-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr; gap:30px;}
    .stats .wrap{grid-template-columns:1fr 1fr;}
    .hero-actions{flex-direction:column; align-items:stretch;}
    .hero{padding:0px 0 0;}
    .slide-overlay h3{font-size:19px;}
		.brand-text h1 {
		font-size: 13px;
		 
	}
	.banner-description{
		display:none;
	}
	.page-banner{
		 
		padding:30px 0 30px;
	  }
  }
  
  /* ---------- Secondary navbar (desktop horizontal strip) ---------- */
/* On mobile this is hidden — its links move into the slide-out panel
   instead, via the .mobile-sub-nav rules in style.css. */

.sub-nav {
	background: var(--maroon);
	border-top: 1px solid rgba(255,255,255,0.12);
	position: sticky;
    top: 0;
    z-index: 50;
}

.sub-nav .wrap {
	display: flex;
}

.sub-nav ul {
	display: flex;
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
	white-space: nowrap;
}

.sub-nav ul::-webkit-scrollbar {
	display: none;
}

.sub-nav ul li {
	flex: 0 0 auto;
}

.sub-nav ul li a {
	display: block;
	padding: 10px 16px;
	color: var(--ivory-deep);
	font-size: 14px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.sub-nav ul li a:hover,
.sub-nav ul li a:focus {
	background: rgba(255,255,255,0.12);
	color: #fff;
}