/* Desai Public School - Main Stylesheet */
/* Vibrant and Playful Design with Logo Colors */

:root {
    /* Logo Colors - Vibrant and Playful */
    --primary-color: #8B0000; /* Deep Red/Maroon from logo */
    --primary-light: #A52A2A;
    --secondary-color: #1E3A8A; /* Dark Blue/Navy from logo */
    --secondary-light: #3B82F6;
    --accent-color: #FFD700; /* Bright Yellow from logo */
    --accent-light: #FFEB3B;
    --dark-color: #1E3A8A; /* Dark Blue for text */
    --light-color: #FFF9E6; /* Light yellow tint */
    --success-color: #10B981;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    --shadow-lg: 0 8px 30px rgba(139, 0, 0, 0.3);
    --shadow-yellow: 0 4px 15px rgba(255, 215, 0, 0.3);
    --shadow-blue: 0 4px 15px rgba(30, 58, 138, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 60px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 215, 0, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 35% 15%, rgba(30, 58, 138, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 65% 85%, rgba(30, 58, 138, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 0, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, 
            #8B0000 0%, 
            #9B1A1A 15%, 
            #AB2A2A 30%,
            #1E3A8A 50%, 
            #2C4A8A 70%, 
            #3B5A9A 85%,
            #4A6AAA 100%);
    background-size: 200% 200%, 180% 180%, 160% 160%, 190% 190%, 170% 170%, 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 12s ease infinite, backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 0%, 0% 100%, 50% 50%, 0% 50%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 0% 50%, 100% 0%, 50% 50%, 100% 50%;
    }
}

/* Playful animated floating circles - More vibrant */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 120px rgba(255, 215, 0, 0.4);
}

body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.4) 0%, rgba(30, 58, 138, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    animation: float 22s ease-in-out infinite reverse;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 120px rgba(30, 58, 138, 0.4);
}

/* White overlay for text readability - using html element */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: -2;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translate(50px, -50px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: translate(30px, 50px) rotate(180deg) scale(0.9);
        opacity: 0.7;
    }
    75% { 
        transform: translate(-40px, 30px) rotate(270deg) scale(1.05);
        opacity: 0.9;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Navigation - Modern Glassmorphism Design */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.1), 
                0 2px 8px rgba(30, 58, 138, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 25px 25px;
    margin: 0 15px;
    max-width: calc(100% - 30px);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 25%,
        var(--secondary-color) 50%,
        var(--accent-color) 75%,
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
    z-index: 1;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.navbar-brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    padding: 0.5rem 0;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin-right: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
    border: none;
    box-shadow: none;
}

.navbar-brand:hover img {
    transform: scale(1.05) translateY(-2px);
    filter: none;
    box-shadow: none;
}

.brand-text {
    color: var(--primary-color);
    display: inline-block;
    white-space: nowrap;
}

.navbar-nav {
    position: relative;
    z-index: 2;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 0.875rem !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: calc(100% - 2rem);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(139, 0, 0, 0.05);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(139, 0, 0, 0.08);
    font-weight: 700;
}

/* Admission Button in Header - Modern Design */
.navbar-nav .nav-link.btn-primary {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3),
                0 2px 8px rgba(139, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 0.5rem !important;
}

.navbar-nav .nav-link.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.navbar-nav .nav-link.btn-primary:hover::before {
    left: 100%;
}

.navbar-nav .nav-link.btn-primary:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4),
                0 4px 12px rgba(139, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navbar-nav .nav-link.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Mobile Menu Toggle - Modern Design */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28139, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
        margin: 0 10px;
        max-width: calc(100% - 20px);
        border-radius: 0 0 20px 20px;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link.btn-primary {
        margin: 0.5rem 0 0 0 !important;
        width: 100%;
        text-align: center;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        margin-top: 0.5rem;
        padding: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(139, 0, 0, 0.15);
    }
}

