/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 150px; /* يمكنك تعديل ارتفاع الشعار من هنا */
}

.language-selector {
    display: flex;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    margin-top: 5px;
    overflow: hidden;
}

.lang-option {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.lang-option:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    display: block;
}

.globe-icon {
    font-size: 16px;
}

.arrow-down {
    font-size: 10px;
}

#google_translate_element {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }

.tagline {
    font-size: 1.2em;
    opacity: 0.95;
    margin-top: 10px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2563eb;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.search-section {
    padding: 40px 30px;
    background: linear-gradient(to bottom, #f8fafc, white);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: 18px 25px;
    font-size: 18px;
    border: 3px solid #2563eb;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.search-box:focus {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #2563eb;
    background: white;
    color: #2563eb;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.posts-section {
    padding: 40px 30px;
}

.section-title {
    text-align: center;
    color: #1e40af;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
    border-color: #2563eb;
}

.post-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.3em;
    color: #1e293b;
    margin: 10px 0;
    font-weight: bold;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-top: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    direction: rtl;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ef4444;
}

.modal-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2em;
    color: #1e40af;
    margin-bottom: 20px;
    font-weight: bold;
}

.modal-body {
    line-height: 1.8;
    color: #334155;
    font-size: 1.1em;
}

.modal-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-body a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.modal-body a:hover {
    text-decoration: underline;
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border-radius: 10px;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding: 60px 30px;
    color: white;
    text-align: center;
}

.contact-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.services-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    opacity: 0.95;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

.service-item {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.service-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.service-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.95em;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.whatsapp-btn { background: #25D366; color: white; }
.telegram-btn { background: #0088cc; color: white; }
.email-btn { background: #ea4335; color: white; }

footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 30px;
}

html { scroll-behavior: smooth; }

@media (max-width: 768px) {
    .logo { font-size: 1.8em; }
    .posts-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px; }
    .contact-title { font-size: 1.8em; }
}
