:root {
    --teal: #013A40;
    --teal-dark: #00262A;
    --teal-light: #005A63;
    --teal-pastel: rgba(1, 58, 64, 0.08);
    --teal-glow: rgba(1, 58, 64, 0.2);
    --magenta: #B81859;
    --magenta-dark: #910A67;
    --magenta-light: #D4206E;
    --magenta-pastel: rgba(184, 24, 89, 0.08);
    --magenta-glow: rgba(184, 24, 89, 0.25);
    --bg: #F4F7F6;
    --white: #FFFFFF;
    --dark: #1A1A2E;
    --gray: #6C757D;
    --gray-mid: #8A9299;
    --gray-light: #ADB5BD;
    --border: #E8EDEC;
    --green: #00B894;
    --green-pastel: rgba(0, 184, 148, 0.1);
    --blue: #0984E3;
    --blue-pastel: rgba(9, 132, 227, 0.1);
    --cyan: #00CEC9;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --shadow-teal: 0 8px 25px rgba(1, 58, 64, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar-main {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.navbar-main .navbar-brand img { height: 40px; }
.navbar-main .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px !important;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--teal) !important; }
.navbar-main .btn-login {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}
.navbar-main .btn-login:hover { background: var(--bg); }
.navbar-main .btn-register {
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}
.navbar-main .btn-register:hover { background: var(--teal-dark); box-shadow: var(--shadow-teal); }

/* Hero */
.hero-section {
    background: var(--white);
    padding: 50px 0 0;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-text { flex: 1; }
.hero-text .badge-academic {
    display: inline-block;
    background: var(--teal-pastel);
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.hero-text h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--teal);
}
.hero-text h1 span { color: var(--magenta); }
.hero-text p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 28px;
}
.hero-text .btn-explore {
    background: var(--teal);
    color: var(--white);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: var(--shadow-teal);
}
.hero-text .btn-explore:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* Hero Cards */
.hero-cards {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hero-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.hero-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px) scale(1.02);
}
.hero-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.hero-card .card-icon.green { background: var(--green-pastel); color: var(--green); }
.hero-card .card-icon.magenta { background: var(--magenta-pastel); color: var(--magenta); }
.hero-card .card-icon.blue { background: var(--blue-pastel); color: var(--blue); }
.hero-card .card-text h6 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--dark);
}
.hero-card .card-text small {
    font-size: 12px;
    color: var(--gray-light);
    margin: 0;
}

/* Hero Image */
.hero-image {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    border: 1px solid var(--border);
}
.hero-image .img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 90px;
    opacity: 0.92;
    position: relative;
}
.hero-image .img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Sections */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .badge-section {
    display: inline-block;
    color: var(--magenta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 10px;
}
.section-header p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Hub */
.hub-section { background: var(--white); padding: 70px 0; }
.hub-section .hub-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hub-section .badge-excellence {
    display: inline-block;
    background: var(--magenta-pastel);
    color: var(--magenta);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.hub-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; color: var(--teal); }
.hub-section p { color: var(--gray); font-size: 16px; line-height: 1.9; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card .feat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.feature-card .feat-icon.teal-pastel { background: var(--teal-pastel); color: var(--teal); }
.feature-card .feat-icon.magenta-pastel { background: var(--magenta-pastel); color: var(--magenta); }
.feature-card .feat-icon.blue-pastel { background: var(--blue-pastel); color: var(--blue); }
.feature-card h5 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 0; }

/* Tracks */
.tracks-section {
    background: var(--dark);
    padding: 80px 0;
}
.tracks-section .section-header h2 { color: var(--white); }
.tracks-section .section-header p { color: var(--gray-light); }
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.track-card {
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    cursor: pointer;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.track-card:hover { transform: translateY(-6px); }
.track-card.teal { background: linear-gradient(145deg, #013A40, #005A63); }
.track-card.magenta { background: linear-gradient(145deg, #910A67, #B81859); }
.track-card.blue-teal { background: linear-gradient(145deg, #013A40, #0984E3); }
.track-card .track-icon { font-size: 44px; margin-bottom: 18px; }
.track-card .track-bg-icon {
    position: absolute; bottom: -15px; left: -15px;
    font-size: 110px; opacity: 0.06; color: var(--white);
}
.track-card h4 { color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.track-card p { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.7; flex-grow: 1; }
.track-card .btn-track {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--teal);
    font-weight: 700; padding: 10px 22px;
    border-radius: 8px; text-decoration: none;
    font-size: 13px; transition: 0.3s; align-self: flex-start;
}
.track-card .btn-track:hover { gap: 14px; box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

/* Stats */
.stats-section { background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-card { text-align: center; padding: 20px; }
.stat-card .stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-card .stat-label { font-size: 15px; color: var(--gray); font-weight: 600; }

/* Dashboard */
.dashboard-section { background: var(--bg); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.dashboard-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.dashboard-widget .widget-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px;
}
.dashboard-widget .widget-header h6 {
    font-size: 14px; font-weight: 700; color: var(--dark); margin: 0;
}
.dashboard-widget .widget-header span {
    font-size: 12px; color: var(--gray-light);
}
.widget-metric { margin-bottom: 18px; }
.widget-metric .metric-label {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--gray); margin-bottom: 5px;
}
.widget-metric .progress { height: 6px; border-radius: 10px; background: var(--bg); }
.widget-metric .progress-bar { border-radius: 10px; }
.widget-metric .progress-bar.teal { background: var(--teal); }
.widget-metric .progress-bar.magenta { background: var(--magenta); }
.widget-metric .progress-bar.cyan { background: var(--cyan); }

.dashboard-features { padding: 20px; }
.dashboard-features h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px; color: var(--teal); }
.dashboard-features p { color: var(--gray); font-size: 15px; line-height: 1.8; margin-bottom: 22px; }
.dashboard-features ul { list-style: none; padding: 0; }
.dashboard-features ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}
.dashboard-features ul li:last-child { border-bottom: none; }
.dashboard-features ul li i { color: var(--teal); font-size: 18px; }

/* Footer */
.footer-main {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}
.footer-main h5 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--white); }
.footer-main p, .footer-main a {
    font-size: 13px; color: rgba(255,255,255,0.55);
    line-height: 2.4; text-decoration: none; display: block;
}
.footer-main a:hover { color: var(--white); }
.footer-main .social-icons { display: flex; gap: 10px; margin-top: 16px; }
.footer-main .social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: rgba(255,255,255,0.5);
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
}
.footer-main .social-icons a:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* Media */
@media (max-width: 991px) {
    .hero-content { flex-direction: column; gap: 30px; }
    .hero-cards { flex: none; width: 100%; }
    .hero-text h1 { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .tracks-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
