/********** ISKCON Chandigarh — Polished Template CSS **********/

/* ─── Smooth Scroll & Base ─────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

:root {
    --bs-tertiary: #797e88;
    --transition-fast: 0.25s ease;
    --transition-med:  0.4s ease;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

a { transition: color var(--transition-fast); }

img { display: block; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--bs-primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--bs-secondary); }

/* ─── Back to Top ────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    box-shadow: 0 4px 14px rgba(255, 172, 0, 0.45);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 172, 0, 0.55);
}

/* ─── Font Weights ───────────────────────────────────────────── */
.fw-bold   { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }

/* ─── Spinner / Loader ───────────────────────────────────────── */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    background: #fff;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Om Symbol Loader */
.iskcon-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.iskcon-loader .om-symbol {
    font-size: 3.8rem;
    color: var(--bs-primary);
    animation: om-pulse 1.8s ease-in-out infinite;
    font-family: serif;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255, 172, 0, 0.5));
}

.iskcon-loader .loader-ring {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 172, 0, 0.2);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: spin-ring 0.9s linear infinite;
}

.iskcon-loader .loader-text {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--bs-secondary);
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes om-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.12); opacity: 0.8; }
}

@keyframes spin-ring {
    to { transform: rotate(360deg); }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    transition: all var(--transition-fast);
    letter-spacing: 0.4px;
    font-weight: 600;
}

