.news-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.news-with-calendar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-card {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #28a745;
}

.news-card.extra {
    width: 400px;
    height: 900px;
    overflow: hidden;
    background-image: url("../images/news_card_background.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 95% 70px;
}

.news-card.extra h2 {
    color: #28a745;
}

.news-card.extra p {
    color: #28a745;
}

.news-card.extra-wide-news-card {
    width: 700px;
    height: 900px;
    overflow: hidden;
    background-image: url("../images/genis_olan.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 95% 70px;
    position: relative;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 120px;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot:hover {
    background-color: #999;
}

.dot.active {
    background-color: #28a745;
}

.extra-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.image-section-extra {
    position: relative;
    width: 100%;
}

.extra-view-count {
    font-size: 0.85em;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 35px;
    right: 8px;
    z-index: 2;
    margin: 0;
    text-align: right;
    display: flex;
    align-items: center;
}

.news-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
    display: none;
    opacity: 0;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.news-item-content {
    display: flex;
    flex-direction: row;
    padding: 8px;
    gap: 8px;
    align-items: stretch;
}

.image-section {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.date-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
    width: 100%;
    padding-left: 0;
}

.news-date {
    font-size: 0.85em;
    color: #ffffff !important;
    background-color: #28a745;
    padding: 4px 8px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin: 0;
    text-align: center;
    width: fit-content;
    font-weight: bold;
}

.news-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    flex: 1;
    text-align: left;
}

.news-text h3 {
    font-size: 1.0em;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    color: #28a745;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.news-text p {
    font-family: 'Times New Roman', Times, serif;
    color: #666;
    font-size: 0.8em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    line-height: 1.2em;
    max-height: 2.4em;
}

.view-section {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.view-count {
    font-size: 0.8em;
    color: #28a745;
    font-weight: bold;
    margin: 0;
    line-height: 16px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.detail-button {
    background-color: #2a9d52;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85em;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    text-align: center;
    display: block;
    width: auto;
}

.detail-button:hover {
    background-color: #1f6f3d;
}

.rss-icon {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.rss-icon:hover {
    opacity: 0.7;
}

.news-card h2 {
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 10px;
}

.news-card p {
    font-family: 'Times New Roman', Times, serif;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-card .detail-button {
    width: 150px;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
    margin-bottom: 20px;
}

.news-card.extra-wide-news-card .detail-button {
    margin-bottom: 5px;
}

.green-panel {
    background-color: #28a745;
    min-height: 60px;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7em;
    font-weight: bold;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.green-divider {
    height: 2px;
    background-color: #28a745;
    margin: 10px 20px;
}

.video-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.video-container {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container .view-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7em;
    display: flex;
    align-items: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a9d52;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-button:hover {
    background-color: #1f6f3d;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal-content video {
    width: 100%;
    height: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
}

.close-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.extra-panel {
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    border: 1px solid #28a745;
    overflow: hidden;
}

.inner-panels {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.inner-panel {
    flex: 1;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.inner-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.panel-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-image {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
}

.panel-text {
    flex-grow: 1;
    text-align: left;
}

.inner-panel h3 {
    font-size: 1.1em;
    color: #28a745;
}

.panel-view-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: #28a745;
    font-weight: bold;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1em !important;
    }

    .news-section {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .news-with-calendar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .news-card, .news-card.extra-wide-news-card {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        background-image: url("../images/news_card_background.png") !important;
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: 95% 70px;
    }

    .news-card.extra {
        width: 100%;
        height: auto;
        overflow: hidden;
        margin: 0;
        background-image: url("../images/news_card_background.png") !important;
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: 95% 70px;
    }

    .extra-image {
        height: 200px;
    }

    .news-card.extra h2 {
        font-size: 0.9em;
    }

    .news-card.extra p {
        font-size: 0.75em;
        line-height: 1.2;
    }

    .green-panel {
        font-size: 1.2em;
        min-height: 40px;
        padding: 5px;
    }

    .news-grid {
        gap: 20px;
        padding-bottom: 80px;
    }

    .news-item-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px;
        gap: 5px;
    }

    .image-section {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 120px;
    }

    .news-text h3 {
        font-size: 0.85em;
        -webkit-line-clamp: 1;
    }

    .news-text p {
        font-size: 0.7em;
        -webkit-line-clamp: 1;
        max-height: 1.2em;
    }

    .detail-button {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .video-gallery {
        flex-direction: column;
        align-items: center;
    }

    .video-container {
        width: 100%;
        max-width: 400px;
    }

    .extra-panel {
        padding: 10px;
        max-width: 100%;
        overflow: hidden;
    }

    .inner-panels {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .inner-panel {
        max-width: 100%;
        width: auto;
    }

    .pagination-dots {
        bottom: 80px;
    }

    .panel-image {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 1200px) {
    .news-grid {
        flex-direction: column;
    }
}