

.main-sidebar, .right-sidebar, .notice-wrapper {
    display: none;
}

.content-wrapper {
    width: 100%;
    margin-left: 0;
}

.content-wrapper.home-page-wrapper {
    padding-top: 0;
}

.home-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    margin: 54px 0 0 0;
}

footer.main-footer {
    margin-left: 0;
    margin-right: 0;
    padding: 20px;
}

/* ==================== Banner Slider ==================== */
.home-banner-wrapper {
    width: 100%;
    margin-bottom: 24px;
}

.home-banner-slider {
    width: 100%;
    height: 280px;
    position: relative;
}

.home-banner-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 80px;
    position: relative;
    overflow: hidden;
}

.home-banner-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-banner-image img {
    object-position: center;
    object-fit: cover;
}

/* Swiper Controls */
.home-banner-slider .swiper-button-next,
.home-banner-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.home-banner-slider .swiper-button-next:after,
.home-banner-slider .swiper-button-prev:after {
    font-size: 20px;
}

.home-banner-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.home-banner-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

.home-banner-slider .swiper-pagination {
    bottom: 50px;
}

/* ==================== News Ticker Styles ==================== */
.home-news-container {
    background: #fff;
    margin: 10px auto 20px;
    max-width: 1200px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    grid-gap: 20px; /* Changed from gap */
    position: relative;
    z-index: 10;
}

.home-news-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ee4d2d;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    padding-right: 20px;
    border-right: 1px solid #eee;
    min-width: 60px;
}

.home-news-icon svg {
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
}

.home-news-content {
    flex: 1;
    overflow: hidden;
}

.home-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    grid-gap: 15px 30px; /* Changed from gap */
}

.home-news-item {
    display: flex;
    align-items: center;
}

.home-news-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    grid-gap: 6px; /* Changed from gap */
    transition: color 0.2s;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.home-news-link:hover {
    color: var(--primary);
}

/* Tooltip style */
.home-news-link[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 8px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Tooltip arrow */
.home-news-link[data-title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    margin-bottom: -2px;
    z-index: 100;
}

.home-news-icon-small {
    font-size: 14px;
}

.home-news-next {
    color: #999;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #f5f5f5;
}

.home-news-next:hover {
    background: #e0e0e0;
    color: #333;
}

/* ==================== Main Content ==================== */
.home-education-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ==================== Level Cards ==================== */
.home-level-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px; /* Changed from gap */
    margin-bottom: 40px;
}

.home-level-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-level-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 153, 196, 0.15);
}

.home-level-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2199c4, #4db8e8);
}

.home-level-basic:before {
    background: linear-gradient(90deg, #26aa99, #2dd4bf);
}

.home-level-intermediate:before {
    background: linear-gradient(90deg, #2199c4, #4db8e8);
}

.home-level-advanced:before {
    background: linear-gradient(90deg, var(--primary), #ff6b35);
}

.home-level-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.home-level-badge {
    background: #2199c4;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.home-level-basic .home-level-badge {
    background: #26aa99;
}

.home-level-intermediate .home-level-badge {
    background: #2199c4;
}

.home-level-advanced .home-level-badge {
    background: var(--primary);
}

.home-level-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.home-level-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ==================== Courses Section ==================== */
.home-courses-section {
    margin-bottom: 48px;
}

.home-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.home-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.home-view-all {
    color: #2199c4;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    grid-gap: 4px; /* Changed from gap */
    transition: color 0.3s ease;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #919191;
}

.home-view-all:hover {
    color: #1a7a9e;
    text-decoration: none;
}

.home-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.home-view-all:hover .home-arrow {
    transform: translateX(4px);
}

.home-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px; /* Changed from gap */
}

.home-course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 153, 196, 0.15);
}

.home-course-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-course-info {
    padding: 16px;
}

.home-course-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    margin-top: 0;
}

.home-course-subtitle {
    font-size: 13px;
    margin-bottom: 12px;
    background: #f0f9ff;
    color: var(--primary);
    width: max-content;
    padding: 2px 8px;
    border-radius: 4px;
}

.home-course-meta {
    display: flex;
    align-items: center;
    grid-gap: 12px; /* Changed from gap */
    flex-wrap: wrap;
}

.home-course-stat {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    grid-gap: 4px; /* Changed from gap */
}

.home-course-stat:before {
    content: '|';
    color: #ddd;
    margin-right: 4px;
}

.home-course-stat:first-of-type:before {
    display: none;
}