.btn:not(.btn-square):not(.btn-sm-square):not(.btn-lg-square):not(.btn-link) {
    border-radius: var(--radius-sm);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.btn-square {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-square:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square  { width: 48px; height: 48px; border-radius: var(--radius-sm) !important; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ─── Top Bar ────────────────────────────────────────────────── */
.top-bar {
    height: 90px;
    padding: 0 90px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar h6 {
    letter-spacing: 1px;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.top-bar span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ─── Mantra Ticker ──────────────────────────────────────────── */
.mantra-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, var(--bs-secondary) 0%, #0a2f54 100%);
    color: var(--bs-primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 9px 0;
    font-family: 'Josefin Sans', sans-serif;
    border-bottom: 2px solid var(--bs-primary);
}

.mantra-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 65s linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ─── Nav Bar ────────────────────────────────────────────────── */
.nav-bar {
    padding: 0 90px;
    transition: var(--transition-med);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 22px 0;
    color: var(--bs-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    outline: none;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-white);
    transition: width var(--transition-fast);
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 10px 0;
    overflow: hidden;
}

.navbar .dropdown-item {
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar .dropdown-item:hover {
    background: var(--bs-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .nav-bar { padding: 0 20px; }
    .top-bar { padding: 0 20px; }
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar .navbar-nav .nav-link::after { display: none; }
    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-fast);
        transform: translateY(8px);
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Header Carousel ────────────────────────────────────────── */
.header-carousel {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.header-carousel .carousel-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.header-carousel .carousel-img img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transition: transform 0.6s ease;
}

.header-carousel .owl-item.active .carousel-img img {
    animation: slide-in 0.7s ease forwards;
}

@keyframes slide-in {
    from { transform: scale(0.96); opacity: 0.6; }
    to   { transform: scale(1);    opacity: 1; }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
    transform: scale(1.08);
}

/* ─── Page Header ────────────────────────────────────────────── */
.page-header {
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
    color: var(--bs-dark);
}

/* ─── Video / Live Feed ──────────────────────────────────────── */
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-dark);
    border-radius: 50%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(255,172,0,0.2);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    transition: all 200ms;
    border-radius: 50%;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2.2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-content {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}

/* ─── Section Title ──────────────────────────────────────────── */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 4px 16px;
    border-radius: 30px;
    background: rgba(255, 172, 0, 0.12) !important;
    color: var(--bs-primary) !important;
    border: 1px solid rgba(255, 172, 0, 0.3);
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
    opacity: 0.25;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
    opacity: 0.25;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img img {
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 10%;
    height: 40px;
    background: var(--bs-white);
    z-index: 1;
}

.about-img::before { top: 0px; left: 0px; }
.about-img::after  { right: 0px; bottom: 0px; }

/* ─── Service ────────────────────────────────────────────────── */
.service-title {
    height: 100%;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    border-radius: var(--radius-md);
}

.service-item {
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md) !important;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.service-item:hover .btn-square {
    background: var(--bs-primary) !important;
    transform: rotate(8deg);
}

.service-item:hover .btn-square i {
    color: #fff !important;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 0.8rem;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}

/* ─── Donation Cards ─────────────────────────────────────────── */
.donation-item {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
    overflow: hidden;
}

.donation-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.donation-item .position-relative img {
    border-radius: var(--radius-sm);
    transition: transform 0.45s ease;
    overflow: hidden;
}

.donation-item:hover .position-relative img {
    transform: scale(1.04);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
    border-radius: 4px;
}

/* ─── Banner ─────────────────────────────────────────────────── */
.banner .banner-inner {
    position: relative;
    background: url(../front/img/bg.jpg) center center no-repeat;
    background-size: cover;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

/* ─── Events ─────────────────────────────────────────────────── */
.event-item {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
    overflow: hidden;
}

.event-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.event-item img {
    border-radius: var(--radius-sm);
    transition: transform 0.45s ease;
}

.event-item:hover img {
    transform: scale(1.04);
}

/* ─── Donate Section ─────────────────────────────────────────── */
.donate .donate-text {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    top: 0; left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0; bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: background var(--transition-fast);
}

.donate .donate-form .form-control:focus {
    background: rgba(255,255,255,0.85);
    box-shadow: none;
}

.donate .donate-form .btn-group {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.donate .donate-form .btn-group .btn {
    margin: 0; padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-secondary);
    background: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.donate .donate-form .btn-group .btn-check:checked + .btn {
    border: none;
    background: var(--bs-white);
    color: var(--bs-primary);
}

/* ─── Team ───────────────────────────────────────────────────── */
.team-item {
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: #fff;
    overflow: hidden;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.team-item .team-detail img {
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}

.team-item:hover .team-detail img {
    transform: scale(1.04);
}

.team-item .team-detail span {
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--bs-primary);
    font-weight: 700;
}

.team-social {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonial-title {
    height: 100%;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
    border-radius: var(--radius-md);
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
    border-radius: var(--radius-md);
    opacity: 0.85;
}

.testimonial-img img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav { top: 6.3rem; }
}

/* ─── Newsletter ─────────────────────────────────────────────── */
.newsletter-section {
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255,172,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-input-wrap {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-input-wrap .form-control {
    border-radius: 50px !important;
    padding: 0 70px 0 24px;
    height: 58px;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.newsletter-input-wrap .form-control::placeholder { color: rgba(255,255,255,0.7); }

.newsletter-input-wrap .form-control:focus {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    box-shadow: none;
    color: #fff;
    outline: none;
}

.newsletter-submit-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: var(--bs-dark) !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
}

.newsletter-submit-btn:hover {
    transform: scale(1.08);
    background: var(--bs-secondary) !important;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    color: #a8aeb8;
    background: linear-gradient(160deg, rgba(5, 19, 17, 0.97) 0%, rgba(13, 59, 102, 0.95) 100%),
        url(../img/bg-footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px !important;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 2px;
}

.footer p,
.footer span {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 7px;
    padding: 0;
    text-align: left;
    color: #a8aeb8;
    font-weight: 500;
    font-size: 0.88rem;
    text-transform: capitalize;
    transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--bs-primary);
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 0.5px;
    box-shadow: none;
}

.footer .gallery-grid img {
    border-radius: var(--radius-sm);
    transition: transform 0.35s ease, opacity 0.35s ease;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.footer .gallery-grid img:hover {
    transform: scale(1.06);
    opacity: 0.85;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px !important;
    font-size: 0.85rem;
    color: #6c7480;
}

.footer .copyright a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer .copyright a:hover { opacity: 0.8; }

/* Footer social buttons */
.footer .btn-square.btn-primary {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.footer .btn-square.btn-primary:hover {
    background: var(--bs-white) !important;
    color: var(--bs-secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ─── Blog Cards (public) ────────────────────────────────────── */
.blog-card-wrap .card {
    border-radius: var(--radius-md) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.blog-card-wrap .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13) !important;
}

.blog-card-wrap .card-img-top {
    transition: transform 0.45s ease;
}

.blog-card-wrap .card:hover .card-img-top {
    transform: scale(1.04);
}

.blog-card-wrap .card-img-top-wrap {
    overflow: hidden;
}

/* ─── Misc Utility ───────────────────────────────────────────── */
.section-py { padding: 80px 0; }

.icon-box {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.icon-box:hover { transform: rotate(6deg) scale(1.05); }

/* Forms */
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 172, 0, 0.2);
    border-color: var(--bs-primary);
}

/* Focus visibility for a11y */
*:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════
   POLISH ADDITIONS — 2026-04-07
   ══════════════════════════════════════════════════════════════ */

/* ─── Scroll padding (prevents sticky nav covering anchor targets) ── */
html { scroll-padding-top: 72px; }

/* ─── Sticky Nav Shrink ─────────────────────────────────────────── */
.nav-bar.scrolled .navbar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    transition: padding var(--transition-med);
}
.nav-bar.scrolled {
    box-shadow: 0 4px 28px rgba(0,0,0,0.28) !important;
}
.nav-bar.scrolled .navbar-brand img {
    height: 38px !important;
    transition: height var(--transition-med);
}

/* ─── Hero Carousel — staggered text entrance ───────────────────── */
.owl-item.active .carousel-text > p:first-child {
    animation: heroTextUp 0.65s ease 0.2s both;
}
.owl-item.active .carousel-text h1 {
    animation: heroTextUp 0.7s ease 0.4s both;
}
.owl-item.active .carousel-text > p:not(:first-child) {
    animation: heroTextUp 0.65s ease 0.6s both;
}
.owl-item.active .carousel-text .d-flex {
    animation: heroTextUp 0.6s ease 0.8s both;
}
@keyframes heroTextUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section Accent (warm alternating section bg) ──────────────── */
.section-accent {
    background: linear-gradient(180deg, #fffbf0 0%, #ffffff 100%);
}

/* ─── Page Hero (inner pages) ────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #1a0800 0%, #0d3b66 60%, #1a0a00 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,172,0,0.07), transparent 60%);
    pointer-events: none;
}
.page-hero h1,
.page-hero h2             { color: #ffffff; }
.page-hero p              { color: rgba(255,255,255,0.78); }
.page-hero .lead          { color: rgba(255,255,255,0.65) !important; }
.page-hero .text-muted    { color: rgba(255,255,255,0.55) !important; }
.page-hero .section-title {
    background: rgba(255,172,0,0.18) !important;
    color: var(--bs-primary) !important;
    border-color: rgba(255,172,0,0.5) !important;
}
@media (max-width: 768px) {
    .page-hero { padding: 48px 0 40px; }
}

/* ─── Testimonial Quote Icon (gold) ─────────────────────────────── */
.testimonial-text .btn-lg-square {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    border-radius: var(--radius-md) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.testimonial-text .btn-lg-square:hover {
    transform: rotate(-6deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(255,172,0,0.35);
}

/* ─── Footer Social Icons (gold shadow) ─────────────────────────── */
.footer .btn-square.btn-primary:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 18px rgba(255,172,0,0.4) !important;
}

/* ─── WhatsApp Float Button ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.45rem;
    box-shadow: 0 4px 14px rgba(37,211,102,0.45);
    z-index: 99;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 22px rgba(37,211,102,0.55);
    color: #ffffff;
}
.whatsapp-float .fa-whatsapp { line-height: 1; }

/* ─── Gallery Album Cards (moved from inline blade style) ────────── */
.gallery-album-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14) !important;
}
.gallery-album-card:hover .gallery-album-img {
    transform: scale(1.06);
}
.gallery-album-card:hover .gallery-album-overlay {
    opacity: 1 !important;
}


/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — 2026-04-07
   Best-practice overrides for phones & small tablets.
   Structure: base mobile (≤991px) → small phone (≤575px) → tiny (≤374px)
   ══════════════════════════════════════════════════════════════ */

/* ─── Navbar logo: smooth transition (height is set via inline style = 48px desktop) ── */
/* Mobile overrides below reduce it; desktop stays at the inline 48px value */
.navbar-logo {
    width: auto;
    transition: height 0.2s ease;
}
.nav-bar.scrolled .navbar-logo {
    height: 36px !important;   /* matches existing scrolled shrink on all screens */
}

/* ─── Hamburger / toggler: 44×44 touch target (Apple HIG) ────────── */
.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4) !important;
}

/* ─── Mobile auth buttons ─────────────────────────────────────── */
.btn-mobile-auth {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT ≤ 991.98px  (collapsed navbar — tablets & phones)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

    /* Nav bar wrapper: remove the large desktop side padding */
    .nav-bar { padding: 0 !important; }

    /* Scroll padding for fixed nav */
    html { scroll-padding-top: 58px; }

    /* ── Nav links: compact, touch-friendly ── */
    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 4px;
    }
    .navbar .navbar-nav .nav-link {
        font-size: 0.95rem;
        font-weight: 600;
        padding: 13px 16px !important;
        margin-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        min-height: 44px;            /* touch target */
        display: flex;
        align-items: center;
    }
    .navbar .navbar-nav .nav-link::after { display: none; }

    /* ── DROPDOWN FIX: force inline/static on mobile ── */
    /* Without this, dropdown menus fly off-screen (position:absolute) */
    .navbar .dropdown-menu {
        position: static !important;
        float: none !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 0 6px 20px !important;
        padding: 0 !important;
        background: transparent !important;
        border-left: 2px solid rgba(255, 255, 255, 0.22) !important;
        /* Override Bootstrap's display:none — JS adds .show */
    }
    .navbar .dropdown-menu.show {
        display: block !important;
    }
    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.82) !important;
        padding: 11px 16px !important;
        font-size: 0.875rem !important;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 44px;
        display: flex;
        align-items: center;
        background: transparent !important;
    }
    .navbar .dropdown-item:last-child { border-bottom: none; }
    .navbar .dropdown-item:active,
    .navbar .dropdown-item:focus,
    .navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.09) !important;
        color: #ffffff !important;
    }
    .navbar .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
        margin: 2px 8px;
    }
    .navbar .dropdown-item .fa {
        opacity: 0.65;
        width: 20px;
        text-align: center;
    }

    /* ── Dropdown toggle arrow: collapse indicator ── */
    .navbar .dropdown-toggle[aria-expanded="true"]::before {
        content: "";
    }

    /* ── Navbar collapse area padding ── */
    .navbar-collapse { padding: 0 16px; }

    /* ── Mobile auth buttons area ── */
    .d-flex.d-lg-none { padding: 4px 0 0 0; }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT ≤ 575.98px  (phones)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {

    /* Logo: slightly smaller on phones only (desktop keeps inline 48px) */
    .navbar-logo { height: 40px !important; }

    /* Mantra ticker: smaller text, tighter padding */
    .mantra-carousel {
        font-size: 0.8rem;
        letter-spacing: 1px;
        padding: 7px 0;
    }

    /* Section title decorative lines cause horizontal overflow — hide them */
    .section-title::before,
    .section-title::after,
    .section-title.text-start::before,
    .section-title.text-start::after {
        display: none;
    }

    /* Page hero: reduce excess padding on phones */
    .page-hero {
        padding: 40px 0 30px;
    }
    .page-hero h1 {
        font-size: 1.65rem !important;
        line-height: 1.25;
    }
    .page-hero p { font-size: 0.9rem; }

    /* Video modal: full-width on phones */
    #videoModal .modal-dialog {
        margin: 12px !important;
        max-width: calc(100% - 24px);
    }

    /* Back-to-top: keep clear of edges */
    .back-to-top {
        right: 16px !important;
        bottom: 16px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   BREAKPOINT ≤ 374px  (very small phones — iPhone SE 1st gen)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 374px) {

    .navbar-logo { height: 36px !important; }

    .navbar .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 11px 12px !important;
    }

    .btn-mobile-auth {
        font-size: 0.82rem;
        padding: 9px 8px;
    }

    .mantra-carousel {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE OFF-CANVAS MENU  (.mob-menu)
   Desktop (≥992px): display:none via d-lg-none on the element.
   Mobile (<992px): slides in from right, full-height drawer.
   ══════════════════════════════════════════════════════════════ */

/* ── Shell ──────────────────────────────────────────────────── */
.mob-menu {
    width: min(82vw, 340px) !important;   /* max 340px, min 82% viewport */
    background: #0d1e30 !important;
    border-left: 1px solid rgba(255, 172, 0, 0.18) !important;
    display: flex;
    flex-direction: column;
}

/* Bootstrap offcanvas backdrop */
.offcanvas-backdrop { background-color: rgba(0,0,0,0.7) !important; }

/* ── Header ─────────────────────────────────────────────────── */
.mob-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 16px;
    background: #091627;
    border-bottom: 2px solid rgba(255, 172, 0, 0.35);
    flex-shrink: 0;
}

.mob-menu__brand-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #F59E0B;         /* amber */
    line-height: 1.2;
    text-transform: uppercase;
}
.mob-menu__brand-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    margin-top: 2px;
}

.mob-menu__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.mob-menu__close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── Scrollable body ────────────────────────────────────────── */
.mob-menu__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,172,0,0.25) transparent;
}
.mob-menu__body::-webkit-scrollbar { width: 4px; }
.mob-menu__body::-webkit-scrollbar-thumb {
    background: rgba(255,172,0,0.25);
    border-radius: 2px;
}

/* ── Nav links ──────────────────────────────────────────────── */
.mob-nav {
    flex: 1;
    padding: 4px 0;
}

/* Shared base for top-level link and toggle button */
.mob-nav__link,
.mob-nav__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.88);
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    text-align: left;
    min-height: 52px;          /* Apple HIG 44pt+ touch target */
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.mob-nav__link:hover,
.mob-nav__toggle:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.mob-nav__link:active,
.mob-nav__toggle:active {
    background: rgba(255,172,0,0.08);
}

