/* ============================================================
   News Page — CSS
   Depends on: style-front.css (CSS variables & base reset)
   ============================================================ */

/* ============================================================
   Top Bar
   ============================================================ */

.top-bar {
    background-color: var(--white-color);
    padding: 0.6rem 0;
    border-bottom: var(--main-border);
}

.top-bar-btn-english {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    font-family: var(--font-family);
    transition: background-color 0.2s, color 0.2s;
}

.top-bar-btn-english:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.top-bar-btn-search {
    background-color: transparent;
    color: #555;
    border: 1px solid #ddd;
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, color 0.2s;
}

.top-bar-btn-search:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name-ar {
    color: var(--dark-blue-color);
}

.logo-name-en {
    color: #888;
    letter-spacing: 0.5px;
}

/* ============================================================
   Main Navigation
   ============================================================ */

.main-navbar {
    background-color: var(--primary-color);
    padding: 0;
    position: relative;
}

.navbar-toggler-custom {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white-color);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
}

.main-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item-custom {
    position: relative;
}

.nav-link-custom {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-family);
    padding: 0.85rem 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link-custom:hover {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Active nav item */
.nav-link-active {
    background-color: var(--white-color) !important;
    color: var(--primary-color) !important;
    border-radius: 4px 4px 0 0;
}

/* ============================================================
   Page Banner
   ============================================================ */



/* ============================================================
   News Section
   ============================================================ */

.news-section {
    background-color: var(--white-color);
    padding: 2rem 0 1.5rem;
}

/* News Card */
.news-card {
    display: flex;
    /* image right, text left in RTL */
    background: var(--white-color);
    border: var(--main-border);
    overflow: hidden;
}

/* Image block — right side in RTL (first child) */
.news-card-image {
    flex-shrink: 0;
    background-color: #c8d8e6;
    overflow: hidden;
    flex: 1;
}

/* Body block — left side in RTL (second child) */
.news-card-body {
    flex: 1;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.4rem;
}

.news-card-date {
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-card-date i {
    color: var(--secondary-color);
}

/* ============================================================
   News Detail Page — Article Section
   ============================================================ */

.article-section {
    background-color: var(--white-color);
    padding: 2.5rem 0 2rem;
    border-bottom: var(--main-border);
}

.article-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-body {
    text-align: justify;
    margin: 0;
}

.article-image-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.article-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* ============================================================
   News Detail Page — Related News Section
   ============================================================ */

.related-news-section {
    background-color: var(--white-color);
    padding: 2rem 0 3rem;
}

.related-news-title {
    color: var(--dark-blue-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Support Details Section */
.donation-box li {
    cursor: pointer;
}

.donation-box li.active {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    padding: 3px 20px;

}

.donation-box li h5 {
    margin-bottom: 0;
}

.donation-box-btn .primary-btn,
.donation-box-btn .cart-btn {
    height: 55px !important;
}

.currency {
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    transform: translate(-50%, -50%);
    color: rgb(27 41 78 / 50%) !important;
}

.arabic-version .currency {
    inset-inline-end: 60px;
}


.donation-repeat li{
    font-size: 18px;
    text-align: justify;
    margin-bottom: 0;
    font-weight: 500;
}

.btn-close-message {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}
.btn-close-message:hover {
    opacity: 1;
}