
/* إعدادات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* شريط التنقل */
.main-nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    background-color: #3498db;
    border-bottom-color: white;
    transform: translateY(-2px);
}

/* Header مع خلفية متغيرة */
.hero-header {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.85), rgba(52, 152, 219, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* التعديل الأول: الشعار ينزل قليلاً ليكون أكثر ظهوراً */
.logo-container img {
    max-width: 280px;
    height: auto;
    margin: 40px 0 20px 0;
    /* زدنا الهامش العلوي من 20px إلى 40px */
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-header p {
    color: #ecf0f1;
    font-size: 1.3rem;
    font-weight: bold;
    animation: fadeInUp 1s ease 0.3s both;
}

.star-icon {
    color: #f1c40f;
    margin: 0 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* أقسام الصور */
.gallery-section {
    padding: 50px 20px;
    background-color: white;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
}

.section-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* زدنا الظل ليكون أكثر بروزاً */
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* أضفنا حدود ناعمة */
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    /* زدنا الظل عند الـ Hover */
}

/* التعديل الثاني: الصور تصبح بارزة وبنفس الحجم */
.image-container {
    width: 100%;
    height: 250px;
    /* زدنا الارتفاع من 220px إلى 250px لبروز أكثر */
    overflow: hidden;
    border-bottom: 3px solid #3498db;
    /* أضفنا خط أزرق أسفل الصورة */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* هذه الخاصية تضمن ظهور الصورة بكامل تفاصيلها */
    transition: transform 0.5s ease;
    object-position: center;
    /* تركز على منتصف الصورة دائماً */
}

.gallery-item:hover .image-container img {
    transform: scale(1.1);
}

.gallery-item p {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    /* خلفية فاتحة للنص */
    border-top: 1px solid #eee;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* قسم التعريف */
.about-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #ecf0f1, #d6dbdf);
    margin: 40px 0;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2c3e50);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
}

.about-text p {
    margin-bottom: 20px;
}

.highlight-text {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #2c3e50;
    border-right: 5px solid #3498db;
}

/* قسم التواصل */
.info-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin: 40px 0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.info-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3498db, #1abc9c);
}

.info-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #3498db;
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3498db;
}

.contact-item h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: #bdc3c7;
    line-height: 1.6;
}

/* رقم الهاتف المتحرك */
.phone-animation {
    text-align: center;
    margin-top: 30px;
}

.call-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    animation: phonePulse 2s infinite;
    border: none;
    cursor: pointer;
}

@keyframes phonePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.call-button:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.call-button i {
    font-size: 1.3rem;
}

.phone-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    direction: ltr;
    display: inline-block;
    position: relative;
}

/* قسم المقالات */
.articles-section {
    padding: 50px 20px;
    background-color: white;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1400px;
}

.articles-section h2 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.articles-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2c3e50);
}

.article-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-right: 5px solid #3498db;
    padding: 25px;
    margin: 30px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-box:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.article-date {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date:before {
    content: '📅';
    font-size: 1rem;
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.article-box:hover .article-image {
    transform: scale(1.02);
}

.article-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.read-more:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.read-more:after {
    content: '←';
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 60px 20px 30px;
    margin-top: 60px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3498db, #1abc9c);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: white;
}

.footer .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.footer .contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.footer .contact-item h4 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer .contact-item p {
    color: #bdc3c7;
    margin: 0;
}

.footer-highlight {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-highlight:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.footer-highlight h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.main-phone {
    display: block;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    direction: ltr;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.main-phone:hover {
    color: #3498db;
    transform: scale(1.05);
}

.main-phone:before {
    content: '📞';
    margin-left: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #3498db;
    transform: translateY(-5px) scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 1rem;
}

.copyright p {
    margin: 10px 0;
}

/* الأزرار العائمة */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-phone,
.floating-whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.floating-phone {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.floating-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-phone:hover,
.floating-whatsapp:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-phone:after,
.floating-whatsapp:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0;
    animation: pulseRing 2s infinite;
}

.floating-phone:after {
    border-color: #2ecc71;
}

.floating-whatsapp:after {
    border-color: #25D366;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Navigation */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: #2c3e50;
    transition: right 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    padding-top: 60px;
}

.sidebar-nav.open {
    right: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #34495e;
}

.sidebar-nav a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.sidebar-nav a:hover {
    background: #3498db;
}

.close-menu {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.overlay.active {
    display: block;
}

/* Search Bar */
.search-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1003;
}

.search-toggle {
    background: #2c3e50;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background: #3498db;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-header {
        height: 300px;
    }

    .hero-header h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .hero-header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .logo-container img {
        max-width: 200px;
        margin: 30px 0 15px 0;
        /* تعديل الهوامش للجوال أيضاً */
    }

    /* تعديل الصور للجوال */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .image-container {
        height: 220px;
        /* زيادة الارتفاع في الجوال أيضاً */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .call-button {
        padding: 15px 25px;
        font-size: 1.2rem;
    }

    .footer .contact-info {
        grid-template-columns: 1fr;
    }

    .main-phone {
        font-size: 1.4rem;
    }

    .floating-buttons {
        bottom: 20px;
        left: 20px;
    }

    .floating-phone,
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-header {
        height: 250px;
    }

    .hero-header h1 {
        font-size: 1.6rem;
    }

    .hero-header p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-container {
        height: 200px;
        /* تعديل الارتفاع للشاشات الصغيرة */
    }

    .call-button {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .article-image {
        height: 180px;
    }

    .floating-buttons {
        bottom: 15px;
        left: 15px;
    }

    .floating-phone,
    .floating-whatsapp {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* تحديثات النص وتحسينات إضافية */
.text-highlight {
    color: #e74c3c;
    font-weight: bold;
    animation: colorChange 3s infinite alternate;
}

@keyframes colorChange {
    0% {
        color: #e74c3c;
    }

    100% {
        color: #3498db;
    }
}












/* أنيميشن للخلفية المتغيرة */
@keyframes slideChange {
    0% {
        opacity: 0;
    }

    33% {
        opacity: 0.15;
    }

    66% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
























@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f5f9ff;
    padding-right: 25px;
}

.search-result-item h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.search-result-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.search-result-item .result-type {
    display: inline-block;
    background: #e8f4fc;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.image-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-result-item:hover {
    background-color: #f5f9ff;
}

.image-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: 15px;
    border: 2px solid #eee;
}

.image-result-item .image-info {
    flex: 1;
}

.highlight {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* تجاوبية */
@media (max-width: 768px) {
    #global-search-container {
        top: 15px;
        left: 15px;
    }

    #search-modal {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
    }

    #search-input {
        font-size: 16px;
        /* منع التكبير في iOS */
    }
}

@media (max-width: 480px) {
    #global-search-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    #search-modal {
        top: 70px;
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    .search-result-item h5 {
        font-size: 0.9rem;
    }

    .image-result-item img {
        width: 50px;
        height: 50px;
    }
}
