/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --clr-primary: #0B3D91;
    --clr-secondary: #1F5DA8;
    --clr-accent: #5DADE2;
    --clr-bg: #FFFFFF;
    --clr-dark: #102542;
    --clr-light: #F8FAFC;
    --clr-border: #E6ECF3;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(11, 61, 145, 0.05);
    --shadow-md: 0 10px 30px rgba(11, 61, 145, 0.1);
    --shadow-lg: 0 20px 40px rgba(11, 61, 145, 0.15);
    
    --container-width: 1440px;
    --section-padding: 130px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light { background-color: var(--clr-light); }
.bg-primary { background-color: var(--clr-primary); }
.bg-secondary { background-color: var(--clr-secondary); }
.bg-accent { background-color: var(--clr-accent); }

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background-color: var(--clr-accent);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--clr-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: #FFFFFF;
}

.btn-icon {
    gap: 0.75rem;
}

/* Ripple Animation */
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 1);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    padding: 0.25rem 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 80px;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-list li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--clr-bg);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    border-radius: 8px;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--clr-light);
    color: var(--clr-primary);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list a:hover {
    color: var(--clr-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--clr-dark);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 700px;
    padding-top: 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero.png') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.05);
    animation: heroZoomOut 15s ease-out forwards;
}

@keyframes heroZoomOut {
    0% { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--clr-primary);
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent);
}

.hero-description {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--clr-dark);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================
   VISIONARY SECTION
   ========================================== */
.visionary-layout {
    display: flex;
    gap: 3rem;
    align-items: stretch;
}

.visionary-photo {
    flex: 0 0 350px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.visionary-photo img {
    width: 100%;
    height: 105%; /* crops the bottom artifact */
    object-fit: cover;
    object-position: top;
    display: block;
}

.visionary-content {
    flex: 1;
    display: flex;
    gap: 3rem;
    background-color: transparent;
}

.visionary-bio {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visionary-subtitle {
    color: var(--clr-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.visionary-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.visionary-tagline {
    color: var(--clr-accent);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 2rem;
}

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

.visionary-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.visionary-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--clr-accent);
    border-radius: 50%;
}

.visionary-quote-box {
    flex: 0 0 350px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
}

.visionary-quote-text {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

.visionary-quote-divider {
    width: 50px;
    height: 3px;
    background-color: var(--clr-accent);
    border: none;
    margin: 0 auto 1.5rem;
}

.visionary-quote-author {
    color: var(--clr-accent);
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-container {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.section-desc {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #4A5568;
}

/* ==========================================
   FOUNDATION SECTION
   ========================================== */
.foundation-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.foundation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.foundation-card {
    background: rgba(255, 255, 255, 0.08);
    border-top: 6px solid var(--clr-accent);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.foundation-card:hover {
    transform: translateY(-5px);
}

.foundation-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.foundation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-accent);
}

.foundation-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   VISION & CONCEPT
   ========================================== */
.vision-concept {
    display: flex;
    height: 480px;
}

.vc-card {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 7rem 4rem 2rem 5rem;
    overflow: hidden;
}

.vc-vision {
    background: url('../images/v.png') center/cover no-repeat;
}

.vc-concept {
    background: url('../images/m.png') center/cover no-repeat;
}

.vc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 61, 145, 0.95) 0%, rgba(11, 61, 145, 0.75) 45%, rgba(11, 61, 145, 0) 90%);
    transition: var(--transition);
}

.vc-card:hover .vc-overlay {
    background: linear-gradient(to right, rgba(11, 61, 145, 1) 0%, rgba(11, 61, 145, 0.85) 50%, rgba(11, 61, 145, 0.1) 95%);
}

.vc-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    text-align: left;
    max-width: 480px;
}

.vc-subtitle {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: #FFFFFF;
    position: relative;
}

.vc-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #FFFFFF;
}

.vc-title, .vc-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

.vc-list {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-left: 1.5rem;
    list-style-type: disc;
    color: #FFFFFF;
}

.vc-list li {
    margin-bottom: 0.5rem;
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.team-card {
    background: #FFFFFF;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 2.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--clr-light);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--clr-border);
    transition: var(--transition);
}

.team-card:hover .avatar-placeholder {
    border-color: var(--clr-primary);
}

.team-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: #718096;
    font-size: 0.875rem;
}

/* ==========================================
   IMPACT SECTION
   ========================================== */
