/*
* الديوان اليمني
* Main Stylesheet
* https://aldiwan.com
*/

:root {
    /* الألوان الأساسية */
    --primary-dark: #1f1d42;
    --primary: #2e2857;
    --primary-light: #3e3974;
    --secondary: #ee363d;
    --secondary-light: #ff464d;
    --light: #f9f9fc;
    --grey: #8a8aaa;
    --text: #26264c;
    --white: #ffffff;
    
    /* ظلال */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* انتقالات */
    --transition: all 0.3s ease;
    
    /* دوائر */
    --border-radius-sm: 5px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;
}

/* ======== الإعدادات العامة ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: #fff;
    overflow-x: hidden;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

input, select, textarea, button {
    font-family: 'Cairo', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: none;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
}

/* ======== الأزرار ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.btn i {
    margin-left: 8px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    color: #fff;
    border-color: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background-color: var(--light);
    color: var(--primary);
    border-color: var(--light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ======== النماذج ======== */
.form-control {
    height: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text);
    background-color: #fff;
    border: 1px solid #e9e9ef;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    color: var(--text);
    background-color: #fff;
    border-color: var(--primary-light);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(46, 40,87, 0.25);
}

.form-control::placeholder {
    color: var(--grey);
    opacity: 0.7;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}

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

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

/* ======== الهيدر ======== */
.main-header {
    position: relative;
    z-index: 100;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background-color: var(--primary);
    color: #fff;
}

.header-contact-info a {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 15px;
    font-size: 14px;
}

.header-contact-info a:hover {
    color: #fff;
}

.header-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--border-radius-circle);
    margin-left: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.header-social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.header-logo img {
    max-height: 70px;
}

.main-nav {
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin: 0 12px;
}

.main-menu > li > a {
    display: block;
    padding: 25px 0;
    font-weight: 600;
    color: var(--text);
    position: relative;
}

.main-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary);
    bottom: 15px;
    left: 0;
    transition: var(--transition);
}

.main-menu > li:hover > a::after,
.main-menu > li.active > a::after {
    width: 100%;
}

.main-menu > li:hover > a,
.main-menu > li.active > a {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 220px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 9999;
}

.dropdown-menu > li > a {
    display: block;
    padding: 8px 25px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}

.dropdown-menu > li > a:hover {
    color: var(--secondary);
    background-color: var(--light);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-action-link {
    font-size: 18px;
    color: var(--text);
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
}

.header-action-link:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    position: relative;
    width: 28px;
    height: 20px;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    left: 0;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 2;
    padding: 30px;
    overflow-y: auto;
    transition: all 0.4s ease;
}

.mobile-menu-wrapper.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--primary);
}

.mobile-menu {
    margin-top: 30px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li a {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

.mobile-menu li a:hover {
    color: var(--secondary);
}

.mobile-dropdown {
    display: none;
    padding-right: 15px;
    margin-top: 10px;
}

.mobile-dropdown li {
    margin-bottom: 8px;
}

.mobile-dropdown li a {
    font-weight: 500;
    font-size: 15px;
}

.mobile-menu li.has-dropdown.active .mobile-dropdown {
    display: block;
}

.mobile-contact-info {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-info-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.contact-info-list li i {
    margin-left: 10px;
    color: var(--primary);
    font-size: 18px;
}

.mobile-social-links {
    display: flex;
    margin-top: 20px;
}

.mobile-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: var(--border-radius-circle);
    margin-left: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.mobile-social-links a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ======== الفوتر ======== */
.main-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.footer-logo img {
    max-height: 60px;
}

.footer-desc {
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: var(--border-radius-circle);
    margin-left: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-right: 15px;
}

.footer-links li a::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
}

.footer-links li a:hover {
    color: #fff;
    padding-right: 20px;
}

.footer-contact-info li {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact-info li i {
    color: var(--secondary);
    font-size: 18px;
    margin-left: 10px;
    margin-top: 5px;
}

.footer-contact-info li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info li a:hover {
    color: #fff;
}

.footer-newsletter h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 20px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ======== عناصر ثابتة ======== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: #fff;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 99;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: #128C7E;
    color: #fff;
}

/* ======== الصفحة الرئيسية ======== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background-color: var(--light);
}

.hero-shape {
    position: absolute;
    z-index: 1;
}

.hero-shape-1 {
    top: 0;
    right: -250px;
    width: 600px;
    height: 600px;
    background-color: rgba(238, 54, 61, 0.03);
    border-radius: 50%;
}

.hero-shape-2 {
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background-color: rgba(46, 40, 87, 0.03);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(238, 54, 61, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge i {
    margin-left: 8px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-title span {
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

.hero-title span::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 100%;
    height: 8px;
    background-color: rgba(238, 54, 61, 0.2);
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--grey);
}

.hero-btns {
    display: flex;
    margin-bottom: 30px;
}

.hero-btns .btn {
    margin-left: 15px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    margin-left: 25px;
    margin-bottom: 10px;
}

.hero-feature i {
    color: var(--secondary);
    margin-left: 8px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-card {
    position: absolute;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.hero-card-1 {
    top: 20%;
    right: -30px;
    max-width: 250px;
}

.hero-card-2 {
    bottom: 20%;
    left: -30px;
    max-width: 250px;
}

.hero-card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-left: 15px;
}

.hero-card-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.hero-card-content p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--grey);
}

/* ======== أقسام الصفحات ======== */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 70px 0;
}

.section-lg {
    padding: 130px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(238, 54, 61, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--grey);
}

/* ======== قسم الخدمات ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    display: block;
    color: var(--text);
}

.service-card-inner {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--secondary);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover .service-card-inner {
    transform: translateY(-10px);
}

.service-card:hover .service-card-inner::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 30px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: #fff;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover .service-title {
    color: var(--secondary);
}

.service-description {
    color: var(--grey);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.service-link i {
    margin-right: 8px;
    transition: var(--transition);
}

.service-card:hover .service-link {
    color: var(--secondary);
}

.service-card:hover .service-link i {
    transform: translateX(-5px);
}

/* ======== الخدمات الخاصة ======== */
.special-services {
    background-color: var(--light);
}

.special-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.special-service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.special-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.special-service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.special-service-card:hover .special-service-icon {
    background-color: var(--primary);
    color: #fff;
}

.special-service-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
}

