/* 
   Misr Al-Fatat - Premium HTML Design
   Theme: Modern Political / National Heritage
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors - Patriotic Luxury */
    --brand-primary: #8B0000;
    /* Deep Red - Passion/Strength */
    --brand-secondary: #0a0a0a;
    /* Charcoal Black - Authority/Monuments */
    --brand-accent: #c6a87c;
    /* Antique Gold - Heritage/Value */
    --brand-accent-light: #e6cfa8;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --text-light: #ffffff;

    /* Backgrounds */
    --bg-surface: #ffffff;
    /* Clean White for content */
    --bg-dark: #0a0a0a;
    /* Black for Header/Footer */
    --bg-subtle: #f9f9f9;

    /* Effects */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 5px 15px rgba(198, 168, 124, 0.2);

    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-surface);
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    border: none !important;
    /* Ensure no strange red bar */
    margin: 0 !important;
    padding: 0 !important;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    border: none !important;
    border-left: none !important;
    /* Visual safety */
    border-right: none !important;
}

/* Scrollbar */

/* Scrollbar Restored */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Hide scrollbar for IE, Edge and Firefox */
html,
body {
    /* IE/Firefox handling removed to allow default scrollbar */
    border-left: none !important;
    /* Visual safety */
    border-right: none !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #600000;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Global Components --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--white);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold) inset;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    background: rgba(0, 59, 31, 0.9);
    /* Transparent Green */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand i {
    color: var(--gold);
    font-size: 2.2rem;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(0, 59, 31, 0.85), rgba(0, 59, 31, 0.7)),
        url('https://images.unsplash.com/photo-1553531596-9f8983949826?q=80&w=2000&auto=format&fit=crop');
    /* Cairo/Egypt imagery */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
}

.hero-text span {
    color: var(--gold);
    display: block;
}

.hero-text p {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Features / Stats --- */
.stats-strip {
    transform: translateY(-50%);
    position: relative;
    z-index: 10;
}

.stats-box {
    background: var(--white);
    box-shadow: var(--shadow-strong);
    padding: 50px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    border-left: 1px solid #eee;
}

.stat:last-child {
    border: none;
}

.stat h3 {
    color: var(--green-dark);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.stat p {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Vision Section --- */
.section-padding {
    padding: 100px 0;
}

.title-center {
    text-align: center;
    margin-bottom: 80px;
}

.sub-title {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.main-title {
    color: var(--green-dark);
    font-size: 3rem;
    font-weight: 800;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.vision-img-frame {
    position: relative;
}

.vision-img-frame img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: var(--shadow-strong);
}

.vision-img-frame::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM22.485 0l.83.828-1.415 1.415-.828-.828-.828.828-1.415-1.415.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 22.485l.828.83-1.415 1.415-.828-.828-.828.828L-2.415 22.485l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828zM0 54.627l.828.83-1.415 1.415-.828-.828-.828.828L-2.415 54.627l.828-.828-.828-.828 1.415-1.415.828.828.828-.828 1.415 1.415-.828.828z' fill='%23c6a87c' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.vision-text p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 8px;
    transition: var(--transition);
}

.check-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateX(-10px);
}

.check-icon {
    width: 40px;
    height: 40px;
    background: var(--green-dark);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Cards (Goals/Program) --- */
.bg-light {
    background: #f9fbfd;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-strong);
    border-bottom-color: var(--gold);
}

.icon-large {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 25px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--green-dark);
}

.feature-card p {
    color: #777;
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background: #050505;
    color: #777;
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand i {
    color: var(--gold);
}

.f-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.f-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.newsletter input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-bottom: 15px;
    border-radius: 4px;
}

.newsletter button {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: var(--green-dark);
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    top: 4px;
    color: var(--gold);
    font-size: 0.9rem;
}

/* --- Initiatives --- */
.bg-dark {
    background: url('https://www.transparenttextures.com/patterns/cubes.png'), linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--white);
}

.initiatives-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.initiative-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.initiative-tag:hover {
    background: var(--gold);
    color: var(--green-dark);
    transform: scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(198, 168, 124, 0.4);
}

/* Header Scrolled State */
.main-header.scrolled {
    background: var(--green-dark);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    /* Add toggle later */
    .hero-text h1 {
        font-size: 3rem;
    }

    .stats-box {
        grid-template-columns: 1fr 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}