:root {
    --gov-blue-dark: #0b2238;
    --gov-blue-light: #18446e;
    --gov-gold: #d4af37;
    --primary-red: #c0392b;
    --bg-light: #f1f5f9;
    --text-dark: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.96);
    --border-color: #cbd5e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* =========================================================
   تأثيرات الفضاء السحيق (نجوم متلألئة + رعد يضرب من السماء)
   ========================================================= */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(2px 2px at 25px 35px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 80px, #d4af37, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 100px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 180px 140px, #6366f1, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 220px 280px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 320px 200px, #d4af37, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 350px 350px;
    opacity: 0.65;
    z-index: 0;
    pointer-events: none;
    animation: starTwinkle 4s infinite alternate;
}

@keyframes starTwinkle {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.02); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    animation: lightningStrike 6s infinite;
}

@keyframes lightningStrike {
    0%, 86%, 90%, 94%, 100% { opacity: 0; background: transparent; }
    88% { opacity: 0.85; background: radial-gradient(circle at 35% 10%, rgba(255, 255, 255, 0.95) 0%, rgba(99, 102, 241, 0.35) 40%, transparent 80%); }
    92% { opacity: 0.95; background: radial-gradient(circle at 75% 5%, rgba(255, 255, 255, 1) 0%, rgba(212, 175, 55, 0.45) 50%, transparent 85%); }
}

/* =========================================================
   قسم الـ Hero (فضاء سحيق وكوكب متوهج متحرك)
   ========================================================= */
.gov-hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #1e3a8a 0%, #0b2238 65%, #020617 100%);
    color: #ffffff;
    padding: 60px 20px 70px;
    text-align: center;
    z-index: 1;
}

.gov-hero-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, #d4af37, #7c3aed, #1e1b4b);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.45);
    animation: planetFloat 8s infinite ease-in-out alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes planetFloat {
    0% { transform: translateY(0px) scale(1) rotate(0deg); }
    100% { transform: translateY(18px) scale(1.06) rotate(5deg); }
}

/* =========================================================
   شبكة تطبيقات منظومة GITI (App Ecosystem Grid)
   ========================================================= */
.app-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ecosystem-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(11, 34, 56, 0.15);
    border-color: var(--gov-gold);
}

.ecosystem-card.highlight-card {
    border: 2px solid #01875f;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.eco-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--gov-blue-dark);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.eco-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.ecosystem-card h3 {
    font-size: 1.1rem;
    color: var(--gov-blue-dark);
    font-weight: 800;
    margin-bottom: 8px;
}

.ecosystem-card p {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

.eco-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eco-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    transition: opacity 0.2s;
}

.eco-btn:hover {
    opacity: 0.9;
}

.btn-gp { background: #01875f; }
.btn-web { background: var(--gov-blue-dark); border: 1px solid var(--gov-gold); color: var(--gov-gold); }
.btn-sec { background: #6366f1; }
.btn-amber { background: #f59e0b; }
.btn-lime { background: #65a30d; }
.btn-pink { background: #db2777; }

.eco-link {
    font-size: 0.76rem;
    color: #64748b;
    text-align: center;
    text-decoration: underline;
}

/* =========================================================
   قسم الأسئلة الشائعة (FAQ Accordion)
   ========================================================= */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    transition: background 0.2s;
}

.faq-item[open] {
    background: #ffffff;
    border-color: var(--gov-gold);
}

.faq-question {
    font-weight: 800;
    color: var(--gov-blue-dark);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
}

.faq-answer {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.7;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
}

/* =========================================================
   الكروت والعناصر الأساسية (مع إجبار لون النص الواضح)
   ========================================================= */
.card {
    background: var(--card-bg) !important;
    color: var(--text-dark) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.card h1, .card h2, .card h3, .card h4, .card p, .card strong, .card span {
    color: var(--text-dark) !important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(11, 34, 56, 0.2);
}

.eagle-emblem-img {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
}

.eagle-emblem-img:hover {
    transform: scale(1.1) rotate(2deg);
}

.legal-disclaimer-bar {
    background: #1e293b;
    color: #cbd5e1;
    padding: 6px 15px;
    font-size: 0.78rem;
    text-align: center;
    border-bottom: 1px solid #334155;
    position: relative;
    z-index: 2;
}

.legal-disclaimer-bar strong {
    color: var(--gov-gold);
}

.top-gov-bar {
    background-color: var(--gov-blue-dark);
    color: #fff;
    padding: 8px 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.top-gov-bar .social-icons a {
    color: #fff;
    margin-left: 12px;
    text-decoration: none;
    transition: color 0.3s;
}

.top-gov-bar .social-icons a:hover {
    color: var(--gov-gold);
}

.contact-top-btn {
    background: var(--gov-gold);
    color: var(--gov-blue-dark);
    padding: 4px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

.news-ticker-container {
    background: #123354;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 2;
}

.ticker-title {
    background: var(--primary-red);
    padding: 6px 15px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
    font-weight: 600;
    color: #e2e8f0;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(100%, 0, 0); }
}

header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: 3px solid var(--gov-gold);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

.gov-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text-box h2 {
    font-size: 1rem;
    color: var(--gov-blue-dark);
    font-weight: 800;
    line-height: 1.2;
}

.brand-text-box p {
    font-size: 0.7rem;
    color: #64748b;
}

.menu-toggle-btn {
    background: var(--gov-blue-dark);
    color: var(--gov-gold);
    border: 2px solid var(--gov-gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.menu-toggle-btn:hover {
    background: var(--gov-gold);
    color: var(--gov-blue-dark);
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #0b2238;
    color: #fff;
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--gov-gold);
}

.sidebar-drawer.open {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    background: #123354;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-header h3 {
    color: var(--gov-gold);
    font-size: 1.1rem;
    font-weight: 900;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.sidebar-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.sidebar-links a:hover, .sidebar-links a.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gov-gold);
    border-right-color: var(--gov-gold);
    transform: translateX(-4px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

.hero-title-badge {
    display: inline-block;
    color: var(--gov-gold);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
}

.hero-title-badge::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--gov-gold);
    margin: 8px auto 0;
}

.gov-actions-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-gov-primary {
    background-color: var(--gov-blue-dark);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid var(--gov-gold);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-gov-primary:hover {
    background-color: var(--gov-gold);
    color: var(--gov-blue-dark);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-gov-secondary {
    background-color: transparent;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.btn-gov-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.stats-section {
    background: #ffffff;
    padding: 30px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gov-blue-dark);
}

.stat-card p {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .blog-grid-layout {
        grid-template-columns: 280px 1fr;
    }
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gov-blue-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gov-gold);
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-btn {
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    color: #475569;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-btn:hover, .cat-btn.active {
    background: var(--gov-blue-dark);
    color: var(--gov-gold);
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.badge-paid { background: rgba(11, 34, 56, 0.1); color: var(--gov-blue-dark); }
.badge-success { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.badge-partial { background: rgba(212, 175, 55, 0.2); color: #854d0e; }

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--gov-blue-dark);
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.submit-btn {
    width: 100%;
    background: var(--gov-blue-dark);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--gov-blue-light);
}

footer {
    background: var(--gov-blue-dark);
    color: #94a3b8;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.85rem;
    border-top: 3px solid var(--gov-gold);
    position: relative;
    z-index: 2;
}

footer a {
    color: var(--gov-gold);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }
    .eagle-emblem-img {
        height: 38px !important;
        max-width: 90px !important;
    }
    .brand-text-box h2 {
        font-size: 0.85rem;
    }
    .brand-text-box p {
        font-size: 0.6rem;
    }
}
