/* Agricultural College Color Palette */
:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2a;
    --accent-green: #6b9f3d;
    --light-green: #8fbc5a;
    --earth-brown: #8b6f47;
    --warm-beige: #d4c5a9;
    --cream: #f5f0e8;
    --dark-text: #2c2c2c;
    --light-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tiro Devanagari Marathi', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--cream);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Marathi text uses Tiro Devanagari Marathi */
[lang="mr"], [data-mar], .marathi-text, .nav-link[data-mar], .college-name[data-mar] {
    font-family: 'Tiro Devanagari Marathi', serif;
}

/* Ensure all Marathi content uses Tiro Devanagari */
h1[data-mar], h2[data-mar], h3[data-mar], h4[data-mar], p[data-mar], 
.hero-title[data-mar], .hero-subtitle[data-mar], .section-title[data-mar] {
    font-family: 'Tiro Devanagari Marathi', serif;
}

/* English text uses Poppins */
[lang="en"], [data-eng], .english-text {
    font-family: 'Poppins', sans-serif;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--light-text);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* On mobile, header should be below social navbar */
@media (max-width: 768px) {
    .header {
        top: 40px !important; /* Position below mobile-navbar-social (back to original height) */
        z-index: 1001 !important; /* Higher than mobile-navbar-social */
    }
    
    /* Ensure menu toggle is only in header, not in mobile-navbar-social */
    .mobile-navbar-social .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Ensure header actions (menu toggle) are visible and properly positioned */
    .header-actions {
        z-index: 1002 !important;
    }
}