/* Active (current page) */
.mob-nav__link--active {
    color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.08) !important;
    border-left: 3px solid #F59E0B;
    padding-left: 17px !important;
}
.mob-nav__link--active .mob-nav__icon { color: #F59E0B; }

/* Icon */
.mob-nav__icon {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,172,0,0.7);
    flex-shrink: 0;
}

/* Chevron — rotates 90° when submenu is open */
.mob-nav__chevron {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    transition: transform 0.22s ease;
    flex-shrink: 0;
}
.mob-nav__toggle[aria-expanded="true"] .mob-nav__chevron {
    transform: rotate(90deg);
    color: #F59E0B;
}
.mob-nav__toggle[aria-expanded="true"] {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.06);
}

/* ── Submenu ────────────────────────────────────────────────── */
.mob-nav__sub {
    background: rgba(0,0,0,0.2);
    border-left: 2px solid rgba(245, 158, 11, 0.35);
    margin-left: 28px;
    margin-right: 0;
    overflow: hidden;
}

.mob-nav__sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.72);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    min-height: 44px;
    transition: background 0.15s, color 0.15s;
}
.mob-nav__sublink:last-child { border-bottom: none; }
.mob-nav__sublink:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.mob-nav__sublink .fa {
    width: 16px;
    text-align: center;
    color: rgba(255,172,0,0.55);
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Donate Online — highlighted sublink */
.mob-nav__sublink--highlight {
    color: #F59E0B !important;
    font-weight: 600;
}
.mob-nav__sublink--highlight .fa { color: #F59E0B !important; }

/* ── Auth buttons ───────────────────────────────────────────── */
.mob-menu__auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
}

.mob-menu__auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}
.mob-menu__auth-btn:active { transform: scale(0.98); }