.special-service-card p {
    color: var(--grey);
    margin-bottom: 0;
}

/* ======== الإحصائيات ======== */
.stats-section {
    background-color: var(--primary-dark);
}

.stats-section .section-subtitle {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.stats-section .section-title {
    color: #26264c;
}

.stats-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ======== قسم المزايا ======== */
.features {
    background-color: var(--light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.feature-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(238, 54, 61, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.feature-description {
    color: var(--grey);
    margin-bottom: 30px;
}

.feature-list {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    margin-left: 15px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--grey);
    margin-bottom: 0;
}

.feature-img-wrap {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.feature-image {
    position: relative;
}

.feature-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.feature-badge-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-left: 15px;
}

.feature-badge-text h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-badge-text p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--grey);
}

/* ======== قسم الأخبار ======== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--secondary);
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-top-left-radius: var(--border-radius);
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--grey);
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.news-link i {
    margin-right: 8px;
    transition: var(--transition);
}

.news-card:hover .news-link {
    color: var(--secondary);
}

.news-card:hover .news-link i {
    transform: translateX(-5px);
}

.text-center {
    text-align: center;
}

/* ======== قسم الدعوة للعمل ======== */
.cta {
    background-color: var(--primary);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png') repeat;
    opacity: 0.05;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 60px;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.cta-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
}

.cta-form h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-form p {
    color: var(--grey);
    margin-bottom: 20px;
}

/* ======== تأثيرات متحركة ======== */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ======== استجابة الموبايل ======== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-title,
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .main-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-grid,
    .feature-grid,
    .cta-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content,
    .feature-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-title,
    .section-title {
        font-size: 2rem;
    }
    
    .cta-container {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .hero-feature {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-container {
        padding: 30px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title,
    .feature-title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-card {
        display: none;
    }
    
    .feature-badge {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        padding: 20px;
    }
}

/* حل مشكلة القوائم المنسدلة */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* إضافة الأسلوب الهجين للقوائم المنسدلة */
@media (min-width: 992px) {
    /* الحفاظ على سلوك hover الحالي */
    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* إضافة سلوك النقر للأجهزة التي تدعم اللمس */
    .has-dropdown .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
/* تصحيح القوائم المنسدلة */
@media (min-width: 992px) {
    .main-menu .has-dropdown {
        position: relative;
    }
    
    .main-menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 220px;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        padding: 10px 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .main-menu .has-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    /* تأثير الانتقال للقائمة المنسدلة */
    .main-menu .has-dropdown:hover .dropdown-menu {
        animation: fadeInUp 0.3s ease;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* رسائل التنبيه */
#subscription-message {
    margin-top: 1rem;
    border-radius: 5px;
    animation: slideIn 0.3s ease-out;
}

#subscription-message.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

#subscription-message.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* حركة ظهور الرسالة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيق النموذج أثناء الإرسال */
#subscription-form[disabled] {
    opacity: 0.7;
}

#subscription-form button[disabled] {
    cursor: not-allowed;
    opacity: 0.8;
}

/* أيقونة التحميل */
.fa-spinner {
    margin-left: 5px;
}

/* تنسيقات صفحة إلغاء الاشتراك */
.unsubscribe-page .card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.unsubscribe-page .card-body {
    padding: 2.5rem;
}

.unsubscribe-page .form-control,
.unsubscribe-page .form-control:focus {
    border-color: #e0e0e0;
    box-shadow: none;
}

.unsubscribe-page .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 0.5rem 1.5rem;
}

.unsubscribe-page .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .cta-form {
        margin-top: 2rem;
    }
    
    #subscription-form .form-group {
        margin-bottom: 0.75rem;
    }
    
    .unsubscribe-page .card-body {
        padding: 1.5rem;
    }
}
