/* National Day 96 landing theme — adapted from DGA Figma template */

:root {
    --nd-green-dark: #074d31;
    --nd-primary: #1b8354;
    --nd-text: #161616;
    --nd-divider: #d2d6db;
}

body.nd-landing {
    font-family: 'IBM Plex Sans Arabic', 'IBMPlexSansArabic-Regular', 'IBM Plex Sans', sans-serif !important;
    color: var(--nd-text);
}

body.nd-landing * {
    font-family: inherit;
}

body.nd-landing .fa {
    font-family: FontAwesome !important;
}

/* ============ Header ============ */
.nd-header {
    background: #fff;
    border-bottom: 1px solid var(--nd-divider);
    min-height: 72px;
    padding: 0 32px;
}

.nd-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    flex-wrap: wrap;
}

.nd-header .nd-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
}

.nd-header .nd-brand img {
    height: 48px;
}

.nd-header .nd-actions {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nd-header .nd-actions li {
    display: flex;
    align-items: center;
}

.nd-header .nd-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--nd-text) !important;
    text-decoration: none;
    background: transparent;
    border: none;
}

.nd-header .nd-actions a:hover {
    background: #f3f4f6;
}

.nd-header .nd-actions a.nd-login {
    color: #fff !important;
    background: var(--nd-primary);
}

.nd-header .nd-actions a.nd-login:hover {
    background: #14643f;
}

/* ============ Hero slider ============ */
.nd-hero {
    position: relative;
    overflow: hidden;
}

/* Equal-height slides: flex keeps every item in layout so all match the tallest one */
.nd-hero .carousel-inner {
    display: flex;
}

.nd-hero .carousel-item {
    display: flex;
    flex: 0 0 100%;
    visibility: hidden;
    min-height: 491px;
    transition: transform .7s ease-in-out;
}

.nd-hero .carousel-item.active,
.nd-hero .carousel-item-next,
.nd-hero .carousel-item-prev {
    display: flex;
    visibility: visible;
}

/* RTL pages: Bootstrap's margin-right:-100% stacking only overlaps slides in LTR flow,
   so force LTR on the track and restore RTL inside each slide */
body.rtldir .nd-hero .carousel-inner {
    direction: ltr;
}

body.rtldir .nd-hero .nd-hero-inner {
    direction: rtl;
}

.nd-hero .nd-hero-inner {
    display: flex;
    /* art first-child renders at the far edge: left in RTL, right in LTR */
    flex-direction: row-reverse;
    align-items: stretch;
    min-height: 491px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.nd-hero .nd-hero-art {
    flex: 0 0 auto;
    width: 491px;
    height: 491px;
    align-self: flex-start;
}

.nd-hero .nd-hero-art img {
    width: 491px;
    height: 491px;
    display: block;
}

.nd-hero .nd-hero-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px 90px 40px;
    color: #fff;
    text-align: right;
    direction: rtl;
}

body.en-font .nd-hero-content {
    direction: ltr;
    text-align: left;
    padding: 60px 40px 90px 80px;
}

.nd-hero .nd-hero-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    align-self: flex-start;
}

.nd-hero .nd-hero-content h2 {
    font-size: 60px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24px;
}

.nd-hero .nd-hero-content p {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #fff;
    margin: 0;
    max-width: 787px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel controls: dots only, centered at the bottom (per Figma) */
.nd-hero .carousel-indicators {
    bottom: 30px;
    left: 50%;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
    justify-content: center;
}

.nd-hero .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .45);
    margin: 0 4px;
    cursor: pointer;
}

.nd-hero .carousel-indicators li.active {
    background: #fff;
}

/* ============ Pattern strip ============ */
.nd-pattern-strip {
    height: 26px;
    width: 100%;
    background-image: url('../images/national-day/pattern-strip.svg');
    background-repeat: repeat-x;
    background-size: auto 100%;
}