/* ==================== Events Section ==================== */
.home-events-section {
    margin-bottom: 48px;
}

.home-events-subsection {
    margin-bottom: 32px;
}

.home-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.home-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px; /* Changed from gap */
}

.home-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(33, 153, 196, 0.15);
}

.home-event-thumbnail {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    position: relative;
}

.home-event-date-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.home-event-info {
    padding: 16px;
}

.home-event-date {
    font-size: 13px;
    color: #2199c4;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-event-title {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-event-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: block;
}

.home-btn-register {
    width: 100%;
    background: #2199c4;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.home-btn-register:hover {
    background: #1a7a9e;
}

.home-event-past .home-event-date {
    color: #999;
}

.home-event-past .home-btn-register {
    background: #ccc;
    cursor: not-allowed;
}

/* ==================== Info Banner ==================== */
.home-info-banner {
    border-radius: 16px;
}

.home-info-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==================== Theme Section ==================== */
.home-theme-section {
    margin-top: 40px;
}

.help-center-parent {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px; /* Changed from gap */
    padding: 0;
}

.help-center-parent-item {
    display: flex;
    flex-direction: column;
    grid-gap: 16px; /* Changed from gap */
}

.box-header-title {
    display: flex;
    grid-gap: 10px; /* Changed from gap */
    align-items: center;
    font-size: 20px;
    font-weight: 400;
}

.help-center-child-item {
    font-size: 15px;
    color: var(--black);
    margin-left: 50px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .home-level-section,
    .home-courses-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 30px;
    }
    
    .home-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-banner-slider {
        height: auto;
    }

    .home-news-container {
        margin: 20px auto 40px;
    }
}

@media (max-width: 767px) {
    .home-banner-slide {
        padding: 30px 20px;
        flex-direction: column;
    }
    
    .home-banner-image {
        flex: 0 0 200px;
    }
    
    .home-level-section,
    .home-courses-grid,
    .home-events-grid {
        grid-template-columns: 1fr;
    }
    
    .home-news-list {
        grid-template-columns: 1fr;
        grid-gap: 10px; /* Changed from gap */
    }
    
    .home-news-item {
        max-width: 100%;
    }

    .help-center-parent {
        grid-template-columns: 1fr;
    }

   .home-news-container {
        border-radius: 10px;
        padding: 16px;
        margin: 0 20px 20px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        grid-gap: 12px;
    }

    .home-news-icon {
        padding: 10px;
        min-width: auto;
        flex-shrink: 0;
        flex-direction: column;
        display: flex;
    }
    
    .home-news-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .home-news-icon span {
        font-size: 11px;
    }

    .home-news-content {
        flex: 1;
        overflow: hidden;
    }

    .home-news-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        grid-gap: 10px;
        grid-template-columns: 1fr;
    }

    .home-news-item {
        max-width: 100%;
    }

    .home-news-next {
        display: none;
    }

    .home-news-desktop {
        display: none !important;
    }
    
    .home-news-mobile {
        display: block !important;
    }

    .home-news-swiper {
        width: 100%;
        overflow: hidden;
    }

    .home-news-swiper .swiper-wrapper {
        display: flex;
    }

    .home-news-swiper .swiper-slide {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home-news-swiper .swiper-slide .home-news-item {
        width: 100%;
    }

    .home-news-swiper .home-news-pagination {
        position: relative;
        margin-top: 12px;
        bottom: auto !important;
    }

    .home-news-swiper .home-news-pagination .swiper-pagination-bullet {
        background: #ee4d2d;
        opacity: 0.3;
        width: 8px;
        height: 8px;
    }

    .home-news-swiper .home-news-pagination .swiper-pagination-bullet-active {
        opacity: 1;
    }

    .home-event-thumbnail {
        max-height: 180px;
    }

    .home-courses-section,
    .home-events-section {
        margin-bottom: 0;
    }

    .home-section-title {
        font-size: 22px;
    }

    .box-header-title {
        font-size: 18px;
    }

    .box-header-title img {
        width: 30px;
        height: 30px;
    }
    /* Mobile - ẩn desktop list, hiện slider */
    .home-news-desktop {
        display: none;
    }
    
    .home-news-mobile {
        display: block;
    }
}

.home-event-thumbnail img {
    object-fit: cover;
    object-position: center;
}

.home-news-mobile {
    display: none;
}

.home-news-desktop {
    display: grid;
}

@media (max-width: 767px) {
    
}
