* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;
    --primary-light: #FFED4E;
    --primary-dark: #FFA500;
    --secondary-color: #1E90FF;
    --success-color: #1E90FF;
    --danger-color: #ff0000;
    --warning-color: #FFA500;
    
    --bg-darkest: #020618;
    --bg-dark: #0f172b;
    --bg-card: #1d293d;
    --bg-light: #314158;
    --bg-lighter: #45556c;
    
    --text-primary: #ffffff;
    --text-secondary: #cad5e2;
    --text-tertiary: #90a1b9;
    --text-light: #62748e;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-darkest);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background-color: rgba(15, 23, 43, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    width: 280px; /* Reserve space for the absolute logo */
    position: relative;
}

.logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: -45px; /* True vertical center for 150px img in 60px container */
    left: 0;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0 10px;
    margin: 0 1rem;
    flex-grow: 1;
    max-width: 400px; /* Limit width */
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 10px;
    outline: none;
    flex-grow: 1;
    font-size: 0.9rem;
}

.search-container input::placeholder {
    color: var(--text-tertiary);
}

.search-container button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,91,179,0.3);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--text-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: rgba(29, 41, 61, 0.6);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.15);
    background-color: rgba(255, 215, 0, 0.1);
}

.category-card h3 {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background-color: var(--bg-darkest);
}

.courses-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: var(--text-primary);
}

.filter-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-darkest);
    border-color: var(--primary-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: rgba(29, 41, 61, 0.6);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
}

.course-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #00d294 0%, #00bb7f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.course-content {
    padding: 1.5rem;
}

.course-badge {
    display: inline-block;
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.course-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.course-info {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.course-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.course-btn:hover {
    background-color: #0056b3;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background-color: rgba(29, 41, 61, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-tertiary);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background-color: var(--bg-darkest);
    color: var(--text-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-tertiary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-color);
}

.modal-details {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

#enrollBtn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        width: 140px; /* Reduce width on mobile */
    }
    .logo img {
        height: 100px; /* Reduce size */
        top: -20px;
    }
    
    .search-container {
        margin: 0 5px;
        order: 1; /* Move to center */
        padding: 0 5px;
    }
    
    .search-container input {
        width: 100px; /* Smaller input */
        font-size: 0.8rem;
    }

    .hamburger {
        display: block;
        order: 2; /* Move to right */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card) !important;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        padding-bottom: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .categories-section h2,
    .courses-section h2,
    .about-section h2,
    .newsletter-section h2 {
        font-size: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--bg-darkest);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
