/* ============ Media Center ============
 ========================================= */
.media-section .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-section .section-title a {
    color: var(--text-color);
    font-size: 18px;
    text-decoration: underline;
    transition: color 1.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-section .section-title a .arrow-icon {
    height: 24px;
    width: 24px;
    transition: all 1.2s ease-in-out;
}

.media-section .section-title a .arrow-icon svg {
    stroke: currentColor;
}

.media-section .section-title a:hover {
    color: var(--primary-color);
}

.media-section .section-title a:hover .arrow-icon {
    transform: translateX(3px);
}

.media-section .cards-container {
    position: relative;
    width: 85vw;
    margin: 0 auto;
}

.media-section .cards-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-image: linear-gradient(150deg, #0a3d5e 0%, #08273b 100%);
    height: 250px;
    width: 100%;
    z-index: 0;
}

.media-section .cards-container::after {
    content: "";
    position: absolute;
    background-image: url(./../images/shape-small3.svg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 90px;
    height: 250px;
    top: 0;
    left: 0;
    z-index: 3;
}

.media-section .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    z-index: 5;
    position: relative;
    padding: 0 32px;
    justify-items: center;
}

@media screen and (max-width: 992px) {
    .media-section .cards {
        grid-template-columns: none;
    }
}

.media-section .cards .card {
    max-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    min-height: 300px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: start;
    cursor: pointer;
    color: var(--white-color);
}

.media-section .cards .card .card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1s ease;
}

.media-section .cards .card .text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(to right, #2d2b53 0%, #2d2b53a1 100%);
    min-height: 90px; /* Changed from fixed height to min-height */
    width: 100%;
    display: flex;
    align-items: start;
    padding: 16px 24px; /* Added padding for white space */
    box-sizing: border-box; /* Ensures padding is included in width/height */
}

.media-section .cards .card .text p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4; /* Better line spacing */
    max-height: 4.2em; /* 3 lines * 1.4 line-height */
    padding: 16px;
    font-size: 14px;
    color: var(--white-color);
}

.tabs {
    display: flex;
    width: 85vw;
    margin: 20px auto;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    transition: all 0.4s ease-in-out;
    overflow-x: scroll;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs .tab {
    width: 270px;
    border-radius: 16px;
    flex-shrink: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 24px;
    background-color: #f9f9ff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: scale(0.95);
}

@media screen and (max-width: 992px) {
    .tabs .tab {
        width: auto;
    }
}

.tabs .tab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.7s ease-in-out;
    z-index: -1;
    background-color: #c6c5da;
}

.tabs .tab:hover {
    transform: scale(0.97);
}

.tabs .tab:hover .icon {
    background-color: var(--white-color);
}

.tabs .tab:hover::before {
    width: 200%;
    height: 200%;
    left: 50%;
}

.tabs .tab .icon {
    display: none;
}

.tab.active {
    background-image: linear-gradient(to right, #0a3d5e 0%, #0073be 100%);
}

.tabs .tab.active h3 {
    color: var(--white-color);
}

.tabs .tab.active .icon {
    background-color: var(--white-color);
    display: none;
}

.tabs .tab.active:hover::before {
    display: none;
}

.tabs .tab h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    transition: color 0.3s;
}
.tab-content {
    display: none;
}

.tab-content.active-content {
    display: block;
}

.scrolled {
    transform: translateY(0);
    background-color: var(--white-color);
    padding: 16px 0;
    box-shadow: var(--drop-shadow);
}

.scrolled .tab {
    border-radius: 25px;
    padding: 15px 32px;
}

.scrolled .tab .icon {
    display: none;
}

.scrolled .tab h3 {
    font-size: 18px;
}

-content .tab-content {
    display: none;
}

-content .tab-content.active-content {
    display: block;
}

.media-section .cards .card .date {
    position: absolute;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 11px;
    padding: 4px;
    border-radius: 4px;
    left: 16px;
    top: -16%;
}

.media-section .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    border-radius: 8px;
    padding: 6px;
}

.media-section .pagination button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f1f1f1;
    font-size: 14px;
    transition: background-color 0.3s;
}

.media-section .pagination button.active {
    background-color: #2ecc71;
    color: white;
}

.media-section .pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.media-section .read-more-link a {
    color: var(--text-color);
    font-size: 20px;
    text-decoration: underline;
    transition: color 1s;
    display: none;
    align-items: center;
    justify-content: end;
    gap: 8px;
    margin-top: 24px;
}

.media-section .read-more-link a:hover {
    color: var(--primary-color);
}

.media-section .read-more-link a .arrow-icon {
    height: 24px;
    width: 24px;
}

.media-section .read-more-link a .arrow-icon svg {
    stroke: currentColor;
    animation: moveArrow 0.7s infinite alternate ease-in-out;
}

/* Internal News */
.internal-news .image {
    display: flex;
    border-radius: 25px;
    max-width: 760px;
    height: 510px;
    margin-inline: auto;
    margin-bottom: 48px;
}

.internal-news .image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.internal-news .content p {
    color: var(--text-color);
    line-height: 30px;
    margin-bottom: 16px;
}

.internal-news .published .hashs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.internal-news .published {
    margin-top: 48px;
    background-color: #f2f1fa;
    border-radius: 4px;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 700;
}

.internal-news .published .share {
    display: flex;
    align-items: center;
    gap: 24px;
}

.internal-news .published .social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.internal-news .published .social-links li:first-child a {
    background-color: #25d366;
}

.internal-news .published .social-links li:last-child a {
    background-color: #0a3d5e;
}

.internal-news .published .social-links li a {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #27272e;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--white-color);
    transition: all 1s;
}

.internal-news .published .social-links li a svg {
    stroke: currentColor;
    position: relative;
    z-index: 1;
    transition: stroke 1s ease-in-out;
}

@media (max-width: 768px) {
    .internal-news .image {
        height: 380px;
    }

    .internal-news .published {
        flex-direction: column;
        align-items: start;
        gap: 24px;
        padding: 16px;
    }
}
