body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #FFFFFF;
    font-family: 'Outfit', 'Noto Sans Kannada', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.zoom {
  transition: transform .2s; /* Animation */
  width: 50px;
  margin: 0 auto;
}
.zoom:hover {
  transform: scale(2); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.quote{
    
     font-size: 20px;
}





p{
   
    font-size: 18px;
}

  /* Modern navigation styles defined below in main header section */
  
  /* Legacy dropdown rules removed and unified in modern navigation section */
  
  
  /* Legacy 600px responsive overrides removed to prevent icon jumping to right */




  .headcontainer {
      max-width: 100% ;
      height: 810px;
     
     
      background-repeat: no-repeat;
      background-size: cover;
  }
  
  
    .headcontainer_slider {
      max-width: 100% ;
      min-height:100px;
      margin-bottom:0;
     
     
     
     
  }
  .sticky {
    position: static !important;
    background-image: none !important;
  }

  .smart-scroll{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
  }
  .scrolled-down{
     transform:translateY(-100%); transition: all 0.3s ease-in-out;
  }
  .scrolled-up{
     transform:translateY(0); transition: all 0.3s ease-in-out;
  }

  /* Dropdown hover background is handled cleanly in the attached dropdown section below */



.blkquote {
  
    font-size: large;
    color: teal;
    font-style: italic;
   
    padding: 0px;
    text-align: center;
    
}

.flright {
    float: right;
   
}


.inner{
    overflow: hidden;
}
 
.inner img{
    transition: all 1.5s ease;
}
 
.inner:hover img{
    transform: scale(1.1);
}

.hbg1{
    color: white;
    background-image: url('../images/hpic1.png');
    background-repeat: no-repeat;
    padding-bottom: 20px;
    padding-top:20px;
    padding-left: 50px;
   
}

.hbg2{
     color: white;
     background-image: url('../images/hpic2.png');
        background-repeat: no-repeat;
     margin-bottom: 10px;
      
      
}

.hbg3{
     color: white;
     background-image: url('../images/hpic3.png');
    background-repeat: no-repeat;
    margin-bottom: 10px;
   
   
}


.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.footer a:hover{
     font-size: medium;
    transform: font-size 0.3s ease-in-out;
}





.loader-container{
 
 width:200px;
 height:200px;
 position:fixed;
 top:50%;
 left:50%;
 transform: translate(-50%,-50%);
 overflow: hidden;
 
 
}


#loadarea{
 
    width: 100%;
    height:  100%;
    background-color: darkslategray;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
 
 }


.loader-div{
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 8px solid darkslategray;
    border-top: 8px solid #09f;
    border-radius: 50%;
    animation: rotate 5s linear infinite;
}


@keyframes rotate {
    100% { transform: rotate(360deg);}
}



 .card-t{
 text-decoration:none;
  font-weight:bold;
  color:#555555;
 }



#overlay {
  position: fixed; /* Sit on top of the page content */
  display: block; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}




.innerCard{
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}


.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.float-button {
position: fixed;
right: -77px;
top: 270px;
transition: all 0.2s ease-in 0s;
z-index: 999;
cursor: pointer;
}


.float-button:hover {
  right: -7px;
}

