/* =========================================
   VARIABLES
========================================= */
:root {
    /* Colors */
    --primary-color: #0b3c5d;      /* Royal Blue */
    --primary-dark: #072a42;       /* Deeper Blue for hover */
    --accent-color: #d4af37;       /* Gold */
    --accent-dark: #b8972e;        /* Darker Gold */
    --text-dark: #1a1a1a;          /* Main Text */
    --text-gray: #555555;          /* Subtext */
    --bg-light: #f8f9fa;           /* Light gray for section alt */
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(11, 60, 93, 0.15);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* =========================================
   TYPOGRAPHY & TITLES
========================================= */
.section-title {
    margin-bottom: 3rem;
    max-width: 700px;
}

.section-title.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    position: relative;
}

.section-title.center .subtitle::before,
.section-title.center .subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    vertical-align: middle;
    margin: 0 10px;
}

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

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-full {
    width: 100%;
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    z-index: 1001; /* For mobile menu overlap */
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 400;
}

.logo-text strong {
    font-size: 1.3rem;
    font-weight: 800;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-dark);
}

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

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

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--accent-color) !important;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
}

.navbar.scrolled .menu-btn {
    color: var(--primary-color);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/real_school_banner.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.85) 0%, rgba(11, 60, 93, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding-top: 80px; /* Offset for navbar */
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    font-size: 1.2rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    object-fit: cover;
    height: 100%;
    min-height: 400px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(11, 60, 93, 0.3);
    border: 3px solid var(--white);
    z-index: 2;
}

.experience-badge .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
}

.experience-badge .text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* =========================================
   WHY US SECTION
========================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.why-card:hover::before {
    height: 100%;
    background-color: var(--primary-color);
}

.why-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(11, 60, 93, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .icon-box {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.why-card p {
    font-size: 0.95rem;
    transition: var(--transition);
}

.why-card:hover h3,
.why-card:hover p {
    color: var(--white);
}

/* =========================================
   FACILITIES
========================================= */
.facilities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.facility-item {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 250px;
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.facility-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.facility-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.facility-item:hover .facility-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.facility-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* =========================================
   ADMISSION CTA
========================================= */
.admission-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.admission-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%, transparent 50%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.05) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    opacity: 0.5;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    border-radius: 20px;
}

.cta-text {
    max-width: 600px;
}

.cta-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.info-details p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.text-link:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background-color: var(--white);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-desc {
    margin-bottom: 25px;
    padding-right: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-col ul li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: #041928;
    padding: 24px 0;
    text-align: center;
}

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

/* =========================================
   MEDIA QUERIES
========================================= */
@media screen and (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid { gap: 40px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 2rem; }
    
    /* Navigation - Mobile */
    .menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    .nav-links.active { right: 0; }
    
    .hero h1 { font-size: 2.8rem; }
    
    .about-grid { grid-template-columns: 1fr; }
    .about-image { margin-bottom: 30px; }
    .experience-badge { right: 10px; bottom: 10px; padding: 20px; }
    
    .why-grid { grid-template-columns: 1fr; }
    
    .contact-grid { grid-template-columns: 1fr; }
    
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media screen and (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero h1 { font-size: 2.2rem; }
    .cta-content { padding: 30px 20px; }
    .contact-form-wrapper { padding: 25px 20px; }
}
