/* =========================================
   CSIT THEME — Static Styles
   Extracted from csit_dynamic_theme.blade.php
   color-mix() replaced with hard-coded values
   ========================================= */

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--csit-nav-height, 84px) + 12px);
    overflow-x: clip;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark-text, #1F2937);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding-top: 0 !important;
    overflow-x: clip;
    background-color: var(--body-bg, #FBF6EC);
    background-image:
        radial-gradient(circle at 4% -8%, rgba(224, 176, 59, 0.18), transparent 40%),
        radial-gradient(circle at 100% 1%, rgba(224, 176, 59, 0.13), transparent 38%),
        linear-gradient(180deg, var(--warm-surface-soft, #FCF8EF) 0%, var(--body-bg, #FBF6EC) 100%);
}

main {
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body,
    main {
        overflow-x: hidden;
    }
}

.container {
    max-width: var(--content-max, min(1200px, 94vw));
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.015em;
    color: var(--page-heading-color, var(--primary-dark, #4B0F20));
}

p, li, .text-muted, .small, small {
    color: var(--page-subheading-color, #644E4A);
}

/* Keep strong contrast whenever a dark/gradient block uses `text-white`. */
.text-white,
.text-white h1, .text-white h2, .text-white h3,
.text-white h4, .text-white h5, .text-white h6,
.text-white p, .text-white li,
.text-white small, .text-white .small,
.text-white .lead, .text-white .fw-bold,
.card.text-white,
.card.text-white h1, .card.text-white h2, .card.text-white h3,
.card.text-white h4, .card.text-white h5, .card.text-white h6,
.card.text-white p, .card.text-white li,
.card.text-white small, .card.text-white .small,
.card.text-white .lead, .card.text-white .fw-bold {
    color: #ffffff !important;
}

.text-white .text-muted,
.card.text-white .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-primary-gradient {
    background: var(--primary-gradient, linear-gradient(135deg, #4B0F20, #7A1C33)) !important;
    color: #ffffff;
}

.bg-secondary-gradient {
    background: var(--secondary-gradient, linear-gradient(135deg, #E0B03B, #F2D36B)) !important;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F1DBA7;
    outline-offset: 2px;
}

main > section {
    padding-top: var(--section-y, clamp(3rem, 7vw, 5.4rem));
    padding-bottom: var(--section-y, clamp(3rem, 7vw, 5.4rem));
}

main > section.py-5,
main > section.pb-4 {
    padding-top: var(--section-y, clamp(3rem, 7vw, 5.4rem)) !important;
    padding-bottom: var(--section-y, clamp(3rem, 7vw, 5.4rem)) !important;
}

/* Golden section dividers */
main > section + section {
    border-top: 1px solid rgba(224, 176, 59, 0.42);
}

.bg-muted {
    background: linear-gradient(180deg, var(--warm-surface-soft, #FCF8EF), var(--warm-surface, #F6EEDD)) !important;
}

.bg-light {
    background: var(--warm-surface-soft, #FCF8EF) !important;
}

/* ===== Navbar ===== */
.premium-navbar {
    min-height: var(--csit-nav-height, 84px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-color, #DCE7E3);
    backdrop-filter: blur(14px) saturate(135%);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1050;
}

.premium-navbar > .container {
    position: relative;
    z-index: 2;
}

.premium-navbar.is-scrolled {
    background: #ffffff;
    border-bottom-color: #DDD5AD;
    box-shadow: 0 8px 26px rgba(31, 23, 17, 0.08);
}

.premium-navbar .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 6, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.csit-nav-open .premium-navbar .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.premium-navbar .navbar-brand {
    padding: 0;
    margin-right: 0.75rem;
}

.premium-navbar .csit-logo {
    max-height: 44px;
    width: auto;
    min-width: 130px;
    object-fit: contain;
}

.premium-navbar .navbar-toggler {
    border: 0;
    border-radius: 0;
    padding: 0.4rem 0.3rem;
    background: transparent;
    box-shadow: none;
}

.premium-navbar .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.premium-navbar .navbar-toggler-icon,
.premium-navbar .navbar-toggler-icon::before,
.premium-navbar .navbar-toggler-icon::after {
    display: block;
    width: 1.5rem;
    height: 2.5px;
    background: var(--primary-dark, #4B0F20);
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.premium-navbar .navbar-toggler-icon {
    position: relative;
    background-image: none;
}

.premium-navbar .navbar-toggler-icon::before,
.premium-navbar .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.premium-navbar .navbar-toggler-icon::before {
    top: -0.46rem;
}

.premium-navbar .navbar-toggler-icon::after {
    top: 0.46rem;
}

.premium-navbar .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
    transform: rotate(45deg);
}

.premium-navbar .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::before {
    transform: rotate(-90deg) translateX(-0.46rem);
}

.premium-navbar .navbar-toggler[aria-expanded='true'] .navbar-toggler-icon::after {
    opacity: 0;
}

.premium-navbar .navbar-nav {
    gap: 0.1rem;
}

.premium-navbar .nav-link {
    position: relative;
    border-radius: 0.68rem;
    color: var(--dark-text, #1F2937);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.56rem 0.82rem;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.premium-navbar .nav-link:hover,
.premium-navbar .nav-link.active,
.premium-navbar .dropdown-item.active,
.premium-navbar .dropdown-item:active {
    color: var(--primary-dark, #4B0F20);
    background: #FAF2E0;
}

.premium-navbar .dropdown-menu {
    border: 1px solid var(--border-color, #DCE7E3);
    border-radius: 0.85rem;
    padding: 0.38rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(75, 15, 32, 0.14);
}

@media (min-width: 1200px) {
    .premium-navbar .navbar-collapse {
        display: flex !important;
        align-items: center;
    }

    .premium-navbar .mobile-nav-card {
        display: flex;
        align-items: center;
        gap: 0.95rem;
        flex-wrap: nowrap;
    }

    .premium-navbar .navbar-nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .premium-navbar .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .premium-navbar .navbar-nav > .nav-item {
        flex: 0 0 auto;
    }

    .premium-navbar .nav-cta-group {
        flex: 0 0 auto;
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0 !important;
        white-space: nowrap;
    }

    .premium-navbar .nav-cta-group .btn {
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: center;
        line-height: 1.15;
        font-size: 0.82rem;
        padding: 0.5rem 0.88rem;
    }

    .premium-navbar .nav-cta-group .btn i {
        font-size: 0.86rem;
    }

    .premium-navbar .nav-cta-group .btn span {
        white-space: nowrap;
    }

    .premium-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0.3rem;
    }

    .premium-navbar .dropdown-toggle[aria-expanded='true'] + .dropdown-menu {
        display: block;
        margin-top: 0.3rem;
    }

    .premium-navbar .nav-link::after {
        content: '';
        position: absolute;
        left: 0.82rem;
        right: 0.82rem;
        bottom: 0.2rem;
        height: 2px;
        border-radius: 999px;
        background: var(--secondary, #E0B03B);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.22s ease;
    }

    .premium-navbar .nav-link:hover::after,
    .premium-navbar .nav-link.active::after {
        transform: scaleX(1);
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .premium-navbar .mobile-nav-card {
        gap: 0.72rem;
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link {
        padding: 0.5rem 0.66rem;
        font-size: 0.89rem;
    }

    .premium-navbar .nav-cta-group {
        gap: 0.42rem;
    }

    .premium-navbar .nav-cta-group .btn {
        font-size: 0.79rem;
        padding: 0.45rem 0.72rem;
    }
}

.premium-navbar .dropdown-item {
    border-radius: 0.62rem;
    color: var(--dark-text, #1F2937);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.48rem 0.7rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.premium-navbar .mobile-nav-card {
    width: 100%;
}

.premium-navbar .mobile-nav-header,
.premium-navbar .nav-ico,
.premium-navbar .nav-arrow,
.premium-navbar .nav-cta-tagline {
    display: none;
}

.premium-navbar .nav-cta-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.premium-navbar .nav-cta-group .btn,
.btn-csit,
.btn-csit-outline {
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-csit {
    color: var(--primary-dark, #4B0F20) !important;
    background: var(--secondary-gradient, linear-gradient(135deg, #E0B03B, #F2D36B));
    border-color: #D8C287;
    box-shadow: 0 12px 26px rgba(224, 176, 59, 0.45);
}

.btn-csit:hover {
    color: var(--primary-dark, #4B0F20) !important;
    background: var(--secondary-gradient, linear-gradient(135deg, #E0B03B, #F2D36B)) !important;
    border-color: #D8C287 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(224, 176, 59, 0.55);
}

.btn-csit.active {
    color: var(--primary-dark, #4B0F20) !important;
    background: var(--secondary-gradient, linear-gradient(135deg, #E0B03B, #F2D36B)) !important;
    border-color: #D1B670 !important;
    box-shadow: 0 16px 34px rgba(224, 176, 59, 0.58);
}

.btn-warning {
    background: var(--secondary-gradient, linear-gradient(135deg, #E0B03B, #F2D36B));
    border-color: #D8C287;
    color: var(--primary-dark, #4B0F20);
    font-weight: 700;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background: var(--secondary, #E0B03B);
    border-color: var(--secondary-dark, #B89024);
    color: var(--primary-dark, #4B0F20);
}

.btn-csit-outline {
    color: var(--primary-dark, #4B0F20);
    background: #ffffff;
    border-color: #60401C;
}

.btn-csit-outline:hover {
    color: var(--primary-dark, #4B0F20);
    background: #FBF4E4;
    border-color: rgba(224, 176, 59, 0.55);
    transform: translateY(-1px);
}

.btn-csit-outline.active {
    color: var(--primary-dark, #4B0F20);
    background: #F9F0DC;
    border-color: rgba(224, 176, 59, 0.62);
    box-shadow: 0 12px 24px rgba(224, 176, 59, 0.32);
}

/* Secondary filled button (gold solid, for CTA sections) */
.btn-csit-secondary {
    color: #ffffff !important;
    background: var(--secondary, #E0B03B) !important;
    border-color: var(--secondary, #E0B03B) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-csit-secondary:hover {
    color: #ffffff !important;
    background: var(--secondary-dark, #B89024) !important;
    border-color: var(--secondary-dark, #B89024) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(224, 176, 59, 0.45);
}

/* Ghost button (text-only, for tertiary actions) */
.btn-csit-ghost {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-csit-ghost:hover {
    color: var(--primary-dark, #4B0F20) !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-1px);
}

/* ===== Hero ===== */
.premium-hero-wrapper {
    overflow: clip;
}

.landingHeroSwiper,
.landingHeroSwiper .swiper-wrapper {
    height: auto;
}

.landingHeroSwiper .swiper-slide {
    width: 100%;
    height: auto;
}

.premium-hero-slide,
.hero-slide {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 45vh, 480px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 15% 15%, rgba(122, 28, 51, 0.22), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(224, 176, 59, 0.14), transparent 45%),
        linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-molecules {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: calc(var(--csit-nav-height, 84px) + 0.5rem - 40px);
    padding-bottom: clamp(1.25rem, 3.5vh, 2rem);
}

.premiumHeroSwiper .swiper-pagination {
    bottom: 1.4rem !important;
}

.premiumHeroSwiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.premiumHeroSwiper .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--secondary, #E0B03B);
}

.premiumHeroSwiper .swiper-button-prev,
.premiumHeroSwiper .swiper-button-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    color: #ffffff;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.premiumHeroSwiper .swiper-button-prev:hover,
.premiumHeroSwiper .swiper-button-next:hover {
    background: var(--secondary, #E0B03B);
    border-color: var(--secondary, #E0B03B);
    color: var(--primary-dark, #4B0F20);
    transform: scale(1.05);
}

.premiumHeroSwiper .swiper-button-prev::after,
.premiumHeroSwiper .swiper-button-next::after {
    font-size: 1.1rem;
    font-weight: 700;
}

.min-vh-hero {
    min-height: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.42rem 0.88rem;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--secondary, #E0B03B);
    background: rgba(31, 25, 8, 0.24);
    border: 1px solid rgba(224, 176, 59, 0.55);
    backdrop-filter: blur(6px);
}

.csit-flow-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.4em;
    font-size: 0.82em;
    line-height: 1;
    vertical-align: middle;
    color: var(--secondary, #E0B03B);
    transform: translateY(-0.02em);
}

.hero-badge .csit-flow-arrow {
    margin: 0;
}

.hero-title {
    font-size: clamp(2rem, 5.4vw, 4.1rem);
    line-height: 1.07;
    margin-top: 0.95rem;
    margin-bottom: 1rem;
    color: #ffffff;
    max-width: 15ch;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    overflow-wrap: anywhere;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.24rem);
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.hero-actions .btn {
    border-radius: 999px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    padding-top: calc(var(--csit-nav-height, 84px) + clamp(1.5rem, 4vw, 2.6rem)) !important;
    padding-bottom: calc(var(--section-y, clamp(3rem, 7vw, 5.4rem)) * 0.7) !important;
    border-bottom: 2px solid rgba(224, 176, 59, 0.48);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(224, 176, 59, 0.24) 0%, transparent 52%),
        radial-gradient(90% 90% at 0% 100%, rgba(122, 28, 51, 0.26) 0%, transparent 54%),
        linear-gradient(125deg, #3B0E16 0%, #411C18 100%) !important;
}

.page-header h1 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    color: #ffffff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
    overflow-wrap: anywhere;
}

.page-header .lead {
    max-width: 66ch;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== Section Kicker ===== */
.section-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9F7C1F;
    background: #FAF2E0;
    border: 1px solid rgba(224, 176, 59, 0.38);
}

.text-secondary {
    color: var(--secondary-dark, #B89024) !important;
}

.text-primary {
    color: var(--primary, #7A1C33) !important;
}

.section-title {
    font-size: clamp(1.45rem, 3.3vw, 2.5rem);
    color: var(--page-heading-color, var(--primary-dark, #4B0F20));
}

.section-subtitle {
    max-width: 64ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-subheading-color, #644E4A) !important;
}

.content-max-760 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.content-max-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.csit-image-caption-overlay {
    background: linear-gradient(to top, #420D1C, transparent);
}

.csit-section-scrim {
    position: absolute;
    inset: 0;
    background: #3F0D1B;
}

/* Impact section: keep card content readable on white card backgrounds */
#impact .card,
#impact .card h3,
#impact .card p,
#impact .card .text-muted {
    color: var(--dark-text, #1F2937) !important;
}

#impact .card h3 {
    color: var(--primary-dark, #4B0F20) !important;
}

#impact .card i {
    color: var(--primary, #7A1C33) !important;
}

.csit-cta-badge {
    background: rgba(224, 176, 59, 0.20);
    color: #fff;
    border: 1px solid rgba(224, 176, 59, 0.60);
}

.csit-video-surface {
    background: #410D1C;
}

/* ===== Cards ===== */
.card,
.news-card,
.event-card,
.blog-card,
.premium-program-card,
.focus-card,
.impact-stat {
    background: var(--card-bg, #FFFFFF) !important;
    border: 1px solid #DDD5AD !important;
    border-radius: var(--radius-lg, 1.05rem) !important;
    box-shadow: 0 14px 34px rgba(75, 15, 32, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.card:hover,
.news-card:hover,
.event-card:hover,
.blog-card:hover,
.premium-program-card:hover,
.focus-card:hover,
.impact-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(184, 144, 36, 0.18);
    border-color: #DEC47B !important;
}

.card img,
.news-card img,
.event-card img,
.blog-card img,
.focus-card img,
.premium-program-card img {
    transition: transform 0.42s ease;
}

.card:hover img,
.news-card:hover img,
.event-card:hover img,
.blog-card:hover img,
.focus-card:hover img,
.premium-program-card:hover img {
    transform: scale(1.03);
}

.impact-stat {
    text-align: center;
    padding: 1.1rem 1rem;
}

.impact-stat h2,
.impact-stat h3 {
    margin-bottom: 0.2rem;
    color: var(--primary-dark, #4B0F20);
}

/* ===== Forms ===== */
.form-control,
.form-select,
textarea {
    border-radius: var(--radius-md, 0.82rem);
    border: 1px solid var(--border-color, #DCE7E3);
    background: #ffffff;
    min-height: 46px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #B5828F;
    box-shadow: 0 0 0 0.25rem rgba(122, 28, 51, 0.14);
}

/* ===== Footer ===== */
.footer-csit {
    position: relative;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    padding-top: clamp(2.2rem, 4vw, 3rem);
    padding-bottom: 1.1rem;
    background: linear-gradient(160deg, #3D1119, #43101C);
    border-top: 1px solid rgba(224, 176, 59, 0.32);
    color: rgba(255, 255, 255, 0.86);
}

.footer-csit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(224, 176, 59, 0.72) 16%,
        var(--secondary, #E0B03B) 50%,
        rgba(224, 176, 59, 0.72) 84%,
        transparent 100%);
}

.footer-csit .footer-logo {
    max-height: 48px;
    width: auto;
}

.footer-csit .footer-text,
.footer-csit p,
.footer-csit li,
.footer-csit a:not(.btn) {
    color: var(--footer-text-color, #FBF5E8) !important;
}

.footer-csit .footer-subtext {
    color: var(--footer-subtext-color, #F6E9C8) !important;
}

.footer-csit .footer-col h6,
.footer-csit .footer-cta-box h6 {
    color: var(--footer-heading-color, #E7C166);
    margin-bottom: 0.62rem;
}

.footer-csit .footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-csit .footer-col li + li {
    margin-top: 0.42rem;
}

.footer-csit .footer-col a {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    margin-left: -0.45rem;
    border-radius: 0.48rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-csit .footer-mini-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    margin-left: -0.45rem;
    border-radius: 0.48rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-csit .footer-col a:hover,
.footer-csit .footer-mini-links a:hover,
.footer-csit .footer-col a:focus-visible,
.footer-csit .footer-mini-links a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
}

.footer-csit .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    margin-right: 0.38rem;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-csit .social-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.72);
    color: var(--secondary, #E0B03B) !important;
}

.footer-csit .footer-cta-box {
    border-radius: var(--radius-md, 0.82rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.footer-csit .footer-divider {
    border-color: rgba(255, 255, 255, 0.14);
}

.footer-csit .footer-mini-links {
    display: flex;
    gap: 0.9rem;
}

.footer-csit .footer-partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.4rem, 3vw, 2.2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-lg, 1.05rem);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(130% 170% at 100% 0%, rgba(224, 176, 59, 0.26) 0%, transparent 56%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.footer-csit .footer-partner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary, #E0B03B);
    margin-bottom: 0.5rem;
}

.footer-csit .footer-partner-title {
    font-size: clamp(1.3rem, 2.6vw, 1.95rem);
    font-weight: 800;
    line-height: 1.16;
    color: #ffffff;
    margin-bottom: 0.55rem;
}

.footer-csit .footer-partner-subtext {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--footer-subtext-color, #F6E9C8) !important;
}

.footer-csit .footer-partner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.footer-csit .footer-partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.footer-csit .footer-partner-btn--ghost {
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-csit .footer-partner-btn--ghost:hover {
    color: var(--primary-dark, #4B0F20) !important;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}

.footer-csit .footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.35fr;
    gap: clamp(1.6rem, 3vw, 2.8rem);
    align-items: start;
}

.footer-csit .footer-brand {
    max-width: 38ch;
}

@media (max-width: 991.98px) {
    .footer-csit .footer-partner {
        grid-template-columns: 1fr;
    }

    .footer-csit .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.4rem, 4vw, 2rem) clamp(1.2rem, 4vw, 2rem);
    }

    .footer-csit .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-csit .footer-cta {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .footer-csit .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1.2rem;
    }

    .footer-csit .footer-partner-actions {
        width: 100%;
    }

    .footer-csit .footer-partner-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 359.98px) {
    .footer-csit .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
    position: fixed;
    right: clamp(0.8rem, 2vw, 1.25rem);
    bottom: clamp(0.8rem, 2vw, 1.25rem);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(145deg, #25D366, #1BBA59);
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(21, 115, 57, 0.28);
    font-weight: 700;
}

.floating-whatsapp .bi {
    font-size: 1.22rem;
}

.floating-whatsapp:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ===== Pagination ===== */
.pagination {
    gap: 0.34rem;
}

.pagination .page-link {
    border-radius: 0.65rem;
    border-color: var(--border-color, #DCE7E3);
    color: var(--primary-dark, #4B0F20);
}

.pagination .active .page-link {
    background: var(--primary-gradient, linear-gradient(135deg, #4B0F20, #7A1C33));
    border-color: var(--primary-dark, #4B0F20);
    color: #ffffff;
}

/* ===== Fade In Up ===== */
.csit-fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.csit-fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Nav (max 1199.98px) ===== */
@media (max-width: 1199.98px) {
    :root {
        --csit-nav-height: 80px;
        --section-y: clamp(2.4rem, 7vw, 3.8rem);
    }

    .premium-navbar .navbar-collapse {
        position: relative;
        z-index: 3;
    }

    .premium-navbar .mobile-nav-card {
        margin-top: 0.7rem;
        padding: 0.6rem 0.7rem 0.85rem;
        border-radius: 1.25rem;
        border: 1px solid rgba(75, 15, 32, 0.1);
        background: #ffffff;
        box-shadow: 0 28px 64px rgba(28, 6, 13, 0.28);
        max-height: calc(100dvh - var(--csit-nav-height, 84px) - 1.1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        animation: csitNavSheetIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes csitNavSheetIn {
        from {
            opacity: 0;
            transform: translateY(-12px) scale(0.985);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .premium-navbar .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 0.45rem 0.7rem;
        border-bottom: 1px solid rgba(75, 15, 32, 0.1);
    }

    .premium-navbar .mobile-nav-brand img {
        max-height: 38px;
        width: auto;
    }

    .premium-navbar .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border-radius: 50%;
        border: 1px solid rgba(75, 15, 32, 0.16);
        background: var(--muted-bg, #f6efe9);
        color: var(--primary-dark, #4B0F20);
        font-size: 1rem;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
    }

    .premium-navbar .mobile-nav-close i {
        font-style: normal;
    }

    .premium-navbar .mobile-nav-close:hover {
        background: var(--primary, #7A1C33);
        color: #ffffff;
        transform: rotate(90deg);
    }

    .premium-navbar .navbar-nav {
        width: 100%;
    }

    .premium-navbar .nav-item + .nav-item {
        border-top: 1px solid rgba(75, 15, 32, 0.06);
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.92rem 0.6rem;
        border-radius: 0.6rem;
        font-size: 1.02rem;
        font-weight: 600;
        color: var(--dark-text, #1F2937);
    }

    .premium-navbar .nav-ico {
        display: none !important;
    }

    .premium-navbar .nav-text {
        flex: 1 1 auto;
    }

    .premium-navbar .navbar-nav > .nav-item:not(.dropdown) > .nav-link .nav-arrow {
        display: none;
    }

    .premium-navbar .nav-arrow {
        display: inline-flex;
        margin-left: auto;
        font-size: 0.72rem;
        color: #B39AA1;
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link.active,
    .premium-navbar .navbar-nav > .nav-item > .nav-link:hover {
        background: transparent;
        color: var(--primary-dark, #4B0F20);
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link.active .nav-text {
        position: relative;
        padding-left: 0.7rem;
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link.active .nav-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 1.05em;
        border-radius: 999px;
        background: var(--secondary, #E0B03B);
    }

    .premium-navbar .dropdown-toggle[aria-expanded='true'] .nav-arrow {
        transform: rotate(180deg);
        color: var(--secondary-dark, #B89024);
    }

    .premium-navbar .dropdown-toggle::after {
        display: none;
    }

    .premium-navbar .dropdown-menu {
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0.3rem 0.6rem;
        margin: 0;
    }

    .premium-navbar .dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        border-radius: 0.55rem;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.62rem 0.55rem;
        color: rgba(31, 41, 55, 0.82);
    }

    .premium-navbar .dropdown-menu .dropdown-item .nav-ico {
        display: none !important;
    }

    .premium-navbar .dropdown-menu .dropdown-item.active,
    .premium-navbar .dropdown-menu .dropdown-item:hover {
        background: transparent;
        color: var(--primary-dark, #4B0F20);
    }

    .premium-navbar .nav-cta-group {
        width: 100%;
        margin-top: 0.85rem !important;
        padding-top: 0.9rem;
        border-top: 1px solid rgba(75, 15, 32, 0.1);
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .premium-navbar .nav-cta-tagline {
        display: block;
        font-size: 0.72rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--secondary-dark, #B89024);
        margin-bottom: 0.15rem;
    }

    .premium-navbar .nav-cta-group .btn {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        font-size: 0.92rem;
    }

    .hero-content {
        padding-top: calc(var(--csit-nav-height, 84px) + 0.5rem);
        padding-bottom: clamp(1.25rem, 4vh, 2rem);
    }

    .premium-hero-slide,
    .hero-slide {
        min-height: clamp(300px, 50vh, 420px);
    }

    .min-vh-hero {
        min-height: auto;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(1.75rem, 8vw, 2.7rem);
        line-height: 1.14;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        max-width: 100%;
    }

    .hero-actions {
        gap: 0.6rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-csit .footer-mini-links {
        margin-top: 0.4rem;
    }
}

/* ===== Tablet Landscape (992-1199.98px) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .premium-navbar .navbar-toggler {
        display: none;
    }

    .premium-navbar .navbar-collapse {
        display: flex !important;
        position: static;
        visibility: visible;
    }

    .premium-navbar .mobile-nav-card {
        margin-top: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        animation: none;
    }

    .premium-navbar .mobile-nav-header {
        display: none;
    }

    .premium-navbar .navbar-nav {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap !important;
        gap: 0.05rem;
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .premium-navbar .navbar-nav > .nav-item {
        flex: 0 0 auto;
    }

    .premium-navbar .navbar-nav::-webkit-scrollbar {
        display: none;
    }

    .premium-navbar .nav-item + .nav-item {
        border-top: 0;
    }

    .premium-navbar .navbar-nav > .nav-item > .nav-link {
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 0.52rem 0.68rem;
        border-radius: 0.62rem;
        font-size: 0.88rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .premium-navbar .nav-ico,
    .premium-navbar .nav-arrow,
    .premium-navbar .navbar-nav > .nav-item:not(.dropdown) > .nav-link .nav-arrow,
    .premium-navbar .nav-cta-tagline {
        display: none !important;
    }

    .premium-navbar .dropdown-toggle::after {
        display: inline-block;
    }

    .premium-navbar .dropdown-menu {
        border: 1px solid var(--border-color, #DCE7E3);
        border-radius: 0.8rem;
        padding: 0.35rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 34px rgba(75, 15, 32, 0.12);
        margin-top: 0.28rem;
    }

    .premium-navbar .dropdown-menu .dropdown-item {
        border-radius: 0.55rem;
        font-size: 0.88rem;
        padding: 0.45rem 0.62rem;
        font-weight: 600;
    }

    .premium-navbar .nav-cta-group {
        width: auto;
        margin-top: 0 !important;
        padding-top: 0;
        border-top: 0;
        display: flex !important;
        grid-template-columns: none;
        align-items: center;
        gap: 0.45rem;
    }

    .premium-navbar .nav-cta-group .btn {
        width: auto;
        justify-content: center;
        white-space: nowrap;
        line-height: 1.12;
        font-size: 0.78rem;
        padding: 0.46rem 0.74rem;
    }

    .premium-navbar .nav-cta-group .btn i {
        font-size: 0.82rem;
    }
}

/* ===== Mobile Small (max 575.98px) ===== */
@media (max-width: 575.98px) {
    :root {
        --section-y: clamp(2.05rem, 7vw, 2.85rem);
    }

    .row.g-5,
    .row.gx-5,
    .row.gy-5 {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }

    .container {
        max-width: 100%;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .premium-navbar .csit-logo {
        max-height: 38px;
        min-width: 112px;
    }

    .page-header h1 {
        font-size: clamp(1.45rem, 6.2vw, 2rem);
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.34rem 0.74rem;
    }

    .floating-whatsapp {
        padding: 0.64rem 0.78rem;
    }

    .floating-whatsapp .whatsapp-label {
        display: none !important;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== CMS Editor Styles ===== */
.cms-toolbar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary, #7A1C33), var(--primary-dark, #4B0F20));
    box-shadow: 0 12px 30px rgba(28, 10, 16, 0.32);
    font-family: inherit;
    max-width: min(92vw, 560px);
}
.cms-toolbar .cms-hint {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.3;
    display: none;
}
html.cms-editing .cms-toolbar .cms-hint { display: inline; }
.cms-toolbar .cms-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--secondary, #E0B03B);
    color: #3a2a06;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.cms-toolbar .cms-btn.cms-btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
html.cms-editing .cms-toolbar .cms-btn-primary { background: #2ecc71; color: #05230f; }

html.cms-editing [data-cms-editable] {
    outline: 1px dashed rgba(122, 28, 51, 0.45);
    outline-offset: 2px;
    cursor: text;
    transition: outline-color 0.15s ease;
}
html.cms-editing [data-cms-editable]:hover {
    outline: 2px dashed var(--secondary, #E0B03B);
    background: rgba(224, 176, 59, 0.08);
}
html.cms-editing [data-cms-editable].cms-img {
    cursor: pointer;
    outline: 2px dashed rgba(122, 28, 51, 0.5);
}
html.cms-editing [data-cms-editable].cms-img:hover { outline-color: var(--secondary, #E0B03B); }
html.cms-editing [data-cms-editable].cms-icon { cursor: pointer; }
html.cms-editing [data-cms-editable][contenteditable="true"]:focus {
    outline: 2px solid var(--secondary, #E0B03B);
    background: rgba(224, 176, 59, 0.12);
}
.cms-toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(10px);
    z-index: 2147483001;
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: #1f2937;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cms-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cms-toast.is-ok { background: #16794a; }
.cms-toast.is-err { background: #b3261e; }