.header-top {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 5px;
    min-height: 80px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
    padding: 5px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mandal-text {
    font-size: 0.65rem;
    margin: 0 0 2px 0;
    color: var(--light-text);
    opacity: 0.85;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    font-weight: 400;
    line-height: 1.1;
}

/* Marathi mandal text uses Tiro Devanagari Marathi when lang is mr */
html[lang="mr"] .mandal-text {
    font-family: 'Tiro Devanagari Marathi', serif;
}

.college-name {
    font-size: 1.44rem;
    font-weight: 700;
    margin: 0;
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* English title uses Poppins */
.college-name[data-eng] {
    font-family: 'Poppins', sans-serif;
}

/* Marathi title uses Tiro Devanagari Marathi */
.college-name[data-mar] {
    font-family: 'Tiro Devanagari Marathi', serif;
}

.affiliation-text {
    font-size: 0.65rem;
    margin: 2px 0 0 0;
    color: var(--light-text);
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.college-location {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    display: none; /* Hide location as it's now in the title */
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 10px;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.lang-toggle {
    background: var(--accent-green);
    color: var(--light-text);
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-toggle:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lang-toggle-mobile {
    display: none;
}

/* Navigation */
.navbar {
    background: #ffffff;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    transition: all 0.3s ease;
}

/* Ensure navbar is visible on desktop */
@media (min-width: 769px) {
    .navbar {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 20px !important;
        flex-direction: row !important;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
    flex: 1;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    flex: 1;
    min-width: 100px;
}

.nav-link {
    display: block;
    padding: 4px 10px;
    color: var(--primary-green);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

.nav-link:hover {
    background: rgba(45, 80, 22, 0.05);
    border-bottom-color: var(--accent-green);
    color: var(--secondary-green);
}

.nav-link.active {
    background: rgba(45, 80, 22, 0.1);
    border-bottom-color: var(--accent-green);
    color: var(--secondary-green);
    font-weight: 600;
}

.logo-section a {
    text-decoration: none;
    display: inline-block;
}

/* Social Media Icons */
.social-media-icons {
    display: flex;
    gap: 6px;
    padding: 4px 15px;
    align-items: center;
}

/* Mobile navbar social icons - hidden by default */
.mobile-navbar-social {
    display: none;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Mobile touch handling */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(45, 80, 22, 0.3);
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4),
                0 4px 8px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: var(--light-green);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:active {
    transform: translateY(-1px) scale(1.05);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    z-index: 2;
    position: relative;
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    color: var(--light-text);
    margin-top: 82px; /* Moved hero section 10px closer to header */
    padding: 0;
    overflow: visible;
    background: var(--cream);
}

@media (max-width: 768px) {
    .hero {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% content, 50% image */
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

.hero-left-content {
    background: var(--cream);
    padding: 94px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 2;
    overflow: visible;
    min-height: calc(100vh - 92px);
}

.hero-left-content .hero-subtitle-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-image-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    margin-top: 0;
    flex-wrap: wrap;
    position: relative;
}

.hero-inspiration-text {
    width: 100%;
    flex-basis: 100%;
    text-align: center;
    font-size: 1rem; /* Changed from 1.2rem to 1rem for desktop */
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
    order: -1;
}

/* Marathi inspiration text uses Tiro Devanagari Marathi when lang is mr */
html[lang="mr"] .hero-inspiration-text {
    font-family: 'Tiro Devanagari Marathi', serif;
}

/* Desktop view only - Move inspiration text, images, and names upward by 30px */
@media (min-width: 769px) {
    .hero-image-container {
        margin-top: 15px !important; /* Moved down by 15px from original position - only affects images and names */
    }
    
    /* Move "Our Inspiration" text upward by additional 50px (total 80px from original) to prevent overlap with images */
    .hero-inspiration-text {
        margin-top: -50px !important;
        margin-bottom: 60px !important; /* 60px layout gap - 50px image translateY = 10px visual gap */
    }

    /* Desktop-only tweak: keep Deshmukh image fixed and force English name into a single line */
    .hero-profile-name--deshmukh {
        white-space: nowrap;
        font-size: 0.8rem !important;   /* Slightly smaller so text fits within image width */
        padding: 3px 6px !important;    /* Reduce horizontal padding to keep box inside 240px */
    }
    
    /* Apply same desktop font treatment to Late Smt. Sarojini Deshmukh */
    .hero-profile-name--sarojini {
        white-space: nowrap;
        font-size: 0.8rem !important;
        padding: 3px 6px !important;
    }
    
    /* Move welcome card slightly upward (total 10px) on desktop */
    .hero-subtitle-section {
        margin-top: 25px !important; /* Was 35px; now 25px (10px higher in total) */
    }
}

.hero-profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-profile-img {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    object-fit: cover;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-50px);
}

.hero-profile-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
    margin: 0;
    padding: 0 10px;
    line-height: 1.3;
    max-width: 240px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px);
}

.hero-background-image {
    background: url('images/back 2.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-background-image {
        height: 100vh;
        background-size: cover;
        background-position: center;
        object-fit: cover;
    }
    
    .hero-container {
        height: 100vh;
        overflow: hidden;
    }
    
    .hero-left-content {
        height: 100vh;
        overflow: hidden;
        padding: 150px 60px 40px 60px;
    }

    /* Ensure each section fits 16:9 aspect ratio on desktop */
    .section,
    .section-alt {
        min-height: calc(100vh - 150px);
        padding: 40px 20px;
    }

    .section .container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-grid,
    .affiliation-content,
    .contact-grid {
        max-height: calc(100vh - 300px);
    }
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 5px 0 20px 0;
    text-align: center;
    color: var(--primary-green);
    text-shadow: none;
    line-height: 1.3;
    width: 100%;
    transform: translateY(-50px);
}

.hero-subtitle-section {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark-text);
    text-shadow: none;
    line-height: 1.5;
    width: 100%;
}

.syllabus-benefits-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
    z-index: 10;
    position: relative;
    display: block;
    transform: translateY(-50px);
    visibility: visible;
    opacity: 1;
}

.syllabus-benefits-title {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 10px;
}

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

.syllabus-benefits-list li {
    color: var(--dark-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* Marathi text in syllabus benefits list uses Tiro Devanagari Marathi when lang is mr */
html[lang="mr"] .syllabus-benefits-list li {
    font-family: 'Tiro Devanagari Marathi', serif;
}

/* Reduce font size for English text in syllabus benefits list to fit content in card */
html[lang="en"] .syllabus-benefits-list li {
    font-size: 0.75rem;
}

.syllabus-benefits-list li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Section Styles */
.section {
    padding: 150px 20px 60px 20px;
    background: var(--cream);
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-alt {
    background: #ffffff;
    min-height: calc(100vh - 200px);
    padding: 150px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-green);
    scroll-margin-top: 150px;
    padding-top: 20px;
    margin-top: 30px; /* Added 30px margin-top */
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Contact Section - Reduced spacing */
#contact.section,
section:has(.contact-grid) {
    padding: 150px 20px 30px 20px;
    min-height: auto;
    justify-content: flex-start;
}

#contact .section-title,
section:has(.contact-grid) .section-title {
    margin-bottom: 25px;
    margin-top: 0;
}

#contact .container,
section:has(.contact-grid) .container {
    justify-content: flex-start;
    padding-top: 0;
}

/* Admission Section - Reduced spacing */
#admission.section,
section:has(.admission-content),
section:has(.admission-page-wrapper) {
    padding: 150px 20px 30px 20px;
    min-height: auto;
    justify-content: flex-start;
}

#admission .section-title,
section:has(.admission-content) .section-title,
section:has(.admission-page-wrapper) .section-title {
    margin-bottom: 20px;
    margin-top: 0;
    padding-top: 0;
}

#admission .container,
section:has(.admission-content) .container,
section:has(.admission-page-wrapper) .container {
    justify-content: flex-start;
    padding-top: 0;
}

.admission-content {
    margin-top: 0;
    padding-top: 0;
}

/* Admission Pages - Reduced spacing */
.admission-page-wrapper {
    padding-top: 0;
    margin-top: 0;
}

/* Admission pages spacing reduction */
.section .section-title:first-child {
    margin-top: 0;
}

.admission-page-wrapper + .section-title,
.admission-content .section-title {
    margin-bottom: 25px;
    margin-top: 0;
}

.section:has(.admission-page-wrapper) {
    padding: 10px 20px 30px 20px;
    min-height: auto;
    justify-content: flex-start;
}

.section:has(.admission-page-wrapper) .container {
    justify-content: flex-start;
    padding-top: 0;
}

.section-title.animated {
    opacity: 1;
    transform: translateY(0);
}

.section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    max-height: none;
    overflow-y: visible;
}

.about-content h3 {
    color: var(--secondary-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: justify;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.mission-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    text-align: justify;
}

.mission-list li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Marathi text in mission list uses Tiro Devanagari Marathi when lang is mr - same as Vision */
html[lang="mr"] .mission-list li {
    font-family: 'Tiro Devanagari Marathi', serif;
}

.section-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    object-fit: cover;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    overflow-y: visible;
}

.course-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-green);
}

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

.course-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--warm-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.course-icon img,
.course-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-card h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.course-card p {
    color: var(--dark-text);
    line-height: 1.6;
}

/* Course Curriculum Section */
.course-curriculum {
    margin: 30px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 4px solid var(--accent-green);
}

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

.curriculum-list li {
    padding: 20px;
    margin-bottom: 15px;
    background: var(--warm-beige);
    border-radius: 10px;
    color: var(--dark-text);
    line-height: 1.8;
    position: relative;
    padding-left: 60px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.curriculum-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.curriculum-list li:before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.curriculum-list li:last-child {
    margin-bottom: 0;
}

/* Facilities Section */
/* Two-column layout for facilities page */
.facilities-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.facilities-grid-wrapper {
    width: 100%;
}

.additional-facilities-wrapper {
    width: 100%;
}

/* Desktop view: side-by-side layout */
@media (min-width: 992px) {
    .facilities-layout {
        display: grid !important;
        grid-template-columns: 0.8fr 1.2fr !important;
        gap: 50px;
        align-items: start;
    }
    
    .additional-facilities-wrapper {
        grid-column: 1;
        align-self: start;
    }
    
    .facilities-grid-wrapper {
        grid-column: 2;
        align-self: start;
    }
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    overflow-y: visible;
    margin-bottom: 40px;
    align-items: start;
}

/* Adjust facilities grid for two-column layout on desktop */
@media (min-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Gallery Section */
.gallery-section,
.facilities-gallery {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--light-green);
}

.gallery-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hide broken images */
.gallery-img:not([src]),
.gallery-img[src=""] {
    display: none !important;
}

/* Hide specific empty gallery items by alt text */
.gallery-item img[alt*="Image 17"],
.gallery-item img[alt*="Image 18"],
.gallery-item img[alt*="Image 20"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Hide gallery items containing broken images */
.gallery-item:empty,
.gallery-item:not(:has(img[src])) {
    display: none !important;
}

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

.facility-item {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    color: var(--light-text);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: fit-content;
    position: relative;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.facility-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 12px;
}

.facility-icon svg {
    width: 40px;
    height: 40px;
}

.facility-item-with-image {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
}

.facility-image {
    width: 100%;
    max-width: 200px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.facility-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.facility-item p {
    line-height: 1.6;
    opacity: 0.95;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.staff-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.staff-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--light-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--warm-beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.staff-initials {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
}

.staff-info {
    width: 100%;
}

.staff-header {
    display: flex;
    align-items: stretch;
    gap: 20px;
    text-align: left;
    min-height: 200px;
}

.staff-photo {
    width: 25%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--light-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.staff-name-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    text-align: center;
}

.staff-name {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.staff-designation {
    color: var(--secondary-green);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.staff-qualification {
    color: var(--dark-text);
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
    width: 100%;
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.staff-experience {
    color: var(--dark-text);
    font-size: 0.9rem;
    opacity: 0.8;
}

.staff-note {
    text-align: center;
    padding: 20px;
    background: rgba(45, 80, 22, 0.05);
    border-radius: 10px;
    margin-top: 30px;
}

.staff-note p {
    color: var(--primary-green);
    font-style: italic;
    margin: 0;
}

/* Affiliation Section */
.affiliation-content {
    max-width: 800px;
    margin: 0 auto;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliation-card {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--light-text);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
}

.affiliation-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-green);
}

.affiliation-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Recognition Letters Section */
.recognition-letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.recognition-letter-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recognition-letter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.letter-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    background: rgba(45, 80, 22, 0.1);
    border-radius: 50%;
    padding: 15px;
}

.letter-icon svg {
    width: 50px;
    height: 50px;
}

.letter-title {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.letter-date {
    color: var(--secondary-green);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.letter-description {
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.letter-placeholder {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--warm-beige), var(--cream));
    border: 2px dashed var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 10px;
}

.letter-placeholder p {
    color: var(--primary-green);
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* PDF Viewer */
.pdf-viewer-container {
    width: 100%;
    height: 600px;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #f5f5f5;
    position: relative;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-green);
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: none;
    max-width: 80%;
}

/* Show fallback if iframe fails */
.pdf-viewer-container:has(.pdf-iframe:not([src])) .pdf-fallback {
    display: block;
}

/* Document Actions */
.document-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.document-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Tiro Devanagari Marathi', 'Poppins', sans-serif;
}

.btn-primary.document-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-primary.document-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.btn-secondary.document-btn {
    background: #ffffff;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary.document-btn:hover {
    background: var(--cream);
    border-color: var(--secondary-green);
    color: var(--secondary-green);
    transform: translateY(-2px);
}

.document-btn svg {
    flex-shrink: 0;
}

/* Course Details Box */
.course-details-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 40px;
}

.course-details-box h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-green);
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    text-align: center;
    padding: 20px;
    background: var(--cream);
    border-radius: 10px;
    border: 2px solid var(--light-green);
}

.info-item h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    color: var(--dark-text);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.eligibility-section {
    background: linear-gradient(135deg, var(--warm-beige), var(--cream));
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-green);
}

.eligibility-section h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.eligibility-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.section-subtitle {
    text-align: center;
    color: var(--primary-green);
    font-size: 1.8rem;
    margin: 40px 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-green);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table th {
    text-align: left;
    padding: 15px;
    background: var(--warm-beige);
    color: var(--primary-green);
    font-weight: 600;
    width: 40%;
}

.info-table td {
    padding: 15px;
    color: var(--dark-text);
    font-weight: 500;
}

.eligibility-text {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 15px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    align-items: start;
    margin-top: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--dark-text);
}

.contact-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 2px solid var(--warm-beige);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.contact-form .privacy-note {
    font-size: 0.9rem;
    color: var(--dark-text);
    margin: 15px 0 10px 0;
    text-align: center;
    line-height: 1.5;
}

.contact-form .privacy-link {
    color: var(--primary-green);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-form .privacy-link:hover {
color: var(--secondary-green);
}

/* reCAPTCHA v2 Widget Styling */
.contact-form .g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    transform: scale(0.95);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .contact-form .g-recaptcha {
        transform: scale(0.85);
    }
}

.contact-form button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--light-text);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.contact-form button:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--accent-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--light-text);
    padding: 50px 20px 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--light-green);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    margin: 8px 0;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.footer-links-col1 {
    min-width: 120px;
}

