
:root {
    --aim-blue: #1e3a8a;
    --aim-blue-light: #3b82f6;
    --aim-orange: #f97316;
    --aim-dark: #0f172a;
    --aim-gray: #64748b;
    --aim-light: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --ramadan-gold: #d4af37;
    --ramadan-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--aim-light);
    color: var(--aim-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

nav.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-img {
    height: 90px;
    width: auto;
    background: #ffffffdb;
    border-radius: 10px;
}

.logo-text .logo-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--aim-blue);
    line-height: 1;
}

.logo-text .logo-subtitle {
    font-size: 0.75rem;
    color: var(--aim-orange);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--aim-dark);
    font-weight: 600;
    transition: var(--transition);
}

nav:not(.scrolled) .nav-link {
    color: var(--white);
}

.nav-link:hover {
    color: var(--aim-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

nav.scrolled .lang-switch {
    color: var(--aim-blue);
    border-color: var(--aim-blue);
    background: transparent;
}

.nav-cta {
    background: var(--aim-orange);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
}

nav.scrolled .mobile-toggle {
    color: var(--aim-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--aim-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--aim-orange);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover { background: #ea580c; transform: scale(1.05); }
.btn-secondary:hover { background: white; color: var(--aim-dark); }

/* Generic Section Styles */
section {
    padding: 100px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--aim-blue);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--aim-orange);
    margin: 10px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--aim-gray);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Organizational Structure Tree Design */
.org-tree-wrapper {
    background: var(--white);
    padding: 60px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 40px;
    overflow-x: auto;
}

.tree {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.tree li {
    float: right;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    transition: all 0.5s;
}

.tree li::before, .tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 20px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before, .tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-left: 2px solid #ccc;
    border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

.tree-node {
    border: 2px solid #eee;
    padding: 20px;
    text-decoration: none;
    color: #666;
    display: inline-block;
    border-radius: 15px;
    transition: all 0.5s;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.tree-node.root {
    background: var(--aim-blue);
    color: white;
    border-color: var(--aim-blue);
}

.tree-node h4 {
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.tree-node p {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.node-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    background: #eee;
    display: inline-block;
}

.root .node-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tree li:hover .tree-node {
    background: var(--aim-blue-light);
    color: white;
    border-color: var(--aim-blue-light);
    transform: translateY(-5px);
}

.tree li:hover .tree-node .node-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tree li:hover::before, .tree li:hover::after,
.tree li:hover ul::before, .tree li:hover li::before, .tree li:hover li::after {
    border-color: var(--aim-blue-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--aim-gray);
}

.highlight {
    color: var(--aim-blue);
    font-weight: 800;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--aim-orange);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--aim-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-subtitle {
    color: var(--aim-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--aim-gray);
}

/* Gallery */
.gallery-section {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.gallery-header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: 3rem;
}

.gallery-copy .section-title,
.gallery-copy .section-subtitle {
    text-align: right;
    margin-right: 0;
}

.gallery-copy .section-title::after {
    margin: 10px 0 0 auto;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--aim-blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-highlight {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.gallery-highlight-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--aim-orange), #fb923c);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.gallery-highlight p {
    margin-top: 0.35rem;
    color: var(--aim-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    grid-auto-rows: 220px;
}

.gallery-card {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    background: var(--aim-dark);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    isolation: isolate;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
    transition: var(--transition);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35), 0 18px 40px rgba(15, 23, 42, 0.14);
}

.gallery-card:hover::after {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.84) 100%);
}

.gallery-card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-card-tall {
    grid-row: span 2;
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1.5rem;
    color: var(--white);
}

.gallery-caption span {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 700;
}

.gallery-caption strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.7;
}

.glightbox-clean .gslide-description {
    background: rgba(15, 23, 42, 0.92);
}

.glightbox-clean .gdesc-inner {
    font-family: 'Cairo', sans-serif;
}

/* Contact Cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon.blue { background: var(--aim-blue); }
.contact-icon.orange { background: var(--aim-orange); }
.contact-icon.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

/* Footer */
footer {
    background: var(--aim-dark);
    color: var(--white);
    padding: 80px 20px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-logo-title { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.footer-logo-subtitle { color: var(--aim-orange); margin-bottom: 1rem; }
.footer-title { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links, .footer-contact { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 0.8rem; }
.footer-links button { background: none; border: none; color: #cbd5e1; cursor: pointer; transition: var(--transition); font-size: 1rem; }
.footer-links button:hover { color: var(--aim-orange); padding-right: 5px; }
.footer-contact a { text-decoration: none; color: #cbd5e1; display: flex; align-items: center; gap: 10px; }
.footer-bottom { text-align: center; padding-top: 30px; color: #64748b; font-size: 0.9rem; }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

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

.mobile-menu a {
    text-decoration: none;
    color: var(--aim-dark);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

/* Responsive Settings */
@media (max-width: 991px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; }
    .gallery-header { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Language switch behavior on mobile */
    .lang-switch {
        position: relative;
    }
}

@media (max-width: 600px) {
    .tree-node { min-width: 160px; padding: 10px; }
    .tree-node h4 { font-size: 0.9rem; }
    .tree ul { display: block; }
    .tree li { display: block; width: 100%; float: none; padding-top: 10px; }
    .tree li::before, .tree li::after { display: none; }
    .tree ul ul::before { display: none; }
    .tree-node { margin-bottom: 10px; }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
    .gallery-card,
    .gallery-card-lg,
    .gallery-card-tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 260px;
    }
    .gallery-highlight {
        padding: 1.25rem;
    }
}
/* Ramadan Section Styling */
#ramadan-event {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.event-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.event-badge {
    background: var(--ramadan-gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.event-title { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; }
.event-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.detail-box { background: rgba(255, 255, 255, 0.1); padding: 1.5rem; border-radius: 15px; border-bottom: 3px solid var(--ramadan-gold); }
.detail-box i { color: var(--ramadan-gold); margin-bottom: 0.5rem; }
.btn-register {
    display: inline-block;
    background: var(--ramadan-gold);
    color: #000;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 2rem;
    transition: 0.3s;
}
.btn-register:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4); }

/* Popup Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 15px; cursor: pointer; color: var(--aim-gray); }
.modal-img { width: 100px; margin-bottom: 1rem; }

/*!* Hero, About, Services (Simplified for placeholder) *!*/
/*section { padding: 80px 2rem; max-width: 1200px; margin: 0 auto; }*/
/*.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; background: #f8fafc; }*/
/*.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--aim-blue); }*/

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .event-title { font-size: 1.8rem; }
}