.mob-menu__auth-btn--outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
}
.mob-menu__auth-btn--outline:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.mob-menu__auth-btn--dark {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.15);
}
.mob-menu__auth-btn--dark:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.mob-menu__auth-btn--gold {
    background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
    color: #fff;
    border: none;
    box-shadow: 0 3px 12px rgba(180, 83, 9, 0.35);
}
.mob-menu__auth-btn--gold:hover {
    opacity: 0.9;
    color: #fff;
}

/* ── Contact strip ──────────────────────────────────────────── */
.mob-menu__contact {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.mob-menu__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}
.mob-menu__contact-item:hover { color: rgba(255,255,255,0.75); }
.mob-menu__contact-item .fa {
    width: 16px;
    text-align: center;
    color: rgba(255,172,0,0.5);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.82rem;
}

/* ── Remove old mobile-collapse remnant styles on mobile ────── */
@media (max-width: 991.98px) {
    /* The navbar-collapse is hidden on mobile by Bootstrap's navbar-expand-lg.
       The old mobile auth and nav inside it are no longer needed here. */
    .navbar-collapse { display: none !important; }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE CONTENT OPTIMISATION
   ALL rules below live inside @media blocks — zero desktop impact.
   Desktop (≥992px) is completely untouched.
   ══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   Tablet + phone  (≤767.98px)
   First-pass reductions: section spacing, heading scale, row gaps
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Topbar: all content inside uses d-none d-md-block / d-none d-lg-flex,
       so the 90px container is completely empty on mobile. Hide it entirely. */
    .top-bar { display: none !important; }

    /* Buttons: reduce py-3/px-4/px-5 utility padding on all content buttons.
       Excludes square icon buttons (.btn-square / .btn-sm-square / .btn-lg-square),
       navbar buttons handled separately, and form .btn-sm which are already compact. */
    .btn:not(.btn-square):not(.btn-sm-square):not(.btn-lg-square):not(.btn-sm):not(.btn-link) {
        padding-top:    0.55rem !important;
        padding-bottom: 0.55rem !important;
        padding-left:   1.1rem  !important;
        padding-right:  1.1rem  !important;
        font-size: 0.92rem;
    }

    /* Section vertical padding: py-5 = 48px each side is too generous */
    .container-fluid.py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    /* display-6 section headings (About, Services, Events, Donation): scale down */
    .display-6 {
        font-size: 1.7rem !important;
        line-height: 1.3;
    }

    /* Row gaps: g-5 (3rem) creates too much dead space on tablets */
    .container-fluid.py-5 .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    /* Testimonial nav arrows: reposition so they don't overlap the quote body */
    .testimonial-carousel .owl-nav { top: 4rem; }
}

