/* Modernized style.css - Education Wallah */
:root {
    --bg-main: #0B0E14;
    --card-bg: rgba(20, 24, 34, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-sec: #9CA3AF;
    --primary-color: #3b82f6;
    --hover-color: #60a5fa;
    --neon-glow: 0 0 20px rgba(59, 130, 246, 0.4);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background Effect - Ambient glow */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation - Glassmorphism */
.navigation {
    height: 70px;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

/* We drop the link styling for brand to match original HTML structure if needed */
.brand a {
    color: #fff;
    text-decoration: none;
}

nav ul.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul.nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
}

nav ul.nav-list li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation Mobile Hamburger Toggle */
.nav-mobile {
    display: none;
    cursor: pointer;
}

#navbar-toggle {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    text-decoration: none;
}

#navbar-toggle span,
#navbar-toggle span::before,
#navbar-toggle span::after {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

#navbar-toggle span::before {
    content: '';
    top: -8px;
    left: 0;
}

#navbar-toggle span::after {
    content: '';
    top: 8px;
    left: 0;
}

#navbar-toggle.active span {
    background-color: transparent;
}

#navbar-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

#navbar-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Live Search Section */
.search-section {
    max-width: 600px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
    text-align: center;
}

#search-bar {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-bar::placeholder {
    color: var(--text-sec);
}

#search-bar:focus {
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

/* Container for CSS Grid Instead of Flex */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Course Card (Glassmorphism) */
.item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item:hover {
    transform: translateY(-8px);
    box-shadow: var(--neon-glow);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Course Card Image Thumbnails */
.item img.i {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.item:hover img.i {
    transform: scale(1.08);
}

/* Course Card Details */
.item h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 5px 0 25px 0;
}

/* Gradient Buttons */
.item button {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    border: none;
    border-radius: 25px;
    padding: 0; /* padding is handled by anchor link */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 160px;
    overflow: hidden;
}

.item button:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow);
}

.item button a.links {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    padding: 12px 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Footer elements */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.footer h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-sec);
    letter-spacing: 1px;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 800px) {
    .nav-mobile {
        display: flex;
        align-items: center;
        margin-top: 5px;
    }
    
    nav ul.nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--card-border);
    }
    
    nav ul.nav-list.active {
        display: flex;
    }
    
    nav ul.nav-list li {
        width: 100%;
        text-align: center;
    }
    
    nav ul.nav-list li a {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}