.footer-links-col2 {
    min-width: 120px;
}

.footer-links-col3 {
    min-width: 120px;
}

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

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-green);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Admission Pages Styles */
.section .container {
    position: relative;
}

.admission-page-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.admission-sidebar {
    position: fixed !important;
    left: 0;
    top: 130px;
    width: 280px;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 0 15px 15px 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    border-right: 4px solid var(--primary-green);
    border-top: 1px solid var(--light-green);
    border-bottom: 1px solid var(--light-green);
    will-change: transform;
}

.admission-sidebar h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--light-green);
    font-weight: 700;
    text-align: center;
}

.admission-sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admission-sidebar-links li {
    margin-bottom: 0;
}

.admission-sidebar-links a {
    display: block;
    padding: 14px 18px;
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 1rem;
    margin-bottom: 5px;
    background: rgba(45, 80, 22, 0.02);
}

.admission-sidebar-links a:hover {
    background: rgba(45, 80, 22, 0.15);
    border-left-color: var(--accent-green);
    color: var(--primary-green);
    transform: translateX(8px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.admission-sidebar-links a.active {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--light-text);
    border-left-color: var(--accent-green);
    font-weight: 700;
    box-shadow: 3px 3px 10px rgba(45, 80, 22, 0.3);
    transform: translateX(5px);
}

.admission-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admission-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.admission-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.admission-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

.admission-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 300px;
    padding: 0 40px;
    min-height: 500px;
    padding-top: 0;
}

.info-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 25px;
}

.admission-content .info-card:first-of-type {
    margin-top: 0;
}

.info-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-green);
}

.info-card h4 {
    color: var(--secondary-green);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
    color: var(--dark-text);
}