/* ──────────────────────────────────────────────────────────────
   Phone  (≤575.98px)
   Core content optimisation: hero, typography, cards, spacing
   ────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {

    /* ── Hero Carousel ─────────────────────────────────────────
       display-1 = 5rem (80px) on desktop — completely unusable on a phone.
       Carousel also has double py-5: one on .header-carousel, one on .container
       inside each slide — that's 96px of wasted padding on each side.
    ──────────────────────────────────────────────────────────── */
    .header-carousel .display-1 {
        font-size: 1.85rem !important;
        line-height: 1.2;
        letter-spacing: 0 !important;
    }
    .header-carousel .fs-5 {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
    }
    /* Remove the outer carousel py-5; keep only the slide container padding */
    .header-carousel {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    /* Reduce each slide's inner padding */
    .header-carousel .container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    /* Original side-column image: hide on mobile (replaced by inline mobile copy) */
    .header-carousel .carousel-img { display: none; }

    /* Mobile-only image injected between heading and body text in the Blade template.
       Shown via d-block d-lg-none; hidden automatically on desktop by Bootstrap. */
    .carousel-img-mobile {
        margin-bottom: 1rem;
    }
    .carousel-img-mobile img {
        max-height: 200px;
        object-fit: cover;
        border-radius: 10px;
    }

    /* ── Carousel nav arrows ────────────────────────────────────
       Desktop: 45×45px stacked vertically on the left, centered.
       Mobile: small (28×28px) pair moved to the bottom-right corner
       so they never overlap the slide text.
    ──────────────────────────────────────────────────────────── */
    .header-carousel .owl-nav {
        position: absolute;
        top: auto !important;
        bottom: 1rem;
        left: auto !important;
        right: 1rem;
        transform: none !important;
        display: flex;
        flex-direction: row;
        gap: 6px;
    }
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 28px  !important;
        height: 28px !important;
        font-size: 12px !important;
        margin: 0 !important;
        border-radius: 6px !important;
        opacity: 0.85;
    }

    /* ── Section spacing ────────────────────────────────────── */
    .container-fluid.py-5 {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    /* ── Section headings ───────────────────────────────────── */
    .display-6 {
        font-size: 1.45rem !important;
        line-height: 1.3;
    }

    /* ── Row gaps: tighter on phones ───────────────────────── */
    .container-fluid.py-5 .row.g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    .container-fluid.py-5 .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    /* ── About Us — mantra box ──────────────────────────────── */
    /* Reduce the heavy p-4 padding inside the golden mantra card */
    .bg-primary.p-4.rounded-3 {
        padding: 1.1rem !important;
    }
    .bg-primary.p-4.rounded-3 .fa-3x { font-size: 1.75rem !important; }

    /* ── Events — card images ───────────────────────────────── */
    /* Inline style uses max-height:180px (fixed px); override to aspect-ratio */
    .event-item img {
        max-height: none !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    /* Info box inside event card */
    .event-item .bg-light { padding: 0.85rem !important; }
    .event-item .bg-light p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem !important;
    }
    .event-item.p-4 { padding: 1rem !important; }

    /* ── Donation cards ─────────────────────────────────────── */
    /* Inline style uses max-height:220px; tighten slightly on phones */
    .donation-item img { max-height: 175px !important; }
    .donation-item.p-4 { padding: 1rem !important; }

    /* ── Service items ──────────────────────────────────────── */
    .service-item .btn-square { margin-bottom: 0.75rem !important; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE SPACING — ROUND 2
   Comprehensive padding/margin reduction across all sections.
   All rules inside @media blocks — zero desktop impact.
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet + phone (≤767.98px) ──────────────────────────────── */
@media (max-width: 767.98px) {

    /* Banner inner: p-5 (48px all sides) is the biggest offender */
    .banner-inner {
        padding: 1.5rem !important;
    }
    /* Banner inner col has an extra py-5 stacked on top */
    .banner-inner .py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Newsletter: py-5 + mt-5 stacks to 96px of vertical gap */
    .newsletter-section {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Testimonials: pb-5 applies on mobile, pb-md-0 removes it at ≥768px.
       Reduce from 3rem to 1.5rem so cards don't have excessive bottom air. */
    .testimonial-text {
        padding-bottom: 1.5rem !important;
    }

    /* Footer: comprehensive compaction ──────────────────────────
       Outer .footer.py-5 + inner .row.py-5 = double padding (96px).
       Collapse both and tighten the row gutter.                   */
    .footer.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 0 !important;
    }
    .footer .row.g-5.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1rem !important;
        --bs-gutter-y: 0.9rem;
        --bs-gutter-x: 1rem;
    }

    /* Logo: 64px inline height is large on mobile */
    .footer .mb-4 img[style*="height: 64px"] {
        height: 42px !important;
    }
    .footer .mb-4 { margin-bottom: 0.75rem !important; }

    /* Section h4 headings: 20px margin + 12px padding = 32px per heading */
    .footer h4 {
        font-size: 0.88rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px;
    }

    /* Contact paragraphs */
    .footer p { margin-bottom: 0.25rem !important; }
    .footer .d-flex.gap-2.pt-2 { padding-top: 0.2rem !important; }

    /* Quick links: tighter per-link spacing */
    .footer .btn.btn-link {
        margin-bottom: 2px !important;
        font-size: 0.82rem !important;
    }

    /* Quick Links + Temple Timings: side-by-side 2-col on mobile.
       Each is col-lg-3 col-md-6 — below 768px they're 100%.
       Force them to 50% so both fit on one row.                   */
    .footer .row.g-5 > .col-lg-3.col-md-6:nth-child(2),
    .footer .row.g-5 > .col-lg-3.col-md-6:nth-child(3) {
        flex: 0 0 50%;
        width: 50%;
    }

    /* Temple timings: compact heading sizes */
    .footer h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.1rem !important;
    }

    /* Copyright: tighter top padding */
    .footer .copyright {
        padding-top: 10px !important;
        font-size: 0.78rem !important;
    }

    /* Copyright second line is very long text — hide on mobile */
    .footer .copyright .col-md-6:last-child { display: none !important; }

    /* Copyright first line: no bottom gap */
    .copyright .col-md-6.mb-3 { margin-bottom: 0.25rem !important; }
}

