/* style.css */

/* Global Reset and Typography */
:root {
    --primary-color: #004d99; /* Deep Blue - Professional */
    --secondary-color: #ff9900; /* Bright Orange/Gold - Accent/CTA */
    --light-bg: #f7f9fc; /* Very light grey/blue */
    --text-color: #333;
    --border-color: #eee;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
/* تنسيقات الهيدر المثبتة */
.main-header {
    background-color: var(--primary-color); /* Deep Blue */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    
    /* ------------------------------------- */
    /* الخصائص المسؤولة عن تثبيت الهيدر */
    position: fixed; /* تثبيت العنصر نسبةً للنافذة */
    top: 0; /* وضعه في أعلى النافذة */
    width: 100%; /* جعله يمتد على عرض الشاشة بالكامل */
    z-index: 1000; /* ضمان بقائه فوق أي عناصر أخرى عند التمرير */
    /* ------------------------------------- */
}

/* ⚠️ مهم جداً: إضافة حشوة (Padding) للـ Body */
/* بما أن الهيدر أصبح ثابتاً، فإنه لم يعد يشغل حيزاً طبيعياً، لذا يجب دفع محتوى الصفحة */
body {
    /* (تأكد من وجود التنسيقات الأساسية للـ body هنا) */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 70px; /* يجب أن تكون هذه القيمة أكبر قليلاً من ارتفاع شريط التنقل (40px ارتفاع اللوجو + 15px padding فوق + 15px padding تحت = 70px تقريباً) */
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: var(--light-bg);
    padding: 100px 0;
    text-align: center;
    border-bottom: 5px solid var(--secondary-color);
}

.hero-section h2 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 40px;
}

/* Main Content Sections */
.content-section {
    padding: 60px 20px;
}

.info-block {
    margin-bottom: 60px;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 25px;
}

.subsection-title {
    font-size: 1.5em;
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* List Styles */
.icon-list, .bullet-check-list {
    list-style: none;
    padding-left: 0;
}

.icon-list li, .bullet-check-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.icon-list li:last-child, .bullet-check-list li:last-child {
    border-bottom: none;
}

.icon-list .icon {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2em;
}

.bullet-check-list li:before {
    content: "\2713"; /* Checkmark unicode */
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Detailed Test Method Cards */
.score-summary-card {
    background-color: var(--light-bg);
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 30px;
    font-style: italic;
}

.section-card {
    background-color: #fcfcfc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    transition: background-color 0.3s;
}

.section-card:hover {
    background-color: #f0f4f8;
}

.section-card h5 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2em;
}


/* Global Acceptance Grid */
.acceptance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.highlight-card {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.highlight-card h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-top: 0;
}

/* Fees and Dates Layout */
.fees-dates-flex {
    display: flex;
    gap: 40px;
}

.fees-section, .dates-section {
    flex: 1;
}

.fees-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.fees-section th, .fees-section td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.fees-section th {
    background-color: var(--primary-color);
    color: #fff;
}

.fees-section .note {
    font-size: 0.9em;
    color: #999;
    margin-top: 10px;
    display: block;
}

.dates-section ul {
    list-style: disc;
    padding-left: 20px;
}


/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .fees-dates-flex {
        flex-direction: column;
    }
    .hero-section h2 {
        font-size: 2.2em;
    }
}



/* Add to your existing style.css */

.about-hero {
    /* Slightly different background for visual distinction from the main hero */
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--light-bg) 100%);
    padding: 100px 0;
    text-align: left;
    color: #fff;
    border-bottom: none; /* Removing the orange line for this hero */
}

.about-hero .container {
    max-width: 900px;
}

.about-hero h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.about-hero .lead-text {
    color: #eee;
    font-size: 1.1em;
}

.about-section {
    padding: 30px;
    border-left: 5px solid var(--primary-color); /* Using Primary color border here */
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.7;
}







/* تنسيقات الشعار الجديدة (صورة) */
.logo {
    margin: 0;
    /* تحديد عرض أقصى للحاوية لضمان عدم تمدد اللوغو */
    max-width: 150px; 
}

.logo img {
    /* ضبط حجم صورة اللوغو ليتناسب مع شريط التنقل */
    height: 40px; /* يمكن تعديل هذا الارتفاع حسب حجم شعارك */
    width: auto;
    display: block;
}

/* لا تنسى تعديل تنسيق الـ header .container إذا لزم الأمر */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* تنسيقات الفوتر الجديدة */

.main-footer {
    background-color: var(--primary-color); /* الأزرق الداكن */
    color: #fff;
    text-align: center;
    padding: 30px 0; /* زيادة التباعد الرأسي */
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-direction: column; /* ترتيب العناصر عمودياً */
    align-items: center; /* توسيط العناصر أفقياً */
    justify-content: center;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    /* نفس ارتفاع اللوغو في الهيدر أو أكبر قليلاً */
    height: 50px; 
    width: auto;
    /* قد تحتاج إلى إضافة تأثير خفيف إذا كان الشعار داكنًا جداً */
    filter: brightness(1.2); 
    transition: filter 0.3s;
}

.footer-logo img:hover {
    filter: brightness(1.5);
}

.footer-note {
    margin-top: 10px;
    font-size: 0.8em;
    opacity: 0.8;
}












/* Contact Page Specific Styles */

.contact-hero {
    /* يمكنك تخصيص هذا الـ Hero ليتناسب مع صفحة التواصل */
    background: linear-gradient(to bottom, #fff 0%, var(--light-bg) 100%);
    padding: 80px 0;
    text-align: center;
}

.contact-info-block {
    margin-top: 30px;
    padding: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.contact-card .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4em;
}

.contact-link {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 15px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Form Styles */
.contact-form {
    max-width: 700px;
    margin: 0 auto 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .form-group-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: var(--primary-hover);
}