.info-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.2em;
}

/* Ensure additional facilities list items have proper spacing for checkmark */
.additional-facilities-wrapper .info-card ul li {
    padding-left: 30px !important;
    position: relative;
}

.info-card table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    table-layout: auto;
    box-sizing: border-box;
}

.info-card table thead {
    background: var(--primary-green);
    color: var(--light-text);
}

.info-card table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.info-card table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--dark-text);
}

.info-card table tbody tr:hover {
    background: rgba(45, 80, 22, 0.05);
}

.info-card table .total-row {
    background: var(--light-green);
    font-weight: bold;
    color: var(--primary-green);
}

.info-card table .total-row td {
    border-bottom: none;
}

.note, .important-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Important Notice Card */
.important-notice {
    border-left: 5px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0.02) 100%);
}

.important-notice h3 {
    color: #d32f2f;
    border-bottom-color: rgba(211, 47, 47, 0.3);
}

.notice-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.notice-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.notice-content strong {
    color: var(--primary-green);
    font-weight: 600;
}

.notice-content ul li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Fee Information Card */
.fee-info {
    border-left: 5px solid #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
}

.fee-note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* Age Limit Card */
.age-limit {
    border-left: 5px solid #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(33, 150, 243, 0.02) 100%);
}

.age-limit ul li strong {
    color: #1976D2;
}

/* Certificate Details Card */
.certificate-details {
    border-left: 5px solid #FF9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
}

.certificate-details h4 {
    color: #F57C00;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid #FF9800;
}

.certificate-details h4:first-of-type {
    margin-top: 15px;
}

.certificate-details ul {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.certificate-details ul li::before {
    content: '📄';
    font-size: 1rem;
}

/* Grade C Notice Card */
.grade-c-notice {
    border-left: 5px solid #9C27B0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08) 0%, rgba(156, 39, 176, 0.03) 100%);
}

.grade-c-notice h3 {
    color: #7B1FA2;
    border-bottom-color: rgba(156, 39, 176, 0.3);
}

.grade-c-notice p {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    line-height: 1.8;
}

.grade-c-notice strong {
    color: #7B1FA2;
    font-weight: 600;
}

/* Upload Instructions Card */
.upload-instructions {
    border-left: 5px solid #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.03) 100%);
}

.upload-instructions h3 {
    color: #d32f2f;
    border-bottom-color: rgba(211, 47, 47, 0.3);
}

.warning-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.warning-content h4 {
    color: #d32f2f;
    font-size: 1.15rem;
    margin-top: 20px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    border-left: 3px solid #f44336;
}

.warning-content h4:first-of-type {
    margin-top: 0;
}

.warning-content ul {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px 15px 45px;
    border-radius: 8px;
    margin-top: 12px;
    margin-bottom: 15px;
}

.warning-content ul li {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--dark-text);
}

.warning-content ul li::before {
    content: '⚠️';
    font-size: 1.1rem;
    left: 10px;
}

.warning-content ul li strong {
    color: #d32f2f;
    font-weight: 600;
    background: rgba(244, 67, 54, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.warning-content p {
    margin: 10px 0;
    line-height: 1.8;
    padding: 10px;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 6px;
    border-left: 3px solid #FFC107;
}

/* Admission Process Steps Card */
.admission-process-steps {
    border-left: 5px solid #00BCD4;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
}

.admission-process-steps h3 {
    color: #0097A7;
    border-bottom-color: rgba(0, 188, 212, 0.3);
}

.process-timeline {
    margin-top: 20px;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid #00BCD4;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #0097A7;
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    line-height: 1.8;
    color: var(--dark-text);
    margin: 8px 0;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.step-content ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.8;
}

.step-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00BCD4;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Merit Selection Committee Card */
.merit-selection-notice {
    border-left: 5px solid #673AB7;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.05) 0%, rgba(103, 58, 183, 0.02) 100%);
}

.merit-selection-notice h3 {
    color: #5E35B1;
    border-bottom-color: rgba(103, 58, 183, 0.3);
}

.committee-info {
    margin-top: 15px;
}

.committee-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.committee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

.committee-table tr {
    border-bottom: 1px solid rgba(103, 58, 183, 0.1);
}

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

.committee-table td {
    padding: 15px;
    line-height: 1.7;
}

.committee-table td:first-child {
    color: var(--dark-text);
    font-weight: 500;
}

.committee-table td:last-child {
    text-align: right;
    color: #5E35B1;
    font-weight: 600;
    min-width: 120px;
}

/* District Admissions Card */
.district-admissions {
    border-left: 5px solid #009688;
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.05) 0%, rgba(0, 150, 136, 0.02) 100%);
}

.district-admissions h3 {
    color: #00796B;
    border-bottom-color: rgba(0, 150, 136, 0.3);
}

.district-admissions p {
    line-height: 1.9;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-top: 10px;
}

/* Reservation Policy Card */
.reservation-policy {
    border-left: 5px solid #E91E63;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(233, 30, 99, 0.02) 100%);
}

.reservation-policy h3 {
    color: #C2185B;
    border-bottom-color: rgba(233, 30, 99, 0.3);
}

.reservation-policy h4 {
    color: #E91E63;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid #E91E63;
}

.policy-note,
.parallel-note {
    background: rgba(233, 30, 99, 0.08);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    line-height: 1.8;
    border-left: 3px solid #E91E63;
}

.reservation-table table,
.parallel-reservation-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

.reservation-table table thead,
.parallel-reservation-table table thead {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    color: white;
}

.reservation-table table th,
.parallel-reservation-table table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.reservation-table table td,
.parallel-reservation-table table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(233, 30, 99, 0.1);
}

.reservation-table table tr:hover,
.parallel-reservation-table table tr:hover {
    background: rgba(233, 30, 99, 0.05);
}

.reservation-table .total-row,
.parallel-reservation-table .total-row {
    background: rgba(233, 30, 99, 0.15);
    font-weight: bold;
    color: #C2185B;
}

.reservation-table .total-row td,
.parallel-reservation-table .total-row td {
    border-bottom: none;
    font-size: 1.05rem;
}

