@import url('../components/secondary_header.css');

/* Container for blog/news content */
.content-box {
    display: flex;
    flex-direction: row;
    padding: 40px;
    margin: 2rem auto;
    width: 80%;
    border: 0.2vw solid #92A4A954;
    border-radius: 50px;
    overflow: hidden; /* to respect the border-radius for images */
    background-color: #23414967;
    color: #E0EEF2; /* default text color for all blog content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Image section inside the content */
.news-room-content-image {
    height: 300px; /* Adjust the height to your desired value */
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    margin: auto;
    overflow: hidden;
}

.news-room-content-image img {
    height: 100%; /* Ensure the image fills the container */
    width: 100%; /* Ensure the image fills the container */
    object-fit: contain; /* Maintain the image's aspect ratio */
}

/* Text section inside the content */
.news-room-content-text {
    padding: 0 2rem;
    /* Inherit the color from .content-box */
}

/* Button section inside the content */
.news-room-content-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.news-room-content-button .button {
    background-color: #E0EEF2;
    color: #020202;
    border-radius: 20px;
    padding: 10px 20px;
    width: max-content;
}

.news-room-content-button p {
    width: max-content;
    padding: 10px 20px;
}

/* Headings */
.content-box h1,
.content-box h2,
.content-box h3 {
    font-family: inherit;
    color: #E0EEF2;
    margin-bottom: 1rem;
}

.content-box h1 {
    font-size: 2.5rem;
}

.content-box h2 {
    font-size: 2rem;
}

.content-box h3 {
    font-size: 1.75rem;
}

/* Subtitles or spans */
.content-box span {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #E0EEF2;
    opacity: 0.9;
}

/* Paragraph text */
.content-box p {
    font-size: 1.5vw;
    color: #E0EEF2;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Lists */
.content-box ul,
.content-box ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-box ul li,
.content-box ol li {
    font-size: 1.5vw;
    color: #E0EEF2;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Links */
.content-box a {
    color: #81A4CD;
    text-decoration: underline;
}

.content-box a:hover {
    color: #F5F7DC;
}

/* Horizontal rule */
.content-box hr {
    border: none;
    border-top: 1px solid #C1DBE2;
    margin: 2rem 0;
}

/* Bold/strong text */
.content-box strong,
.content-box b {
    color: #E0EEF2;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .content-box {
        width: 85%;
        padding: 30px;
    }

    .content-box p {
        font-size: 1.8vw;
    }

    .content-box ul li,
    .content-box ol li {
        font-size: 1.8vw;
    }
}

@media screen and (max-width: 768px) {
    .content-box {
        width: 90%;
        padding: 25px;
        border-radius: 30px;
        flex-direction: column;
    }

    .content-box p {
        font-size: 1rem;
    }

    .content-box ul li,
    .content-box ol li {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .content-box {
        width: 95%;
        padding: 20px;
        border-radius: 20px;
    }

    .content-box p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .content-box ul li,
    .content-box ol li {
        font-size: 0.9rem;
    }
}

/* Arabic section adjustments */
.content-box [lang="ar"] {
    direction: rtl;
    text-align: right;
}

/* Ensure list markers also match the text color */
.content-box [lang="ar"] ul,
.content-box [lang="ar"] ol {
    list-style-position: inside;
    padding-right: 1.5rem;
}

.content-box [lang="ar"] ul li,
.content-box [lang="ar"] ol li {
    color: #C1DBE2;
}
