/* ================================================================
   Dr. Ahmed Mahran — Unified Frontend Identity & Modern Polish
   Palette: Deep Navy (#0F172A / #1E293B) + Royal Gold (#D97706 / #F59E0B)
   ================================================================ */

:root {
    --brand-navy: #0f172a;
    --brand-navy-light: #1e293b;
    --brand-gold: #d97706;
    --brand-gold-light: #f59e0b;
    --brand-gold-soft: rgba(217, 119, 6, 0.12);
    --surface-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-subtle: #e2e8f0;
}

body {
    background-color: var(--surface-bg) !important;
    color: var(--text-main);
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* ================================================================
   1. Header & Top Bar
   ================================================================ */
.header-top {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 0 !important;
    font-size: 0.85rem !important;
}

.header-top-content {
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 1.25rem !important;
}

.header-top .date {
    color: #cbd5e1 !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-top .social-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.header-top .social-links a {
    color: #cbd5e1 !important;
    margin-left: 0 !important;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.header-top .social-links a:hover {
    background: var(--brand-gold) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.header {
    background: linear-gradient(135deg, #0b1120 0%, #172554 55%, #0f172a 100%) !important;
    padding: 1.25rem 0 !important;
    border-bottom: 3px solid var(--brand-gold);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.18) !important;
}

.main-header {
    max-width: 1320px;
    margin: 0 auto !important;
    padding: 0 1.25rem !important;
    gap: 1.5rem;
}

.logo h1 {
    color: #ffffff !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
}

.logo .subtitle {
    color: #fbbf24 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    opacity: 0.95;
}

/* Search Box in Header */
.search-box form {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.search-box form:focus-within {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--brand-gold-light);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.search-box input {
    background: transparent !important;
    color: #ffffff !important;
    padding: 0.45rem 1rem !important;
    width: 260px !important;
    font-size: 0.88rem;
}

.search-box input::placeholder {
    color: #94a3b8 !important;
}

.search-box input:focus {
    box-shadow: none !important;
    transform: none !important;
}

.search-box button {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 0.45rem 1.25rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

.search-box button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: none !important;
}

/* ================================================================
   2. Main Navigation & Fixed Navigation
   ================================================================ */
.nav {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.nav-content {
    max-width: 1320px;
    margin: 0 auto !important;
}

.nav-list a {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 0.95rem 1.15rem !important;
    min-height: 56px !important;
}

.nav-list a::before {
    background: var(--brand-gold) !important;
    height: 3px !important;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--brand-gold) !important;
    background-color: rgba(217, 119, 6, 0.05) !important;
    border-bottom-color: var(--brand-gold) !important;
    transform: none !important;
}

.fixed-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.fixed-nav .nav-list a.active,
.fixed-nav .nav-list a:hover {
    color: var(--brand-gold) !important;
    background: rgba(217, 119, 6, 0.06) !important;
}

.fixed-nav .nav-list a::after {
    background: var(--brand-gold) !important;
}

.fixed-nav-search button {
    background: var(--brand-gold) !important;
}

.mobile-nav-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 2px solid var(--brand-gold);
}

.mobile-nav-list a.active {
    background-color: rgba(217, 119, 6, 0.1) !important;
    color: var(--brand-gold) !important;
    border-right: 4px solid var(--brand-gold) !important;
    font-weight: 700;
}

/* ================================================================
   3. Breaking News Ticker
   ================================================================ */
.breaking-news-ticker {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.45) !important;
    border-right: 5px solid var(--brand-gold) !important;
    border-radius: 14px !important;
    padding: 0.7rem 1.25rem !important;
    margin: 1.25rem auto !important;
    max-width: 1300px !important;
    min-height: 54px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12) !important;
}

.breaking-news-ticker .urgent-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 0.4rem 1rem !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35) !important;
}

.breaking-news-ticker .news-item {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 8px !important;
}

.breaking-news-ticker .news-item:hover {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
    transform: none !important;
}

.breaking-news-ticker .news-separator {
    background: rgba(217, 119, 6, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(217, 119, 6, 0.4);
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
    box-shadow: none !important;
}

/* ================================================================
   4. Section Titles, Badges & Buttons
   ================================================================ */
.section-title,
.sidebar-title,
.latest-news-title,
.category-title {
    color: var(--brand-navy) !important;
    font-weight: 800 !important;
    position: relative;
}

.category,
.slide-meta .category,
.featured-meta .category,
.news-meta .category,
.article-category-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
}

.more-btn,
.view-all-btn,
.load-more-btn,
.search-submit-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(217, 119, 6, 0.4) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

.more-btn:hover,
.view-all-btn:hover,
.load-more-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ================================================================
   5. Sidebar Cards Polish
   ================================================================ */
.sidebar-section {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    padding: 1.35rem !important;
}

.sidebar-title {
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 1.1rem !important;
    font-size: 1.15rem !important;
}

.sidebar-title::after {
    background: var(--brand-gold) !important;
}

.top-articles .card {
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    overflow: hidden;
}

.top-articles .card:hover {
    background: #ffffff !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-2px);
}

/* ================================================================
   6. Article Detail Page Polish
   ================================================================ */
.article-detail {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06) !important;
    padding: 2rem !important;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.article-breadcrumb a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.article-breadcrumb a:hover {
    color: var(--brand-gold);
}

.article-breadcrumb .sep {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.article-breadcrumb .current {
    color: var(--brand-gold);
    font-weight: 700;
}

.article-title {
    color: #0f172a !important;
    font-size: clamp(1.45rem, 2.5vw, 2.1rem) !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
}

.article-content {
    font-size: 1.08rem !important;
    line-height: 1.95 !important;
    color: #1e293b !important;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.article-tags .tag {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.35rem 0.9rem !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.article-tags .tag:hover {
    background: var(--brand-gold) !important;
    color: #ffffff !important;
    border-color: var(--brand-gold) !important;
}

/* ================================================================
   7. About & Contact Page Harmonization
   ================================================================ */
.about-hero,
.lawyer-profile-card,
.stat-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(217, 119, 6, 0.35) !important;
}

.expertise-card:hover,
.education-card:hover,
.achievement-item:hover,
.contact-item:hover {
    border-color: var(--brand-gold) !important;
}

.expertise-icon,
.contact-item i {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
}

/* ================================================================
   8. Multi-Column Professional Footer
   ================================================================ */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
    color: #cbd5e1;
    border-top: 4px solid var(--brand-gold);
    margin-top: 4rem;
    font-size: 0.92rem;
}

.site-footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 2rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 42px;
    height: 3px;
    background: var(--brand-gold);
    border-radius: 2px;
}

.footer-brand-desc {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.footer-social-list {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-social-list a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.footer-social-list a:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav-links a {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.footer-nav-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-gold);
    font-size: 0.8rem;
}

.footer-nav-links a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-contact-list i {
    color: var(--brand-gold);
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-list a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: var(--brand-gold-light);
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.site-footer-bottom-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer-bottom-links a:hover {
    color: var(--brand-gold-light);
}

@media (max-width: 992px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .site-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================================
   9. Floating Action Buttons (WhatsApp & Back-to-Top)
   ================================================================ */
.floating-actions {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.floating-whatsapp-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
    transition: all 0.25s ease;
}

.floating-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

.floating-top-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    transition: all 0.25s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.floating-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-top-btn:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
}
