.course-card-footer {
    /* Removed: Moved to tutor.css */
}

/* === News Section === */
.news-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Remove conflicting borders/radius from thumb as it's handled by card container */
.news-thumb {
    position: relative;
    padding-bottom: 66%;
    /* 3:2 Aspect Ratio */
    height: 0;
    background: #f1f1f1;
}

.news-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Add padding to news content to match course details */
.news-content {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-5px);
    /* Gentle lift on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #cca471 !important;
}

.btn-outline-dark {
    border: 2px solid #333;
    color: #333;
    padding: 10px 30px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #cca471;
    border-color: #cca471;
    color: #fff;
    text-decoration: none;
}

/* Course Styles Removed - Moved to tutor.css */

/* Mobile Responsiveness for News Section (and shared logic if needed, but courses moved) */
@media screen and (max-width: 768px) {

    .news-item {
        box-shadow: none !important;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12));
        border: none !important;
        transform: none !important;
        transition: none !important;
        -webkit-tap-highlight-color: transparent;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }

    .news-item,
    .news-thumb,
    .news-thumb img {
        transition: none !important;
        animation: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .news-item:hover,
    .news-item:active,
    .news-item:focus-within {
        transform: translateZ(0) !important;
        box-shadow: none !important;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12)) !important;
    }

    .news-item,
    .news-item:hover,
    .news-item:active,
    .news-item:focus,
    .news-item:focus-visible,
    .news-item:focus-within {
        transform: none !important;
        box-shadow: none !important;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12)) !important;
        outline: none !important;
    }

    .news-item:hover .news-thumb img,
    .news-item:active .news-thumb img,
    .news-item:focus-within .news-thumb img {
        transform: none !important;
        filter: none !important;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .news-item .news-thumb img,
    .news-item:hover .news-thumb img,
    .news-item:active .news-thumb img,
    .news-item:focus .news-thumb img,
    .news-item:focus-visible .news-thumb img,
    .news-item:focus-within .news-thumb img {
        transform: none !important;
        filter: none !important;
    }

    .news-item,
    .news-thumb img,
    .news-title a {
        -webkit-tap-highlight-color: transparent;
    }

    .news-item *,
    .news-item:active *,
    .news-item:focus-within * {
        transition: none !important;
        animation: none !important;
    }

    .news-list-container.is-touch-dragging .news-item,
    .news-list-container.is-touch-dragging .news-item:hover,
    .news-list-container.is-touch-dragging .news-item:active,
    .news-list-container.is-touch-dragging .news-item:focus-within {
        transform: none !important;
        filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12)) !important;
    }

    .news-list-container.is-touch-dragging .news-thumb img,
    .news-list-container.is-touch-dragging .news-item:hover .news-thumb img,
    .news-list-container.is-touch-dragging .news-item:active .news-thumb img,
    .news-list-container.is-touch-dragging .news-item:focus-within .news-thumb img {
        transform: none !important;
    }
}

/* === News Section Specific Styles === */
.news-header {
    text-align: center;
}

.news-section-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
}

/* News Slider Wrapper */
.news-slider-wrapper {
    position: relative;
}

/* News Navigation Buttons */
.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-nav-btn.nav-left {
    left: -20px;
}

.news-nav-btn.nav-right {
    right: -20px;
}

@media screen and (min-width: 1350px) {
    .news-nav-btn.nav-left {
        left: -20px;
    }

    .news-nav-btn.nav-right {
        right: -20px;
    }
}

.news-nav-btn:hover {
    background: #cca471;
    color: #fff;
    border-color: #cca471;
}

/* News List Container */
.news-list-container {
    overflow: hidden;
    width: 100%;
    padding: 30px 0 30px;
}

.news-list-container::-webkit-scrollbar {
    height: 6px;
}

.news-list-container::-webkit-scrollbar-track {
    background: #efefef;
    border-radius: 999px;
}

.news-list-container::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 999px;
}

.news-list-container::-webkit-scrollbar-thumb:hover {
    background: #b6b6b6;
}

.news-slider-stage-wrap {
    position: relative;
    width: 100%;
    display: none;
}

.news-slider-stage {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-slider-stage > .news-item-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: initial !important;
    display: block !important;
}

.news-slider-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: -6px;
}

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

.news-slider-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: rgba(204, 164, 113, 0.28);
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 1;
}

.news-slider-dot:hover {
    background: rgba(204, 164, 113, 0.55);
}

