:root {
    --salam-green: #073d2d;
    --salam-green-dark: #011f18;
    --salam-green-deep: #00140f;
    --salam-gold: #c9a646;
    --salam-gold-light: #e2c66c;
    --salam-cream: #f8f5ec;
    --salam-white: #ffffff;
    --salam-charcoal: #252525;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--salam-charcoal);
    background-color: var(--salam-white);
    margin: 0;
}

h1, h2, h3, h4, h5, h6,
.salam-brand {
    font-family: 'Cinzel', serif;
}

/* Top Bar */
.top-bar {
    background: var(--salam-green-deep);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    padding: 8px 0;
}

/* Navbar */
.salam-navbar {
    background: linear-gradient(90deg, var(--salam-green-dark), var(--salam-green));
    padding: 5px 0;
    border-bottom: 1px solid rgba(201,166,70,.25);
    position: sticky;
    top: 0;
    z-index: 999;
}

.salam-navbar .container-fluid {
    padding-left: 42px;
    padding-right: 42px;
}

.site-logo {
    height: 62px;
    width: auto;
    display: block;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 8px;
    margin-left: 3px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--salam-gold);
}

.nav-help-btn {
    background: var(--salam-gold);
    color: var(--salam-green-dark);
    border-radius: 3px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--salam-gold);
}

.nav-help-btn:hover {
    background: var(--salam-gold-light);
    color: var(--salam-green-dark);
}

.salam-brand-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-divider {
    width: 1px;
    height: 42px;
    background: rgba(201,166,70,.5);
    margin: 0 14px;
}

.brand-text {
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;
    max-width: 180px;
}

/* Hero */
.hero-section {
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(1,31,24,.72), rgba(1,31,24,.82)),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--salam-white);
}

