/* --- Variables & Reset --- */
:root {
    /* Palette: Dark Blue, Purple, Red */
    --primary-blue: #1a237e;  
    --primary-purple: #6a1b9a; 
    --accent-red: #d32f2f;    
    
    /* Gradients */
    --main-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --accent-gradient: linear-gradient(135deg, var(--accent-red), var(--primary-purple));

    --bg-color: #f4f7f6;      
    --text-color: #2c3e50;
    --text-light: #ffffff;
    --white: #ffffff;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --section-spacing: 5rem;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;

    /* GLOBAL BACKGROUND IMAGE */
    background-image: 
        linear-gradient(rgba(244, 247, 246, 0.92), rgba(244, 247, 246, 0.92)),
        url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1920&q=80');
    
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed; 
    background-size: cover;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Reusable Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-spacing) 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
}

.btn {
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(211, 47, 47, 0.5); }

/* --- Header & Nav --- */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO STYLES */
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--main-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

a.logo:hover { transform: scale(1.05); }

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

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--primary-blue);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-red);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- Page Banners (Hero) --- */
.page-banner {
    /* Default banner style for other pages */
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85), rgba(106, 27, 154, 0.85));
    z-index: 1;
}

.banner-content { 
    position: relative; 
    z-index: 2; 
    color: var(--white); 
    padding: 0 2rem;
}

/* --- SPECIAL HOME HERO STYLES (New) --- */
.home-hero {
    height: auto; /* Allow content to dictate height */
    min-height: 85vh; /* But at least 85% of screen */
    padding: 6rem 2rem; /* Add padding for spacing */
}

/* Layout container for the split view */
.hero-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split into two equal columns */
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
    color: var(--white);
}

.hero-text h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.8; }

/* The new image container */
.hero-image-container {
    position: relative;
}

.hero-image-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); /* Strong shadow for depth */
    border: 5px solid rgba(255,255,255,0.1); /* Subtle glass border */
    transform: rotate(2deg); /* Artistic tilt */
    transition: transform 0.5s ease;
}

.hero-image-container img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Responsive fix for mobile */
@media (max-width: 900px) {
    .hero-split-layout {
        grid-template-columns: 1fr; /* Stack vertically on small screens */
        text-align: center;
        gap: 3rem;
    }
    .hero-text { text-align: center; }
}


/* --- Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

.image-card {
    background: var(--white); 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.image-card:hover { transform: translateY(-10px); }

.card-image-wrapper { height: 220px; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.image-card:hover .card-image-wrapper img { transform: scale(1.1); }

.card-content { padding: 2rem; text-align: left; }
.card-content h3 { margin-bottom: 1rem; color: var(--primary-purple); }

/* --- Stats Section --- */
.stats-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}
.stat-item h3 { font-size: 3rem; color: var(--accent-red); margin-bottom: 0.5rem; }
.stat-item p { color: var(--white); font-weight: 600; text-transform: uppercase; }

/* --- Contact & Map --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info-box {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent-red);
}
.contact-info-box h3 { color: var(--primary-blue); margin-bottom: 1rem; }

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

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}
form input, form textarea {
    width: 100%; padding: 1rem; margin-bottom: 1.5rem;
    border: 2px solid #eee; border-radius: 8px; font-family: var(--font-body);
    transition: 0.3s;
}
form input:focus, form textarea:focus { border-color: var(--primary-purple); outline: none; }

/* --- Legal Page --- */
.legal-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-red);
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.legal-box h3 { color: var(--primary-blue); margin-bottom: 1.5rem; }
.legal-data-grid { display: grid; grid-template-columns: auto 1fr; gap: 1rem; row-gap: 1.5rem;}
.legal-label { font-weight: 700; color: var(--primary-purple); }

/* --- Footer --- */
footer {
    background: var(--main-gradient);
    color: var(--white);
    padding: 5rem 2rem 2rem 2rem;
}

footer .logo {
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem;}
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: rgba(255,255,255,0.8); }
.footer-col ul li a:hover { color: var(--accent-red); padding-left: 5px;}
.footer-contact-details li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 1rem; opacity: 0.9;}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem; opacity: 0.7;
}