.reservation-rules {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.reservation-rules li {
    padding: 15px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border-left: 3px solid #E91E63;
    line-height: 1.8;
    position: relative;
    padding-left: 45px;
}

.reservation-rules li::before {
    content: '📋';
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.2rem;
}

.reservation-footer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #FF9800;
    border-radius: 8px;
    line-height: 1.8;
    font-style: italic;
    font-size: 0.95rem;
}

/* Fee Structure Card */
.fee-structure-card {
    border-left: 5px solid #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.02) 100%);
}

.fee-structure-card h3 {
    color: #388E3C;
    border-bottom-color: rgba(76, 175, 80, 0.3);
}

.fee-structure-card h4 {
    color: #4CAF50;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.fee-table {
    margin: 20px 0;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
}

.fee-table table thead {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.fee-table table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.fee-table table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.fee-table table tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.fee-table .total-row {
    background: rgba(76, 175, 80, 0.15);
    font-weight: bold;
    color: #388E3C;
}

.fee-table .total-row td {
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
    font-size: 1.05rem;
}

.fee-table .grand-total-row {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    font-weight: bold;
    color: #F57C00;
}

.fee-table .grand-total-row td {
    border-bottom: none;
    font-size: 1.1rem;
    padding: 15px;
}

.hostel-fees table thead {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.fee-notes {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 8px;
    border-left: 3px solid #FFC107;
}

.fee-note-item {
    margin: 10px 0;
    line-height: 1.8;
    font-size: 0.95rem;
}

.fee-note-item strong {
    color: #F57C00;
    font-size: 1.1rem;
    margin-right: 5px;
}

/* Responsive Design for Process Timeline */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 1.05rem;
    }
    
    .committee-table td {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .committee-table td:last-child {
        min-width: 90px;
    }
}

.important-note {
    background: rgba(255, 87, 34, 0.1);
    border-left-color: #ff5722;
}

.admission-highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 15px 0;
    text-align: center;
    padding: 15px;
    background: rgba(45, 80, 22, 0.1);
    border-radius: 8px;
}

.successful-students {
    margin-top: 15px;
}

.successful-students ul {
    list-style: none;
    padding-left: 0;
}

.successful-students ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
    color: var(--dark-text);
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}

.successful-students ul li:last-child {
    border-bottom: none;
}

.successful-students ul li::before {
    content: '🎓';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.success-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    text-align: center;
    font-style: italic;
}

.info-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card .contact-info p {
    margin: 0;
    padding: 10px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.info-card .contact-info strong {
    color: var(--primary-green);
    display: inline-block;
    min-width: 180px;
}

.info-card .contact-info a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.info-card .contact-info a:hover {
    text-decoration: underline;
    color: var(--primary-green);
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin: 10px 0;
}

.quick-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    display: inline-block;
    border: 2px solid var(--light-green);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: var(--primary-green);
    color: var(--light-text);
    transform: translateX(5px);
}