/* ── Phone (≤575.98px) ───────────────────────────────────────── */
@media (max-width: 575.98px) {

    /* Live feed: container mb-5 (48px) below the banner */
    .container-fluid.bg-primary.mb-5 {
        margin-bottom: 1.5rem !important;
    }
    /* Live feed: inner div py-5 */
    .container-fluid.bg-primary .py-5 {
        padding-top: 1.1rem !important;
        padding-bottom: 1.1rem !important;
    }
    /* Live feed: ms-5 (48px left margin) next to play button —
       pushes text right and causes overflow on narrow screens */
    .container-fluid.bg-primary .ms-5 {
        margin-left: 1rem !important;
    }
    /* Live feed heading: h3 is too large on phones */
    .container-fluid.bg-primary h3 {
        font-size: 1rem !important;
        line-height: 1.35;
    }

    /* Features stats: each box has py-5 px-4 (48px top/bottom).
       The 2×2 grid becomes very tall on a phone. */
    .row.g-0 .text-center.bg-primary,
    .row.g-0 .text-center.bg-secondary {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    /* Features stat numbers: display-5 (3rem) too large in 2×2 grid */
    .row.g-0 .text-center .display-5 {
        font-size: 1.65rem !important;
        margin-bottom: 0.1rem !important;
    }
    /* Features stat icons */
    .row.g-0 .text-center .fa-3x {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    /* Team cards: p-4 (24px) on both .team-item and .team-social */
    .team-item  { padding: 0.9rem !important; }
    .team-social { padding: 0.9rem !important; }
    .team-detail { padding-right: 0.75rem !important; }

    /* Banner inner: further reduction on phones */
    .banner-inner { padding: 1.1rem !important; }

    /* Section-title text decorations already hidden ≤575px;
       also reduce its bottom margin */
    .section-title { margin-bottom: 0.5rem !important; }
}

/* ──────────────────────────────────────────────────────────────
   Very small phones  (≤374px)
   Extreme scaling for iPhone SE 1st gen and similar
   ────────────────────────────────────────────────────────────── */
@media (max-width: 374px) {

    .header-carousel .display-1 { font-size: 1.55rem !important; }
    .header-carousel .fs-5 { font-size: 0.88rem !important; }

    .display-6 { font-size: 1.25rem !important; }

    /* Stack the two CTA buttons vertically — side-by-side is too cramped */
    .header-carousel .d-flex.flex-wrap.gap-3 {
        flex-direction: column !important;
        gap: 0.6rem !important;
    }
    .header-carousel .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
        text-align: center;
    }
}


/* ══════════════════════════════════════════════════════════════
   FINAL POLISH — MOBILE UI/UX
   All rules inside @media blocks unless explicitly global.
   Desktop (≥992px) untouched throughout.
   ══════════════════════════════════════════════════════════════ */

/* ── Global: eliminate 300ms tap delay on all interactive elements ── */
a, button, .btn, [role="button"], input[type="submit"], label {
    touch-action: manipulation;
}

/* ── WOW.js: force-show all animated elements on mobile.
   WOW sets visibility:hidden then reveals on scroll — on slow devices
   or when content is already in viewport on load, it can stay hidden.
   Disable the hide/show entirely on mobile; content is always visible. ── */
@media (max-width: 767.98px) {
    .wow {
        visibility: visible !important;
        animation: none !important;
        -webkit-animation: none !important;
        animation-duration: 0s !important;
    }
}

/* ──────────────────────────────────────────────────────────────
   Tablet + phone  (≤767.98px) — polish additions
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    /* Footer .btn-link: padding already handled in the footer block above */
}