@media (max-width: 576px) {
    .navbar {
        margin: 0 5px;
        max-width: calc(100% - 10px);
        border-radius: 0 0 15px 15px;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* Hero Section - Vibrant and Playful */
.hero-section {
    background: transparent;
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

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

/* Hero Images Grid */
.hero-images-container {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image-item:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-image-item:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-image-item:nth-child(4) {
    animation-delay: 0.7s;
}

.hero-image-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.hero-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-image-item img {
        height: 150px;
    }
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons - Vibrant and Playful */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: 3px solid var(--accent-color);
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-color: var(--accent-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(139, 0, 0, 0.4), 
        0 0 0 4px var(--accent-color),
        0 0 40px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: #3bb5ae;
    border-color: #3bb5ae;
    color: var(--white);
}

/* Section Styling with Modern Dividers */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.section .container {
    position: relative;
    z-index: 2;
}

/* Wavy Section Dividers - Modern Kidzee Style - More Prominent */
.section-divider {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: visible;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
    display: block !important;
    margin: 0;
    padding: 0;
    height: 100px;
}

.section-divider-top {
    top: -100px;
    transform: rotate(180deg);
}

.section-divider-bottom {
    bottom: 0;
    transform: rotate(0deg);
}

.section-divider svg {
    position: relative;
    display: block !important;
    width: 100%;
    height: 100px;
    opacity: 1 !important;
    transform: scaleY(1);
    vertical-align: middle;
    margin: 0;
    min-height: 100px;
}

.section-divider .shape-fill {
    fill: var(--light-color);
    opacity: 1;
}

.section-divider-white .shape-fill {
    fill: #F7F7F7 !important;
    opacity: 1 !important;
    stroke: none;
}

/* Debug: Make dividers more visible */
.section-divider-white svg {
    background: transparent;
    border: none;
}

.section-divider-primary .shape-fill {
    fill: var(--primary-color);
}

.section-divider-secondary .shape-fill {
    fill: var(--secondary-color);
}

/* Add colorful accent to dividers */
/* Simplified dividers - blend with gradient */
.section-divider::after {
    display: none;
}

/* Light background section */
.bg-light {
    background-color: #F7F7F7 !important;
    position: relative;
    overflow: visible !important;
    margin-top: 0;
    margin-bottom: 0;
}

/* News section with curved divider at top */
.section-with-divider.bg-light {
    position: relative;
}

/* Section with divider spacing */
.section-with-divider {
    position: relative;
    padding-top: 150px;
    padding-bottom: 150px;
    overflow: visible !important;
    z-index: 0;
    margin-top: 100px;
    margin-bottom: 0;
    min-height: 600px;
}

.section-with-divider .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* White headers for sections without white cards */
.section-title-white h2,
.section-title-white h2::after {
    color: var(--white) !important;
}

.section-title-white p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    background: transparent; /* Use body gradient */
    position: relative;
}

/* White headers for features section */
.features-section .section-title-white h2,
.features-section .section-title-white h2::after {
    color: var(--white) !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.features-section .section-title-white p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

/* Sections without white cards - white headers */
.section:not(.features-section):not(.bg-light) .section-title h2,
.section:not(.features-section):not(.bg-light) .section-title h2::after {
    color: var(--white) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.section:not(.features-section):not(.bg-light) .section-title p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        var(--shadow),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        var(--shadow-lg), 
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(139, 0, 0, 0.2),
        0 0 100px rgba(30, 58, 138, 0.15);
    border: 3px solid rgba(255, 215, 0, 0.8);
    background: rgba(255, 255, 255, 1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 215, 0, 0.6);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Classes Section */
.class-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        var(--shadow),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
}

.class-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.class-card:hover::after {
    opacity: 1;
}

.class-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        var(--shadow),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
}

.class-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        var(--shadow-lg), 
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(139, 0, 0, 0.2),
        0 0 100px rgba(30, 58, 138, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 215, 0, 0.8);
}

.class-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.class-card-header::before {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: sparkle 3s ease infinite;
}

.class-card-header::after {
    content: '⭐';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: sparkle 3s ease infinite 1.5s;
}

@keyframes sparkle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(20px, -20px) scale(1.2); opacity: 0.6; }
}

.class-card-header h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.class-card-body {
    padding: 2rem;
}

.age-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #FFA500);
    color: var(--primary-color);
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        0 0 0 3px var(--primary-color);
    border: 3px solid var(--primary-color);
    animation: bounce 2s ease infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.class-features {
    list-style: none;
    padding: 0;
}

.class-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.class-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Modern Class Card Layout */
.class-card-modern {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 3px solid rgba(255, 215, 0, 0.5);
    position: relative;
}

.class-card-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.class-card-modern:hover::before {
    opacity: 0.6;
}

.class-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.25),
        0 0 0 5px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 70px rgba(255, 215, 0, 0.3),
        0 0 100px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(139, 0, 0, 0.2),
        0 0 80px rgba(30, 58, 138, 0.15);
    border-color: rgba(255, 215, 0, 0.9);
}

.class-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.class-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.class-card-modern:hover .class-card-image img {
    transform: scale(1.1);
}

.class-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.class-card-overlay i {
    font-size: 4rem;
    color: white;
}

.class-card-modern:hover .class-card-overlay {
    opacity: 1;
}

.class-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.class-card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-card-header-modern h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.age-badge-modern {
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.class-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.class-details {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.detail-item div {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Page Image Cards */
.about-image-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.4);
    height: 300px;
}

.about-image-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(139, 0, 0, 0.2),
        0 0 100px rgba(30, 58, 138, 0.15);
    border-color: rgba(255, 215, 0, 0.8);
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-image-card:hover img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.about-image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h5 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-content-box {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(255, 223, 0, 0.2) 50%, 
        rgba(255, 215, 0, 0.15) 100%);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.2),
        0 0 70px rgba(255, 215, 0, 0.15),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
}

.about-content-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.3), 
        rgba(255, 223, 0, 0.4), 
        rgba(255, 215, 0, 0.3));
    border-radius: 20px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
}

