/* ═══════════════════════════════════════════════════
   General Opinion (الرأي العام) - Base Styles
   ═══════════════════════════════════════════════════ */

/* Root Variables */
:root {
    --primary-blue: #003366;
    --royal-blue: #0056B3;
    --light-blue: #4A90E2;
    --sky-blue: #87CEEB;
    --navy-blue: #001F3F;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Base Typography */
body {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Headings using Cairo */
h1, h2, h3, h4, h5, h6 {
    font-family: "Cairo", sans-serif;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

/* Paragraphs */
p {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

/* Links */
a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--light-blue);
}

/* ═══════════════════════════════════════════════════
   Top Bar
   ═══════════════════════════════════════════════════ */
.top-bar {
    background-color: var(--primary-blue) !important;
    font-size: 0.85rem;
}

.top-bar a {
    transition: var(--transition);
}

.top-bar a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════ */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
}

.logo a {
    color: var(--primary-blue) !important;
}

.logo a:hover {
    color: var(--royal-blue) !important;
}

.navbar-nav .nav-link {
    font-family: "Cairo", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-gray);
    padding: 0.5rem 0.8rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--royal-blue);
}

.navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--royal-blue);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
}

.dropdown-item {
    font-family: "Cairo", sans-serif;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--royal-blue);
}

/* ═══════════════════════════════════════════════════
   Breaking News Ticker
   ═══════════════════════════════════════════════════ */
.breaking-news {
    background-color: var(--light-gray) !important;
}

.breaking-news .badge {
    font-family: "Cairo", sans-serif;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.ticker-wrap {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 2rem;
    color: white;
}

.hero-overlay h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.hero-small-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 215px;
}

.hero-small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    color: white;
}

.hero-small-overlay h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════
   News Cards
   ═══════════════════════════════════════════════════ */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.2rem;
}

.news-card .card-title {
    font-family: "Cairo", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.news-card .card-title a {
    color: var(--dark-gray);
}

.news-card .card-title a:hover {
    color: var(--royal-blue);
}

.news-card .card-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

.news-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Category Badge */
.category-badge {
    display: inline-block;
    font-family: "Cairo", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: var(--royal-blue);
    color: white;
    margin-bottom: 0.5rem;
}

.category-badge:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* ═══════════════════════════════════════════════════
   Section Headers
   ═══════════════════════════════════════════════════ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--royal-blue);
}

.section-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.section-header .view-all {
    font-family: "Cairo", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════════════════ */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--royal-blue);
    margin-bottom: 1rem;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-number {
    font-family: "Cairo", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--royal-blue);
    min-width: 2.5rem;
}

.trending-item h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--dark-gray);
}

.trending-item h6 a {
    color: var(--dark-gray);
}

.trending-item h6 a:hover {
    color: var(--royal-blue);
}

.trending-item small {
    color: var(--medium-gray);
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════
   Newsletter Section
   ═══════════════════════════════════════════════════ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
    color: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-section h3 {
    color: white;
}

.newsletter-section p {
    color: rgba(255,255,255,0.85);
}

.newsletter-section .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 0.8rem 1.2rem;
}

.newsletter-section .btn {
    border-radius: 0 8px 8px 0;
    padding: 0.8rem 1.5rem;
}

/* ═══════════════════════════════════════════════════
   Article Page
   ═══════════════════════════════════════════════════ */
.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 2;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.article-tags .badge {
    font-family: "Cairo", sans-serif;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.share-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
}

.share-btn-whatsapp { background-color: #25D366; color: white; border: none; }
.share-btn-twitter { background-color: #1DA1F2; color: white; border: none; }
.share-btn-facebook { background-color: #1877F2; color: white; border: none; }
.share-btn-linkedin { background-color: #0A66C2; color: white; border: none; }

.share-buttons .btn:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════
   Category Page
   ═══════════════════════════════════════════════════ */
.category-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.category-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: rgba(255,255,255,0.8);
}

/* Breadcrumb */
.breadcrumb-nav {
    background: var(--light-gray);
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    margin-bottom: 0;
    font-family: "Cairo", sans-serif;
    font-size: 0.9rem;
}

/* Pagination */
.pagination .page-link {
    font-family: "Cairo", sans-serif;
    color: var(--royal-blue);
    border-color: var(--border-color);
    padding: 0.5rem 0.8rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--royal-blue);
    border-color: var(--royal-blue);
}

/* ═══════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════ */
.footer {
    background-color: var(--navy-blue) !important;
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--sky-blue) !important;
}

.footer .social-links a {
    font-size: 1.2rem;
}

.footer .social-links a:hover {
    transform: scale(1.15);
    display: inline-block;
}

/* ═══════════════════════════════════════════════════
   Page Headers (About, Contact, Jobs, Privacy)
   ═══════════════════════════════════════════════════ */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--royal-blue));
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
}

.page-header p {
    color: rgba(255,255,255,0.85);
}

/* Contact Page */
.contact-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 2rem;
    color: var(--royal-blue);
    margin-bottom: 1rem;
}

/* Jobs Page */
.job-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card h4 {
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════ */
.text-blue { color: var(--primary-blue); }
.bg-blue { background-color: var(--primary-blue); }
.text-royal { color: var(--royal-blue); }
.bg-royal { background-color: var(--royal-blue); }
.text-navy { color: var(--navy-blue); }
.bg-navy { background-color: var(--navy-blue); }

.section-padding {
    padding: 3rem 0;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* ═══════════════════════════════════════════════════
   Noto Kufi Arabic Font Classes
   ═══════════════════════════════════════════════════ */
.noto-kufi-arabic { font-family: "Noto Kufi Arabic", sans-serif; }
.noto-kufi-arabic-light { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 300; }
.noto-kufi-arabic-regular { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 400; }
.noto-kufi-arabic-medium { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 500; }
.noto-kufi-arabic-semibold { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 600; }
.noto-kufi-arabic-bold { font-family: "Noto Kufi Arabic", sans-serif; font-weight: 700; }

/* Cairo Font Classes */
.cairo { font-family: "Cairo", sans-serif; }
.cairo-light { font-family: "Cairo", sans-serif; font-weight: 300; }
.cairo-regular { font-family: "Cairo", sans-serif; font-weight: 400; }
.cairo-medium { font-family: "Cairo", sans-serif; font-weight: 500; }
.cairo-semibold { font-family: "Cairo", sans-serif; font-weight: 600; }
.cairo-bold { font-family: "Cairo", sans-serif; font-weight: 700; }
.cairo-extrabold { font-family: "Cairo", sans-serif; font-weight: 800; }

/* ═══════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .hero-card { height: 300px; }
    .hero-overlay h2 { font-size: 1.3rem; }

    .hero-small-card { height: 180px; }

    .section-padding { padding: 2rem 0; }

    .article-header h1 { font-size: 1.6rem; }

    .newsletter-section { padding: 2rem 1rem; }

    .news-card .card-img-top { height: 160px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-card { height: 350px; }
    .hero-small-card { height: 170px; }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}
