/*
Theme Name: حزب الوحدة الفدرالي
Theme URI: https://federalunityparty.com
Author: Federal Unity Party
Author URI: https://federalunityparty.com
Description: قالب ووردبريس مخصص لموقع حزب الوحدة الفدرالي، صفحة واحدة (One Page) تتضمن: الرئيسية، من نحن، قيمنا ومبادئنا، برامجنا السياسية، واتصل بنا. القالب مُعرّب بالكامل ومُصمم للغة العربية واتجاه RTL.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: federal-unity-party
Tags: one-page, rtl-language-support, custom-menu, custom-logo, translation-ready
*/

/* =========================================================
   إعادة ضبط أساسية
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* =========================================================
   الترويسة (Header)
========================================================= */
header {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.logo img.custom-logo {
    max-height: 48px;
    width: auto;
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* =========================================================
   قسم البطل (Hero)
========================================================= */
.hero {
    background: linear-gradient(rgba(26, 95, 42, 0.9), rgba(45, 138, 62, 0.8)),
                var(--hero-bg-image, url('https://images.unsplash.com/photo-1529101091760-61df528b163f?w=1920')) center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.cta-button {
    background: #f39c12;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* =========================================================
   تنسيقات عامة للأقسام
========================================================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a5f2a;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #1a5f2a;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    background: #2d8a3e;
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.about-image h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* =========================================================
   قسم القيم (Values)
========================================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #2d8a3e;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a5f2a, #f39c12);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 95, 42, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.3rem;
    color: #1a5f2a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.value-card .value-concept {
    font-size: 0.85rem;
    color: #f39c12;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* =========================================================
   قسم البرامج (Programs)
========================================================= */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: scale(1.03);
}

.program-header {
    background: #2d8a3e;
    color: white;
    padding: 20px;
    text-align: center;
}

.program-header h4 {
    font-size: 1.3rem;
}

.program-body {
    padding: 25px;
}

.program-body ul {
    list-style: none;
    padding: 0;
}

.program-body li {
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
}

.program-body li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #2d8a3e;
    font-weight: bold;
}

/* =========================================================
   قسم الاتصال (Contact)
========================================================= */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: #1a5f2a;
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #2d8a3e;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background: #1a5f2a;
}

.form-success {
    background: #e8f5e9;
    border: 1px solid #2d8a3e;
    color: #1a5f2a;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* =========================================================
   التذييل (Footer)
========================================================= */
footer {
    background: #1a5f2a;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

footer h3 {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* =========================================================
   تجاوب الجوال (Responsive)
========================================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}
