/* Structural replacements for removed Bootstrap — keeps template style.css usable with Tailwind */
*, *::before, *::after { box-sizing: border-box; }

.container, .container-fluid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.container { max-width: 1140px; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.row > * {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
}

.col, .col-12, .col-8, .col-6, .col-4, .col-3,
.col-sm-2, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-10,
.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-12,
.col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-10, .col-lg-12,
.col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-12,
.col-xxl-6 {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-8 { width: 66.666%; }

@media (min-width: 576px) {
    .col-sm-2 { width: 16.666%; }
    .col-sm-4 { width: 33.333%; }
    .col-sm-6 { width: 50%; }
    .col-sm-8 { width: 66.666%; }
    .col-sm-10 { width: 83.333%; }
}
@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-5 { width: 41.666%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.333%; }
    .col-md-8 { width: 66.666%; }
    .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-lg-2 { width: 16.666%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333%; }
    .col-lg-5 { width: 41.666%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333%; }
    .col-lg-8 { width: 66.666%; }
    .col-lg-10 { width: 83.333%; }
    .col-lg-12 { width: 100%; }
}
@media (min-width: 1200px) {
    .col-xl-3 { width: 25%; }
    .col-xl-4 { width: 33.333%; }
    .col-xl-5 { width: 41.666%; }
    .col-xl-6 { width: 50%; }
    .col-xl-7 { width: 58.333%; }
    .col-xl-8 { width: 66.666%; }
    .col-xl-12 { width: 100%; }
}
@media (min-width: 1400px) {
    .col-xxl-6 { width: 50%; }
}

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.text-center { text-align: center !important; }
.text-start, .text-left { text-align: left !important; }
.text-end, .text-right { text-align: right !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.ms-auto, .ml-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.g-2, .gy-2, .gx-2 { --g: 0.5rem; }
.g-3, .gy-3, .gx-3 { --g: 1rem; }
.g-4, .gy-4, .gx-4 { --g: 1.5rem; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.bottom-0 { bottom: 0 !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.overflow-hidden { overflow: hidden !important; }
.rounded, .rounded-3 { border-radius: 0.5rem !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-circle { border-radius: 50% !important; }
.list-unstyled { list-style: none; padding-left: 0; margin: 0; }
.img-fluid { max-width: 100%; height: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem; border-bottom: 1px solid rgba(148,163,184,.25); vertical-align: middle; }
.table-responsive { overflow-x: auto; }
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 0.5rem;
    background: #fff;
    color: #0f172a;
}
html.dark-theme .form-control,
html.dark-ui .form-control,
html.dark-theme .form-select,
html.dark-ui .form-select {
    background: #1e293b;
    color: #f8fafc;
    border-color: rgba(148,163,184,.35);
}
.form-control-sm { padding: 0.35rem 0.55rem; font-size: 0.875rem; }
.form-label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.875rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.85rem; }
.btn-outline-secondary { border-color: rgba(148,163,184,.5); background: transparent; color: inherit; }
.btn-outline-danger { border-color: #ef4444; color: #ef4444; background: transparent; }
.alert { padding: 0.85rem 1rem; border-radius: 0.65rem; }
.alert-info { background: rgba(56,189,248,.15); color: inherit; }
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 0.35rem; font-size: 0.75rem; }
.bg-warning { background: var(--primary-color, #448C74) !important; color: #fff !important; }
.text-dark { color: #111 !important; }
.text-danger { color: #ef4444 !important; }
.text-success { color: #22c55e !important; }
.float-end { float: right; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Navbar without Bootstrap JS */
.navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; }
.navbar-brand { display: inline-flex; align-items: center; text-decoration: none; }
.navbar-toggler {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}
.navbar-collapse { display: flex; flex-basis: auto; flex-grow: 1; align-items: center; }
.navbar-nav { display: flex; flex-direction: row; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-item { list-style: none; }
.nav-link { display: block; padding: 0.5rem 0.75rem; text-decoration: none; color: inherit; }
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 12rem;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 0.65rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
html.dark-theme .dropdown-menu,
html.dark-ui .dropdown-menu { background: #1e293b; border-color: rgba(255,255,255,.08); }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; width: 100%; padding: 0.4rem 1rem; clear: both; text-decoration: none; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
/*
 * Tailwind's utility `.collapse { visibility: collapse }` breaks Bootstrap-style
 * nav/accordion markup. Override visibility always; only hide navbar on mobile
 * when it lacks `.show` (desktop nav must stay visible without `.show`).
 */
.collapse,
.navbar-collapse,
.navbar-collapse.collapse,
.accordion-collapse,
.accordion-collapse.collapse {
    visibility: visible !important;
}

/* Accordions / generic collapses (not the desktop navbar) */
.accordion-collapse:not(.show),
.accordion-collapse.collapse:not(.show) {
    display: none !important;
}
.accordion-collapse.show,
.accordion-collapse.collapse.show {
    display: block !important;
}

@media (max-width: 991.98px) {
    .navbar-toggler { display: inline-flex; }
    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        padding: 0.5rem 0 1rem;
    }
    .navbar-collapse.collapse:not(.show) { display: none !important; }
    .navbar-collapse.collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        visibility: visible !important;
    }
    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        height: auto !important;
        max-height: min(70vh, 420px);
        overflow-y: auto;
        padding: 0.75rem 0;
    }
    .navbar-nav .nav-link {
        padding: 0.65rem 0.25rem !important;
        width: 100%;
    }
    .header-section .navbar .navbar-collapse .right-area {
        width: 100%;
        margin-left: 0 !important;
        padding-top: 0.5rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .d-sm-inline { display: none !important; }
    .text-md-end { text-align: inherit !important; }
}
@media (min-width: 576px) {
    .d-sm-inline { display: inline !important; }
}
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .gap-md-0 { gap: 0 !important; }
    .text-md-end { text-align: right !important; }
    .flex-md-row { flex-direction: row !important; }
    .align-items-md-center { align-items: center !important; }
}
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .navbar-toggler { display: none !important; }
    /* Desktop: always show header nav, with or without .show */
    .navbar-collapse,
    .navbar-collapse.collapse,
    .navbar-collapse.collapse:not(.show),
    .navbar-collapse.collapse.show {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
        visibility: visible !important;
        width: auto;
        padding: 0;
    }
    .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Tabs (no Bootstrap JS) */
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* Carousels without Slick — CSS grid fallback */
.lottery-carousel,
.testimonial-carousel,
.latest-news-carousel,
.our-authority-carousel {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
@media (min-width: 768px) {
    .lottery-carousel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .testimonial-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .lottery-carousel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .testimonial-carousel,
    .latest-news-carousel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lottery-carousel .single,
.lottery-carousel .slick-slide,
.testimonial-carousel .single,
.testimonial-carousel .slick-slide,
.latest-news-carousel .single,
.latest-news-carousel .slick-slide {
    display: block !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
}
.lottery-slider .single-slide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: 100%;
}
.row > .lottery-carousel,
.row > .testimonial-carousel,
.row > .latest-news-carousel {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

/* Hide orphan slick arrows if markup appears */
.slick-arrow { display: none !important; }

/* Accordion lite (FAQ) */
.accordion-item { border: 1px solid rgba(148,163,184,.25); border-radius: 0.75rem; overflow: hidden; }
.accordion-button {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 0;
    color: var(--heading-color, inherit);
    font-weight: 600;
    cursor: pointer;
}
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }
.accordion-body {
    padding: 0 1rem 1rem;
    color: var(--para-color, inherit);
}

.pt-120 { padding-top: 4.5rem; }
.pb-120 { padding-bottom: 4.5rem; }

@media (max-width: 991.98px) {
    .pt-120 { padding-top: 3rem; }
    .pb-120 { padding-bottom: 3rem; }
}

@media (max-width: 575.98px) {
    .pt-120 { padding-top: 2.5rem; }
    .pb-120 { padding-bottom: 2.5rem; }
}
