/* --- Global Styles --- */
html {
    scroll-behavior: smooth;
}
:root {
    --accent: #ff8c00;
    --white: #ffffff;
    --text-dark: #1d1d1f; 
    --glass: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.1);
    /* CSS 2 Colors */
    --primary-gradient: linear-gradient(135deg, #1a1a1a, #434343);
    --accent-color-css2: #27ae60;
        --primary-color: #2c3e50;
    --accent-color: #27ae60;
    --text-light: #ffffff;
    --bg-light: #3e5a76;
    --shadow: 0 4px 15px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }


/* --- NAVBAR UPDATED --- */
.navbar {
    background: var(--primary-gradient);
    position: static;
    top: 0;
    z-index: 1100;
    width: 100%;
}

.nav-top {
    display: flex;
    justify-content: center; /* Desktop par logo center rahega */
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.logo {
    color: white;
    font-size: 2.2rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px 10px;
}

/* --- Hamburger Menu (Mobile Only) --- */
.hamburger-menu {
    display: none; /* Desktop par hide */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 5%;
}

.bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: 0.3s;
}

/* --- Desktop Nav Links --- */
.nav-links {
    display: flex;
    list-style: none;
    background: rgba(0,0,0,0.10);
    width: 100%;
    justify-content: center;
    padding: 15px 0;
    margin: 10;
    transition: 0.4s ease;
}

.nav-links li { margin: 0 1px; }

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 8px 18px;
    margin: 0 10px;
    transition: 0.3s;
    display: block;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--accent-color-css2);
    color: white !important;
    border-radius: 5px;
}

.sidebar-header { display: none; } /* Mobile Only */

/* --- Mobile Styling (Responsive) --- */
@media (max-width: 900px) {
    .hamburger-menu { display: flex; } /* Show Hamburger */

    .logo { font-size: 1.4rem; padding-left: 40px; } /* Adjust logo size */

    .nav-links {
        position: fixed;
        left: -100%; /* Hide Sidebar */
        top: 0;
        width: 200px;
        height: 100vh;
        background: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0;
        z-index: 1200;
        box-shadow: 10px 0 30px rgba(0,0,0,0);
    }

    .nav-links.active { left: 0; } /* Show Sidebar */

    .nav-links li { width: 100%; margin: 10px 0; }

    .sidebar-header {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    #closeMenu {
        color: white;
        font-size: 3rem;
        cursor: pointer;
        line-height: 1;
    }

    /* Background Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1150;
    }
    .menu-overlay.active { display: block; }
}


/* --- Category Quick Links (Sticky) --- */
.category-nav {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.category-nav a {
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.category-nav a:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Course Cards Layout --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 5px solid var(--accent-color);
    scroll-margin-top: 120px; 
}

.course-card:hover {
    transform: translateY(-10px);
}

.card-header {
    background: #f1f1f1;
    padding: 15px;
    text-align: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Duration Tags */
.duration-highlight {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.duration-highlight{
    animation: pulse-animation 1.5s infinite;
}
@keyframes pulse-animation{
    0% {transform: scale(1);}
    50% {transform: scale(1.08);}
    100% { transform: scale(1);}
}
.course-card ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.course-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.course-card li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.highlight {
    border-top: 5px solid #e67e22;
}

/* --- Footer --- */
#footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 60px;
}

.social-links a {
    color: white;
    font-size: 2rem;
    margin: 0 15px;
    transition: 0.3s;
}

.social-links a:hover {
    transition: 0.5s;
    color: var(--accent-color);
}
