:root {
    --primary: #0A369D;
    --secondary: #92DCE5;
    --accent: #F7F7FF;
    --highlight: #f9d448;
    --dark: #1A1A2E;
    --text: #333333;
    --light-gray: #F5F5F5;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    background-color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--primary) !important;
    /* Black color */
}

.header.scrolled .nav-link.btn-primary {
    color: white !important;
    /* Keep button text white */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: var(--transition);
}

/* Last child won't get the underline */
.nav-link:last-child::after {
    display: none;
}

.nav-link:hover:after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* HERO */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, rgba(10, 54, 157, 0.9) 0%, rgba(146, 220, 229, 0.8) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-pattern.svg') repeat;
    opacity: 0.1;
    animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--highlight);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.video-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* PROGRAM SECTION */
.program-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text);
    opacity: 0.8;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s ease;
    box-shadow: var(--shadow-sm);
}

.card-front {
    background: white;
    transform: rotateY(0deg);
}

.card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.program-card:hover .card-front {
    transform: rotateY(180deg);
}

.program-card:hover .card-back {
    transform: rotateY(0deg);
}

.card-btn {
    margin-top: 20px;
    background: var(--highlight);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* REGISTER SECTION */
.register-section {
    padding: 100px 0;
    background: var(--primary);
    color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.form-container h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.form-container p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group select {
    width: 92%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 54, 157, 0.1);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group select:valid+label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: white;
    padding: 0 5px;
    color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--highlight);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Slider Styles */
.header-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(5 15 38 / 90%) 0%, rgba(146, 220, 229, 0.8) 100%);
    z-index: 1;
}

/* Move header to be absolute over the slider */
.header {
    position: absolute;
    background: transparent;
    box-shadow: none;
    width: 100%;
}

/* Make header white when scrolled */
.header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .navbar {
        padding: 15px 0;
    }

    .logo img {
        max-width: 27% !important;
    }

    .header-slider {
        height: 80vh;
    }

    .card-front,
    .card-back {
        width: 85%;
    }

    .form-group input,
    .form-group select {
        width: 89%;
    }

    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        margin-left: 8%;
    }

    .footer-col img {
        margin-left: 31%;
    }
}

.header-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(5 15 38 / 90%) 0%, rgba(146, 220, 229, 0.8) 100%);
    z-index: 1;
}

/* Slider controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Program Grid Styles */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.program-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.program-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.program-item-more {
    color: var(--highlight);
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.modal-content h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .program-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 20px;
    }
}

/* Form Styles */
.register-form {
    margin-top: 30px;
}

.form-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--primary);
    color: white;
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: left;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.dropdown button:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.dropdown button::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transition: var(--transition);
}

.dropdown.--visible button::after {
    transform: translateY(-50%) rotate(225deg);
    margin-top: 3px;
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown.--visible ul {
    display: block;
}

.dropdown ul li {
    padding: 12px 15px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown ul li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown ul li.--disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Checkbox Styles */
.form-checkbox {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.form-checkbox input {
    margin-right: 10px;
}

.form-checkbox label {
    color: #000;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-columns {
        flex-direction: column;
        gap: 0;
    }

    .dropdown button {
        padding: 12px;
    }

    .dropdown ul li {
        padding: 10px 12px;
    }
}

.video-section {
    padding: 80px 0;
    background-color: white;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--primary);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-section {
        padding: 50px 0;
    }

    .video-wrapper {
        padding: 0;
    }
}

/* Error state styles */
.form-group.--error .form-input,
.dropdown.--error .dropdown__button {
    border-color: var(--highlight) !important;
}

.error-message {
    color: var(--highlight);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Success message */
.form-success {
    background: rgba(0, 200, 0, 0.1);
    border: 1px solid rgba(0, 200, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    /* Hidden by default, shown on mobile */
    background: transparent;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
    transform-origin: center;
}

/* Active state (when menu is open) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 91%;
    background: white;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease;
    opacity: 0;
}

.mobile-menu.active {
    max-height: 100vh;
    opacity: 1;
    overflow-y: auto;
}

/* Menu Links */
.mobile-menu .nav-link {
    display: block;
    padding: 15px 25px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.mobile-menu .nav-link:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.mobile-menu .btn-primary {
    display: block;
    margin: 15px;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
}

/* Body no-scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive - Show on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Optional: Hide desktop menu on mobile */
    .nav-menu {
        display: none;
    }

    /* Adjust header height when menu is open */
    .header.active {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Animation for menu items */
.mobile-menu.active .nav-link {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay for each menu item */
.mobile-menu .nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu .nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu .nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu .btn-primary {
    animation-delay: 0.4s;
}

/* Active item style */
.dropdown__list li.--active {
    background-color: #b8cdff;
    color: white;
}

/* Disabled item style (only within same group) */
.dropdown__list li.--disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Visual group separator */
.dropdown__list li[data-group] {
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 15px;
}

.dropdown__list li[data-group]::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--primary);
}

/* Style for dropdown list items */
.dropdown__list li {
    position: relative;
    padding: 10px 15px 10px 35px;
    /* Extra padding for checkmark */
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hover state */
.dropdown__list li:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Active/selected item style */
.dropdown__list li.--active {
    background-color: #b8cdff;
    /* Light blue background */
    color: var(--primary);
    font-weight: 500;
}

/* Checkmark for selected items */
.dropdown__list li.--active::before {
    content: "✓";
    position: absolute;
    left: 3px;
    color: var(--primary);
    font-weight: bold;
}

/* Disabled items in same group */
.dropdown__list li.--disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: transparent;
}

/* Group separator visual */
.dropdown__list li[data-group] {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Counter in button */
.dropdown__button .counter {
    display: inline-block;
    margin-left: 8px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
    text-align: center;
}