/* ============ Services / features section ============ */
.nd-services {
    position: relative;
    background: #fff;
    padding: 56px 0 66px;
    margin-top: 60px;
}

.nd-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/national-day/section.svg');
    background-repeat: no-repeat;
    background-size: content;
    pointer-events: none;
}

.nd-services > .container {
    position: relative;
    z-index: 1;
}

.nd-services .nd-services-title {
    color: var(--nd-green-dark);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.nd-services .landing-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(7, 77, 49, .12);
}

/* ============ Footer ============ */
.nd-footer {
    background: var(--nd-green-dark);
    color: #fff;
    margin-top: 0;
    padding: 0;
    overflow-x: hidden;
}

body.rtldir .nd-footer {
    direction: rtl;
    text-align: right;
}

body.en-font .nd-footer {
    direction: ltr;
    text-align: left;
}

.nd-footer a {
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    line-height: 2.2;
}

.nd-footer a:hover {
    text-decoration: underline;
}

.nd-footer .nd-footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 8px;
}

.nd-footer .nd-footer-group {
    flex: 1 1 0;
    min-width: 180px;
}

.nd-footer .nd-footer-group h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.nd-footer .nd-footer-group a {
    display: block;
}

.nd-footer .nd-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.nd-footer .nd-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nd-footer .nd-footer-copyright {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.nd-footer .footer-pod-info {
    color: #fff;
    font-size: 13px;
    margin: 0;
}

.nd-footer .nd-footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nd-footer .nd-footer-logos .nd-logo-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    padding: 8px 14px;
}

.nd-footer .nd-footer-logos .nd-logo-chip img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nd-footer .nd-footer-logos .nd-nd-logo {
    height: 64px;
    width: auto;
}

.nd-footer .nd-server-id {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.nd-footer .nd-footer-pattern {
    height: 86px;
    width: 100%;
    background-image: url('../images/national-day/footer-pattern.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
}

/* ============ Responsive (mobile hero per Figma mobile variant) ============ */
@media (max-width: 991.98px) {
    .nd-hero .nd-hero-inner {
        flex-direction: column;
        align-items: center;
    }

    .nd-hero .nd-hero-art,
    .nd-hero .nd-hero-art img {
        width: min(86vw, 350px);
        height: min(86vw, 350px);
    margin: auto;

    }

    .nd-hero .nd-hero-art {
        margin-top: 24px;
    }

    .nd-hero .nd-hero-content {
        padding: 24px 24px 96px;
        text-align: center;
    }

    .nd-hero .nd-hero-content h2 {
        font-size: 32px;
    }

    .nd-hero .nd-hero-content p {
        font-size: 15px;
        line-height: 26px;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }

    .nd-hero .carousel-indicators {
        bottom: 24px;
    }

    .nd-hero .nd-hero-logo {
        align-self: center;
        width: 96px;
        margin-bottom: 12px;
    }

    .nd-header {
        padding: 0 8px;
    }

    .nd-footer .nd-footer-main {
        flex-direction: column;
        gap: 28px;
        padding: 40px 20px 8px;
    }

    .nd-footer .nd-footer-group {
        min-width: 0;
        width: 100%;
    }

    .nd-footer .nd-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 20px 32px;
    }

    .nd-footer .nd-footer-meta,
    .nd-footer .nd-footer-copyright {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .nd-footer .nd-footer-logos {
        flex-wrap: wrap;
        gap: 12px;
        max-width: 100%;
    }

    .nd-footer .nd-footer-logos .nd-logo-chip {
        flex-wrap: wrap;
        padding: 6px 10px;
        gap: 8px;
    }

    .nd-footer .nd-footer-logos .nd-logo-chip img {
        height: 32px;
    }

    .nd-footer .nd-footer-logos .nd-nd-logo {
        height: 48px;
    }

    .nd-footer .nd-footer-pattern {
        height: 56px;
    }
}