/* ──────────────────────────────────────────────────────────────
   Phone  (≤575.98px) — polish additions
   ────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {

    /* ── 1. Team cards: stack vertically ───────────────────────
       Desktop: d-flex side-by-side (photo+name left, social right).
       Mobile: flex-column — photo/name on top, social row below.
    ──────────────────────────────────────────────────────────── */
    .team-item {
        flex-direction: column !important;
    }
    .team-detail {
        padding-right: 0 !important;  /* pe-4 is only meaningful side-by-side */
    }
    .team-detail img {
        max-height: 200px;
        width: 100%;
        object-fit: cover;
        object-position: top;
        border-radius: 8px;
    }
    /* Social buttons: switch from column to row on mobile */
    .team-social {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px;
        flex-shrink: unset !important;
    }
    .team-social .btn { margin: 0 !important; }

    /* ── 2. Testimonial carousel: tighten inner gap, hide image ─
       Each slide: row g-5 col-md-6 (image) + col-md-6 (quote).
       On mobile the gap is 48px between them. Hide image — the
       quote, stars, and attribution are the real content.
    ──────────────────────────────────────────────────────────── */
    .testimonial-item .row.g-5 {
        --bs-gutter-y: 0 !important;
    }
    .testimonial-item .testimonial-img { display: none; }
    .testimonial-text {
        padding-bottom: 1rem !important;
        padding-top: 0.75rem;
    }
    /* Quote text: fs-5 is handled below but add line-height polish */
    .testimonial-text .fs-5 {
        line-height: 1.6;
    }

    /* ── 3. fs-5 body text: 1.25rem → 1rem on phones ───────────
       Affects: About, Banner, Features, Testimonial paragraphs.
       Scoped to paragraphs only — does not affect badges/labels.
    ──────────────────────────────────────────────────────────── */
    p.fs-5, .fs-5 p {
        font-size: 1rem !important;
        line-height: 1.65;
    }

    /* ── 4. Hero carousel: reduce mb-5 before CTA buttons ──────
       The body paragraph has mb-5 (48px) before Donate/Join buttons.
       Reduce so buttons stay visible without scrolling.
    ──────────────────────────────────────────────────────────── */
    .header-carousel .carousel-text .mb-5 {
        margin-bottom: 1.1rem !important;
    }

    /* ── 5. Footer gallery: col-4 (3-up) → 2-up ───────────────
       112px wide thumbnails on a 375px phone are too small.
       Switch to 50% width for a comfortable 2-column grid.
    ──────────────────────────────────────────────────────────── */
    .gallery-grid .col-4 {
        flex: 0 0 auto;
        width: 50%;
    }

    /* ── Features stat boxes: force 2-column (col-6) on phones ──
       col-sm-6 gives 2-up at ≥576px but stacks to full-width below.
       Override to keep the compact 2×2 grid on all phone sizes.    */
    .section-features .row.g-0 > .col-sm-6 {
        flex: 0 0 50%;
        width: 50%;
    }

    /* ── 6. Newsletter input: ensure comfortable touch target ───
       Input already 58px height — good. Reduce horizontal padding
       slightly so placeholder text doesn't get clipped on phones.
    ──────────────────────────────────────────────────────────── */
    .newsletter-input-wrap .form-control {
        padding-left: 16px;
        font-size: 0.9rem;
    }
    .newsletter-input-wrap {
        max-width: 100%;
    }
}


