:root {
    --blue: #1e3a8a;
    --blue-light: #3b82f6;
    --gold: #fbbf24;
    --gold-dark: #d97706;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
}

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

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-700);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--blue-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--blue);
}

.btn-gold:hover {
    background: var(--gold-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
    border-radius: 1rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-header .section-desc {
    color: var(--slate-500);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--blue);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text .logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue);
}

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

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--slate-600);
}

.nav-link:hover {
    color: var(--gold);
}

.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--slate-900);
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-top: 1px solid var(--slate-200);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    padding: 0.75rem 0;
    font-weight: 500;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

/* Hero Slideshow */
.hero {
    position: relative;
    min-height: 100vh;
}

.slideshow {
    position: relative;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(185, 28, 28, 0.9), rgba(185, 28, 28, 0.6), transparent);
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    padding: 8rem 1rem 2rem;
}

@media (min-width: 768px) {
    .slide-content {
        padding: 10rem 2rem 4rem;
    }
}

.slide-subtitle {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.slide-title span {
    color: var(--gold);
}

@media (min-width: 768px) {
    .slide-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .slide-title {
        font-size: 4.5rem;
    }
}

.slide-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 36rem;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .slide-description {
        font-size: 1.25rem;
    }
}

.slideshow-controls {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.slideshow-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-btn:hover {
    background: var(--gold);
    color: var(--blue);
}

.slideshow-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.25);
}

.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    z-index: 15;
    padding: 1.5rem 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        gap: 4rem;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.feature-item i {
    color: var(--gold);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.about-content {
    max-width: 36rem;
}

.about-text {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .mission-vision {
        grid-template-columns: 1fr 1fr;
    }
}

.mv-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mv-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mv-icon.gold {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
}

.mv-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.mv-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stats-overlay {
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .stats-overlay {
        right: -2rem;
    }
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--slate-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--slate-500);
    letter-spacing: 0.05em;
}

/* Programs Section */
.programs {
    padding: 6rem 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1);
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}

.program-desc {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    padding: 0.25rem 0.75rem;
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Extracurricular Section */
.extracurricular-section {
    background: var(--blue);
    border-radius: 2.5rem;
    padding: 4rem 0;
}

.extra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .extra-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.extra-content {
    color: var(--white);
}

.extra-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.extra-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.extra-activities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.activity-item i {
    color: var(--gold);
    font-size: 1rem;
}

.activity-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.extra-image {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .extra-image {
        display: block;
    }
}

.extra-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 1.5rem;
    transform: rotate(3deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.rotating-badge {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 6rem;
    height: 6rem;
    background: var(--gold);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    transform: rotate(-12deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    max-width: 36rem;
}

.contact-desc {
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-card:hover .contact-icon {
    background: var(--blue);
    color: var(--white);
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-400);
    letter-spacing: 0.05em;
}

.contact-value {
    font-weight: 500;
    color: var(--slate-700);
}

.contact-form-wrapper {
    position: relative;
    z-index: 10;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2.5rem;
    }
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--blue);
}

.form-group textarea {
    resize: none;
    min-height: 150px;
}

.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

/* Footer */
.footer {
    background: var(--slate-900);
    color: var(--slate-300);
    padding: 5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.footer-brand p {
    font-size: 0.875rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--blue);
    color: var(--white);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--slate-400);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-newsletter p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
}

.newsletter-form input::placeholder {
    color: var(--slate-500);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--blue-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
}

.footer-bottom-links a {
    color: var(--slate-500);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.back-to-top {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--gold);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}
