:root {
    --blue-light: #3d9ae8;
    --blue-mid: #1a73c7;
    --blue-dark: #0d4a8f;
    --blue-deep: #082f5c;
    --grey-light: #a8b5c4;
    --grey-mid: #6b7d91;
    --grey-dark: #3a4a59;
    --white: #ffffff;
    --off-white: #f4f7fa;
    --shadow: 0 12px 40px rgba(8, 47, 92, 0.12);
    --radius: 14px;
    --nav-height: 76px;
}

* {
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--grey-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Navbar */
.navbar-brand-manara {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--blue-deep) !important;
}

.navbar-brand-manara img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    line-height: 1.25;
}

.brand-text .brand-name {
    font-weight: 800;
    font-size: 1rem;
    display: block;
    color: var(--blue-deep);
}

.brand-text .brand-tag {
    font-size: 0.7rem;
    color: var(--grey-mid);
    font-weight: 500;
}

.navbar-manara {
    background: #ffffff !important;
    padding: 0.65rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(107, 125, 145, 0.15);
    box-shadow: 0 2px 16px rgba(8, 47, 92, 0.06);
}

.navbar-manara.scrolled {
    padding: 0.45rem 0;
    box-shadow: 0 4px 20px rgba(8, 47, 92, 0.1);
}

.navbar-manara .nav-link {
    color: var(--grey-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
}

.navbar-manara .nav-link:hover,
.navbar-manara .nav-link.active {
    background: rgba(26, 115, 199, 0.1);
    color: var(--blue-mid) !important;
}

.navbar-toggler {
    border-color: rgba(26, 115, 199, 0.35);
    padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 199, 0.25);
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-nav-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 154, 232, 0.45);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    overflow: hidden;
}

.hero-slider #heroCarousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slider .carousel-fade .carousel-item.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 47, 92, 0.88) 0%,
        rgba(13, 74, 143, 0.72) 45%,
        rgba(58, 74, 89, 0.65) 100%
    );
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    pointer-events: none;
}

.hero-slide-content a,
.hero-slide-content button {
    pointer-events: auto;
}

.hero-title-sub {
    font-size: 0.72em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.hero-carousel-indicators {
    z-index: 12;
    margin-bottom: 1.5rem;
}

.hero-logo-wrap {
    margin-bottom: 1.25rem;
}

.hero-logo-wrap img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 640px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.25s ease;
}

.hero-meta-item:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(26, 115, 199, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26, 115, 199, 0.5);
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: var(--white);
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    background: transparent;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--blue-dark);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 1;
    backdrop-filter: blur(6px);
    margin: 0 1rem;
    z-index: 12;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-slider .carousel-indicators .active {
    background-color: var(--blue-light);
    transform: scale(1.2);
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-mid), var(--grey-mid));
    margin: 0 auto 2.5rem;
    border-radius: 4px;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--grey-mid);
    max-width: 720px;
    margin: 0 auto 3rem;
    line-height: 1.9;
}

/* About */
.about-section {
    background: var(--off-white);
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.about-card h3 {
    color: var(--blue-dark);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.about-card p {
    line-height: 1.95;
    margin-bottom: 1rem;
    color: var(--grey-dark);
}

.about-highlight {
    border-right: 4px solid var(--blue-mid);
    padding-right: 1rem;
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 1.05rem;
}

.about-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrap:hover img {
    transform: scale(1.04);
}

.about-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(13, 74, 143, 0.4);
}

/* Features strip */
.features-strip {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
    padding: 3rem 0;
}

.feature-item {
    text-align: center;
    color: var(--white);
    padding: 1rem;
}

.feature-item i {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--blue-light);
}

.feature-item h5 {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.88;
    margin: 0;
}

/* Vision cards */
.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow);
    border: 1px solid rgba(107, 125, 145, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-mid), var(--grey-mid));
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(8, 47, 92, 0.16);
}

.value-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(26, 115, 199, 0.1), rgba(107, 125, 145, 0.12));
    transition: transform 0.35s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.08);
}

.value-icon i {
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card.vision .value-icon i { color: var(--blue-mid); -webkit-text-fill-color: var(--blue-mid); }
.value-card.mission .value-icon i { color: var(--blue-dark); -webkit-text-fill-color: var(--blue-dark); }
.value-card.goals .value-icon i { color: var(--grey-mid); -webkit-text-fill-color: var(--grey-mid); }

.value-card h4 {
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--grey-mid);
    line-height: 1.85;
    margin: 0;
    font-size: 0.98rem;
}

/* Contact */
.contact-section {
    background: var(--off-white);
}

.contact-info-box {
    background: linear-gradient(160deg, var(--blue-deep), var(--blue-dark));
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--shadow);
}

.contact-info-box h4 {
    font-weight: 800;
    margin-bottom: 1.75rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-item .icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1.25rem;
}

.contact-info-item h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-info-item a,
.contact-info-item p {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--blue-light);
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow);
}

.contact-form-box h4 {
    font-weight: 800;
    color: var(--blue-deep);
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 199, 0.2);
}

.btn-submit {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 12px;
    width: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 115, 199, 0.4);
}

/* Footer */
.footer-manara {
    background: linear-gradient(135deg, #061e3a 0%, var(--blue-deep) 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 2.5rem 0 1.5rem;
}

.footer-manara .footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.footer-manara a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-manara a:hover {
    color: var(--blue-light);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    background: var(--blue-mid);
    transform: translateY(-3px);
    color: var(--white) !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .brand-text .brand-name {
        font-size: 0.9rem;
    }

    .brand-text .brand-tag {
        display: none;
    }

    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .about-card {
        padding: 1.75rem;
    }

    .hero-logo-wrap img {
        width: 72px;
        height: 72px;
    }

    .hero-meta {
        flex-direction: column;
    }

    .contact-form-box,
    .contact-info-box {
        padding: 1.75rem;
    }

    .value-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand-manara img {
        width: 42px;
        height: 42px;
    }

    .d-flex.gap-3.flex-wrap {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        text-align: center;
    }
}