.schedule-table, .seat-table, .fee-table, .capacity-table {
    overflow-x: auto;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.circular-list {
    margin: 20px 0;
}

.circular-item {
    background: rgba(45, 80, 22, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
}

.circular-item h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.circular-item p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Responsive Sidebar */
@media (max-width: 1200px) {
    .admission-sidebar {
        width: 250px;
        top: 130px;
        height: calc(100vh - 130px);
    }
    
    .admission-content {
        margin-left: 270px;
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .admission-sidebar {
        width: 220px;
        padding: 20px 15px;
        top: 130px;
        height: calc(100vh - 130px);
    }
    
    .admission-content {
        margin-left: 240px;
        padding: 0 25px;
    }
    
    .admission-sidebar h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .admission-sidebar-links a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Global mobile width fixes */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        max-height: none;
        overflow: visible;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .about-image .section-img {
        width: 100%;
        max-width: 100%;
    }
    
    .admission-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        border-radius: 0;
        border-right: none;
        border-bottom: 3px solid var(--light-green);
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .admission-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #admission.section,
    section:has(.admission-content),
    section:has(.admission-page-wrapper) {
        padding: 20px 0 30px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-top: 130px;
    }
    
    #admission .container,
    section:has(.admission-content) .container,
    section:has(.admission-page-wrapper) .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .admission-page-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .admission-sidebar-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .admission-sidebar-links li {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
    }
    
    .admission-sidebar-links a {
        text-align: center;
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 15px;
        margin-left: 0;
        margin-right: 0;
        overflow-x: hidden;
    }
    
    .info-card ul,
    .info-card ol {
        padding-left: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .info-card li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }
    
    .admission-highlight {
        font-size: 1rem;
        padding: 12px;
    }
    
    .successful-students ul li {
        padding-left: 25px;
        font-size: 0.95rem;
    }
    
    .info-card .contact-info strong {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }
    
    .info-card .contact-info a {
        display: block;
        margin-top: 5px;
    }
    
    .footer-links-wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        align-items: flex-start;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .footer-links-col1,
    .footer-links-col2,
    .footer-links-col3 {
        min-width: 0;
    }
}

/* PWA and Mobile Optimizations */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .lang-toggle, .contact-form button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        padding: 10px 16px;
        min-height: 90px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .logo-section {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }
    
    .logo-text {
        width: 100%;
        max-width: 100%;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .mandal-text {
        font-size: 0.6rem;
        display: block;
        visibility: visible;
        margin: 0;
        line-height: 1.2;
    }

    .college-name {
        font-size: 0.85rem;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: 100%;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
        display: block;
        margin: 2px 0;
    }

    .affiliation-text {
        font-size: 0.6rem;
        text-align: center;
        width: 100%;
        display: block;
        visibility: visible;
        margin: 2px 0 0 0;
        line-height: 1.2;
    }

    .header-actions {
        gap: 10px;
        position: absolute;
        right: 16px;
        top: 8px;
        z-index: 1002 !important; /* Ensure menu button is above everything */
    }

    /* Mobile Menu Toggle - Ensure it's not affected by social navbar changes */
    .mobile-menu-toggle {
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        position: relative !important;
        z-index: 1003 !important; /* Higher z-index to ensure visibility */
    }
    
    .mobile-menu-toggle span {
        background: var(--light-text) !important;
        width: 100% !important;
        height: 3px !important;
    }
    
    /* Hide desktop navbar, show mobile menu */
    .navbar {
        position: fixed;
        top: 40px; /* Back to original to match mobile-navbar-social height */
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 40px); /* Back to original to match mobile-navbar-social height */
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .navbar.mobile-menu-open {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(45, 80, 22, 0.1);
        font-size: 0.66rem; /* Reduced by 40% from 1.1rem (1.1 * 0.6 = 0.66) */
        min-height: 50px;
        display: flex;
        align-items: center;
        border-left: 4px solid transparent;
        pointer-events: auto;
        z-index: 1003;
        position: relative;
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(45, 80, 22, 0.1);
        border-left: 4px solid var(--accent-green);
        border-bottom-color: rgba(45, 80, 22, 0.1);
    }
    
    /* Ensure nav links are always clickable on mobile */
    .nav-link {
        -webkit-tap-highlight-color: rgba(45, 80, 22, 0.3);
        user-select: none;
        -webkit-user-select: none;
    }
    
    .nav-link:active {
        background: rgba(45, 80, 22, 0.15);
    }
    
    .social-media-icons {
        justify-content: center;
        padding: 20px 0;
        border-top: 1px solid rgba(45, 80, 22, 0.1);
        margin-top: auto;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 40px; /* Back to original to match mobile-navbar-social height */
        left: 0;
        width: 100%;
        height: calc(100% - 40px); /* Back to original to match mobile-navbar-social height */
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        pointer-events: auto;
        /* Exclude menu area from overlay - overlay only covers right side */
        clip-path: polygon(80% 0, 100% 0, 100% 100%, 80% 100%);
    }
    
    @media (max-width: 300px) {
        body.menu-open::before {
            clip-path: polygon(80% 0, 100% 0, 100% 100%, 80% 100%);
        }
    }
    
    /* Ensure menu and all its children are clickable - menu must be above overlay */
    body.menu-open .navbar {
        pointer-events: auto !important;
        z-index: 1002 !important;
        position: fixed !important;
    }
    
    body.menu-open .navbar * {
        pointer-events: auto !important;
    }
    
    body.menu-open .nav-link {
        pointer-events: auto !important;
        z-index: 1003 !important;
        position: relative;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(45, 80, 22, 0.3);
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Make sure nav-menu and nav-menu items are clickable */
    body.menu-open .nav-menu {
        pointer-events: auto !important;
        z-index: 1003 !important;
        position: relative;
    }
    
    body.menu-open .nav-menu li {
        pointer-events: auto !important;
        z-index: 1003 !important;
        position: relative;
    }
    
    body.menu-open .nav-menu li a {
        pointer-events: auto !important;
        z-index: 1003 !important;
        position: relative;
    }
    
    /* Hero Section - Mobile First */
    .hero {
        height: auto;
        min-height: 100vh;
        margin-top: 170px; /* Moved hero section 10px closer to header on mobile */
        padding-top: 30px !important; /* Increased padding to prevent text cutoff at top */
    }

    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    .hero-left-content {
        padding: 20px 20px 40px 20px;
        min-height: auto;
        height: auto;
        order: 1;
        width: 100%;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        margin-top: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-background-image {
        height: 40vh;
        min-height: 300px;
        order: 2;
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    
    .hero-image-container {
        margin-bottom: 35px !important; /* Increased gap between image names and welcome card */
        margin-top: -30px !important; /* Move upward by 30px on mobile */
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap !important; /* Allow wrapping for inspiration text only */
        flex-direction: row !important; /* Images side-by-side */
        align-items: flex-start; /* Align to top so names appear below images */
        width: 100%;
        padding: 10px 10px 0 10px !important; /* Add top padding to prevent text cutoff */
        display: flex !important;
        overflow: visible !important; /* Prevent clipping of images */
        order: 1 !important; /* Images first */
        position: relative !important;
        z-index: 10 !important; /* Higher z-index to appear above card */
    }
    
    /* Ensure image wrappers lay out side by side and together span full card width */
    .hero-image-container > .hero-profile-wrapper {
        flex: 1 1 calc(50% - 10px);   /* two equal columns minus gap */
        max-width: calc(50% - 10px);
        min-width: 0;
        flex-wrap: nowrap !important;
    }
    
    /* Make inspiration text take full width */
    .hero-image-container .hero-inspiration-text {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    .hero-profile-img {
        width: 100% !important;       /* fill wrapper width */
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 1;
        object-fit: cover;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        order: 1;
        transform: none !important; /* Remove translateY on mobile to prevent top cutoff */
    }
    
    .hero-profile-wrapper:first-child {
        order: 1;
    }
    
    .hero-profile-wrapper:last-of-type {
        order: 2;
    }
    
    .hero-profile-wrapper {
        flex-direction: column !important; /* Ensure column layout on mobile */
        flex-shrink: 0 !important;         /* Prevent shrinking inside its half */
        flex-grow: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    
    .hero-profile-name {
        font-size: 0.5rem;            /* Further reduced so full name fits on one line */
        max-width: 100%;              /* Tie text width to image/column width */
        white-space: nowrap;          /* Force single line */
        padding: 2px 4px;             /* Slightly smaller box within image width */
        order: 2;                     /* Ensure name appears below image on mobile */
        transform: none !important;   /* Remove translateY on mobile */
        margin-bottom: 10px !important; /* Spacing below names */
    }
    
    /* Mobile-only Marathi abbreviation: replace "माननीय" with "मा ." visually */
    html[lang="mr"] .hero-profile-name--deshmukh,
    html[lang="mr"] .hero-profile-name--sarojini {
        position: relative;
        color: transparent; /* Hide full Marathi text */
    }

    html[lang="mr"] .hero-profile-name--deshmukh::before,
    html[lang="mr"] .hero-profile-name--sarojini::before {
        content: attr(data-mar-short);           /* Use shorter Marathi text on mobile */
        color: var(--dark-text);
        position: relative;
        display: inline-block;
        max-width: 130px;
        white-space: nowrap;
    }
    
    .hero-inspiration-text {
        font-size: 0.8rem !important; /* Changed from 1rem to 0.8rem for mobile */
        margin: 0 0 15px 0 !important;
        padding-top: 5px !important; /* Add padding to prevent text cutoff at top */
        width: 100% !important;
        flex-basis: 100% !important;
        order: -1 !important; /* Move inspiration text to appear before images */
        text-align: center !important;
        transform: none !important; /* Remove translateY on mobile */
        z-index: 10 !important; /* Higher z-index to appear above card */
        overflow: visible !important; /* Ensure text is not clipped */
    }
    
    /* Ensure hero-subtitle-section appears last (after inspiration text) */
    .hero-subtitle-section {
        order: 3 !important; /* Card appears after inspiration text */
        margin-top: 25px !important; /* Increased space between image names and welcome card */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Card styling for mobile - same as desktop */
    .syllabus-benefits-section {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important; /* Stack title and content vertically */
        background: rgba(255, 255, 255, 0.98) !important; /* Strong white background for card */
        padding: 25px 20px !important; /* More top/bottom padding for card */
        border-radius: 15px !important; /* Card rounded corners */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important; /* Stronger shadow for card */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Welcome text as title inside card (mobile) - MUST override base .hero-title transform */
    .syllabus-benefits-section .hero-title {
        order: 1 !important; /* Title appears first in card */
        width: 100% !important;
        margin: 0 0 20px 0 !important; /* Bottom margin to create space before card content */
        padding: 0 !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        color: var(--primary-green) !important;
        font-weight: 600 !important;
        display: block !important; /* Ensure it's visible */
        position: static !important; /* Static positioning to keep inside card */
        z-index: auto !important; /* Auto z-index to stay inside card */
        transform: none !important; /* CRITICAL: Override base .hero-title transform: translateY(-50px) */
        opacity: 1 !important;
        visibility: visible !important;
        min-height: auto !important;
        height: auto !important;
        box-sizing: border-box !important;
        background: transparent !important; /* Transparent background */
    }
    
    /* Card content (list) appears after title */
    .syllabus-benefits-section .syllabus-benefits-list {
        order: 2 !important; /* Content appears after title */
        margin-top: 0 !important;
        width: 100% !important;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Hide social media icons from desktop navbar on mobile, they're in mobile menu */
    .navbar .social-media-icons {
        display: none;
    }
    
    /* Show social media icons in mobile menu */
    .navbar.mobile-menu-open .social-media-icons {
        display: flex;
    }
    
    /* Mobile Social Icons Above Header - Show only on mobile */
    .mobile-navbar-social {
        display: block !important;
        background: #ffffff !important; /* White background like earlier */
        padding: 6px 16px 4px 16px !important; /* Reduced top padding to move icons upward */
        border-bottom: 1px solid rgba(45, 80, 22, 0.1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000 !important; /* Lower than header to ensure header is on top */
        box-sizing: border-box;
        min-height: 40px !important; /* Back to original height */
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hide mobile navbar social when menu is open */
    body.menu-open .mobile-navbar-social {
        display: none !important;
    }
    
    .mobile-navbar-social .social-media-icons {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 15px !important; /* Back to original gap */
        padding: 0 !important;
        width: auto !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        flex: 1;
        margin-top: -2px !important; /* Move icons slightly upward */
    }
    
    .mobile-navbar-social .social-media-icons a {
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(45, 80, 22, 0.3);
        cursor: pointer;
        z-index: 10;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-navbar-social .social-icon {
        width: 28px !important; /* Back to original size */
        height: 28px !important; /* Back to original size */
        background: var(--primary-green) !important; /* Green background for white navbar */
        color: var(--light-text) !important;
        border-radius: 50%;
        /* Ensure mobile touch handling */
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(45, 80, 22, 0.3);
        cursor: pointer;
        pointer-events: auto;
        z-index: 10;
        min-width: 28px !important; /* Back to original size */
        min-height: 28px !important; /* Back to original size */
        flex-shrink: 0;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease;
    }
    
    .mobile-navbar-social .social-icon:hover,
    .mobile-navbar-social .social-icon:active {
        background: var(--secondary-green) !important;
        transform: scale(1.05);
    }
    
    .mobile-navbar-social .social-icon svg {
        width: 16px !important; /* Back to original size */
        height: 16px !important; /* Back to original size */
        fill: var(--light-text) !important;
    }
    
    .mobile-navbar-social .lang-toggle-mobile {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .lang-toggle-mobile {
        display: inline-flex;
        margin-left: auto;
        padding: 8px 16px;
        font-size: 0.9rem;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .header-actions #langToggle,
    .header-actions .lang-toggle {
        display: none !important;
    }
    
    /* Contact Section Mobile Fixes */
    #contact.section,
    section:has(.contact-grid) {
        padding: 20px 0 30px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-top: 130px;
    }
    
    #contact .container,
    section:has(.contact-grid) .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }
    
    .contact-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .contact-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 15px;
        margin: 0;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .contact-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Admission Section Mobile Fixes - Additional */
    .admission-content .info-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .capacity-table,
    .info-card table {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }
    
    .capacity-table table,
    .info-card table {
        width: 100%;
        min-width: 100%;
        table-layout: auto;
    }
    
    .capacity-table table th,
    .capacity-table table td,
    .info-card table th,
    .info-card table td {
        padding: 8px 10px;
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile Staff/Board Panel Styles - Vertical layout */
    .staff-card {
        padding: 20px 15px !important;
        text-align: center !important;
    }
    
    .staff-info {
        width: 100% !important;
    }
    
    .staff-header {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        min-height: auto !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .staff-photo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        margin: 0 auto 15px auto !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: block !important;
        position: relative !important;
        order: 1 !important;
        align-self: center !important;
    }
    
    .staff-name-wrapper {
        padding: 0 !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        justify-content: flex-start !important;
        display: flex !important;
        flex-direction: column !important;
        order: 2 !important;
        flex: 0 0 auto !important;
    }
    
    .staff-name {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .staff-designation {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .staff-qualification {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
}

/* Hide mobile navbar social icons on desktop */
@media (min-width: 769px) {
    .header-top {
        padding: 10px 5px;
        justify-content: flex-start;
    }


    .mobile-navbar-social {
        display: none !important;
    }

    /* Hide any hero-title that's a direct child of hero-left-content (shouldn't exist) */
    .hero-left-content > .hero-title {
        display: none !important;
    }
    
    /* Card already defined above, removing duplicate */
    
    .syllabus-benefits-section {
        margin-top: 0 !important; /* No top margin - parent has margin */
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: column !important; /* Stack title and content vertically */
        background: rgba(255, 255, 255, 0.98) !important; /* Strong white background for card */
        padding: 25px 20px !important; /* More top/bottom padding for card */
        border-radius: 15px !important; /* Card rounded corners */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important; /* Stronger shadow for card */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Welcome text as title inside card (mobile) - MUST override all other rules */
    .syllabus-benefits-section .hero-title {
        order: 1 !important; /* Title appears first in card */
        width: 100% !important;
        margin: 0 0 20px 0 !important; /* Bottom margin to create space before card content */
        padding: 0 !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        color: var(--primary-green) !important;
        font-weight: 600 !important;
        display: block !important; /* Ensure it's visible */
        position: static !important; /* Static positioning to keep inside card */
        z-index: auto !important; /* Auto z-index to stay inside card */
        transform: none !important; /* No transform */
        opacity: 1 !important;
        visibility: visible !important;
        min-height: auto !important;
        height: auto !important;
        box-sizing: border-box !important;
        background: transparent !important; /* Transparent background */
    }
    
    /* Card content (list) appears after title */
    .syllabus-benefits-section .syllabus-benefits-list {
        order: 2 !important; /* Content appears after title */
        margin-top: 0 !important;
        width: 100% !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .syllabus-benefits-section {
        padding: 20px;
        margin-top: 0;
    }
    
    .syllabus-benefits-title {
        font-size: 1.3rem;
    }
    
    .syllabus-benefits-list li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Desktop Staff/Board Panel Styles - Ensure horizontal layout */
    .staff-header {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 20px !important;
        min-height: 200px !important;
        text-align: left !important;
        flex-wrap: nowrap !important;
    }
    
    .staff-photo {
        width: 25% !important;
        aspect-ratio: 1 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: block !important;
        order: 0 !important;
        align-self: flex-start !important;
    }
    
    .staff-name-wrapper {
        flex: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
    }
    
    .staff-name {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }
    
    .staff-designation {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }
    
    .staff-qualification {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        text-align: center !important;
        max-width: 90% !important;
    }

    .section-title {
        font-size: 1.8rem;
        scroll-margin-top: 150px;
        margin-top: 30px; /* Added 30px margin-top for mobile */
    }

    .section {
        padding: 20px 20px 60px 20px;
        margin-top: 130px;
    }
    
    .section-alt {
        padding: 20px 20px 60px 20px;
        margin-top: 130px;
    }
    
    .section-title {
        scroll-margin-top: 130px;
        padding-top: 10px;
        margin-top: 40px; /* Increased from 10px to 40px (30px more) */
    }

    .course-card,
    .facility-item {
        padding: 20px;
    }
    
    .facility-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .facility-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .facility-image {
        max-width: 180px;
        height: 120px;
        margin-bottom: 15px;
    }
    
    .facility-img {
        object-fit: contain;
    }
    
    .facility-item h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .facility-item p {
        font-size: 0.9rem;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .staff-image {
        width: 160px;
        height: 160px;
        margin-bottom: 15px;
    }
    
    .staff-experience {
        font-size: 0.85rem;
    }
    
    .recognition-letters-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .letter-icon {
        width: 70px;
        height: 70px;
        padding: 12px;
    }
    
    .letter-icon svg {
        width: 45px;
        height: 45px;
    }
    
    .letter-title {
        font-size: 1.2rem;
    }
    
    .letter-placeholder {
        min-height: 150px;
    }
    
    .pdf-viewer-container {
        height: 400px;
    }
    
    .document-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .document-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .gallery-img {
        height: 200px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .gallery-section,
    .facilities-gallery {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .college-name {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
        max-width: 100%;
    }
    
    /* Center align college title for mobile view (both English and Marathi) */
    .college-name {
        text-align: center;
    }
    
    .logo-text {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.05rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .syllabus-benefits-section {
        padding: 15px;
        margin-top: 0;
    }
    
    .syllabus-benefits-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .syllabus-benefits-list li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .hero {
        min-height: 400px;
        padding: 40px 15px;
    }

    .logo-img {
        width: 45px;
        height: 45px;
    }

    .mandal-text {
        font-size: 0.5rem;
    }

    .college-name {
        font-size: 1.08rem;
        white-space: normal;
        line-height: 1.2;
    }

    .affiliation-text {
        font-size: 0.5rem;
        text-align: center;
        width: 100%;
    }


    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 1.05rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Language Toggle Animation */
[data-eng], [data-mar] {
    transition: opacity 0.3s ease;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Make admission section visible immediately if it's the main content */
#admission.section.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.course-card,
.facility-item,
.about-content,
.affiliation-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.course-card.animated,
.facility-item.animated,
.about-content.animated,
.affiliation-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.course-card:nth-child(1) { transition-delay: 0.1s; }
.course-card:nth-child(2) { transition-delay: 0.2s; }
.course-card:nth-child(3) { transition-delay: 0.3s; }
.course-card:nth-child(4) { transition-delay: 0.4s; }

.facility-item:nth-child(1) { transition-delay: 0.1s; }
.facility-item:nth-child(2) { transition-delay: 0.2s; }
.facility-item:nth-child(3) { transition-delay: 0.3s; }
.facility-item:nth-child(4) { transition-delay: 0.4s; }
.facility-item:nth-child(5) { transition-delay: 0.5s; }
.facility-item:nth-child(6) { transition-delay: 0.6s; }
.facility-item:nth-child(7) { transition-delay: 0.7s; }

/* Privacy Policy Modal Styles */
.privacy-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.privacy-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.privacy-modal {
    background: var(--cream);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 20px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.privacy-modal-overlay.active .privacy-modal {
    transform: scale(1);
}

.privacy-modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--light-text);
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    text-align: center;
}

.privacy-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

.privacy-modal-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.8;
}

.privacy-modal-content h2 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 20px;
    margin-top: 30px;
}

.privacy-modal-content h2:first-child {
    margin-top: 0;
}

.privacy-modal-content p {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .privacy-modal {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .privacy-modal-header {
        padding: 15px 20px;
    }
    
    .privacy-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .privacy-modal-content {
        padding: 20px;
    }
    
    .privacy-modal-content h2 {
        font-size: 1.5rem;
    }
}


