/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --primary-color: #1e3a8a;      /* Deep Blue */
    --secondary-color: #3b82f6;    /* Bright Blue */
    --accent-color: #8b1a1a;       /* Dark Red */
    --light-accent: #dc2626;       /* Bright Red */
    --success-color: #059669;
    --info-color: #0284c7;
    --warning-color: #d97706;
    --danger-color: #8b1a1a;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: var(--white);
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

p {
    color: #555;
    line-height: 1.8;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
    background: var(--white) !important;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
}

.school-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.navbar-nav .nav-link {
    font-weight: 600;
    margin: 0 8px;
    transition: all 0.3s ease;
    color: #1e293b !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-image: url('../images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.75));
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-section h1 {
    color: white;
    font-size: 3.8rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.98);
    animation: slideInUp 0.8s ease 0.2s both;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-section .btn {
    animation: fadeIn 0.8s ease 0.4s both;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

/* ===========================
   Page Header
   =========================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-image: url('../images/hero-banner-2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.75));
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-weight: 700;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.3rem rgba(59, 130, 246, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    font-weight: 700;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color);
    border-color: white;
}

.btn-lg {
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* ===========================
   Cards & Components
   =========================== */

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    transition: transform 0.3s ease;
}

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

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.program-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.program-image-wrapper img {
    transition: transform 0.4s ease;
}

.program-card:hover .program-image-wrapper img {
    transform: scale(1.08);
}

.program-header {
    padding: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.program-card-success .program-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.program-card-info .program-header {
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
}

.program-header h4 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.program-card p {
    color: #666;
    flex-grow: 1;
}

.program-card .btn {
    margin-top: auto;
    transition: all 0.3s ease;
}

.program-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.staff-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.staff-image {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    position: relative;
    overflow: hidden;
}

.staff-card h4 {
    color: #212529;
    font-size: 1.1rem;
}

.staff-card p {
    margin: 0;
}

.value-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.value-icon {
    transition: transform 0.3s ease;
}

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

/* ===========================
   Mission Cards
   =========================== */

.mission-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.mission-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Placeholder Images
   =========================== */

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
    color: white;
    border-radius: 12px;
    margin: 60px 0;
    padding: 60px 30px;
    box-shadow: 0 12px 24px rgba(139, 26, 26, 0.2);
}

.cta-section h2 {
    color: white;
    font-weight: 800;
    font-size: 2.2rem;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

/* ===========================
   Forms
   =========================== */

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-label {
    color: #212529;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.25);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3em;
    border: 2px solid #e0e0e0;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================
   Process Cards
   =========================== */

.process-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.process-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===========================
   Contact Info Cards
   =========================== */

.contact-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    transition: transform 0.3s ease;
}

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

/* ===========================
   Map Container
   =========================== */

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* ===========================
   Achievement Items
   =========================== */

.achievement-item {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(8px);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* ===========================
   Footer
   =========================== */

footer {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-bg));
    color: white;
    margin-top: 80px;
    border-top: 4px solid var(--secondary-color);
}

footer h5 {
    color: white;
    font-weight: 700;
}

footer a {
    transition: color 0.3s ease;
}

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

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* ===========================
   Utilities
   =========================== */

.rounded-lg {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

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

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .stat-card,
    .program-card,
    .staff-card,
    .value-card {
        margin-bottom: 20px;
    }

    .navbar-nav .nav-link {
        margin: 5px 0;
    }

    .cta-section {
        text-align: center;
    }

.cta-section .btn {
    width: 100%;
    margin-top: 15px;
}

.cta-section .btn-light {
    background: white;
    color: var(--accent-color);
    font-weight: 700;
}

.cta-section .btn-light:hover {
    background: #f0f0f0;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

    .form-container {
        padding: 20px !important;
    }

    footer {
        text-align: center;
    }

    footer .col-md-3 {
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

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

    .btn-lg {
        padding: 10px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .lead {
        font-size: 1rem;
    }

    .contact-info-card {
        margin-bottom: 20px;
    }

    .map-container {
        height: 300px !important;
        margin-bottom: 20px;
    }
}

/* ===========================
   Animations
   =========================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ===========================
   Scrollbar Styling
   =========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