/* ══════════════════════════════════════════════════════════════
   2-COLUMN CARD GRIDS ON MOBILE  (≤575.98px)
   Forces col-6 behaviour on four card sections so content is
   displayed side-by-side instead of full-width stacked.
   All rules scoped to phones only — desktop unchanged.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {

    /* ── Services ──────────────────────────────────────────────
       col-sm-6 = 2-up at ≥576px; force 50% below that too.
       Show 4 cards in a clean 2×2 grid (see nth-child rule above).
    ──────────────────────────────────────────────────────────── */
    .section-services .row.g-5 > .col-sm-6 {
        flex: 0 0 50%;
        width: 50%;
    }
    .section-services .service-item { padding: 0.85rem !important; }
    .section-services .service-item h3 { font-size: 0.92rem !important; }
    .section-services .service-item p  { font-size: 0.8rem  !important; margin-bottom: 0.3rem !important; }
    .section-services .service-item .btn-square {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 0.5rem !important;
    }
    .section-services .service-item .btn-square .fa { font-size: 0.9rem; }

    /* ── Donations ─────────────────────────────────────────────
       col-md-6 = 100% below 768px; force 50% on phones.
    ──────────────────────────────────────────────────────────── */
    .section-accent .row.g-4 > div {
        flex: 0 0 50%;
        width: 50%;
    }
    .section-accent .donation-item { padding: 0.75rem !important; }
    .section-accent .donation-item img    { max-height: 120px !important; }
    .section-accent .donation-item .h4   { font-size: 0.88rem !important; line-height: 1.35; }
    .section-accent .donation-item p     { font-size: 0.78rem !important; margin-bottom: 0.5rem !important; }
    .section-accent .donation-item .btn  { padding: 0.4rem 0.6rem !important; font-size: 0.8rem !important; }

    /* ── Events ────────────────────────────────────────────────
       col-md-6 = 100% below 768px; force 50% on phones.
    ──────────────────────────────────────────────────────────── */
    .section-events .row.g-4 > div {
        flex: 0 0 50%;
        width: 50%;
    }
    .section-events .event-item.p-4     { padding: 0.7rem !important; }
    /* Override the aspect-ratio rule set earlier; fixed height works better at 50% */
    .section-events .event-item img {
        max-height: 100px !important;
        aspect-ratio: unset !important;
    }
    .section-events .event-item a.h3,
    .section-events .event-item .h3     { font-size: 0.85rem !important; margin-bottom: 0.25rem !important; }
    .section-events .event-item > p     { font-size: 0.78rem !important; margin-bottom: 0.4rem !important; }
    .section-events .event-item .bg-light { padding: 0.5rem !important; }
    .section-events .event-item .bg-light p {
        font-size: 0.72rem !important;
        margin-bottom: 0.15rem !important;
    }

    /* ── Blog cards ────────────────────────────────────────────
       col-sm-6 = 2-up at ≥576px; force 50% below that too.
       Hide author + read-time from metadata — keep only the date.
    ──────────────────────────────────────────────────────────── */
    .blog-card-wrap {
        flex: 0 0 50%;
        width: 50%;
    }
    .blog-card-wrap .card-img-top-wrap  { height: 130px !important; }
    .blog-card-wrap .card-body          { padding: 0.75rem !important; }
    /* Metadata row: hide separator dots + author span + read-time span */
    .blog-card-wrap .card-body > .d-flex.flex-wrap span:nth-child(n+2) {
        display: none !important;
    }
    .blog-card-wrap h5.card-title       { font-size: 0.88rem !important; margin-bottom: 0.25rem !important; }
    .blog-card-wrap .card-text          { font-size: 0.78rem !important; }
    .blog-card-wrap .btn                { padding: 0.35rem 0.7rem !important; font-size: 0.8rem !important; margin-top: 0.5rem !important; }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE SECTION VISIBILITY
   Hides non-critical sections on phones to reduce scroll length.
   Each hidden section remains fully visible on desktop (≥768px).
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

    /* 1. Team / Leadership — secondary content; links to About page */
    .section-team { display: none !important; }

    /* 2. Newsletter — email signups have near-zero conversion on mobile */
    .newsletter-section { display: none !important; }

    /* 3. Features / Stats counter — show on mobile but in compact 2-col layout.
          Hide the "Why Choose Us" text column; keep only the stat boxes. */
    .section-features .col-lg-6:last-child { display: none !important; }
    .section-features .col-lg-6:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* 4. Testimonials section title column — "Devotee Stories" heading
          left col is redundant when the quote carousel fills the right.
          Hiding the whole col (not just the inner div) removes the g-5 gap too. */
    .testimonial-title-col { display: none !important; }

    /* 5. Footer gallery thumbnails — decorative only; contact/hours/links
          are all the mobile user needs in the footer */
    .footer-gallery-col { display: none !important; }
}

@media (max-width: 575.98px) {

    /* 6. Services — show first 4 cards (2×2 grid); hide last 2 */
    .col-sm-6.col-md-4.wow:nth-child(n+5) { display: none !important; }
}
