/* =========================================
   CORE DESIGN VARIABLES & RESET
   ========================================= */
:root {
    --primary: #800000; /* Rich Burgundy */
    --accent: #FDFDD0;  /* Warm Cream */
    --text: #333333;    /* Deep Charcoal */
    --wa-green: #25D366;
}

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

body {
    font-family: Verdana, sans-serif;
    font-size: 1.25rem; /* 20px */
    color: var(--text);
    background-color: var(--accent);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   GLOBAL LAYOUT & SPACING
   ========================================= */
section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* =========================================
   REFINED TYPOGRAPHY
   ========================================= */
h1, h2 {
    font-size: clamp(28px, 5vw, 42px); 
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--primary);
    margin-bottom: 1rem;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--accent);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #5a0000;
    color: var(--accent);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: bold;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-wrapper {
    background-color: var(--primary);
    color: var(--accent);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
}

.marquee-content {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--text);
    padding: 0; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

/* =========================================
   PROPRIETRESS SECTION
   ========================================= */
.welcome-transplant {
    background-color: var(--accent);
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.flex-half {
    flex: 1;
    min-width: 320px;
}

.passport-frame {
    width: 100%;
    max-width: 420px;
    background-color: #ffffff;
    padding: 12px;
    border: 1px solid rgba(128, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.passport-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.welcome-heading-small {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.welcome-text-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.signature-block {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(128, 0, 0, 0.2);
    padding-top: 1.5rem;
    font-size: 1.1rem;
}

/* =========================================
   ADMISSION PROCESS (GRID)
   ========================================= */
.admission-section {
    background-color: #ffffff; 
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    background: var(--accent);
    border-top: 5px solid var(--primary);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-radius: 0 0 8px 8px;
}

.process-card img {
    height: 200px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

/* =========================================
   AWARDS SECTION
   ========================================= */
.awards-section {
    text-align: center;
    background-color: #f5f5dc; 
}

.awards-image {
    max-width: 900px;
    height: 500px;
    margin: 2rem auto;
    border: 5px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   ABOUT PAGE (ROW STRUCTURE)
   ========================================= */
.row-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.row-text {
    flex: 1;
    min-width: 300px;
}

.row-image {
    flex: 1;
    min-width: 300px;
    height: 500px;
}

.row-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   FACILITIES & EVENTS (CSS GRID)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(128,0,0,0.9), transparent);
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--accent);
    z-index: 2;
    font-weight: bold;
    font-size: 1.5rem;
}

/* =========================================
   ADMISSION PAGE SPECIFICS
   ========================================= */
.admission-info {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    margin-top: 2rem;
    border-top: 5px solid var(--primary);
}

.admission-info ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   GLOBAL FEATURES & FOOTER
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    opacity: 1;
}

footer {
    background-color: var(--primary);
    color: var(--accent);
    text-align: center;
    padding: 3rem 1rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .flex-container {
        flex-direction: column;
        text-align: center;
    }
    .welcome-image-col {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0; 
    }
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--accent);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }
    .awards-image {
        height: 300px;
    }
}