/* assets/css/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
}

.main-container {
    width: 1920px;
    height: auto;
    margin: 0 auto;
    background-color: white;
}

.main-block {
    width: 1840px;
    padding: 40px;
    position: static;
    /* Changed from relative */
}

/* Header */
.header {
    /* position: absolute; */
    top: 120;
    left: 0;
    width: 1840px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav {
    display: flex;
    gap: 40px;
    margin-left: auto;
    margin-right: 400px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 20px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #333;
}

.login-btn {
    padding: 12px 36px;
    border: 2px solid #ddd;
    /* OLD */
    border: 2px solid #666;
    /* NEW - more visible contour */
    border-radius: 8px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #f8f8f8;
    border-color: #333;
    /* NEW - darker border on hover */
}

/* Sections header */
.banner-section {
    /* Gap after banner */
    margin-top: 120px;
    height: 509px;
    /* height: 924px; */
    width: 1840px;
}

/* Banner */
.banner {
    margin-top: 40px;
    /* gap after header */
    width: 1840px;
    height: 772px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    /* Keep relative for inner elements */
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 1840px;
    height: 772px;
    object-fit: cover;
}

.banner-txt {
    position: absolute;
    top: 11px;
    left: 56px;
    z-index: 2;
}

.banner-txt h1 {
    font-weight: 600;
    font-size: 76px;
    line-height: 100%;
    letter-spacing: 0.03em;
    color: white;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}

.section-title {
    margin-top: 13px;
    font-weight: 600;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #333;
    margin-bottom: 40px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
    align-items: center;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #2c9faf;
    color: white;
}

.filter-tab:hover {
    background: #f0f0f0;
}

.filter-tab.active:hover {
    background: #2c9faf;
}

/*==================== Courses Grid ======================*/
/* Sections courses */
.courses-section {
    /* Gap after banner */
    margin-top: 120px;
    height: 509px;
    width: 1840px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(6, 287px);
    gap: 20px;
    justify-content: space-between;
}

.course-card {
    background-image: url('card_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 287px;
    height: 342px;
    /* background: #f8f8f8; */
    border-radius: 20px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-card.clickable {
    cursor: pointer;
}

.course-title {
    position: absolute;
    top: 100px;
    left: 40px;
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #fff;
}

.course-duration {
    position: absolute;
    bottom: 40px;
    left: 40px;
    padding: 8px 16px;
    border: 1px solid #593aaf;
    border-radius: 8px;
    background: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #593aaf;
    cursor: pointer;
}

.course-duration.active {
    background: #2c9faf;
    color: white;
    border-color: #2c9faf;
}

/*============== Reviews Grid ==================*/
.reviews-section {
    /* Gap after courses */
    margin-top: 120px;
    height: 409px;
    width: 1840px;
}

.reviews-grid {
    display: flex;
    /* Remove: display: grid; grid-template-columns: repeat(3, 554px); */
    flex-direction: row;
    /* NEW - force horizontal */
    gap: 40px;
    justify-content: space-between;
    width: 100%;
}

.review-card {
    width: 554px;
    height: 276px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent cards from shrinking */
}

.review-profession {
    font-weight: 600;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    line-height: 150%;
    color: #666;
    margin-bottom: 20px;
}

.review-author {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Footer */
.footer {
    margin-top: 120px;
    /* This needs to be AFTER reviews section */
    height: 232px;
    background: #2c3e50;
    color: white;
    padding: 40px;
    width: 100%;
    /* NEW - ensure full width */
}

.footer-content {
    width: 1840px;
    height: 152px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo {
/* .footer-logo { */
    display: flex;
    align-items: center;
    gap: 16px;
    width: 422px;
    height: 80px;
}

.logo-img {
/* .footer-logo-img { */
    width: 80px;
    height: 80px;
    /* Prevent image from shrinking */
    flex-shrink: 0;
}

.logo-txt {
    font-weight: 600;
    font-size: 20px;
    line-height: 145%;
    /* Default dark color for white header background */
    color: #333;
}

/* Override color for footer context */
.footer .logo-txt {
    /* White text for dark footer background */
    color: white;
    /* Allow text to take remaining space */
    flex: 1;
}

.footer-copyright {
    font-size: 14px;
    color: #bbb;
    margin-top: auto;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav-link {
    font-size: 16px;
    color: #bbb;
    cursor: default;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: #4a5568;
    border-radius: 50%;
    cursor: default;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-phone {
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.footer-policy {
    font-size: 12px;
    color: #bbb;
    margin-top: 20px;
}

.course-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #831180;
}
