font-face {
    font-family: 'BPGArialCaps2010';
    src: url('../fonts/BPG\ Arial\ Caps\ 2010.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Main Section 2 Styling */
.main-section2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    gap: 20px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    padding: 0 15px;
}

/* Left Rotated Text */
.section2-p {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'BPGArialCaps2010', sans-serif;
    font-size: 18px;
    color: #064e45;
    margin-right: 10px;
}

.news-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    flex: 1;
}

.news-card {
    background-color: #e9f7f63f;
    border-radius: 10px;
    padding-bottom: 20px;
    text-align: center;
    font-family: 'BPGArialCaps2010', sans-serif;
    font-size: 16px;
    flex: 0 1 300px;
    height: auto;
    min-height: 200px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 5px;
}

.news-card p {
    text-align: center;
    margin-top: -1px;
    margin-bottom: 1px;
    font-family: 'Noto Sans Georgian', sans-serif;
    font-size: 16px;
    color: #075e54;
    font-weight: 700;
}

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

/* Responsive Layout */
@media (max-width: 768px) {
    .main-section2 {
        flex-direction: column;
        align-items: center;
    }

    .section2-p {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        margin-bottom: 10px;
    }

    .news-cards {
        justify-content: center;
    }

    .news-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

html[lang="en"] .section2-p,
html[lang="fr"] .section2-p { font-size: 24px; }
