/* إعادة تعيين أساسية */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    background-color: #f7f7f7; /* خلفية خفيفة جداً */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* الألوان المشتركة */
.green-bg { background-color: #1a7d3b; } /* لون GOV.SA الأخضر */
.green-text { color: #1a7d3b; }
.light-green-bg { background-color: #e6f2ee; } /* خلفية البرنامج الفاتحة */
.border-green { border-color: #1a7d3b; }

/* ####### الهيدر ####### */
.gov-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav a {
    text-decoration: none;
    color: #555;
    margin-right: 20px;
    font-size: 14px;
}

.login-btn {
    background-color: #1a7d3b;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

/* ####### محتوى الصفحة الرئيسي ####### */
.main-content-wrapper {
    padding: 30px 0;
}

.breadcrumb {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

/* ####### قسم البرنامج ####### */
.program-section {
    background-color: #e6f2ee; /* لون الخلفية الأخضر الفاتح */
    border-right: 5px solid #1a7d3b; /* شريط جانبي أخضر */
    padding: 30px;
    margin-bottom: 30px;
}

.program-title {
    color: #1a7d3b;
    margin-bottom: 10px;
    font-size: 24px;
}

.program-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.program-details p {
    flex-grow: 1;
    max-width: 60%;
    font-size: 15px;
}

.details-button {
    background-color: #fff;
    color: #1a7d3b;
    border: 1px solid #1a7d3b;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

/* ####### تقسيم الشبكة لأقسام التواصل والشخص ####### */
.contact-and-person-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* عمود التواصل أكبر من عمود الشخص */
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #1a7d3b;
}

/* ####### بطاقة التواصل ####### */
.contact-card h2 {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.contact-item .label {
    font-weight: bold;
    color: #555;
}

.contact-item .value {
    color: #1a7d3b; /* لون أخضر للقيم */
    text-decoration: none;
}

/* ####### بطاقة الموظف ####### */
.person-card {
    text-align: center;
    border-top: 4px solid #999; /* لون مختلف لتمييز البطاقة */
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ddd;
}

.person-details .name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.person-details .title {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.follow-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    width: 100%;
    cursor: pointer;
}

/* ####### قسم التقييم ####### */
.feedback-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
}

.feedback-section h2 {
    font-size: 16px;
    color: #1a7d3b;
    margin-left: 20px;
}

.rating-buttons button {
    padding: 8px 25px;
    margin-right: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    border-radius: 5px;
    color: #555;
}

.rating-buttons .rate-yes {
    background-color: #1a7d3b;
    color: white;
    border-color: #1a7d3b;
}

/* ####### الفوتر ####### */
.gov-footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #555;
}

.gov-footer h4 {
    color: #1a7d3b;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
}

/* الاستجابة والتكيف (Media Queries) */
@media (max-width: 900px) {
    .contact-and-person-grid {
        grid-template-columns: 1fr; /* عمود واحد على الشاشات الصغيرة */
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}







@media (max-width: 576px) {
    .container {width: 100%;
    }
}

@media (max-width: 680px) {
    .container {width: 100%;
    }
}
@media (max-width: 600px) {
    
    /* الهيدر: ترتيب الأزرار والقائمة */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-nav {
        margin-top: 10px;
    }
    .top-nav a {
        margin-right: 10px; /* تقليل المسافة بين الروابط */
    }

    /* قسم البرنامج: جعل المحتوى مرصوصاً عمودياً */
    .program-section {
        padding: 20px;
    }
    .program-details {
        flex-direction: column; /* جعل الوصف والزر عموديين */
        align-items: center;
    }
    .program-details p {
        max-width: 100%; /* جعل الوصف يشغل العرض كاملاً */
        margin-bottom: 15px;
        text-align: justify;
    }
    .details-button {
        width: 100%;
        margin-top: 0;
    }
    
    /* بطاقة التواصل: معالجة القيم الطويلة */
    .contact-item {
        flex-direction: column; /* تحويل التسمية والقيمة إلى عمودين */
        align-items: flex-start;
        padding: 8px 0;
    }
    .contact-item .value {
        font-weight: bold;
        margin-top: 5px;
    }

    /* قسم التقييم: جعله عمودياً */
    .feedback-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .feedback-section h2 {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: right;
    }
    
    /* أزرار التقييم: ترتيبها بشكل أفضل */
    .rating-buttons {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .rating-buttons button {
        flex-grow: 1; /* جعل الأزرار تأخذ مساحة متساوية */
        margin-right: 5px; 
        margin-left: 5px;
        padding: 10px 15px; /* تكبير حجم الأزرار قليلاً للمس الجوال */
    }

    /* الفوتر: عمود واحد في الجوال */
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}