/* =====================================================
   Landing Page Styles — a2i Dashboard V2
   Pixel-perfect Figma match
   ===================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Manrope:wght@400;700&display=swap');

@font-face {
    font-family: 'Kalpurush';
    src: local('Kalpurush');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Nikosh';
    src: local('Nikosh');
    font-weight: 400;
    font-style: normal;
}

:root {
    --lp-primary: #683091;
    --lp-blue: #006CB5;
    --lp-text: #0B0B0B;
    --lp-text-dark: #121212;
    --lp-text-sub: #494947;
    --lp-text-card: #3D3D3D;
    --lp-text-green: #16342C;
    --lp-border: #EDEDED;
    --lp-link-purple: #662D91;
    --lp-bg-page: #ede7f3;
    --lp-white: #ffffff;
}

/* ---------- Page Wrapper ---------- */
.landing-page {
    background: url('../img/landing/landing_bg.jpeg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    width: 100%;
}

/* Decorative gradient blobs (removed — using background image) */
.bg-blob { display: none; }

/* ---------- Glass vertical stripe overlay (removed) ---------- */
.glass-overlay { display: none; }

/* ---------- Glass Container ---------- */
.landing-container {
    max-width: 1440px;
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0 clamp(16px, 4vw, 56px);
    position: relative;
    z-index: 1;
    box-shadow: none;
    overflow: hidden;
}

/* ---------- Watermark ---------- */
.landing-watermark {
    position: absolute;
    top: 16px;
    right: -10px;
    width: 330px;
    height: 240px;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
/* ── Home / Landing navbar (original layout) ── */
.landing-navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 8px 0;
    position: relative;
    z-index: 2;
}

.landing-navbar .logo img {
    height: 40px;
    width: 42px;
    object-fit: contain;
    mix-blend-mode: multiply;
    background: transparent;
}

.landing-navbar .nav-center {
    display: flex;
    align-items: center;
}

.landing-navbar .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-navbar .nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--lp-text-dark);
    text-decoration: none;
    line-height: 1.4;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.landing-navbar .nav-links a:hover {
    background: var(--lp-primary);
    color: var(--lp-white);
}

/* Active nav link — bottom border, no pill */
.landing-navbar .nav-links a.nav-active--border {
    background: transparent;
    color: var(--lp-text-dark);
    border: none;
    border-radius: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lp-primary);
}

.landing-navbar .nav-links a.nav-active--border:hover {
    border-radius: 100px;
    border: 1px solid transparent;
    border-bottom: none;
    padding-bottom: 10px;
}

/* Lang switcher pushed to right on home page */
.landing-navbar .lang-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    margin-left: auto;
    padding: 8px 10px;
    border-radius: 100px;
}

.landing-navbar .lang-switcher .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.landing-navbar .lang-switcher span {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-text-green);
}

/* Hamburger toggle — hidden on desktop */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 30;
}

.navbar-toggler .toggler-icon--close {
    display: none;
}

.nav-open .navbar-toggler .toggler-icon--open {
    display: none;
}

.nav-open .navbar-toggler .toggler-icon--close {
    display: block;
}

/* ==========================================================
   HERO SECTION — CENTERED
   ========================================================== */
.hero-section {
    margin-top: clamp(20px, 3vw, 44px);
    margin-bottom: clamp(20px, 3vw, 40px);
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1 {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 700;
    color: var(--lp-primary);
    line-height: 1.25;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 12px rgba(104, 48, 145, 0.15);
}

/* Decorative divider between title and subtitle */
.hero-divider {
    width: clamp(48px, 6vw, 80px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--lp-primary), transparent);
    border-radius: 2px;
    margin: clamp(10px, 1.5vw, 18px) auto;
    opacity: 0.6;
}

.hero-section .hero-subtitle {
    font-family: 'Kalpurush', 'Noto Sans Bengali', sans-serif;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 400;
    color: var(--lp-text-sub);
    line-height: 1.7;
    margin-bottom: clamp(18px, 2.5vw, 32px);
    margin-left: auto;
    margin-right: auto;
    max-width: 85%;
    letter-spacing: 0.1px;
    margin-top: clamp(10px, 1.5vw, 14px);
}

.btn-open-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-primary);
    color: #f8f9fd;
    border-radius: 100px;
    padding: clamp(12px, 1.4vw, 18px) clamp(28px, 3.2vw, 44px);
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    border: none;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    line-height: 1.4;
    box-shadow: 0 6px 24px rgba(104, 48, 145, 0.30), 0 2px 8px rgba(104, 48, 145, 0.15);
    letter-spacing: 0.2px;
}

