/* Core Design System for Neverland Education */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary-color: #8c1d1d; /* Deep Red logo color */
    --secondary-color: #ff6f00; /* Vibrant Orange logo color */
    --dark-blue: #0b1a2d; /* Deep dark blue background/text */
    --light-blue: #eef5fa; /* Soft blue background */
    --white: #ffffff;
    --grey-100: #f8fafc;
    --grey-200: #e2e8f0;
    --grey-600: #475569;
    --grey-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* 1. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--grey-200);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-dot {
    color: var(--secondary-color);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--grey-800) !important;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
}

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

.lang-selector {
    border: 1px solid var(--grey-200);
    background-color: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

/* Premium Buttons */
.btn-brand-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand-primary:hover {
    background-color: #721616;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 29, 29, 0.3);
}

.btn-brand-secondary {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand-secondary:hover {
    background-color: #e06200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.btn-brand-outline {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.55rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

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

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    position: relative;
}

.widget-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

.widget-zalo {
    background-color: #0068ff;
}

.widget-messenger {
    background-color: #0084ff;
}

.widget-hotline {
    background-color: #4caf50;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.widget-tooltip {
    position: absolute;
    right: 60px;
    background-color: var(--grey-800);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.widget-btn:hover .widget-tooltip {
    opacity: 1;
}

/* 2. Hero Sections */
.hero-section {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 10% 20%, rgba(238, 245, 250, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--light-blue);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--grey-600);
    margin-bottom: 2rem;
}

.hero-visual-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 10px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-visual-img {
    width: 100%;
    border-radius: 18px;
    display: block;
    object-fit: cover;
}

.hero-overlay-tag {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.hero-overlay-icon {
    font-size: 1.5rem;
}

/* 3. Stats Section */
.stats-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-number span {
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--grey-600);
    font-weight: 500;
}

/* 4. Why Choose Us (6 Grid Icon Section) */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--grey-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 5. Dual Academy Section */
.academy-card {
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    color: var(--white);
}

.academy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.academy-content {
    padding: 50px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    z-index: 2;
    position: relative;
}

.academy-english {
    background: linear-gradient(135deg, rgba(230, 240, 248, 0.95) 0%, rgba(200, 220, 235, 0.95) 100%);
    color: var(--grey-800);
}

.academy-tech {
    background: linear-gradient(135deg, rgba(13, 39, 58, 0.98) 0%, rgba(22, 60, 88, 0.98) 100%);
    color: var(--white);
}

.academy-tech h3, .academy-tech p {
    color: var(--white);
}

.academy-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.academy-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.academy-list li i {
    color: var(--secondary-color);
}

/* 6. Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    top: 0;
    z-index: 1;
}

.timeline-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.timeline-block:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-block:nth-child(even) .timeline-dot {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-block:nth-child(even) .timeline-step {
    color: var(--secondary-color);
}

/* 7. Grid of Teachers / Team */
.teacher-card {
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.teacher-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.teacher-card:hover .teacher-img {
    transform: scale(1.05);
}

.teacher-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.teacher-info {
    padding: 20px;
    text-align: center;
}

/* 8. Registration Form Section */
.register-section {
    background: linear-gradient(135deg, #133852 0%, #0d273a 100%);
    color: var(--white);
    border-radius: 30px;
    padding: 60px;
    margin: 40px 0;
}

.register-form-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-xl);
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(140, 29, 29, 0.15);
}

/* 9. Footer */
.footer-section {
    background-color: #0b141d;
    color: #a0aec0;
    padding: 80px 0 30px;
    border-top: 1px solid #1a202c;
}

.footer-section h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a202c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-map-container {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.footer-bottom {
    border-top: 1px solid #1a202c;
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.85rem;
}

/* 10. Filter buttons & project cards */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn, .gallery-filter-btn {
    border: 1px solid var(--grey-200);
    background-color: var(--white);
    color: var(--grey-800);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active, .gallery-filter-btn:hover, .gallery-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(140, 29, 29, 0.2);
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.project-card-body {
    padding: 20px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .timeline-line {
        left: 30px;
    }
    .timeline-block {
        flex-direction: row !important;
        margin-bottom: 40px;
    }
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    .timeline-dot {
        left: 30px;
    }
    .register-section {
        padding: 40px 20px;
    }
}