@font-face {
    font-family: 'con';
    src: url('../fonts/conthrax-sb.woff') format('truetype');
}
@font-face {
    font-family: 'tbc';
    src: url('../fonts/TBCContractica-Book.ttf') format('truetype');
}
  /* General Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(to bottom, #0D0D14, #000000);
    color: #FFFFFF;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #0F0F2E;
    border-bottom: 2px solid #6A5ACD;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);
}

.header .logo {
    font-size: 1.8rem;
    font-family: "con", sans-serif;
    color: #ffffff;
    font-weight: bold;
}

.header .nav-links a {
    color: #FFFFFF;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "tbc";
}

.header .nav-links a:hover {
    color: #9A6AFF;
}

.header .cta {
    background: linear-gradient(to right, #9A6AFF, #6A5ACD);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.header .cta:hover {
    background: linear-gradient(to right, #B98FFF, #8466D8);
}

/* Section Header */
.courses-header {
    text-align: center;
    font-family: 'con', 'tbc';
    margin: 30px 0;
    font-size: 2.5rem;
    color: #ffffff;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 50px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Course Cards */
.course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;  
    background: #1A1A26;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;  
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.8);
}

.course-card h2 {
    font-size: 1.7rem;
    color: #9A6AFF;
    margin-bottom: 15px;
}

.course-card p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #C7C7C7;
}

.course-card .enroll-btn {
    display: inline-block;
    margin-top: auto; 
    background: linear-gradient(to right, #9A6AFF, #6A5ACD);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 163px;
}

.course-card .enroll-btn:hover {
    background: linear-gradient(to right, #B98FFF, #8466D8);
}
/* Hamburger menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        flex-direction: column; 
        display: none;
        margin-top: 15px;
    }

    .nav-links a {
        padding: 10px 0;
        display: block;
        text-align: center;
    }

    .header .cta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .nav-links.active {
        display: flex;
    }
}