.hero-title {
    font-size: 54px;
    line-height: 1.05;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-kicker {
    color: var(--salam-gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-text {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
    margin-bottom: 30px;
}

/* Buttons */
.btn-gold {
    background: var(--salam-gold);
    color: var(--salam-green-dark);
    padding: 13px 26px;
    border-radius: 0;
    font-weight: 700;
    border: 1px solid var(--salam-gold);
}

.btn-gold:hover {
    background: var(--salam-gold-light);
    color: var(--salam-green-dark);
}

.btn-outline-premium {
    color: var(--salam-white);
    border: 1px solid rgba(255,255,255,.75);
    padding: 13px 26px;
    border-radius: 0;
    font-weight: 700;
}

.btn-outline-premium:hover {
    background: var(--salam-white);
    color: var(--salam-green-dark);
}

/* Standard Homepage Sections */
.home-slide {
    padding: 35px 0 !important;
    overflow: hidden;
}

/* Section Headings */
.section-heading {
    max-width: 760px;
    margin: 0 auto 32px;
}

.section-kicker {
    color: var(--salam-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: var(--salam-green-dark);
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 75px;
    height: 3px;
    background: var(--salam-gold);
    margin: 18px auto 0;
}

.section-heading p {
    font-size: 15.5px;
    line-height: 1.65;
    color: #555;
}

/* Why SALAM */
.why-salam-section {
    background: var(--salam-cream);
}

.why-card {
    background: #ffffff;
    padding: 28px 24px;
    min-height: 245px;
    border: 1px solid rgba(7,61,45,.08);
    border-top: 4px solid transparent;
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
    transition: all .3s ease;
    height: 100%;
}

.why-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--salam-gold);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--salam-green-dark);
    color: var(--salam-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 30px;
}

.why-card h4 {
    color: var(--salam-green-dark);
    font-size: 19px;
    margin-bottom: 12px;
}

.why-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* About SALAM */
.about-salam-section {
    background: #ffffff;
}

.about-image-wrap {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-title,
.mediation-title {
    color: var(--salam-green-dark);
    font-size: 34px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text,
.mediation-text {
    font-size: 15.5px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

/* ================================
   MEDIATION PAGE
================================ */

.mediation-info-section {
    padding: 45px 0;
    background: #ffffff;
}

.mediation-image-wrap {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.mediation-image {
    width: 100%;
    height: auto;
    display: block;
}

.mediation-info-section .section-kicker {
    margin-top: 10px;
}

.about-points {
    border-left: 4px solid var(--salam-gold);
    padding-left: 20px;
    margin-bottom: 14px;
}

.about-points strong {
    display: block;
    color: var(--salam-green-dark);
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin-bottom: 5px;
}

.about-points p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14.5px;
}

/* Services */
.services-section {
    background: var(--salam-cream);
}

.service-card {
    background: #ffffff;
    padding: 28px 24px;
    text-align: center;
    height: 100%;
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
    border-top: 4px solid transparent;
    transition: all .3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--salam-gold);
}

.service-card i {
    font-size: 38px;
    color: var(--salam-gold);
    margin-bottom: 18px;
}

.service-card h4 {
    color: var(--salam-green-dark);
    font-size: 21px;
    margin-bottom: 12px;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 14px;
}

/* Partners & Impact */
.partners-impact-section {
    background: #ffffff;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.impact-box {
    background: var(--salam-cream);
    text-align: center;
    padding: 28px 20px;
    border-top: 4px solid var(--salam-gold);
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
}

.impact-box h3 {
    color: var(--salam-green-dark);
    font-size: 38px;
    margin-bottom: 8px;
}

.impact-box p {
    margin: 0;
    color: #555;
    font-weight: 600;
}

.partner-marquee {
    overflow: hidden;
    background: var(--salam-green-dark);
    padding: 18px 0;
}

.partner-track {
    display: flex;
    gap: 45px;
    width: max-content;
    animation: scrollPartners 25s linear infinite;
}

.partner-track span {
    color: var(--salam-gold);
    font-family: 'Cinzel', serif;
    font-size: 17px;
    white-space: nowrap;
}

@keyframes scrollPartners {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Premium Scroll Animation */
.home-slide .container {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s ease;
}

.home-slide.slide-visible .container {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================
   ENTERPRISE FOOTER
===================================== */

.salam-footer {
    background: linear-gradient(
        135deg,
        #001a14 0%,
        #01241c 100%
    );
    color: rgba(255,255,255,.85);
    padding-top: 70px;
    margin-top: 0;
}

.footer-top {
    padding-bottom: 40px;
}

.footer-brand {
    color: var(--salam-gold);
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-tagline {
    color: rgba(255,255,255,.65);
    font-style: italic;
    margin-bottom: 20px;
}

.footer-text {
    line-height: 1.9;
    color: rgba(255,255,255,.85);
    max-width: 420px;
}

.footer-heading {
    color: var(--salam-gold);
    margin-bottom: 22px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: .3s;
}

.footer-links a:hover {
    color: var(--salam-gold);
    padding-left: 6px;
}

.footer-contact {
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-text,
.footer-links a,
.footer-contact {
    font-size: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:first-child {
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-bottom p:last-child {
    color: rgba(255,255,255,.55);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .site-logo {
        height: 56px;
    }

    .hero-section {
        min-height: 560px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-heading h2,
    .about-title,
    .mediation-title {
        font-size: 30px;
    }

    .about-image-wrap {
        height: auto;
    }

    .about-image {
        height: auto;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-buttons .ms-2 {
        margin-left: 0 !important;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

}

/* ================================
   ABOUT PAGE HERO
================================ */

.about-page-hero {
    background: var(--salam-cream);
    padding: 45px 0;
}

.about-page-hero .section-heading {
    margin-bottom: 0;
}

/* ================================
   ABOUT - OUR STORY
================================ */

.about-story-section {
    padding: 90px 0;
    background: #ffffff;
}

.about-section-title {
    color: var(--salam-green-dark);
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.about-section-text {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-story-box {
    background: var(--salam-green-dark);
    padding: 70px 60px;
    min-height: 360px;
    color: var(--salam-white);
    border-left: 5px solid var(--salam-gold);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-story-box h3 {
    color: var(--salam-gold);
    margin-bottom: 18px;
    font-size: 30px;
}

.about-story-box p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.9);
}

@media (max-width: 768px) {

    .about-story-section {
        padding: 60px 0;
    }

    .about-section-title {
        font-size: 30px;
    }

    .about-story-box {
        padding: 35px;
    }

}

/* ================================
   MISSION, VISION & VALUES
================================ */

.mission-values-section {
    padding: 85px 0;
    background: var(--salam-cream);
}

.mission-card,
.vision-card {
    background: #ffffff;
    padding: 45px;
    height: 100%;
    border-top: 4px solid var(--salam-gold);
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--salam-green-dark);
    color: var(--salam-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.mission-card h3,
.vision-card h3 {
    color: var(--salam-green-dark);
    font-size: 28px;
    margin-bottom: 18px;
}

.mission-card p,
.vision-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ================================
   CORE VALUES
================================ */

.values-row {
    margin-top: 35px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.value-pill {
    background: #ffffff;
    color: var(--salam-green-dark);
    border: 1px solid rgba(7,61,45,.10);
    border-left: 4px solid var(--salam-gold);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0,0,0,.04);
    transition: all .3s ease;
}

.value-pill:hover {
    transform: translateY(-3px);
    border-left-color: var(--salam-green);
}

@media (max-width: 768px) {

    .values-row {
        justify-content: flex-start;
    }

}

/* ================================
   LEADERSHIP & GOVERNANCE
================================ */

.leadership-section {
    padding-top: 35px;
}

.leadership-section .about-section-title {
    font-size: 34px;
    margin-bottom: 16px;
}

.governance-card {
    background: #ffffff;
    padding: 28px 24px;
    height: 100%;
    border-top: 4px solid var(--salam-gold);
    box-shadow: 0 12px 28px rgba(0,0,0,.05);
}

.governance-card h4 {
    color: var(--salam-green-dark);
    font-size: 20px;
    margin-bottom: 12px;
}

.governance-card p {
    color: #555;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ================================
   ABOUT CTA
================================ */

.about-cta-section {
    background: #ffffff;
    padding: 55px 0;
}

.about-cta-box {
    background: linear-gradient(
        135deg,
        var(--salam-green-dark),
        var(--salam-green)
    );
    padding: 55px 40px;
    color: var(--salam-white);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

.about-cta-box h2 {
    color: var(--salam-white);
    font-size: 34px;
    margin-bottom: 16px;
}

.about-cta-box p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: rgba(255,255,255,.88);
    line-height: 1.7;
}

.about-cta-box .section-kicker {
    color: var(--salam-gold-light);
}

.about-cta-buttons .btn {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .about-cta-box {
        padding: 40px 25px;
    }

    .about-cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 12px 0 !important;
    }
}

/* =================================
   SERVICES PAGE
================================= */

.services-page-section {
    padding: 85px 0;
    background: #ffffff;
}

.service-detail-card {
    background: #ffffff;
    padding: 35px;
    height: 100%;
    border-top: 4px solid var(--salam-gold);
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--salam-green-dark);
    color: var(--salam-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.service-detail-card h3 {
    color: var(--salam-green-dark);
    font-size: 28px;
    margin-bottom: 16px;
}

.service-detail-card p {
    color: #555;
    line-height: 1.8;
}

.service-detail-card ul {
    margin: 20px 0 0;
    padding-left: 18px;
}

.service-detail-card li {
    margin-bottom: 10px;
    color: #555;
}

/* =================================
   GALLERY PAGE
================================= */

.gallery-section {
    padding: 85px 0;
    background: #ffffff;
}

.gallery-card {
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0,0,0,.06);
    overflow: hidden;
    height: 100%;
    border-bottom: 4px solid var(--salam-gold);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 24px;
}

.gallery-caption h4 {
    color: var(--salam-green-dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.gallery-caption p {
    color: #555;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ================================
   CONTACT PAGE
================================ */

.contact-form-wrapper {
    background: #ffffff;
    padding: 45px;
    box-shadow: 0 14px 32px rgba(0,0,0,.05);
    border-top: 4px solid var(--salam-gold);
}

.contact-form-wrapper .form-control {
    min-height: 55px;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,.10);
}

.contact-form-wrapper textarea.form-control {
    min-height: 180px;
}

.contact-form-wrapper .form-control:focus {
    box-shadow: none;
    border-color: var(--salam-gold);
}

/* ==========================
   DROPDOWN MENU
========================== */

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 18px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--salam-cream);
    color: var(--salam-green-dark);
}


/* Active Menu */
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--salam-gold);
}

/* ==========================
   BACK TO TOP
========================== */

#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: var(--salam-gold);
    color: var(--salam-green-dark);
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

#backToTop:hover {
    background: var(--salam-gold-light);
    transform: translateY(-3px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Align contact and quick action cards */
.services-page-section .row.g-4 {
    align-items: stretch;
}

.services-page-section .col-lg-3,
.services-page-section .col-md-6 {
    display: flex;
}

.services-page-section .service-detail-card {
    width: 100%;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-page-section .service-detail-card p {
    flex-grow: 1;
}

.services-page-section .service-detail-card .btn {
    margin-top: auto !important;
}

/* Contact information cards need slightly shorter height */
.services-page-section .service-detail-card.text-center {
    justify-content: flex-start;
}