@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Font Families & Colors */
:root {
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --color-primary: #2ca9e1;
    --color-accent: #ff6f0f;
    --color-dark: #0a4d8c;
    --color-light-bg: #fefcf9;
}

/* Typography and Base Styles */
body {
    font-family: var(--font-body);
    color: #2d2d2d !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 36px;
    line-height: 44px;
}

h2 {
    font-size: 28px;
    line-height: 36px;
}

h3 {
    font-size: 22px;
    line-height: 30px;
}

h4 {
    font-size: 18px;
    line-height: 26px;
}

h5 {
    font-size: 16px;
    line-height: 24px;
}

h6 {
    font-size: 14px;
    line-height: 22px;
}

p {
    font-size: 16px;
    line-height: 24px;
}

/* Topbar */
.topbar {
    background-color: var(--color-dark);
    padding: 6px 0;
    font-size: 14px;
    color: #fff;
}

/* Scrolling strip */
.scroll-strip {
    overflow: hidden;
    white-space: nowrap;
}

.scroll-content {
    display: inline-flex;
    animation: scroll-left 60s linear infinite;
}

.scroll-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.scroll-item p,
.scroll-item small {
    margin: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Navbar Offcanvas*/
.navbar-min {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-min .nav-item {
    display: flex;
    align-items: center;
}

.navbar-min .nav-link {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 100%;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: color 0.3s ease;
}

.offcanvas-start {
    max-width: 380px;
    width: 90%;
}

body.offcanvas-backdrop {
    padding-right: 0 !important;
}

.offcanvas-backdrop {
    width: 100vw !important;
    overflow-x: hidden !important;
}

/* Fix for 320px and very small screens */
@media (max-width: 360px) {
    .offcanvas-start {
        max-width: 85% !important;
    }

    .offcanvas-header {
        padding: 0.75rem 0.5rem;
    }

    .btn-close {
        margin-left: auto;
        margin-right: 0.25rem;
        flex-shrink: 0;
    }

    .offcanvas-title {
        margin-right: 1rem;
    }
}

@media (max-width: 320px) {
    .offcanvas-start {
        max-width: 80% !important;
    }

    .offcanvas-body {
        padding: 0.5rem;
    }
}

/* Active nav link style */
.nav-link.active,
.nav-link.nav-active {
    color: var(--color-accent) !important;
    font-weight: 600;
}

/* Hover Animations - COMMON */
.hover-light {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.hover-light:hover {
    color: var(--color-primary);
    opacity: 0.85;
}

.hover-dark {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.hover-dark:hover,
.hover-dark:focus {
    color: var(--color-primary) !important;
    opacity: 0.85;
}

.hover-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.hover-link:hover {
    color: var(--color-primary);
    opacity: 0.85;
}

/* Background helper */
.bg-light-custom {
    background-color: #F8F5EE;
}

.text-brand-accent {
    color: var(--color-accent) !important;
}

/* Custom swiper pagination bullets */
.focus-swiper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 32px;
}

.focus-swiper .swiper-pagination-bullet {
    background-color: var(--color-accent);
    opacity: 0.3;
    transition: all 0.3s ease;
    width: 12px;
    height: 12px;
    margin: 0 6px;
}

.focus-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: auto;
}

.hero-slider .swiper-slide,
.hero-slider picture,
.hero-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-slider-section {
    --bs-gutter-x: 24px;
    width: 100%;
    padding-top: calc(var(--bs-gutter-x) * .5);
    padding-bottom: calc(var(--bs-gutter-x) * .5);
}

/* Pillers Section */
.pillar-card {
    background-color: #fff;
    transition: all 0.4s ease;
    color: inherit;
}

.pillar-card:hover {
    transform: translateY(-6px);
    background-color: var(--color-primary) !important;
    color: #fff;
}

.pillar-card:hover h5,
.pillar-card:hover p {
    color: #fff !important;
}

.pillar-card img {
    transition: transform 0.3s ease;
}

.pillar-card:hover img {
    transform: scale(1.1);
}

/* The Founder Section */
.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-4px);
    background-color: #e65d00;
    color: #fff;
}

/* President Section */
.president-section {
    background: #fff;
}

.president-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.president-marquee {
    display: flex;
    align-items: center;
    animation: presidentMarqueeAnim 40s linear infinite;
}

.president-marquee-img {
    height: 220px;
    width: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 18px;
    box-shadow: 0 4px 18px rgba(44, 169, 225, 0.08);
}

/* Responsive Image Sizing */
@media (max-width: 768px) {
    .president-marquee-img {
        height: 140px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .president-marquee-img {
        height: 90px;
        margin-right: 7px;
    }
}

@keyframes presidentMarqueeAnim {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Social Icon Background */
.social-icon-bg {
    width: 36px;
    height: 36px;
    background-color: var(--color-dark);
    transition: background-color 0.3s ease;
}

.social-icon-bg:hover {
    background-color: var(--color-accent);
}

/* Testimonials Section */
#testimonials,
#testimonials .swiper,
#testimonials .swiper-wrapper {
    overflow: visible !important;
}

#testimonials {
    padding-bottom: 40px;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    color: inherit;
}

