:root {
    --primary: #111;
    --secondary: #cc222b;
    --light: #f8f9fa;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--light);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 999;
    transition: all 0.3s ease;
}

/* TOP BAR */
.top-bar {
    background: var(--secondary);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}
.top-bar-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.contact-info span {
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-info {
    display: flex;
}
.contact-info span:hover {
    color: #000;
}
.social-links a {
    color: white;
    margin-left: 12px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: #000;
}

/* MAIN HEADER */
.main-header {
    padding: 12px 0;
}
.header-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.logo-img {
    height: 50px;
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}

/* NAVIGATION */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    padding: 6px 0;
    transition: all 0.3s ease;
}
nav a:hover,
nav a.active {
    color: var(--secondary);
}
nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* CTA BUTTON */
.cta-button {
    background: linear-gradient(45deg, var(--secondary), #e63946);
    color: white;
    padding: 10px 26px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(204, 34, 43, 0.3);
    transition: all 0.3s ease;
}
.cta-button:hover {
    background: #000;
    transform: translateY(-2px);
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* FOOTER */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 8px;
    font-size: 14px;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact-info i {
    margin-right: 15px;
    color: var(--secondary);
    margin-top: 4px;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: white;
}

.footer-newsletter input::placeholder {
    color: #ccc;
}

.footer-newsletter button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-newsletter button:hover {
    background-color: #e63946;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* MOBILE MENU */
@media (max-width: 992px) {
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: none;
    }
    nav ul.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .hamburger {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-header img {
    transform: scale(1.05);
}

.category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #bb222c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.card-body p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.info span {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9rem;
}

.info i {
    margin-right: 5px;
    color: #bb222c;
}

.btn-enroll {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #bb222c, #bb222cb0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enroll:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Article Section */
.course-article {
    background: #f8fafc;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-top: 50px;
    text-align: center;
}

.course-article h2 {
    font-size: 2rem;
    color: #bb222c;
    margin-bottom: 20px;
}

.course-article p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.course-article a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #bb222c;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.course-article a:hover {
    background: #a91c25;
}