.btn-open-dashboard:hover {
    background: #572778;
    color: var(--lp-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(104, 48, 145, 0.45), 0 4px 12px rgba(104, 48, 145, 0.25);
}

.btn-open-dashboard .arrow-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================
   MAIN CONTENT — Cards + Login Side-by-Side
   ========================================================== */
.main-content {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.main-content-row {
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    align-items: flex-start;
}

.cards-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.login-area {
    flex: 0 0 380px;
    max-width: 380px;
}

/* ==========================================================
   CARDS CAROUSEL
   ========================================================== */
.cards-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow-x: clip;
    overflow-y: visible;
    padding: 12px 64px;
    height: 460px;
    display: flex;
    align-items: center;
}

.cards-carousel {
    display: flex;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* — Card Wrapper (outer colored shell) — */
.card-wrapper {
    flex-shrink: 0;
    width: 360px;
    padding: 10px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    margin-right: -40px;
    transition:
        background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Active card wrapper */
.card-wrapper.active {
    background: #683091;
    opacity: 1;
    z-index: 10;
    transform: scale(1);
    align-self: center;
    box-shadow: 0 8px 32px rgba(104, 48, 145, 0.32), 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* Inactive card wrapper */
.card-wrapper:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    opacity: 0.45;
    z-index: 1;
    transform: scale(0.82);
    box-shadow: none;
}

/* — Card Inner (white content) — */
.card-inner {
    background: #ffffff;
    border-radius: 16px !important;
    padding: 16px !important;
    gap: 16px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    box-shadow: none !important;
}

/* Card header: title + icon + divider */
.card-header-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
}

.card-header-area .card-title,
.card-inner .card-title {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    color: #000000;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    width: 100%;
}

/* Responsive logo container */
.card-icon-wrap {
    width: 100%;
    height: 45px;
    flex-shrink: 0;
}

.card-icon-wrap .card-icon,
.card-header-area .card-icon,
.card-icon {
    height: 45px;
    width: auto;
    max-width: 100%;
    max-height: 45px;
    object-fit: contain;
    display: block;
}

.card-divider {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1px solid #EDEDED !important;
    opacity: 1 !important;
    margin: 0 !important;
}

/* Card description */
.card-desc {
    font-family: 'Nikosh', 'Noto Sans Bengali', sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    color: #3D3D3D;
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    margin: 0;
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    flex: none;
    max-height: calc(4 * 16px * 1.4);
    transition: max-height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active card: show 7 lines */
.card-wrapper.active .card-desc {
    -webkit-line-clamp: 7;
    max-height: calc(7 * 16px * 1.4);
}

/* Card "View Details" link */
.card-view-details {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    color: #683091 !important;
    text-decoration: underline !important;
    text-align: center;
    width: 100%;
    cursor: pointer;
    line-height: 1.4;
    flex-shrink: 0;
    display: block;
}

.card-view-details:hover {
    color: #4a1f6b !important;
    text-decoration: underline !important;
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    /* Use a fixed pixel offset so the arrows never move during card animations.
       The wrapper height equals card height (360px) so 50% = 180px always. */
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 100px;
    background: var(--lp-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 0;
    will-change: auto;  /* prevent compositing layer changes that could cause jitter */
}

.carousel-nav-btn.prev {
    left: 4px;
}

.carousel-nav-btn.next {
    right: 4px;
}

.carousel-nav-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn svg {
    width: 22px;
    height: 22px;
}

/* ==========================================================
   SEE MORE BUTTON
   ========================================================== */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--lp-primary);
    border-radius: 100px;
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--lp-primary);
    background: transparent;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
    cursor: pointer;
    margin-top: 0;
}

.btn-see-more:hover {
    background: var(--lp-primary);
    color: var(--lp-white);
}

/* ==========================================================
   LOGIN CARD
   ========================================================== */
.login-card {
    background: var(--lp-white);
    border: 1px solid var(--lp-primary);
    border-radius: 16px;
    padding: clamp(20px, 3.5vw, 48px) clamp(16px, 3vw, 40px);
    box-shadow:
        0 16px 48px rgba(104, 48, 145, 0.18),
        0 6px 20px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.login-card .login-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 140px;
    opacity: 0.04;
    pointer-events: none;
}

.login-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: clamp(16px, 2vw, 24px);
    text-align: center;
    width: 100%;
}

