﻿/* Global Responsive Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Typography Scaling */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: clamp(28px, 4vw, 52px) !important;
}

h2 {
    font-size: clamp(22px, 3vw, 36px) !important;
}

h3 {
    font-size: clamp(18px, 2.5vw, 28px) !important;
}

p {
    font-size: clamp(14px, 1.3vw, 18px);
}

/* Layout & Container */
.container {
    max-width: 1200px;
    width: 92%;
    margin: auto;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

section {
    padding: clamp(40px, 6vw, 90px) 0;
}

/* Navbar Enhancements */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive Grid System */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 2vw, 32px);
}

/* Force specific grids to be responsive if not using the above class */
@media (max-width: 1024px) {
    .grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .hero-bg {
        text-align: center;
    }

    /* Hide desktop menu on tablet/mobile if not handled by tailwind classes */
    .nav-desktop {
        display: none !important;
    }
}

/* Buttons */
button,
.btn {
    padding: 12px 24px;
    font-size: clamp(14px, 1vw, 16px);
}

/* Cards */
.card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Spacing Utility */
.stack>*+* {
    margin-top: 16px;
}

/* Mobile Typography Overrides */
@media (max-width: 480px) {
    h1 {
        font-size: 26px !important;
    }

    p {
        font-size: 14px;
    }

    .container {
        width: 94%;
    }
}

/* MacBook & Laptop Tweaks */
@media (max-width: 1400px) {
    /* Adjust hero title if needed, though clamp handles most */
}

@media (max-width: 1200px) {
    .navbar {
        padding: 15px 20px;
    }

    /* Ensure nav items wrap or adjust size */
    .nav-menu a {
        font-size: 14px;
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* Existing Styles Preserved Below */
.hero-bg {
    /* Using the provided Agrasen Maharaj image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/agrasen-maharaj.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.gradient-text {
    background: linear-gradient(to right, #FF9933, #DAA520);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.15);
}

/* Mobile Menu Animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Gallery Grid */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Floating WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.float-wa:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* Floating Facebook - Restored */
.float-fb {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #4267B2;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.float-fb:hover {
    background-color: #365899;
    transform: scale(1.1);
}

/* Management Committee Card Improvements */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.team-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(128, 0, 0, 0.12);
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #800000;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.member-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 1.6vw, 22px) !important;
    font-weight: 700;
    color: #800000;
    line-height: 1.35;
    margin-top: 8px;
    margin-bottom: 6px;
    word-break: break-word;
    hyphens: auto;
}

.member-role {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(12px, 0.9vw, 13px) !important;
    letter-spacing: 1px;
    color: #FF9933;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: auto;
}

/* Header Branding Improvements */
.branding {
    display: flex !important;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.title-wrapper {
    display: flex !important;
    flex-direction: column;
}

.logo-img {
    width: clamp(48px, 4vw, 64px) !important;
    height: clamp(48px, 4vw, 64px) !important;
    object-fit: contain;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 3vw, 32px) !important;
    font-weight: 700;
    color: #800000;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin: 0;
}

.site-subtitle {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(10px, 0.9vw, 12px) !important;
    letter-spacing: 2px;
    color: #6B7280;
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .branding {
        gap: 10px;
    }
}

/* Event Calendar Card Improvements */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.event-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Softer shadow initial */
    transition: 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    /* Premium hover */
}

.event-content {
    padding: 22px 24px;
    /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    /* Ensure content stretches */
    position: relative;
    /* For border positioning */
}

.event-border-saffron {
    border-bottom: 4px solid #FF9933;
}

.event-border-maroon {
    border-bottom: 4px solid #800000;
}

.event-id-wrapper {
    position: relative;
    height: 0;
}

.event-id {
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 8rem;
    font-weight: 700;
    color: #f3f4f6;
    /* Gray-100 */
    transform: rotate(12deg);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.35;
    /* Improved line height */
    margin-bottom: 10px;
    color: #1f2937;
    /* Gray-800 */
    position: relative;
    z-index: 10;
    word-break: break-word;
    /* Prevent overflow */
}

.event-card:hover .event-title {
    color: #800000;
}

.event-date {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 4px;
    color: #800000;
    /* Maroon */
    font-weight: 700;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date i {
    color: #FF9933;
    /* Saffron */
}

@media (max-width: 768px) {
    .event-card .event-content {
        /* Fix specificity */
        padding: 18px;
    }

    .event-title {
        font-size: 18px;
    }
}