.testimonial-card:hover {
    z-index: 10;
    position: relative;
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--color-primary);
}

.testimonial-avatar img {
    border: 3px solid var(--color-light-bg);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.testimonial-card .material-symbols-outlined {
    font-size: 16px;
}

.text-warning .material-symbols-outlined {
    color: #ffc107 !important;
}

.testimonial-card .text-end .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.testimonial-swiper {
    width: 100%;
    padding: 0 0 50px 0;
}

.testimonial-swiper .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 32px;
}

.testimonial-swiper .swiper-pagination-bullet {
    background-color: var(--color-accent);
    opacity: 0.3;
    transition: all 0.3s ease;
    width: 12px;
    height: 12px;
    margin: 0 6px;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 16px;
    }

    .testimonial-avatar img {
        width: 50px !important;
        height: 50px !important;
    }

    .testimonial-card h5 {
        font-size: 16px;
    }

    .testimonial-card p {
        font-size: 14.4px;
    }
}

.testimonial-card blockquote {
    border: none;
    margin: 0;
    padding: 0;
}

.testimonial-card blockquote p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* VIDEO BACKGROUND STYLING */
.upcoming-events-section {
    background-color: #f8f9fa;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.event-details-card,
.video-card {
    background: #fff;
    box-shadow: 0 4px 16px rgba(44, 169, 225, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-details-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #2d2d2d;
}

.btn-fullwidth-event-btn {
    background-color: #fefcf9;
    color: #2d2d2d;
    font-weight: 600;
    padding: 1rem;
    border-radius: 100px;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-fullwidth-event-btn:hover {
    background-color: #ff6f0f;
    color: #fff;
}

.btn-fullwidth-event-btn .ms-2 {
    transition: transform 0.3s ease;
}

.btn-fullwidth-event-btn:hover .ms-2 {
    transform: translateX(6px);
}

.video-card video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Responsive adjustments */
@media (max-width: 767px) {

    .event-details-card,
    .video-card {
        height: auto;
    }

    .btn-fullwidth-event-btn {
        border-radius: 0.375rem;
    }
}

.event-info-stacked {
    font-size: 16px;
}

.event-info-item {
    /* Ensures all are left-aligned and spaced */
    align-items: flex-start;
}

.event-info-item strong {
    min-width: 58px;
    font-weight: 600;
}

.event-info-item img {
    margin-top: 1px;
}

.event-info-item span {
    flex: 1;
}

/* Oath Section */
.oath-section {
    min-height: 60vh;
    overflow: hidden;
}

.oath-section video,
.oath-video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

.oath-overlay {
    z-index: 0;
}

.oath-content {
    z-index: 1;
}

@media (max-width: 768px) {
    .oath-section {
        min-height: 50vh;
    }

    .oath-section .display-5 {
        font-size: 2rem;
    }

    .oath-section h3,
    .oath-section h4 {
        font-size: 1.1rem;
    }
}

/* WhatsApp Channel */
.cta-whatsapp-section {
    position: relative;
    background-color: transparent;
}

/* Card Container */
.cta-whatsapp-card {
    background: var(--color-primary, #2ca9e1);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 169, 225, 0.16);
}

/* Button Styling */
.cta-whatsapp-btn {
    background-color: #fefcf9;
    color: var(--color-dark, #0a4d8c);
    font-weight: 600;
    font-size: 1.08rem;
    padding: 12px 26px;
    border: none;
    border-radius: 24px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.cta-whatsapp-btn:hover,
.cta-whatsapp-btn:focus {
    background-color: var(--color-accent, #ff6f0f);
    color: #fff;
    transform: translateY(-2px);
}

/* Icon motion on hover */
.cta-whatsapp-btn img {
    transition: transform 0.3s;
}

.cta-whatsapp-btn:hover img {
    transform: translateX(6px);
}


/* Responsive Tweaks */
@media (max-width: 767px) {
    .cta-whatsapp-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cta-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}



/* Footer Section CSS */
.footer-section {
    border-top: 2px solid #e9ecef;
}

.footer-logo {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1);
}

.footer-about {
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links a {
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary) !important;
}

.social-links {
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: white !important;
    transform: translateY(-2px);
}

.footer-phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phone-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-email-link {
    color: inherit;
    /* Keep muted text color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email-link:hover {
    color: var(--color-primary);
    /* Use theme primary color on hover */
    text-decoration: none;
}

.footer-bottom {
    background-color: #f8f9fa;
}

.footer-bottom small {
    font-size: 12px !important;
}

.footer-bottom a:hover {
    text-decoration: underline !important;
}

.contact-info .d-flex {
    align-items: flex-start;
}

.contact-info img {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom .row>div {
        text-align: center !important;
        margin-top: 0.5rem;
    }
}

/* Membership - Inner Page CSS */
/* Section Base Styling */
.inner-hero-section {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}


/* Text Container */
.inner-hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding-top: 64px;
    /* ~4rem but in pixels */
    padding-bottom: 64px;
}

/* Title & Description */
.inner-hero-section {
    margin: 32px 0;

}

/* Inner gradient box */
.inner-hero-section {
    margin: 32px 0;
}

.inner-hero-box {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 64px 20px;
    color: #fff;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
}

/* Optional: a subtle gradient overlay under glass */
.inner-hero-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #2ca9e1, #ff6f0f);
    opacity: 0.15;
    z-index: 0;
}

/* Content should be above the pseudo element */
.inner-hero-box>* {
    position: relative;
    z-index: 1;
}

/* Title & Description */
.inner-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 8px;
    margin-top: 8px;
    line-height: 32px;
    color: var(--color-accent) !important;
}

.inner-hero-description {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .inner-hero-box {
        padding: 48px 16px;
    }

    .inner-hero-title {
        font-size: 32px;
    }

    .inner-hero-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .inner-hero-box {
        padding: 40px 12px;
    }

    .inner-hero-title {
        font-size: 26px;
    }

    .inner-hero-description {
        font-size: 14px;
    }
}

/* Membership Table */
.membership-section {
    background-color: var(--color-light-bg);
}

.membership-table {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.membership-table th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border: none;
}

.membership-table td {
    border-top: 1px solid #eee;
    font-size: 15px;
}

.membership-table tbody tr:hover {
    background-color: rgba(44, 169, 225, 0.05);
}

.membership-table .btn-primary {
    background-color: var(--color-primary);
    border: none;
    padding: 5px 14px;
    font-size: 14px;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.membership-table .btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Mobile scroll styling */
.membership-section .table-responsive {
    border-radius: 12px;
    overflow-x: auto;
}

.membership-upi-section h5 {
    color: var(--color-accent);
    font-weight: 600;
}

.membership-upi-section .payment-details {
    font-size: 1.2rem;
    color: var(--color-dark);
}

.membership-upi-section .merchant-name {
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 1px;
}

.membership-upi-section .payment-note a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.membership-upi-section .payment-note a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.membership-table td:last-child,
.membership-table th:last-child {
    text-align: right;
}

@media (min-width: 768px) {
    .custom-w-md-50 {
        width: 50% !important;
    }
}




/* Inner Page - About Trust Profile */
.about-dgsm-section {
    background-color: var(--color-light-bg);
}

.about-dgsm-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d2d2d;
}

.about-dgsm-swiper {
    position: relative;
}

/* Swiper navigation buttons styling */
.about-dgsm-swiper .swiper-button-prev,
.about-dgsm-swiper .swiper-button-next {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.about-dgsm-swiper .swiper-button-prev:hover,
.about-dgsm-swiper .swiper-button-next:hover {
    color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .about-dgsm-text {
        margin-bottom: 1.5rem;
    }
}


.mission-vision-section {
    background-color: var(--color-light-bg);
}

.mission-vision-section h2,
.mission-vision-section h3 {
    color: var(--color-primary);
}

.mission-vision-swiper {
    position: relative;
}

.mission-vision-swiper .swiper-button-prev,
.mission-vision-swiper .swiper-button-next {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.mission-vision-swiper .swiper-button-prev:hover,
.mission-vision-swiper .swiper-button-next:hover {
    color: var(--color-accent);
}

/* Responsive: stack columns on small screens */
@media (max-width: 767px) {
    .mission-vision-section h2 {
        text-align: center;
    }
}


/* Core Initiatives Section (pillars style adapted) */
.initiative-card {
    background-color: #fff;
    transition: all 0.4s ease;
    color: inherit;
    height: 100%;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.initiative-card:hover {
    transform: translateY(-6px);
    background-color: var(--color-primary) !important;
    color: #fff;
}

.initiative-card:hover h5,
.initiative-card:hover p {
    color: #fff !important;
}

.initiative-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.initiative-card:hover img {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .core-initiatives-section .text-center {
        margin-bottom: 32px;
    }

    .initiative-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {
    .initiative-card {
        padding: 18px;
        border-radius: 12px;
    }

    .core-initiatives-section .row {
        row-gap: 12px;
    }

    .initiative-card img {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .core-initiatives-section .col-md-3 {
        margin-bottom: 10px;
    }
}


/* Inner Page - The Founder */
.founder-marquee-section {
    overflow: hidden;
    width: 100%;
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee {
    display: inline-flex;
    animation: marqueeLeftToRight 200s linear infinite;
}

.marquee-img {
    height: 520px;
    /* Adjust height as needed */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    margin-right: 16px;
    flex-shrink: 0;
    border-radius: 12px;
}

@keyframes marqueeLeftToRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-img {
        height: 420px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .marquee-img {
        height: 320px;
        margin-right: 8px;
    }
}


/* Contact Us Page */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.thank-you-popup.d-none {
    display: none;
}

/* Inner Page Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-grid a img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid a img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}