.news-slider-dot.is-active {
    background: #cca471;
    transform: scale(1.08);
    opacity: 1;
}

.news-slider-stage-wrap .news-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    height: 100%;
}

.news-slider-stage-wrap .news-content {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media screen and (min-width: 769px) {
    .news-section {
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .news-section .news-slider-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .news-section .news-slider-wrapper.is-desktop-slider-ready .news-list-container {
        display: none !important;
    }

    .news-section .news-slider-wrapper.is-desktop-slider-ready .news-slider-stage-wrap {
        display: block !important;
    }

    .news-section .news-slider-wrapper.is-desktop-slider-ready .news-slider-dots {
        display: flex !important;
    }

    .news-section .news-list-container {
        overflow: visible;
        padding: 0 0 18px;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .news-section .news-list {
        overflow: visible;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 !important;
        padding: 8px 0 8px 12px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        gap: 18px;
    }

    .news-section .news-list::-webkit-scrollbar {
        display: none;
    }

    .news-section .news-slider-stage-wrap {
        overflow: visible;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .news-section .news-slider-stage {
        gap: 18px;
    }

    .news-section .news-slider-stage > .news-item-card {
        padding: 0;
        margin-bottom: 30px;
        box-sizing: border-box;
    }

    .news-section .news-item-card {
        flex: 0 0 calc((100% - 36px) / 3);
        max-width: calc((100% - 36px) / 3);
        padding: 0;
        margin-bottom: 30px;
    }
}

.news-list {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: #c9c9c9 #efefef;
    box-sizing: border-box;
    width: 100%;
}

.news-list::-webkit-scrollbar {
    height: 6px;
}

.news-list::-webkit-scrollbar-track {
    background: #efefef;
    border-radius: 999px;
}

.news-list::-webkit-scrollbar-thumb {
    background: #c9c9c9;
    border-radius: 999px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #b6b6b6;
}


/* News Item Card - Desktop: 33.33% (3 per row) */
.news-item-card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Mobile Responsiveness for News Section */
@media screen and (max-width: 768px) {
    .news-nav-btn {
        display: none;
    }

    .news-section {
        padding-left: 0;
        padding-right: 0;
    }

    .news-header {
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
    }

    .news-list-container {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        padding: 0 15px 14px 0;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        position: relative;
        touch-action: pan-x pan-y;
        scrollbar-width: thin;
        scrollbar-color: #c9c9c9 #efefef;
    }

    .news-list {
        display: flex;
        flex-wrap: nowrap;
        overflow: visible;
        overflow-y: visible;
        width: max-content;
        padding: 8px 18px 8px 0;
        gap: 18px;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .news-list .news-item-card:first-child {
        padding-left: 0;
        margin-left: 15px;
    }

    .news-item-card {
        flex: 0 0 70vw !important;
        width: 70vw !important;
        max-width: 70vw !important;
        min-width: 70vw !important;
        margin-bottom: 15px;
        padding: 4px 0 14px;
    }

    .news-thumb {
        height: 190px;
        padding-bottom: 0;
    }

    .news-list::after {
        content: none !important;
    }

    .news-list-container::-webkit-scrollbar {
        height: 4px;
        -webkit-appearance: none;
    }

    .news-list-container::-webkit-scrollbar-track {
        background: #efefef;
        border-radius: 999px;
    }

    .news-list-container::-webkit-scrollbar-thumb {
        background: #c9c9c9;
        border-radius: 999px;
    }

    .news-mobile-track {
        display: none !important;
    }

    .news-slider-stage-wrap,
    .news-slider-dots {
        display: none !important;
    }
}
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    height: 3em; /* 2 lines * 1.5 line-height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content .blog-card-tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    margin-top: 14px;
    padding-top: 0;
}

.news-content .blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 140px;
    min-width: 0;
    color: #9a9a9a;
    text-align: left;
}

.news-content .blog-card-tag-icon {
    color: inherit;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.news-content .blog-card-tag-text {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    font-size: 13px;
    color: #999;
    text-decoration: none !important;
    transition: color 0.3s;
}

.news-tag:hover {
    color: #cca471 !important;
}

@media screen and (max-width: 768px) {
    .news-content .blog-card-tags {
        gap: 8px;
        margin-top: 12px;
    }

    .news-content .blog-card-tag {
        max-width: 132px;
        font-size: 0.78rem;
    }
}