.impact {
    position: relative;
    overflow: hidden;
}

.impact-intro {
    width: 100%;
    margin: 3rem auto 4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
}

.impact-intro p {
    margin-bottom: 1.5rem;
    text-align: center;
}

.impact-intro-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #FFFFFF;
}

.impact-intro-footer {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
    color: var(--clr-accent);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.impact-item {
    color: #FFFFFF;
    padding: 2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.impact-item:last-child {
    border-right: none;
}

.impact-icon {
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.impact-stats {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.counter {
    font-size: 3.5rem;
    color: #FFFFFF;
    line-height: 1;
}

.impact-stats span {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.impact-bg-pattern {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(93,173,226,0.1) 0%, rgba(11,61,145,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ==========================================
   GALLERY
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 61, 145, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================
   EVENTS
   ========================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.event-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    aspect-ratio: 16/9;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   CAREER
   ========================================== */
.career-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

.career-content {
    flex: 1;
    padding: 4rem;
}

.career-title {
    color: var(--clr-primary);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.career-title span {
    font-size: 4rem;
    font-weight: 900;
}

.career-subtitle {
    color: var(--clr-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.career-badge {
    background: var(--clr-secondary);
    color: #FFFFFF;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.career-req-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333333;
}

.career-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.career-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.career-info p {
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
    color: #666666;
}

.career-info strong {
    font-size: 1.125rem;
    color: #333333;
}

.career-image {
    flex: 0 0 35%;
    background: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 991px) {
    .career-card {
        flex-direction: column-reverse;
    }
    .career-image {
        padding: 4rem 2rem;
    }
    .career-title {
        font-size: 2rem;
    }
    .career-title span {
        font-size: 3rem;
    }
    .career-content {
        padding: 2rem;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    color: #FFFFFF;
}

.footer-top {
    display: flex;
    padding: 5rem 0;
    gap: 4rem;
}

.border-bottom {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-col {
    flex: 1;
}

.footer-heading {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    max-width: 400px;
}

.contact-col {
    flex: 2;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 1rem 0;
    min-width: max-content;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
}

.contact-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.contact-card span {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.25rem;
}

.contact-card strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links span {
    font-weight: 600;
    letter-spacing: 2px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.social-links a:hover {
    color: var(--clr-accent);
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* ==========================================
   ANIMATIONS & REVEALS
   ========================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-out;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 37, 66, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--clr-accent);
}

/* ==========================================
   BOOKS SECTION & MODAL
   ========================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.book-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    background-color: transparent;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

/* Book Modal */
.book-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 37, 66, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.book-modal.active {
    display: flex;
    opacity: 1;
}

.book-modal-content {
    background: #fff;
    max-width: 900px;
    width: 100%;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.book-modal.active .book-modal-content {
    transform: scale(1);
}

.book-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--clr-primary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.book-modal-close:hover {
    color: var(--clr-accent);
}

.book-modal-body {
    display: flex;
    flex-wrap: wrap;
}

.book-modal-image {
    flex: 1 1 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.book-modal-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.book-modal-info {
    flex: 1 1 400px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-modal-info h2 {
    color: var(--clr-primary);
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

.book-modal-info h4 {
    color: var(--clr-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-modal-info p {
    color: var(--clr-text);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.book-modal-meta {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.book-modal-meta p {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--clr-primary);
}

.book-modal-meta .price {
    color: var(--clr-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.book-modal-meta .price .rupee {
    font-size: 1.6rem;
    margin-right: 2px;
}

/* ==========================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================== */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .header-cta {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
        padding: 2rem 0;
    }

    .nav-list li {
        flex-direction: column;
        width: 100%;
    }

    .nav-list a {
        font-size: 1.2rem;
        justify-content: center;
    }

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.03);
        min-width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .dropdown-menu a {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
        color: var(--clr-text);
    }
    
    .dropdown > a > svg {
        display: none;
    }

    /* Typography & Hero Banner */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-title::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-description {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Layout Adjustments */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-grid,
    .foundation-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Book Modal Adjustments */
    .book-modal-info {
        padding: 20px 15px;
    }
    
    .book-modal-info h2 {
        font-size: 1.6rem;
    }
    
    .book-modal-info h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .book-modal-info p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .book-modal-image {
        padding: 20px;
    }

    .book-modal-image img {
        max-height: 320px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .contact-col {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-card {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