/* News Section */
.news-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        var(--shadow),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.news-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 
        var(--shadow-lg), 
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(139, 0, 0, 0.2),
        0 0 100px rgba(30, 58, 138, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 215, 0, 0.8);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 
        var(--shadow),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        0 0 40px rgba(139, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        var(--shadow-lg), 
        0 0 0 4px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(139, 0, 0, 0.2),
        0 0 100px rgba(30, 58, 138, 0.15);
    border-color: rgba(255, 215, 0, 0.8);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Social Media Icons */
.social-media {
    margin-top: 1.5rem;
}

.social-media h6 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.2);
}

/* Individual Social Media Colors on Hover */
.social-icon[aria-label="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.social-icon[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: var(--white);
}

.social-icon[aria-label="YouTube"]:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: var(--white);
}

.social-icon[aria-label="Twitter"]:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: var(--white);
}

.social-icon[aria-label="LinkedIn"]:hover {
    background: #0077B5;
    border-color: #0077B5;
    color: var(--white);
}

/* Responsive Social Icons */
@media (max-width: 576px) {
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Additional Playful Elements */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 0;
    font-size: 1.5rem;
    animation: sparkle 2s ease infinite;
}

.news-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-lg), var(--shadow-blue);
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '💬';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5rem;
    opacity: 0.05;
    transform: rotate(15deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title h2::after {
        display: none;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--primary-color);
}

/* Alert Messages */
.alert-custom {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section - White Text */
.contact-section-white h3,
.contact-section-white h5,
.contact-section-white p,
.contact-section-white a {
    color: white !important;
}

.contact-section-white a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Admission Form - White Headers and Icons */
.card-header.bg-primary-custom h2,
.card-header.bg-primary-custom h2 i,
.card-header.bg-primary-custom p {
    color: white !important;
}

/* White section headers in admission form with background */
.card-body h4.text-primary-custom {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
}

.card-body h4.text-primary-custom i {
    color: white !important;
    margin: 0;
}

/* Override for admission form section headers specifically */
.card-body .mb-4 h4.text-primary-custom {
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body .mb-4 h4.text-primary-custom i {
    color: white !important;
    margin: 0;
}

/* Fees Summary Card */
.fees-summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.15);
}

.fees-summary-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.fees-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.fees-summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.fees-summary-label {
    color: var(--text-color);
    font-weight: 500;
}

.fees-summary-value {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Document Upload Section - Beautiful Card Layout */
.documents-upload-grid {
    margin-top: 1.5rem;
}

.documents-section {
    margin-bottom: 2.5rem;
}

.documents-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1E3A8A 0%, #8B0000 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.documents-section-title i {
    font-size: 1rem;
    margin: 0;
}

.documents-section-title span {
    flex: 1;
}

.document-upload-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(139, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.document-upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E3A8A 0%, #8B0000 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.document-upload-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.15);
    transform: translateY(-3px);
}

.document-upload-card:hover::before {
    transform: scaleX(1);
}

.document-upload-card.optional-card {
    border-style: dashed;
    border-color: rgba(139, 0, 0, 0.1);
}

.document-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.document-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(139, 0, 0, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.document-upload-card:hover .document-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.document-card-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.document-file-input {
    border: 2px dashed rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: white;
    font-size: 0.875rem;
    width: 100%;
    flex-shrink: 0;
}

.document-file-input:hover {
    border-color: var(--primary-color);
    background: rgba(139, 0, 0, 0.02);
}

.document-file-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.15);
}

.document-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    flex-shrink: 0;
}

.document-preview-container {
    margin-top: 1rem;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed rgba(139, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    flex: 1;
}

.document-upload-preview {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 6px;
    display: none;
    object-fit: contain;
}

.document-upload-preview.show {
    display: block;
}

.document-pdf-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.document-pdf-preview.show {
    display: flex;
}

.document-pdf-preview i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.document-pdf-preview .pdf-name {
    font-size: 0.75rem;
    color: var(--text-color);
    word-break: break-all;
    max-width: 150px;
}

.document-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-preview-overlay.show {
    display: flex;
    opacity: 1;
}

.document-preview-overlay i {
    color: white;
    font-size: 2rem;
}

.required-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

.optional-badge {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(108, 117, 125, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .documents-upload-grid {
        margin-top: 1rem;
    }
    
    .documents-section {
        margin-bottom: 2rem;
    }
    
    .documents-section-title {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    .document-upload-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .document-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .document-card-label {
        font-size: 0.875rem;
    }
    
    .document-file-input {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .document-hint {
        font-size: 0.75rem;
    }
    
    .document-preview-container {
        min-height: 100px;
        margin-top: 0.75rem;
    }
    
    .document-upload-preview {
        max-height: 100px;
        max-width: 100%;
    }
    
    .document-pdf-preview {
        padding: 0.75rem;
    }
    
    .document-pdf-preview i {
        font-size: 2rem;
    }
    
    .document-pdf-preview .pdf-name {
        font-size: 0.7rem;
        max-width: 120px;
    }
    
    .required-badge,
    .optional-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Stack cards vertically on mobile */
    .documents-section .row {
        margin: 0;
    }
    
    .documents-section .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Google Map Section */
.map-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4);
    transform: translateY(-5px);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

