/* ============================================================
   course-page.css — Shared styles for all Profenaa Academy course pages
   ============================================================ */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #06d6d0;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --dark-text: #2d3748;
    --light-text: #718096;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 30px rgba(102, 126, 234, 0.2);
    --announce-height: 40px;
}
 /* Purple / primary theme (matches main site) */
        .course-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .section-block h2  { border-bottom-color: #667eea; }
        .highlight-card    { border-left-color: #667eea; }
        .highlight-card i  { color: #667eea; }
        .curriculum-list li:hover { background: #eef2ff; }
        .curriculum-list li i     { color: #06d6d0; }
        .career-card  { background: linear-gradient(135deg, #667eea, #764ba2); }
        .career-card:hover { box-shadow: 0 12px 30px rgba(102,126,234,0.35); }
        .sidebar-header { background: linear-gradient(135deg, #667eea, #764ba2); }
          /* Dark navy / teal theme */
        .course-hero {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        }
        .course-hero::after {
            background: rgba(6, 214, 208, 0.08);
        }
        .course-badge {
            background: rgba(6, 214, 208, 0.15);
            border-color: rgba(6, 214, 208, 0.35);
            color: #06d6d0;
        }
        .section-block h2  { border-bottom-color: #0f3460; }
        .highlight-card    { border-left-color: #0f3460; }
        .highlight-card i  { color: #0f3460; }
        .curriculum-list li:hover { background: #e8f4f8; }
        .career-card { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
        .career-card i { color: #06d6d0; }
        .career-card:hover { box-shadow: 0 12px 30px rgba(15,52,96,0.35); }
        .sidebar-header { background: linear-gradient(135deg, #1a1a2e, #0f3460); }
        .duration-badge { background: rgba(6,214,208,0.2); color: #06d6d0; }
         /* Red / emergency theme */
        .course-hero {
            background: linear-gradient(135deg, #c0392b 0%, #e74c3c 60%, #e55039 100%);
        }
        .section-block h2  { border-bottom-color: #e74c3c; }
        .highlight-card    { border-left-color: #e74c3c; }
        .highlight-card i  { color: #e74c3c; }
        .curriculum-list li:hover { background: #fef2f2; }
        .curriculum-list li i     { color: #e74c3c; }
        .career-card  { background: linear-gradient(135deg, #c0392b, #e74c3c); }
        .career-card:hover { box-shadow: 0 12px 30px rgba(231,76,60,0.35); }
        .sidebar-header { background: linear-gradient(135deg, #c0392b, #e74c3c); }
          .course-hero {
            background: linear-gradient(135deg, #1e8449 0%, #27ae60 60%, #52be80 100%);
        }
        .section-block h2  { border-bottom-color: #27ae60; }
        .highlight-card    { border-left-color: #27ae60; }
        .highlight-card i  { color: #27ae60; }
        .curriculum-list li:hover { background: #f0faf4; }
        .curriculum-list li i     { color: #27ae60; }
        .career-card  { background: linear-gradient(135deg, #1e8449, #27ae60); }
        .career-card:hover { box-shadow: 0 12px 30px rgba(39,174,96,0.35); }
        .sidebar-header { background: linear-gradient(135deg, #1e8449, #27ae60); }

* {
    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: var(--dark-text);
    background: var(--white);
}

/* ===== TOP ANNOUNCEMENT ===== */
.top-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--announce-height);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    color: #fff;
    z-index: 1100;
    display: flex;
    align-items: center;
}

.top-announcement-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.announce-icon {
    font-size: 1.05rem;
    color: #fff;
}

.announce-marquee {
    overflow: hidden;
    flex: 1;
}

.announce-track {
    display: inline-flex;
    gap: 3rem;
    animation: announceScroll 18s linear infinite;
}

.announce-track span {
    white-space: nowrap;
    font-weight: 600;
}

@keyframes announceScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: var(--announce-height);
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-admit {
    padding: 0.5rem 1rem;
    border-radius: 28px;
    background: #ff6b6b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.18);
    transition: var(--transition);
}

.btn-admit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 107, 0.3);
}

/* ===== COURSE HERO (BASE — overridden per course) ===== */
.course-hero {
    margin-top: calc(70px + var(--announce-height));
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.course-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.course-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: rgba(6, 214, 208, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===== COURSE BADGE ===== */
.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== HERO TEXT ===== */
.course-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.course-hero .hero-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 650px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===== HERO META PILLS ===== */
.hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== MAIN LAYOUT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

/* ===== SECTION BLOCKS ===== */
.section-block {
    margin-bottom: 3rem;
}

.section-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section-block p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== HIGHLIGHTS GRID ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.4rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

.highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-text);
}

.highlight-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== CURRICULUM LIST ===== */
.curriculum-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--light-bg);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--dark-text);
    transition: var(--transition);
}

.curriculum-list li:hover {
    background: #eef2ff;
    transform: translateX(4px);
}

.curriculum-list li i {
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 1rem;
}

/* ===== CAREER GRID ===== */
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 1rem;
}

.career-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.career-card i {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
    display: block;
}

.career-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: calc(85px + var(--announce-height));
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.8rem;
    color: #fff;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.duration-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.sidebar-body {
    padding: 1.8rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
    text-align: right;
}

/* ===== APPLY BUTTON ===== */
.apply-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.contact-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--light-text);
    font-size: 0.85rem;
}

.contact-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-note a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeInUp 0.7s ease both;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .course-hero h1 {
        font-size: 2.2rem;
    }
    .course-hero {
        padding: 3rem 1.5rem 2.5rem;
    }
    .main-content {
        padding: 2.5rem 1.5rem;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .hero-meta {
        gap: 0.7rem;
    }
}

@media (max-width: 480px) {
    .course-hero h1 {
        font-size: 1.7rem;
    }
    .logo span {
        display: none;
    }
    .meta-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }
}