:root {
    --primary-color: #0F4C45;
    /* Deep Teal */
    --primary-dark: #0a3631;
    --secondary-color: #D4A017;
    /* Gold */
    --accent-color: #D4A017;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(15, 76, 69, 0.1);
    --shadow: 0 8px 32px 0 rgba(15, 76, 69, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Navbar Groups */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-left: 40px;
}

/* All Programs Mega Menu */
.all-programs-wrapper {
    position: relative;
    margin-right: auto;
    /* Push Discover and Login to the right */
    z-index: 1001;
}

.all-programs-btn {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.all-programs-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 900px;
    background: var(--white);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    display: none !important;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-menu.active {
    display: grid !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-sidebar {
    background: #fdfdfd;
    padding: 30px 0;
    border-right: 1px solid #eee;
}

.mega-menu-sidebar h3 {
    padding: 0 30px 20px;
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 700;
}

.domain-list {
    list-style: none;
    padding: 0;
}

.domain-list li {
    padding: 12px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: #666;
    font-weight: 500;
}

.domain-list li span i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #999;
}

.domain-list li:hover,
.domain-list li.active {
    background: rgba(15, 76, 69, 0.05);
    color: var(--primary-color);
}

.domain-list li:hover span i,
.domain-list li.active span i {
    color: var(--primary-color);
}

.domain-list li>i {
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.domain-list li.active>i,
.domain-list li:hover>i {
    opacity: 1;
    transform: translateX(5px);
}

.mega-menu-content {
    padding: 40px;
    max-height: 500px;
    overflow-y: auto;
}

.course-section {
    margin-bottom: 30px;
}

.course-section h4 {
    color: var(--primary-color);
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.course-item:hover {
    color: var(--primary-color);
}

.course-icon {
    width: 35px;
    height: 35px;
    background: rgba(15, 76, 69, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.university-name {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* Nav links & Dropdown */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.auth-nav {
    margin-left: 10px;
}

.login-link {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
}

.signup-btn {
    margin-left: 10px !important;
}

.user-profile .dropdown-toggle {
    background: rgba(15, 76, 69, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.user-profile .submenu {
    transform: translateX(-80%) translateY(20px);
}

.user-profile:hover .submenu {
    transform: translateX(-80%) translateY(10px);
}

.nav-links li {
    position: relative;
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Discover Submenu */
.dropdown-toggle i {
    font-size: 10px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.submenu li {
    margin: 0 !important;
}

.submenu li a {
    padding: 10px 20px;
    color: var(--dark-color) !important;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: var(--transition);
    display: block;
}

.submenu li a:hover {
    background: rgba(15, 76, 69, 0.05);
    color: var(--primary-color) !important;
    padding-left: 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 76, 69, 0.2);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero New Section */
.hero-new {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F4C45 0%, #0a3631 100%);
    color: #fff;
}

.white-text {
    color: #fff !important;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-left {
    flex: 1.2;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.btn-secondary-white {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary-white:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Slider Styles */
.hero-right {
    flex: 1;
    width: 100%;
}

.slider-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
    overflow: hidden;
}

.slide.active {
    display: block;
    animation: zoomFade 0.8s ease-out;
}

@keyframes zoomFade {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 6s linear;
}

.slide.active img {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 60px 40px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide-overlay h3 {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 800;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpText 0.5s forwards 0.3s;
}

.slide-overlay p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 80%;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpText 0.5s forwards 0.4s;
}

.slide-overlay .explore-link {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpText 0.5s forwards 0.5s;
}

@keyframes slideUpText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: var(--secondary-color);
}

.explore-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.explore-link:hover {
    gap: 15px;
    color: var(--secondary-color);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--secondary-color);
}

@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .slide img {
        height: 450px;
    }

    .slide-overlay h3 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .slide img {
        height: 350px;
    }

    .slide-overlay {
        padding: 30px 20px;
    }

    .slide-overlay h3 {
        font-size: 22px;
    }

    .slide-overlay p {
        font-size: 14px;
        max-width: 100%;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary-white {
        margin-left: 0;
    }

    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 992px) {
    .mega-menu {
        width: calc(100vw - 40px);
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .nav-right-group {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        margin-left: 0;
        align-items: flex-start;
    }

    .nav-right-group.active {
        display: flex;
    }

    .all-programs-wrapper {
        margin-right: 0;
        width: 100%;
    }

    .all-programs-btn {
        width: 100%;
        justify-content: space-between;
    }

    .nav-links {
        width: 100%;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 5px 0;
    }

    .dropdown-toggle {
        justify-content: space-between;
        padding: 10px 0;
        width: 100%;
        color: var(--dark-color) !important;
    }

    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        width: 100%;
        padding: 0 0 0 20px;
        background: transparent;
        border: none;
    }

    .dropdown.active .submenu {
        display: block;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .mega-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        border-radius: 0;
        z-index: 1200;
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}