@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary: #077f98;
    --secondary: #465061;
    --bg: #ffffff;
    --card: #ffffff;
    --text: #1b1f2a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    overflow-x: hidden;
}
.page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    background: inherit;
    padding: 0 16px;
}
.topbar, .footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

a { color: inherit; text-decoration: none; }

.topbar {
    background: var(--card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 32px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 54px; }

.nav { display: flex; gap: 18px; font-weight: 600; align-items: center; }
.nav a:hover { color: var(--primary); }
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--border);
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li {
    margin: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}
.nav-dropdown-menu a:hover {
    background-color: rgba(7, 127, 152, 0.1);
    color: var(--primary);
}

.actions { display: flex; gap: 10px; align-items: center; }

.btn {
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Cairo', 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #056479; }
.btn.ghost { background: transparent; color: var(--secondary); border: 1px solid var(--border); }
.btn.outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }

main { display: flex; flex-direction: column; gap: 32px; }

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 42px 24px;
    position: relative;
    background: radial-gradient(circle at 20% 20%, rgba(7, 127, 152, 0.08), transparent 35%), var(--card);
}
.hero.small { grid-template-columns: 1fr; }
.hero .overlay { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-media { display: flex; align-items: center; justify-content: center; }
.hero-img { max-width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.eyebrow { text-transform: uppercase; color: var(--primary); font-weight: 700; letter-spacing: 0.4px; }
h1, h2, h3 { margin: 8px 0; color: var(--secondary); }
.lead { color: var(--muted); line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 16px; }
.hero-stats strong { display: block; font-size: 1.4rem; color: var(--secondary); }
.hero-stats span { color: var(--muted); }

.section { padding: 16px 32px 48px; }
.section.muted { background: #f8f9fb; }
.section-head { max-width: 900px; margin-bottom: 24px; }

.cards { display: grid; gap: 18px; }
.cards.two-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards.three-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.four-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.card.highlight { border-color: rgba(7, 127, 152, 0.3); }
.card.subtle { background: #fff; }
.card-header { display: flex; gap: 10px; align-items: center; }
.icon-circle {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(7, 127, 152, 0.1); color: var(--primary);
}
.cards.three-cols .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }
.list { padding: 0 18px; color: var(--muted); line-height: 1.7; }

/* Photo Gallery */
.photo-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.photo-group-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.photo-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.photo-group-card h3 {
    margin: 0 0 16px 0;
    color: var(--secondary);
    font-size: 1.3rem;
    text-align: center;
}
.photo-group-preview {
    margin-bottom: 16px;
    min-height: 150px;
    max-height: 200px;
    position: relative;
}
.photo-preview-single {
    position: relative;
    width: 100%;
    max-height: 200px;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}
.photo-preview-single img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.photo-group-card:hover .photo-preview-single img {
    transform: scale(1.05);
}
.photo-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}
.photo-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.photo-preview-item img[src=""],
.photo-preview-item img:not([src]) {
    opacity: 0.5;
}
.photo-preview-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 8px;
}
.photo-group-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--muted);
    text-align: center;
}
.photo-preview-more {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    align-items: center;
    justify-content: center;
}
.photo-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.photo-modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease;
}
.photo-modal-close:hover {
    background: #fff;
}
.photo-modal-header {
    margin-bottom: 20px;
    text-align: center;
}
.photo-modal-header h2 {
    margin: 0;
    color: var(--secondary);
}
.photo-modal-gallery {
    flex: 1;
    overflow: auto;
    position: relative;
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.modal-photo-item {
    display: none;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
}
.modal-photo-item.active {
    display: flex;
}
.modal-photo-item img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
}
.photo-modal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.photo-nav-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.photo-nav-btn:hover {
    background: #056479;
}
.photo-counter {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
}
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.photo-item:hover img {
    transform: scale(1.05);
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    border: 1px solid var(--border);
    padding: 10px;
    text-align: start;
}
.data-table th { background: #f5f7fb; color: var(--secondary); }

.placeholder {
    padding: 16px;
    border: 1px dashed var(--border);
    color: var(--muted);
    text-align: center;
    border-radius: 12px;
}

.footer {
    background: var(--secondary);
    color: #fff;
    margin-top: 64px;
}
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding: 48px 32px;
}
.footer-section h3 {
    color: #fff;
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}
.footer-section h4 {
    color: #fff;
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-brand {
    max-width: 320px;
}
.footer-logo {
    height: 60px;
    margin-bottom: 16px;
    display: block;
}
.footer-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 8px 0 12px 0;
    font-size: 0.95rem;
}
.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: #fff;
    padding-right: 4px;
}
.footer-contact .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-contact .contact-info li {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-contact .contact-info .contact-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
    width: 20px;
    height: 20px;
}
.footer-contact .contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact .contact-info a:hover {
    color: #fff;
}
.footer-contact .contact-info span {
    color: rgba(255, 255, 255, 0.85);
}
.footer-contact .social-media h4 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}
.footer-contact .social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-contact .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.footer-contact .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}
.footer-contact .social-link svg {
    width: 20px;
    height: 20px;
}
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}
.footer-bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}
.footer-bottom small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}
.footer a { color: rgba(255, 255, 255, 0.9); }

/* Contact */
.form { display: grid; gap: 12px; font-family: 'Cairo', 'Poppins', sans-serif; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--secondary); font-family: 'Cairo', 'Poppins', sans-serif; }
.form input, .form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    font-size: 1rem;
}
.form input::placeholder, .form textarea::placeholder {
    font-family: 'Cairo', 'Poppins', sans-serif;
}
.alert.success {
    background: rgba(7, 127, 152, 0.08);
    border: 1px solid rgba(7, 127, 152, 0.25);
    padding: 10px 12px;
    border-radius: 10px;
}
.error { color: #c53030; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; color: var(--muted); }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-icon { flex-shrink: 0; color: var(--primary); width: 20px; height: 20px; }
.contact-list a { color: var(--primary); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--muted); }
.social-media h4 { margin-bottom: 12px; color: var(--secondary); }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--primary); text-decoration: none; transition: all 0.3s ease; border: 2px solid var(--border); }
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(7, 127, 152, 0.3); }
.social-link svg { width: 20px; height: 20px; }
.note { color: var(--muted); margin-top: 8px; }
.map-container { width: 100%; }
.map-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nav { flex-wrap: wrap; }
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .nav-dropdown-menu a {
        padding: 8px 0;
    }
    .actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .hero { padding: 42px 22px; }
    .section { padding: 16px 22px 36px; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 22px;
    }
    .footer-brand {
        max-width: 100%;
    }
    .footer-bottom-inner {
        padding: 0 22px;
    }
    .photo-groups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .photo-modal-content {
        width: 95%;
        padding: 15px;
    }
    .photo-modal-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    .photo-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .cards.three-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards.four-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cards.three-cols { grid-template-columns: 1fr; }
    .cards.four-cols { grid-template-columns: 1fr; }
}