/* Form labels */
.login-card .form-label {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--lp-text);
    margin-bottom: 8px;
    display: block;
}

/* Form inputs */
.login-card .form-control {
    border: 1px solid var(--lp-border);
    padding: 10px 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: var(--lp-text);
    background: var(--lp-white);
    transition: border-color 0.2s;
    width: 100%;
}

.login-card .form-control:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(104, 48, 145, 0.08);
    outline: none;
}

.login-card .form-control::placeholder {
    color: #999;
    font-weight: 400;
}

.login-card .input-email {
    border-radius: 4px;
    height: 43px;
}

.login-card .input-password {
    border-radius: 6px;
    height: 45px;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
    margin-top: 20px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    bottom: 10px;
    background: none;
    border: none;
    color: var(--lp-text-sub);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
}

/* Session error/warning messages */
.login-card .text-danger.small,
.login-card small.form-text.text-danger,
.login-card .form-text.text-danger {
    font-size: 12px;
    line-height: 1.4;
}

.password-toggle:hover {
    color: var(--lp-primary);
}

/* Help & Forget Password links */
.login-card .form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 28px;
}

.login-card .form-links a {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--lp-link-purple);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.login-card .form-links a:hover {
    text-decoration: underline;
    color: var(--lp-primary);
}

/* Login button */
.btn-login {
    background: var(--lp-primary);
    color: var(--lp-white);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    border: none;
    box-shadow: 0 6px 20px rgba(104, 48, 145, 0.30), 0 2px 6px rgba(104, 48, 145, 0.15);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-login:hover {
    background: #572778;
    color: var(--lp-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(104, 48, 145, 0.40), 0 4px 10px rgba(104, 48, 145, 0.20);
}

/* ==========================================================
   CITYSCAPE SECTION
   ========================================================== */
.cityscape-section {
    position: relative;
    z-index: 1;
    width: calc(100% + 112px);
    margin-left: -56px;
    margin-top: 0;
    margin-bottom: -10px;
    line-height: 0;
    pointer-events: none;
}

.cityscape-section img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.25;
    filter: grayscale(0.2);
}

/* Parliament / Sangsad Bhaban watermark */
.cityscape-section .watermark-parliament {
    position: absolute;
    left: 55%;
    top: 0;
    width: 171px;
    height: 121px;
    opacity: 0.08;
    filter: grayscale(1);
    pointer-events: none;
    z-index: 1;
}

/* Bridge / Hatirjheel watermark */
.cityscape-section .watermark-bridge {
    position: absolute;
    left: 70%;
    top: 10px;
    width: 200px;
    height: 97px;
    opacity: 0.06;
    filter: none;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 16px;
    margin-top: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    isolation: isolate;
}

.landing-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/landing/texture.png') center / cover no-repeat;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

.landing-footer .copyright {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

.landing-footer .footer-logos img {
    width: 338px;
    height: auto;
    opacity: 1;
    mix-blend-mode: multiply;
    background: transparent;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* ── Extra-large desktops (≥1400px) ── */
@media (min-width: 1400px) {
    .landing-container {
        max-width: 90%;
        padding: 0 72px;
    }

    .hero-section h1 {
        font-size: 64px;
    }

    .hero-section .hero-subtitle {
        font-size: 24px;
        max-width: 90%;
    }

    .btn-open-dashboard {
        padding: 18px 44px;
        font-size: 22px;
    }

    .login-area {
        flex: 0 0 420px;
        max-width: 420px;
    }

    .card-wrapper {
        width: 380px;
    }

    .cards-carousel-wrapper {
        height: 480px;
    }
}

@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 46px;
    }

    .hero-section .hero-subtitle {
        font-size: 20px;
    }

    .login-area {
        flex: 0 0 340px;
        max-width: 340px;
    }

    .card-wrapper {
        width: 300px;
        margin-right: -36px;
    }

    .cards-carousel-wrapper {
        padding: 12px 52px;
        height: 420px;
    }

    .landing-navbar .nav-links a {
        font-size: 15px;
        padding: 9px 16px;
    }
}

@media (max-width: 991.98px) {
    /* Navbar: tighten gaps on tablet */
    .landing-navbar {
        gap: 16px;
    }

    .landing-navbar .nav-links {
        gap: 4px;
    }

    .landing-navbar .nav-links a {
        font-size: 14px;
        padding: 8px 14px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section .hero-subtitle {
        font-size: 18px;
    }

    .main-content-row {
        flex-direction: column;
    }

    .cards-area {
        width: 100%;
    }

    .login-area {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .card-wrapper {
        width: 260px;
        margin-right: -32px;
    }

    .cards-carousel-wrapper {
        padding: 12px 44px;
        height: 400px;
    }

    .card-desc {
        font-size: 14px !important;
        -webkit-line-clamp: 3;
        max-height: calc(3 * 14px * 1.4);
    }

    .card-wrapper.active .card-desc {
        -webkit-line-clamp: 6;
        max-height: calc(6 * 14px * 1.4);
    }

    .card-inner .card-title,
    .card-header-area .card-title {
        font-size: 14px !important;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .login-card h3 {
        font-size: 28px;
    }

    .landing-footer .footer-logos img {
        width: 280px;
    }
}

@media (max-width: 767.98px) {
    .landing-page {
        padding: 10px;
    }

    .landing-container {
        padding: 0 16px;
        border-radius: 12px;
    }

    .landing-navbar {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .landing-navbar .logo {
        flex-shrink: 0;
    }

    .landing-navbar .lang-switcher {
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Hide nav links by default, show on toggle */
    .landing-navbar .nav-center {
        order: 3;
        width: 100%;
        display: none;
    }

    .landing-navbar.nav-open .nav-center {
        display: flex;
    }

    .landing-navbar .nav-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .landing-navbar .nav-links a {
        font-size: 14px;
        padding: 10px 16px;
        text-align: center;
        width: 100%;
    }

    /* Show hamburger */
    .navbar-toggler {
        display: flex;
        align-items: center;
    }

    .hero-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 30px;
    }

    .hero-section .hero-subtitle {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .btn-open-dashboard {
        padding: 12px 20px;
        font-size: 14px;
    }

    .card-wrapper {
        width: 230px;
        margin-right: -28px;
    }

    .cards-carousel-wrapper {
        padding: 10px 36px;
        height: 370px;
    }

    .card-desc {
        font-size: 13px !important;
        -webkit-line-clamp: 3;
        max-height: calc(3 * 13px * 1.4);
    }

    .card-wrapper.active .card-desc {
        -webkit-line-clamp: 5;
        max-height: calc(5 * 13px * 1.4);
    }

    .card-inner .card-title,
    .card-header-area .card-title {
        font-size: 13px !important;
    }

    .card-inner {
        padding: 12px !important;
        gap: 10px;
    }

    .card-icon-wrap {
        height: 35px;
    }

    .card-icon-wrap .card-icon,
    .card-header-area .card-icon,
    .card-icon {
        height: 35px;
        max-height: 35px;
    }

    .card-view-details {
        font-size: 12px !important;
    }

    .carousel-nav-btn {
        width: 34px;
        height: 34px;
    }

    .carousel-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .carousel-nav-btn.prev {
        left: 2px;
    }

    .carousel-nav-btn.next {
        right: 2px;
    }

    .login-card h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .login-card .form-label {
        font-size: 14px;
    }

    .login-card .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }

    .login-card .input-email {
        height: 40px;
    }

    .login-card .input-password {
        height: 42px;
    }

    .password-wrapper {
        margin-top: 14px;
    }

    .login-card .form-links {
        margin-top: 12px;
        margin-bottom: 20px;
    }

    .login-card .form-links a {
        font-size: 13px;
    }

    .btn-login {
        padding: 10px;
        font-size: 15px;
    }

    .landing-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 0 14px;
    }

    .landing-footer .copyright {
        font-size: 12px;
    }

    .landing-footer .footer-logos img {
        width: 240px;
    }

    .landing-watermark {
        width: 180px;
        height: 130px;
    }

    .cityscape-section {
        width: calc(100% + 32px);
        margin-left: -16px;
    }

    .cityscape-section .watermark-parliament {
        width: 120px;
        height: 85px;
        left: 50%;
    }

    .cityscape-section .watermark-bridge {
        width: 140px;
        height: 68px;
        left: 65%;
    }

    .bg-blob--1,
    .bg-blob--2,
    .bg-blob--3,
    .bg-blob--4 {
        filter: blur(70px);
    }

    .bg-blob--2 {
        width: 400px;
        height: 400px;
    }

    .bg-blob--3,
    .bg-blob--4 {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 575.98px) {
    .landing-page {
        padding: 6px;
    }

    .landing-container {
        padding: 0 12px;
    }

    .hero-section {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .btn-open-dashboard {
        padding: 10px 18px;
        font-size: 13px;
    }

    .landing-navbar .nav-links a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .landing-navbar .lang-switcher span {
        font-size: 12px;
    }

    .card-wrapper {
        width: 200px;
        margin-right: -24px;
    }

    .cards-carousel-wrapper {
        padding: 10px 28px;
        height: 340px;
    }

    .card-desc {
        font-size: 12px !important;
        -webkit-line-clamp: 2;
        max-height: calc(2 * 12px * 1.4);
    }

    .card-wrapper.active .card-desc {
        -webkit-line-clamp: 4;
        max-height: calc(4 * 12px * 1.4);
    }

    .card-inner .card-title,
    .card-header-area .card-title {
        font-size: 12px !important;
    }

    .card-inner {
        padding: 10px !important;
        gap: 8px;
    }

    .card-icon-wrap {
        height: 30px;
    }

    .card-icon-wrap .card-icon,
    .card-header-area .card-icon,
    .card-icon {
        height: 30px;
        max-height: 30px;
    }

    .card-view-details {
        font-size: 11px !important;
    }

    .btn-see-more {
        font-size: 13px;
        padding: 6px 12px;
    }

    .carousel-nav-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .login-card h3 {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .login-card .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .login-card .form-control {
        font-size: 13px;
        padding: 8px 10px;
    }

    .login-card .input-email {
        height: 38px;
    }

    .login-card .input-password {
        height: 40px;
    }

    .password-wrapper {
        margin-top: 12px;
    }

    .login-card .form-links {
        margin-top: 10px;
        margin-bottom: 16px;
    }

    .login-card .form-links a {
        font-size: 12px;
    }

    .btn-login {
        padding: 10px;
        font-size: 14px;
    }

    .landing-footer .copyright {
        font-size: 11px;
    }

    .landing-footer .footer-logos img {
        width: 200px;
    }
}

/* ── Extra-small phones (≤399px) ── */
@media (max-width: 399.98px) {
    .landing-page {
        padding: 4px;
    }

    .landing-container {
        padding: 0 8px;
    }

    .hero-section {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .hero-section h1 {
        font-size: 22px;
    }

    .hero-section .hero-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .btn-open-dashboard {
        padding: 8px 14px;
        font-size: 12px;
    }

    .landing-navbar .logo img {
        height: 32px;
        width: 34px;
    }

    .card-wrapper {
        width: 170px;
        margin-right: -20px;
        padding: 6px;
    }

    .cards-carousel-wrapper {
        padding: 8px 22px;
        height: 300px;
    }

    .card-desc {
        font-size: 11px !important;
        -webkit-line-clamp: 2;
        max-height: calc(2 * 11px * 1.4);
    }

    .card-wrapper.active .card-desc {
        -webkit-line-clamp: 3;
        max-height: calc(3 * 11px * 1.4);
    }

    .card-inner .card-title,
    .card-header-area .card-title {
        font-size: 11px !important;
    }

    .card-inner {
        padding: 8px !important;
        gap: 6px;
    }

    .card-icon-wrap {
        height: 24px;
    }

    .card-icon-wrap .card-icon,
    .card-header-area .card-icon,
    .card-icon {
        height: 24px;
        max-height: 24px;
    }

    .card-view-details {
        font-size: 10px !important;
    }

    .carousel-nav-btn {
        width: 26px;
        height: 26px;
    }

    .carousel-nav-btn svg {
        width: 12px;
        height: 12px;
    }

    .login-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .login-card .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .login-card .form-control {
        font-size: 12px;
        padding: 6px 8px;
    }

    .login-card .input-email {
        height: 36px;
    }

    .login-card .input-password {
        height: 38px;
    }

    .password-wrapper {
        margin-top: 10px;
    }

    .login-card .form-links {
        margin-top: 8px;
        margin-bottom: 14px;
    }

    .login-card .form-links a {
        font-size: 11px;
    }

    .btn-login {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }

    .landing-footer .copyright {
        font-size: 10px;
    }

    .landing-footer .footer-logos img {
        width: 170px;
    }

    .landing-watermark {
        width: 120px;
        height: 90px;
    }
}

/* ==========================================================
   LAPTOP & DESKTOP — Tighten spacing on shorter viewports
   ========================================================== */

/* ── ≤900px height (e.g. 1440×900, 1600×900) ── */
@media (min-width: 992px) and (max-height: 900px) {
    .hero-section {
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .hero-divider {
        margin: 10px auto;
    }

    .hero-section .hero-subtitle {
        margin-bottom: 16px;
    }

    .password-wrapper {
        margin-top: 14px;
    }

    .login-card .form-links {
        margin-top: 12px;
        margin-bottom: 20px;
    }
}

/* ── ≤768px height (e.g. 1366×768 laptops) ── */
@media (min-width: 992px) and (max-height: 768px) {
    .hero-section {
        margin-top: 0;
        margin-bottom: 14px;
    }

    .hero-section h1 {
        font-size: 44px;
        margin-top: 4px;
    }

    .hero-divider {
        margin: 8px auto;
    }

    .hero-section .hero-subtitle {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .btn-open-dashboard {
        padding: 10px 22px;
        font-size: 15px;
    }

    .cards-carousel-wrapper {
        height: 380px;
    }

    .login-card h3 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .password-wrapper {
        margin-top: 10px;
    }

    .login-card .form-links {
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .main-content {
        margin-bottom: 8px;
    }

    .landing-footer {
        padding: 8px 0 12px;
    }
}

/* ── ≤650px height (very short laptops / split screen) ── */
@media (min-width: 992px) and (max-height: 650px) {
    .hero-section {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 34px;
        margin-top: 2px;
    }

    .hero-divider {
        margin: 6px auto;
        width: 40px;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .btn-open-dashboard {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cards-carousel-wrapper {
        height: 340px;
    }

    .card-wrapper {
        width: 280px;
    }

    .login-card h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .login-card .form-label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .login-card .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }

    .login-card .input-email {
        height: 38px;
    }

    .login-card .input-password {
        height: 40px;
    }

    .password-wrapper {
        margin-top: 8px;
    }

    .login-card .form-links {
        margin-top: 6px;
        margin-bottom: 12px;
    }

    .btn-login {
        padding: 8px;
        font-size: 14px;
    }

    .main-content {
        margin-bottom: 4px;
    }

    .landing-footer {
        padding: 6px 0 8px;
    }

    .landing-footer .copyright {
        font-size: 12px;
    }

    .landing-footer .footer-logos img {
        width: 260px;
    }
}

/* ==========================================================
   MOBILE LANDSCAPE — short height + narrow width
   ========================================================== */
@media (max-width: 991.98px) and (max-height: 500px) {
    .hero-section {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .hero-section h1 {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .btn-open-dashboard {
        padding: 8px 14px;
        font-size: 12px;
    }

    .main-content-row {
        flex-direction: row;
        align-items: stretch;
    }

    .cards-area {
        flex: 1;
    }

    .login-area {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .cards-carousel-wrapper {
        height: 260px;
        padding: 8px 32px;
    }

    .card-wrapper {
        width: 200px;
        margin-right: -24px;
    }

    .card-inner {
        padding: 8px !important;
        gap: 6px;
    }

    .card-icon-wrap {
        height: 24px;
    }

    .card-icon-wrap .card-icon,
    .card-header-area .card-icon,
    .card-icon {
        height: 24px;
        max-height: 24px;
    }

    .card-inner .card-title,
    .card-header-area .card-title {
        font-size: 11px !important;
    }

    .card-desc {
        font-size: 11px !important;
        -webkit-line-clamp: 2;
        max-height: calc(2 * 11px * 1.4);
    }

    .card-wrapper.active .card-desc {
        -webkit-line-clamp: 3;
        max-height: calc(3 * 11px * 1.4);
    }

    .login-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .login-card .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .login-card .form-control {
        font-size: 12px;
        padding: 6px 8px;
    }

    .login-card .input-email {
        height: 34px;
    }

    .login-card .input-password {
        height: 36px;
    }

    .password-wrapper {
        margin-top: 8px;
    }

    .login-card .form-links {
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .login-card .form-links a {
        font-size: 11px;
    }

    .btn-login {
        padding: 8px;
        font-size: 13px;
    }

    .landing-footer {
        flex-direction: row;
        gap: 8px;
        padding: 6px 0 8px;
    }

    .landing-footer .copyright {
        font-size: 11px;
    }

    .landing-footer .footer-logos img {
        width: 200px;
    }

    .landing-watermark {
        width: 120px;
        height: 90px;
    }
}
