/* CSS لصفحة رواتب المتقاعدين */

/* قسم العنوان الرئيسي */
.page-hero {
    background-color: #007a5a;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* قسم المحتوى الرئيسي */
.main-content {
    padding: 60px 0;
}

/* البطاقات المعلوماتية */
.info-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.info-card h2 {
    color: #007a5a;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.info-card p {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* جدول مواعيد الرواتب */
.salary-schedule {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.salary-schedule th, 
.salary-schedule td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e1e1e1;
}

.salary-schedule th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.salary-schedule tr:last-child td {
    border-bottom: none;
}

.salary-schedule tr:hover {
    background-color: #f9f9f9;
}

.next-payment {
    background-color: #e8f7f1;
    border-right: 3px solid #007a5a;
    font-weight: 600;
}

/* قسم الخدمات */
.services-section {
    margin-top: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: #007a5a;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.3rem;
}

.service-item p {
    color: #666;
    margin-bottom: 15px;
}

.service-link {
    display: inline-block;
    color: #007a5a;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.service-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    right: 0;
    background-color: #007a5a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-link:hover:after {
    transform: scaleX(1);
}

/* قسم الأسئلة الشائعة */
.faq-section {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-question.active:after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 15px;
    display: none;
    line-height: 1.7;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

/* قسم الاتصال بالمؤسسة */
.contact-section {
    margin-top: 50px;
    background-color: #f5f7fa;
    padding: 40px;
    border-radius: 10px;
}

.contact-section h2 {
    color: #007a5a;
    margin-bottom: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    margin-left: 15px;
    font-size: 1.4rem;
    color: #007a5a;
    width: 25px;
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details p {
    color: #666;
    line-height: 1.5;
}

/* تخطيط الشاشات المختلفة */
@media screen and (max-width: 768px) {
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .salary-schedule th, 
    .salary-schedule td {
        padding: 10px;
    }
    
    .contact-section {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .salary-schedule {
        font-size: 0.9rem;
    }
    
    .salary-schedule th, 
    .salary-schedule td {
        padding: 8px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