/* Background image utility classes */
.bg-headcontainer {
    background-image: url('../images/back5.png');
}
.bg-booksheader {
    background-image: url('../images/booksheader.png');
    background-size: 100% auto;
}
.dropdown-ndr4 {
    background-image: url('../images/ndr4.png');
    width: 310px;
    height: 610px;
    background-repeat: no-repeat;
    background-size: auto;
}
.dropdown-ndr2 {
    background-image: url('../images/ndr2.png');
    width: 310px;
    height: 610px;
    background-repeat: no-repeat;
    background-size: auto;
}
.dropdown-ndr1 {
    background-image: url('../images/ndr1.png');

/* Base Structural Grid (Replacing Bootstrap dependencies with explicit Vanilla CSS) */
* {
    box-sizing: border-box;
}

.container { 
    width: 100%; 
    max-width: 1140px; 
    margin-right: auto; 
    margin-left: auto; 
    padding-right: 15px; 
    padding-left: 15px; 
}
.container-fluid { 
    width: 100%; 
    padding-right: 15px; 
    padding-left: 15px; 
    margin-right: auto; 
    margin-left: auto; 
}
.row { 
    display: flex; 
    flex-wrap: wrap; 
    margin-right: -15px; 
    margin-left: -15px; 
}

/* Grid Columns */
.col-md-6, .col-md-12, .col-md-4, .col-md-3, .col-lg-3, .col-sm-6, .col-12 {
    position: relative; 
    width: 100%; 
    padding-right: 15px; 
    padding-left: 15px; 
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* Utilities */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-right { text-align: right; }
.float-right { float: right; }
.m-2 { margin: 0.5rem; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-4 { padding: 1.5rem; }
.p-3 { padding: 1rem; }
.rounded { border-radius: 0.25rem; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.border-0 { border: 0 !important; }
.bg-transparent { background-color: transparent !important; }
.img-fluid { max-width: 100%; height: auto; }
.font-weight-bold { font-weight: 700; }
.text-capitalize { text-transform: capitalize; }

/* Cards & Decor */
.card-deck { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -15px; 
}
.card-deck .card { 
    flex: 1 1 calc(33.333% - 30px); 
    margin: 0 15px 30px; 
    display: flex; 
    flex-direction: column; 
    background-color: #fff; 
}
.card { display: flex; flex-direction: column; background-color: #fff; background-clip: border-box; }
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-title { margin-bottom: .75rem; font-size: 1.25rem; color: #333; }
.card-text { margin-top: 0; margin-bottom: 1rem; }
.card-img-top { flex-shrink: 0; width: 100%; }

/* Custom Buttons */
.btn { 
    display: inline-block; 
    font-weight: 400; 
    text-align: center; 
    vertical-align: middle; 
    cursor: pointer; 
    padding: .375rem .75rem; 
    font-size: 1rem; 
    border: 1px solid transparent;
    border-radius: .25rem; 
    text-decoration: none;
}
.btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { background-color: #0069d9; }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }

/* Pagination Override */
.pagination { 
    display: flex; 
    padding-left: 0; 
    list-style: none; 
    border-radius: .25rem; 
    margin-bottom: 1rem;
}
.page-item .page-link { 
    position: relative; 
    display: block; 
    padding: .5rem .75rem; 
    background-color: #fff; 
    border: 1px solid #dee2e6; 
    text-decoration: none;
}
.page-item .page-link:hover {
    background-color: #e9ecef;
}

/* Extracted Inline Styles & Attributes */
.loader-logo { width: 170px; height: 170px; margin-left: 44%; margin-right: auto; }
.loader-text-1 { color: white; margin-left: 43%; margin-top: 20px; }
.loader-text-2 { color: white; margin-left: 43%; margin-top: 30%; }
.nav-logo { width: 80px; height: 80px; }
.nav-icon { font-size: 15px; }
.section-quote { margin-top: 130px; text-align: left; margin-left: 0; font-size: 22px; }
.news-heading { max-width: 150px; }
.news-card-bg { background-color: #FEF9E7; }
.philosophy-wrapper { margin-top: 50px; margin-right: 20px; }
.philosophy-heading { color: white; margin-top: 30px; }
.link-volunteer { text-decoration: none; color: black; }
.volunteer-text { margin-top: 100px; }
.phil-absolute-box { color: white; position: absolute; top: 220px; max-width: 400px; left: 30px; }
.footer-heading { color: white; margin-left: 20px; margin-top: 20px; text-decoration: underline; }
.footer-text { color: white; margin-left: 20px; margin-top: 20px; }
.footer-links-wrapper { color: white; margin-left: 20px; margin-top: 20px; }
.footer-link { text-decoration: none; color: white; }
.footer-social-wrapper { color: white; margin-left: 20px; margin-top: 20px; font-size: 35px; }
.footer-social-link { color: white; }
.admin-link { color: white; text-decoration: underline; }
.hero-hidden-img { visibility: hidden; }
.book-card-link { cursor: pointer; }
}
.dropdown-ndr2 {
    background-image: url('../images/ndr2.png');
    width: 310px;
    height: 610px;
    background-repeat: no-repeat;
    background-size: auto;
}
.dropdown-ndr1 {
    background-image: url('../images/ndr1.png');
    width: 310px;
    height: 610px;
    background-repeat: no-repeat;
    background-size: auto;
}
.bg-templ3 {
    margin-top: 60px !important;
    background-image: url('../images/templ3_t1.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    min-height: 400px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.bg-sec3back6 {
    margin-top: 0px !important;
    background-image: url('../images/sec3back6.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    min-height: 400px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.bg-gradient-philosophy {
    color: #212121;
    background-image: linear-gradient(to right, rgba(255,0,0,0), #F7893C);
    padding: 15px;
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
}
.bg-btnm3 {
    background-image: url('../images/btnm3.png');
    height: auto;
    min-height: 350px;
    background-size: cover;
    padding-top: 30px;
    padding-bottom: 30px;
}
.bg-footback1 {
    background-image: url('../images/footback1.png');
    background-size: cover;
}

/* Base Structural Grid (Replacing Bootstrap dependencies with explicit Vanilla CSS) */
* {
    box-sizing: border-box;
}

.container { 
    width: 100%; 
    max-width: 1140px; 
    margin-right: auto; 
    margin-left: auto; 
    padding-right: 15px; 
    padding-left: 15px; 
}
.container-fluid { 
    width: 100%; 
    padding-right: 15px; 
    padding-left: 15px; 
    margin-right: auto; 
    margin-left: auto; 
}
.row { 
    display: flex; 
    flex-wrap: wrap; 
    margin-right: -15px; 
    margin-left: -15px; 
}

/* Grid Columns */
.col-md-6, .col-md-12, .col-md-4, .col-md-3, .col-lg-3, .col-sm-6, .col-12 {
    position: relative; 
    width: 100%; 
    padding-right: 15px; 
    padding-left: 15px; 
}

.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* Utilities */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-right { text-align: right; }
.float-right { float: right; }
.m-2 { margin: 0.5rem; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.p-4 { padding: 1.5rem; }
.p-3 { padding: 1rem; }
.rounded { border-radius: 0.25rem; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.border-0 { border: 0 !important; }
.bg-transparent { background-color: transparent !important; }
.img-fluid { max-width: 100%; height: auto; }
.font-weight-bold { font-weight: 700; }
.text-capitalize { text-transform: capitalize; }

/* Cards & Decor */
.card-deck { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -15px; 
}
.card-deck .card { 
    flex: 1 1 calc(33.333% - 30px); 
    margin: 0 15px 30px; 
    display: flex; 
    flex-direction: column; 
    background-color: #fff; 
}
.card { display: flex; flex-direction: column; background-color: #fff; background-clip: border-box; }
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-title { margin-bottom: .75rem; font-size: 1.25rem; color: #333; }
.card-text { margin-top: 0; margin-bottom: 1rem; }
.card-img-top { flex-shrink: 0; width: 100%; }

/* Custom Buttons */
.btn { 
    display: inline-block; 
    font-weight: 400; 
    text-align: center; 
    vertical-align: middle; 
    cursor: pointer; 
    padding: .375rem .75rem; 
    font-size: 1rem; 
    border: 1px solid transparent;
    border-radius: .25rem; 
    text-decoration: none;
}
.btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { background-color: #0069d9; }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }

/* Pagination Override */
.pagination { 
    display: flex; 
    padding-left: 0; 
    list-style: none; 
    border-radius: .25rem; 
    margin-bottom: 1rem;
}
.page-item .page-link { 
    position: relative; 
    display: block; 
    padding: .5rem .75rem; 
    background-color: #fff; 
    border: 1px solid #dee2e6; 
    text-decoration: none;
}
.page-item .page-link:hover {
    background-color: #e9ecef;
}

/* Extracted Inline Styles & Attributes */
.loader-logo { width: 170px; height: 170px; margin-left: 44%; margin-right: auto; }
.loader-text-1 { color: white; text-align: center; margin-top: 20px; }
.loader-text-2 { color: white; text-align: center; margin-top: 50px; }
.nav-logo { width: 80px; height: 80px; }
.nav-icon { font-size: 15px; }
.section-quote { margin-top: 60px; text-align: left; margin-left: 0; font-size: 22px; }
.news-heading { max-width: 100%; }
.news-card-bg { background-color: #FEF9E7; }
.philosophy-wrapper { margin-top: 30px; margin-right: 0px; }
.philosophy-heading { color: white; margin-top: 20px; }
.link-volunteer { text-decoration: none; color: black; }
.volunteer-text { margin-top: 30px; }
.phil-absolute-box { color: white; position: relative; top: 0; max-width: 100%; left: 0; padding: 20px; }
.footer-heading { color: white; margin-left: 20px; margin-top: 20px; text-decoration: underline; }
.footer-text { color: white; margin-left: 20px; margin-top: 20px; }
.footer-links-wrapper { color: white; margin-left: 20px; margin-top: 20px; }
.footer-link { text-decoration: none; color: white; }
.footer-social-wrapper { color: white; margin-left: 20px; margin-top: 20px; font-size: 35px; }
.footer-social-link { color: white; }
.admin-link { color: white; text-decoration: underline; }
.hero-hidden-img { visibility: hidden; }
.book-card-link { cursor: pointer; }
.book-card-inner { box-shadow: 2px 2px 10px rgba(0,0,0,0.2); }
.book-img { width: 100%; }
.book-btn { background-color: #007bff; border: none; border-radius: 0; width: 100%; text-align: center; }
.cart-btn-float { box-shadow: -2px 2px 10px rgba(0,0,0,0.3); border-radius: 4px 0 0 4px; }

/* Hide protruding lines in dropdowns */
.mdropdown-content hr {
    border: none;
    margin: 8px 0;
}

/* Base Responsive Overrides Core Framework Components */
@media (max-width: 991px) {
    .headcontainer { height: auto; min-height: 600px; background-position: center center; }
    .bg-templ3, .bg-sec3back6 { height: auto; min-height: 500px; background-size: cover; background-position: center; }
    .section-quote { margin-top: 50px; text-align: center; }
    .philosophy-wrapper { margin-top: 30px; margin-right: 0px; }
    .bg-btnm3 { height: auto; min-height: 400px; }
}

@media (max-width: 767px) {
    .headcontainer { min-height: 400px; padding-bottom: 30px; }
    
    /* Auto Flow Overrides */
    .bg-templ3, .bg-sec3back6.bg-btnm3 { min-height: 350px; }
    .section-quote { margin-top: 30px; font-size: 18px; }
    .philosophy-heading, .text-right { text-align: center !important; }
    .philosophy-wrapper { float: none !important; margin: 30px auto 0; padding: 0 15px; }
    .bg-gradient-philosophy { margin: 0 auto; text-align: center; }
    .volunteer-text { margin-top: 40px; }
    
    /* Box Normalization */
    .phil-absolute-box { position: relative; top: auto; left: auto; padding: 30px 15px; text-align: center; margin: 0 auto; }
    
    /* Dropdown Reset For Mobile Drawer Real Estate */
    .dropdown-ndr1, .dropdown-ndr2, .dropdown-ndr4 { 
        width: 100%; 
        height: auto; 
        min-height: 350px; 
        background-size: cover; 
    }
    
    /* Loader Alignment For Restricted Widths */
    .loader-logo { width: 120px; height: 120px; margin-left: auto; margin-right: auto; display: block; }
    .loader-text-1, .loader-text-2 { text-align: center; margin-left: 0; width: 100%; }
    
    /* Stacking Cards */
    .card-deck { flex-direction: column; }
    .card-deck .card { flex: 1 1 100%; margin: 15px 0; }
    
    .footer-heading { margin-top: 30px; }
}

/* Comprehensive All-Device Responsiveness Override */

/* Fix hardcoded mobile offsets */
.loader-logo { width: 170px; height: 170px; margin: 0 auto !important; display: block; }
.loader-text-1 { text-align: center !important; margin-left: 0 !important; }
.loader-text-2 { text-align: center !important; margin-left: 0 !important; margin-top: 150px !important; }

@media screen and (max-width: 991px) {
    .bg-footback1 { padding-bottom: 2rem; }
    .col-md-6, .col-md-4 { margin-top: 15px; } /* Stack margin buffer */
    .philosophy-wrapper { margin-top: 20px !important; margin-right: 0 !important; float: none !important; }
    .philosophy-heading, .bg-gradient-philosophy { text-align: left !important; max-width: 100% !important; background-image: none !important; background-color: rgba(247,137,60,0.8); }
    .volunteer-text { margin-top: 20px !important; }
}

@media screen and (max-width: 768px) {
    /* Scale Large Background Areas */
    .headcontainer { min-height: 400px; height: auto !important; background-position: left top; }
    .bg-booksheader { min-height: 200px; background-size: cover !important; }
    
    .bg-templ3, .bg-sec3back6, .bg-btnm3 { 
        height: auto !important;
        min-height: 350px;
        background-size: cover !important; 
        background-position: center;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    /* Box positioning resets */
    .phil-absolute-box {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-top: 30px;
    }
    
    .section-quote { margin-top: 40px !important; text-align: center !important; font-size: 18px !important; }
    
    /* Fix mobile hamburger layout */
    .topnav a { font-size: 15px; padding: 10px; }
    .nav-logo { width: 50px; height: 50px; }
    
    /* Handle complex painted dropdown menus on mobile gracefully */
    .dropdown-ndr4, .dropdown-ndr2, .dropdown-ndr1 {
       width: 100% !important;
       height: auto !important;
       background-image: none !important;
       background-color: #C2770C;
       padding-top: 10px;
    }
    
    /* Reset footer formatting */
    .footer-heading { margin-left: 0 !important; }
    .footer-text, .footer-links-wrapper, .footer-social-wrapper { margin-left: 0 !important; }
}

/* ==========================================================================
   Top Bar, Refined Header & Hero Slider Component Styles
   ========================================================================== */

/* Top Bar Styles */
.top-bar {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.top-bar-container {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000000 !important;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-item i {
    color: #000000 !important;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right a {
    color: #000000 !important;
    font-size: 16px;
    transition: color 0.3s ease;
}

.top-bar-right a:hover {
    color: #F7893C !important;
}

/* Main Header Navigation Refinements */
.main-header {
    background-color: #8B0000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.topnav {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FF9933;
    min-height: 64px;
    box-sizing: border-box;
}

.nav-brand {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.nav-logo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.brand-title {
    color: #FFFFFF !important;
    font-size: clamp(17px, 1.45vw, 22px) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

.brand-title-full {
    display: inline !important;
}

.brand-title-mobile {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: clamp(2px, 0.4vw, 6px);
    height: 64px;
    flex-wrap: nowrap;
}

.nav-links a.nav-item, 
.nav-links .mdropdown .dropbtn {
    float: none !important;
    color: #ffffff !important;
    text-align: center;
    padding: 0 clamp(8px, 0.9vw, 16px) !important;
    text-decoration: none;
    font-size: clamp(15.5px, 1.15vw, 17.5px) !important;
    font-weight: 600;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 6px 6px 0 0;
}

.nav-brand:hover {
    background-color: transparent !important;
    background: none !important;
    color: inherit !important;
    box-shadow: none !important;
}

.nav-links a.nav-item:hover,
.nav-links a.nav-item:focus {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.nav-links a.nav-item.active,
.nav-links a.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-donate-btn {
    background-color: #881b0a !important;
    color: #ffffff !important;
    padding: 8px clamp(14px, 1.2vw, 24px) !important;
    border-radius: 22px !important;
    font-weight: 700 !important;
    font-size: clamp(15px, 1.05vw, 16.5px) !important;
    margin-left: 8px;
    white-space: nowrap !important;
    align-self: center !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-donate-btn:hover {
    background-color: #6e1406 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.topnav .icon {
    display: none !important;
    font-size: 24px;
    color: white;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
}

/* ========================================================
   ATTACHED SUBMENU SYSTEM (Matching jnanayogashrama.org)
   ======================================================== */
.mdropdown {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 100%;
    overflow: visible !important;
}

/* Dropdown Parent Tab - Transparent on hover and open */
.mdropdown:hover .dropbtn,
.mdropdown.open .dropbtn,
.mdropdown:focus-within .dropbtn {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mdropdown .dropbtn i {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.mdropdown:hover .dropbtn i,
.mdropdown.open .dropbtn i,
.mdropdown:focus-within .dropbtn i {
    transform: rotate(180deg);
}

/* Dropdown Submenu Panel: Attached flush directly to the bottom of the parent button */
.mdropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 0;
    background: #813e0e;
    background: linear-gradient(180deg, #813e0e 0%, #683007 100%);
    min-width: 275px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    border-radius: 0 0 10px 10px;
    padding: 10px 0 14px 0;
    z-index: 1050;
    border-top: 2px solid #f6a142;
    text-align: center;
    box-sizing: border-box;
}

/* Invisible bridge preventing cursor loss between main menu and submenu */
.mdropdown-content::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* Show submenu when hovering, when clicked (.open), or on keyboard focus - strictly line by line */
.mdropdown:hover .mdropdown-content,
.mdropdown.open .mdropdown-content,
.mdropdown:focus-within .mdropdown-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Precise horizontal alignments for centered & attached submenus */
/* 1. About Dropdown - Centered right under About */
.mdropdown-about .mdropdown-content {
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
}

/* 2. Teachings & Resources Dropdown - Centered right under Teachings & Resources */
.mdropdown-teachings .mdropdown-content {
    left: 50%;
    transform: translateX(-50%);
    min-width: 290px;
}

/* 3. Online Shop Dropdown - Attached flush to right of Online Shop so it never overflows screen */
.mdropdown-shop .mdropdown-content {
    right: 0;
    left: auto;
    min-width: 270px;
}

/* Submenu Links: STRICTLY LINE BY LINE, 100% full-width, no floats */
.mdropdown-content a {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    text-decoration: none !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0 !important;
}

.mdropdown-content a:last-child {
    border-bottom: none;
}

.mdropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffe6a7 !important;
}

.mdropdown-content hr {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: calc(100% - 48px) !important;
    box-sizing: border-box !important;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 8px auto !important;
    flex-shrink: 0 !important;
}

.mdropdown-content strong,
.mdropdown-content .dropdown-heading {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px 6px 20px !important;
    color: #ffe6a7;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Modern Site Footer Styles */
.site-footer {
    background-color: #71565b;
    color: #b0b0b0;
    padding-top: 50px;
    font-size: 14px;
    border-top: 4px solid #f1a20e;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 300px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #F7893C;
}

.footer-info {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cccccc;
}

.footer-info i {
    color: #F7893C;
    margin-top: 4px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #F7893C;
    padding-left: 5px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #cccccc;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons a {
    color: #ffffff;
    background-color: #262626;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: #F7893C;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, .075);
    padding: 20px 30px;
    border-top: 1px solid #040404;
}

.footer-bottom-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.footer-bottom-container p {
    margin: 0;
    text-align: center;
}

.footer-bottom-container a {
    color: #cccccc;
    text-decoration: underline;
}

/* Mobile Left Slide-In Drawer & Backdrop Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header,
.mobile-lang-row {
    display: none;
}

@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }

    .topnav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding: 8px 15px !important;
    }

    .topnav .icon,
    .topnav.responsive .icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        color: white;
        padding: 4px;
        cursor: pointer;
        order: 1 !important; /* Hamburger Icon locked on the left */
        position: static !important;
        right: auto !important;
        top: auto !important;
        float: none !important;
        margin-right: 5px;
    }

    .nav-brand {
        order: 2 !important; /* Logo & Title beside hamburger */
        flex-grow: 1;
        display: inline-flex !important;
        align-items: center !important;
        gap: 14px !important; /* Increased space between logo image and text */
        margin-left: 5px !important;
    }

    .nav-logo {
        margin-right: 2px !important;
    }

    .brand-title-full {
        display: none !important;
    }

    .brand-title-mobile {
        display: inline-block !important;
        font-size: 23px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
    }

    /* Left Slide-in Navigation Drawer */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: #181818 !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 20px !important;
        background: linear-gradient(135deg, #813e0e 0%, #a44f12 100%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        flex: 0 0 auto !important;
    }

    .drawer-title {
        color: #ffffff !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
    }

    .drawer-close-btn {
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        line-height: 1;
    }

    .mobile-lang-row {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 12px 20px !important;
        background-color: #121212;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: #e0e0e0;
        font-size: 13.5px;
        flex: 0 0 auto !important;
    }

    .mobile-lang-row .mobile-lang-label {
        color: #9ca3af;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .mobile-lang-row .lang-btn {
        color: #d1d5db !important;
        padding: 4px 12px !important;
        border-radius: 4px !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        transition: all 0.2s ease !important;
    }

    .mobile-lang-row .lang-btn.active {
        background-color: #F7893C !important;
        color: #ffffff !important;
        border-color: #F7893C !important;
    }

    .mobile-lang-row .lang-divider {
        color: #4b5563;
        font-size: 12px;
    }

    /* Left Slide-in Navigation Drawer Links & Submenus Alignment */
    .nav-links > a,
    .nav-links a.nav-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #f0f0f0 !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        text-decoration: none !important;
    }

    .nav-links a.nav-item:hover,
    .nav-links a.nav-item:active {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #ffe6a7 !important;
    }

    .nav-links .mdropdown {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        flex: 0 0 auto !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-links .mdropdown .dropbtn {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #f0f0f0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        cursor: pointer;
        text-decoration: none !important;
    }

    .nav-links .mdropdown.open .dropbtn {
        background: rgba(247, 137, 60, 0.15) !important;
        color: #F7893C !important;
    }

    .nav-links .mdropdown .dropbtn i {
        font-size: 18px !important;
        transition: transform 0.25s ease !important;
    }

    .nav-links .mdropdown.open .dropbtn i {
        transform: rotate(180deg) !important;
    }

    .nav-links .mdropdown .mdropdown-content {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        background-color: #141414 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: 3px solid #F7893C !important;
        padding: 4px 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    .nav-links .mdropdown.open .mdropdown-content {
        display: block !important;
    }

    .nav-links .mdropdown-content a {
        float: none !important;
        clear: both !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 11px 20px 11px 28px !important;
        font-size: 14.5px !important;
        color: #d6d6d6 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
        box-sizing: border-box !important;
        transform: none !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
    }

    .nav-links .mdropdown-content a:hover,
    .nav-links .mdropdown-content a:active {
        background-color: rgba(247, 137, 60, 0.12) !important;
        color: #ffe6a7 !important;
    }

    .nav-links .mdropdown-content strong,
    .nav-links .mdropdown-content .dropdown-heading {
        display: block !important;
        padding: 10px 20px 4px 28px !important;
        color: #F7893C !important;
        font-size: 12.5px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left !important;
    }

    .nav-links .mdropdown-content hr {
        width: calc(100% - 40px) !important;
        margin: 6px auto !important;
        border: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .nav-donate-btn {
        margin: 20px !important;
        text-align: center !important;
        display: block !important;
        width: calc(100% - 40px) !important;
        padding: 12px 20px !important;
        background: linear-gradient(135deg, #881b0a 0%, #a8240f 100%) !important;
        color: #ffffff !important;
        border-radius: 25px !important;
        font-weight: 700 !important;
        font-size: 15.5px !important;
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ========================================================
   EXPLICIT DESKTOP NAVIGATION BAR (min-width: 992px)
   Guarantees desktop menu is always fully visible on all desktop/laptop screens
   ======================================================== */
@media (min-width: 992px) {
    .top-bar {
        display: block !important;
    }

    .topnav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background-color: #FF9933 !important;
        min-height: 64px !important;
        height: 64px !important;
        padding: 0 clamp(14px, 1.8vw, 30px) !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .topnav .icon,
    .topnav.responsive .icon {
        display: none !important;
    }

    .drawer-header,
    .mobile-lang-row,
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-brand {
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        gap: 12px !important;
        order: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .brand-title-full {
        display: inline-block !important;
    }

    .brand-title-mobile {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        transform: none !important;
        flex-direction: row !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        height: 64px !important;
        min-height: 64px !important;
        width: auto !important;
        max-width: none !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: clamp(2px, 0.4vw, 6px) !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100 !important;
        transition: none !important;
        flex: 1 1 auto !important;
    }

    .nav-links > a,
    .nav-links a.nav-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: auto !important;
        flex: 0 0 auto !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: clamp(14px, 1.05vw, 17px) !important;
        padding: 0 clamp(7px, 0.8vw, 14px) !important;
        background: transparent !important;
        border: none !important;
        border-bottom: none !important;
        border-radius: 6px 6px 0 0 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        text-align: center !important;
    }

    .nav-links a.nav-item:hover,
    .nav-links a.nav-item:focus {
        background: transparent !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .nav-links .mdropdown {
        display: inline-flex !important;
        align-items: stretch !important;
        height: 100% !important;
        width: auto !important;
        flex: 0 0 auto !important;
        border-bottom: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        overflow: visible !important;
    }

    .nav-links .mdropdown .dropbtn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: auto !important;
        flex: 0 0 auto !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: clamp(14px, 1.05vw, 17px) !important;
        padding: 0 clamp(7px, 0.8vw, 14px) !important;
        background: transparent !important;
        border: none !important;
        border-radius: 6px 6px 0 0 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
        gap: 5px !important;
    }

    .nav-links .mdropdown:hover .dropbtn,
    .nav-links .mdropdown.open .dropbtn,
    .nav-links .mdropdown:focus-within .dropbtn {
        background: transparent !important;
        color: #ffffff !important;
    }

    .nav-links .mdropdown .mdropdown-content {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        width: auto !important;
        border-left: none !important;
        border-top: 2px solid #f6a142 !important;
        border-radius: 0 0 10px 10px !important;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45) !important;
    }

    .nav-links .mdropdown:hover .mdropdown-content,
    .nav-links .mdropdown.open .mdropdown-content,
    .nav-links .mdropdown:focus-within .mdropdown-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .nav-donate-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        width: auto !important;
        flex: 0 0 auto !important;
        margin: 0 0 0 clamp(6px, 0.8vw, 12px) !important;
        padding: 8px clamp(13px, 1vw, 22px) !important;
        background-color: #881b0a !important;
        background: #881b0a !important;
        color: #ffffff !important;
        border-radius: 22px !important;
        font-weight: 700 !important;
        font-size: clamp(13.5px, 0.95vw, 16px) !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
        transition: background-color 0.2s ease, transform 0.15s ease !important;
    }

    .nav-donate-btn:hover {
        background-color: #6e1406 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25) !important;
    }
}

/* Hero Slider Styles */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 580px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    transform: translateY(30px);
    transition: transform 0.8s ease;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(247, 137, 60, 0.9);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn-primary {
    background-color: #F7893C;
    color: #ffffff;
    border: 2px solid #F7893C;
}

.hero-btn-primary:hover {
    background-color: #e07225;
    border-color: #e07225;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 137, 60, 0.4);
}

.hero-btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-btn-outline:hover {
    background-color: #ffffff;
    color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-arrow:hover {
    background: #F7893C;
    transform: translateY(-50%) scale(1.1);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
    background-color: #F7893C;
    width: 30px;
    border-radius: 10px;
}

/* Responsive adjustments for Top Bar & Hero Slider */
@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-left {
        justify-content: center;
        gap: 10px;
    }
    .brand-title {
        font-size: 15px;
    }
    .hero-slider {
        height: 480px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Full Device Compatibility Overrides (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* Large Desktop / Ultrawide (> 1400px) */
@media (min-width: 1400px) {
    .topnav, .top-bar-container, .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Medium Desktop & Laptops (992px - 1250px) */
@media (max-width: 1250px) and (min-width: 992px) {
    .brand-title {
        font-size: 15px !important;
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nav-links {
        gap: 3px !important;
    }
    .nav-links a.nav-item, 
    .nav-links .mdropdown .dropbtn {
        padding: 0 clamp(5px, 0.7vw, 9px) !important;
        font-size: 14px !important;
    }
    .nav-donate-btn {
        padding: 6px 12px !important;
        font-size: 13.5px !important;
        margin-left: 4px !important;
    }
    .hero-title {
        font-size: 36px;
    }
}

/* Tablet Layout (768px - 991px) */
@media (max-width: 991px) {
    .hero-slider {
        height: 500px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .footer-container {
        gap: 30px;
        padding: 0 20px;
    }
    .footer-col {
        flex: 1 1 45%;
    }
}

/* Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    .top-bar-container {
        flex-direction: column;
        text-align: center;
        padding: 5px 15px;
    }
    .top-bar-left, .top-bar-right {
        justify-content: center;
        gap: 10px;
    }
    .top-bar-item {
        font-size: 12px;
    }
    .topnav {
        padding: 8px 15px;
    }
    .nav-logo {
        width: 45px;
        height: 45px;
    }
    .brand-title {
        font-size: 15px;
    }
    .hero-slider {
        height: 440px;
    }
    .hero-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    .hero-title {
        font-size: 26px;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .prev-slide { left: 10px; }
    .next-slide { right: 10px; }
    .footer-col {
        flex: 1 1 100%;
    }
}

/* Extra Small Phones (< 480px) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 13px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero-slider {
        height: 400px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 13px;
        line-height: 1.4;
    }
    .hero-buttons {
        gap: 8px;
    }
    .hero-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .footer-bottom-container {
        font-size: 12px;
    }
}

/* Hero Slide Background Classes */
.hero-slide-1 {
    position: absolute;
    background-color: #2a1810;
    overflow: hidden;
}

/* Ambient blurred backdrop so full widescreen is filled naturally */
.hero-slide-1::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background-image: url('../images/slide1_guruji.jpg');
    background-size: cover;
    background-position: center 25%;
    filter: blur(18px) brightness(0.65);
    transform: scale(1.08);
    z-index: 1;
}

/* Sharp, uncropped centered portrait - Gurujis shown head-to-toe with zero cut-off */
.hero-slide-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/slide1_guruji.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Slide 2: Clean Temple Image without hardcoded quote text */
.hero-slide-2 {
    background-image: url('../images/templ3_clean.jpg');
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

/* Slide 3: Serene Meditative Landscape */
.hero-slide-3 {
    background-image: url('../images/hero_bg.png');
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

/* Admin Panel Component Styles */
.admin-body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.admin-wrapper {
    width: 100%;
    max-width: 850px;
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.admin-login-title {
    text-align: center;
    color: #F7893C;
    margin-bottom: 2rem;
}

.admin-section-heading {
    color: #F7893C;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.news-item-title {
    margin-top: 0;
    color: #ffffff;
}

.admin-textarea-desc {
    min-height: 80px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 1rem;
    box-sizing: border-box;
}

.btn-danger {
    background-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
}

.btn-margin-right {
    margin-right: 8px;
}

.back-link {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #F7893C;
}

.back-link-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Bilingual Language Switcher Styles
   ========================================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.06);
    padding: 3px 10px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin-right: 12px;
}

.lang-btn {
    color: #444444 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 2px 6px !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn.active, 
.lang-btn:hover {
    color: #ffffff !important;
    background-color: #8B0000 !important;
}

.lang-divider {
    color: #888888;
    font-size: 12px;
}

.mobile-lang-row {
    display: none !important;
}

.mobile-lang-label {
    font-weight: 600;
    color: #F7893C;
    margin-right: 4px;
}

/* ==========================================================================
   About Us Page Component Styles
   ========================================================================== */
.about-hero-section {
    position: relative;
    width: 100%;
    height: 320px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.about-badge {
    display: inline-block;
    background: rgba(247, 137, 60, 0.25);
    border: 1px solid #F7893C;
    color: #F7893C;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-hero-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin: 10px 0;
}

.about-hero-subtitle {
    color: #e0e0e0;
    font-size: 16px;
    margin: 0;
}

.about-container {
    max-width: 1100px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.about-card-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    color: #222222;
}

.blessing-banner {
    background: linear-gradient(135deg, #8B0000 0%, #a81010 100%);
    color: #ffffff;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blessing-banner h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.about-text-lead {
    font-size: 18px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 30px;
}

.aspects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.aspect-card {
    background: #fdfbf7;
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aspect-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.1);
}

.aspect-card.highlight-card {
    background: #fff8f0;
}

.aspect-icon {
    font-size: 32px;
    color: #8B0000;
    margin-bottom: 12px;
}

.aspect-card h4 {
    color: #8B0000;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aspect-card p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.mandira-special-box {
    background: rgb(211, 41, 41);
    color: #ffffff;;
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 35px 0;
    border-left: 5px solid #F7893C;
}

.mandira-special-box h3 {
    color: #F7893C;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
}

.mandira-special-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.appeal-box {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.appeal-box h4 {
    color: #8B0000;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
}

.appeal-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

.quote-footer-box {
    text-align: center;
    background: #f4efe6;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.guru-quote {
    font-size: 18px;
    font-weight: 700;
    color: #8B0000;
    font-style: italic;
    margin-bottom: 8px;
}

.guru-salutation {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.btn-donate-now {
    display: inline-block;
    background-color: #F7893C;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(247, 137, 60, 0.4);
}

.btn-donate-now:hover {
    background-color: #e07225;
    transform: translateY(-2px);
}

/* ==========================================================================
   Sri Harshananda Swamiji Component Styles
   ========================================================================== */
.swamiji-section {
    background-color: #fcfaf5;
    padding: 60px 0;
    border-bottom: 1px solid #e8e0d0;
}

.swamiji-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.swamiji-card {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eae0d0;
}

.swamiji-img-col {
    flex: 0 0 380px;
    max-width: 380px;
    background:sandybrown;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.swamiji-img-wrapper {
    text-align: center;
    width: 100%;
}

.swamiji-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    border: 3px solid #F7893C;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.swamiji-name-tag {
    margin-top: 18px;
}

.swamiji-name-tag h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
}

.swamiji-name-tag span {
    color: #f7f5f4;
    font-size: 14px;
    font-weight: 600;
}

.swamiji-content-col {
    flex: 1;
    padding: 40px;
    box-sizing: border-box;
}

.swamiji-badge {
    display: inline-block;
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.swamiji-title {
    color: #8B0000;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 20px;
}

.swamiji-message p {
    color: #333333;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 15px;
}

.swamiji-message p.highlight-text {
    background: #fff8f0;
    border-left: 4px solid #F7893C;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    color: #8B0000;
}

.swamiji-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-swamiji-donate {
    background-color: #F7893C;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.3s ease;
    box-shadow: 0 4px 12px rgba(247, 137, 60, 0.3);
}

.btn-swamiji-donate:hover {
    background-color: #e07225;
}

.btn-swamiji-about {
    background-color: transparent;
    color: #8B0000 !important;
    border: 2px solid #8B0000;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-swamiji-about:hover {
    background-color: #8B0000;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .swamiji-card {
        flex-direction: column;
    }
    .swamiji-img-col {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
    }
    .swamiji-content-col {
        padding: 25px 20px;
    }
    .swamiji-title {
        font-size: 20px;
    }
    .swamiji-message p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Powered by E-Technology Footer Credits & Interactive Popup
   ========================================================================== */
.powered-by-e-technology {
    position: relative;
    display: inline-block;
    margin: 5px 0;
}

#la {
    margin: 0;
    font-size: 13px;
    color: #aaaaaa;
}

.e-tech-link {
    color: #F7893C !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.e-tech-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.e-tech-popup {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.e-tech-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
}

.powered-by-e-technology:hover .e-tech-popup,
.e-tech-popup:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
    border-radius: 8px;
    border: 1px solid #333333;
    overflow: hidden;
}

.popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fallback-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #F7893C;
    font-size: 20px;
}

.popup-info {
    text-align: left;
}

.popup-info h4 {
    margin: 0 0 2px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.popup-info p {
    margin: 0 0 6px 0;
    color: #aaaaaa;
    font-size: 11px;
    line-height: 1.3;
}

.popup-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #F7893C !important;
    font-size: 12px !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.popup-contact-btn:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   Comprehensive Subpage Layouts & All-Device Compatibility Framework
   ========================================================================== */

/* Subpage Hero Banner */
.subpage-hero {
    position: relative;
    background: linear-gradient(135deg, #4a0d05 0%, #7d1c0c 45%, #a83a11 100%);
    color: #ffffff;
    padding: 70px 20px 60px;
    text-align: center;
    overflow: hidden;
    border-bottom: 4px solid #f6a142;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.subpage-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(246, 161, 66, 0.2);
    border: 1px solid rgba(246, 161, 66, 0.45);
    color: #ffe0a3;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.subpage-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.subpage-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: #f7e6d0;
    line-height: 1.6;
    margin: 0 auto 16px;
    max-width: 750px;
}

.subpage-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #ffdeb0;
}

.subpage-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subpage-breadcrumbs a:hover {
    color: #f6a142;
    text-decoration: underline;
}

.subpage-breadcrumbs span {
    opacity: 0.7;
}

/* Subpage Main Body Container */
.subpage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    box-sizing: border-box;
}

.subpage-card {
    background: #ffffff;
    border: 1px solid #ede4d6;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 35px;
}

/* Headings & Section Styling */
.section-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2e9dc;
}

.section-header h2, .section-header h3 {
    color: #7d1c0c;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin: 0 0 8px;
}

.section-header p {
    color: #666666;
    font-size: 15px;
    margin: 0;
}

/* Responsive Grid Helpers */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Shivyogi Biography Cards */
.shivyogi-card {
    display: flex;
    flex-direction: column;
    background: #fffdfa;
    border: 1px solid #e8dfcf;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
}

.shivyogi-card-header {
    background: linear-gradient(135deg, #7d1c0c 0%, #9e2a0f 100%);
    color: #ffffff;
    padding: 24px 30px;
}

.shivyogi-card-header h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #ffffff;
}

.shivyogi-title-tag {
    color: #ffd899;
    font-size: 15px;
    font-weight: 600;
}

.shivyogi-body {
    padding: 30px;
    color: #333333;
    line-height: 1.8;
    font-size: 16px;
}

.shivyogi-quote-box {
    background: #fff8eb;
    border-left: 4px solid #f6a142;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    font-style: italic;
    color: #5c3506;
}

/* Volunteer & Donation Forms */
.spiritual-form {
    background: #ffffff;
    border: 1px solid #eadecc;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04);
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-label-custom {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-label-custom span.req {
    color: #d93025;
}

.form-input-custom,
.form-select-custom,
.form-textarea-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4c8b6;
    border-radius: 8px;
    font-size: 15px;
    background-color: #faf8f5;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-custom:focus,
.form-select-custom:focus,
.form-textarea-custom:focus {
    outline: none;
    border-color: #f6a142;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(246, 161, 66, 0.18);
}

.btn-spiritual-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7d1c0c 0%, #a83a11 100%);
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(125, 28, 12, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-spiritual-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 28, 12, 0.45);
    background: linear-gradient(135deg, #661508 0%, #8f300c 100%);
}

/* Donation Cards & Bank Details */
.donation-info-box {
    background: #fffcf7;
    border: 2px solid #f6a142;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
}

.bank-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e8dfcf;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}

.bank-table th {
    background-color: #7d1c0c;
    color: #ffffff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
}

.bank-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f0e6d6;
    color: #333333;
}

.bank-table tr:last-child td {
    border-bottom: none;
}

.bank-table tr:nth-child(even) {
    background-color: #fdfbf8;
}

.upi-card {
    background: linear-gradient(135deg, #2c1a11 0%, #4a2814 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.upi-id-pill {
    display: inline-block;
    background: #f6a142;
    color: #2c1a11;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    margin: 15px 0;
    letter-spacing: 0.5px;
}

/* Quotes Card Grid */
.quote-card-fancy {
    background: #ffffff;
    border: 1px solid #ebd9c2;
    border-top: 4px solid #7d1c0c;
    border-radius: 12px;
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-card-fancy:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(125, 28, 12, 0.12);
}

.quote-card-text {
    color: #2c221a;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 16px;
}

.quote-card-author {
    color: #7d1c0c;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Vachana Card Grid */
.vachana-card {
    background: #fffdf8;
    border: 1px solid #ebd8c0;
    border-radius: 12px;
    padding: 26px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.vachana-kannada-text {
    font-size: 17px;
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 3px solid #f6a142;
}

.vachana-meaning {
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
    background: #fdf6ec;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 10px;
}

.vachanakara-badge {
    display: inline-block;
    color: #7d1c0c;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Cards (Pravachana Audio & Video) */
.media-card-item {
    background: #ffffff;
    border: 1px solid #e8dfcf;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.media-card-thumb {
    position: relative;
    background: #2a150c;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6a142;
    font-size: 48px;
}

.media-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c221a;
    margin: 0 0 10px;
}

.media-card-meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 14px;
}

/* Bookstore Harmonized Styling */
.bookstore-page-wrap {
    background-color: #faf7f2;
    min-height: 80vh;
    padding: 40px 0 70px;
}

.bookstore-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.bookstore-filter-btn {
    background: #ffffff;
    color: #555555;
    border: 1.5px solid #ded5c5;
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bookstore-filter-btn:hover,
.bookstore-filter-btn.active {
    background: #7d1c0c;
    color: #ffffff;
    border-color: #7d1c0c;
    box-shadow: 0 4px 12px rgba(125, 28, 12, 0.25);
}

.harmonized-book-card {
    background: #ffffff;
    border: 1px solid #ebd9c2;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.harmonized-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.harmonized-book-img-box {
    background: #fbf9f5;
    border-radius: 8px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.harmonized-book-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.harmonized-book-card:hover .harmonized-book-img-box img {
    transform: scale(1.05);
}

.harmonized-book-title {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 6px;
    line-height: 1.4;
    min-height: 42px;
}

.harmonized-book-author {
    font-size: 12px;
    color: #7d1c0c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.harmonized-book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0e6d6;
}

.harmonized-book-price {
    font-size: 18px;
    font-weight: 800;
    color: #2c1a11;
}

.btn-book-order {
    background: #f6a142;
    color: #2c1a11;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-book-order:hover {
    background: #e58d2a;
    color: #ffffff;
}

/* Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.photo-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    aspect-ratio: 4 / 3;
    background-color: #222;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.08);
}

.photo-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile & Tablet Fine-Tuning */
@media (max-width: 900px) {
    .subpage-container {
        padding: 30px 15px 60px;
    }
    .subpage-card {
        padding: 22px 18px;
    }
    .subpage-hero {
        padding: 50px 15px 40px;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .shivyogi-body {
        padding: 20px 16px;
    }
}
