/* =========================
   Base Theme
========================= */
:root {
    --bg: #000;
    --surface: #111;
    --surface-2: #fff;
    --text: #fff;
    --text-dark: #212529;
    --text-muted: #adb5bd;
    --border-dark: rgba(255, 255, 255, 0.15);
    --border-dark-soft: rgba(255, 255, 255, 0.1);
    --border-light: #dee2e6;
    --warning: #ffc107;
    --warning-hover: #ffca2c;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   Text Helpers
========================= */
.text-muted,
.text-secondary {
    color: var(--text-muted) !important;
}

.text-dark {
    color: #000 !important;
}

.text-light {
    color: #fff !important;
}

/* =========================
   Links
========================= */
a {
    text-decoration: none;
}

a.link-warning {
    color: var(--warning);
}

a.link-warning:hover {
    color: var(--warning-hover);
}

.bg-light.text-muted {
    background-color: #e9ecef !important;
    color: #6d757d !important;
}
/* =========================
   Borders
========================= */
.border-secondary {
    border-color: var(--border-dark) !important;
}

/* =========================
   Light Surfaces
========================= */
.bg-white,
.bg-light,
.modal-content,
.offcanvas {
    background-color: #fff !important;
    color: #000 !important;
}

.bg-white,
.bg-light,
.modal-content,
.offcanvas {
    background-color: #fff !important;
    color: #212529 !important;
}

.bg-white .btn {
    color: inherit !important;
}

.bg-white .btn-outline-primary {
    color: #0d6efd !important;
}

.bg-white .btn-outline-danger {
    color: #dc3545 !important;
}
.bg-white .badge.bg-danger,
.bg-white .badge.bg-secondary {
    color: #fff !important;
}

.bg-white .badge.bg-warning {
    color: #000 !important;
}
/* Force all children to stay dark */
.bg-white *,
.bg-light *,
.modal-content *,
.offcanvas * {
    color: #212529 !important;
}

/* =========================
   Cards
========================= */
.card {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border-dark) !important;
}

.card .card-title,
.card .card-text,
.card .card-body,
.card .card-footer,
.card .card-header {
    color: inherit;
}

/* Images inside cards */
.card img,
.card-img-top {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* =========================
   Forms
========================= */
label,
.form-label {
    color: #ccc;
}

input,
textarea,
select,
.form-control,
.form-select {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #ced4da;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    background-color: #fff !important;
    color: #000 !important;
}

::placeholder {
    color: #666 !important;
    opacity: 1;
}

/* =========================
   Buttons
========================= */
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #fff;
    color: #000;
}

/* =========================
   Tables
   Default tables are light/readable
========================= */
.table,
.table td,
.table th {
    color: var(--text-dark) !important;
}

.table thead th {
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

.table tbody td {
    color: var(--text-dark) !important;
    border-color: var(--border-light) !important;
}

.table a {
    color: inherit !important;
}

/* Optional dark table variant */
.table-dark-custom,
.table-dark-custom td,
.table-dark-custom th {
    background-color: var(--surface);
    color: var(--text) !important;
}

.table-dark-custom thead th {
    border-color: var(--border-dark) !important;
}

.table-dark-custom tbody td {
    border-color: var(--border-dark-soft) !important;
}

/* =========================
   Dropdowns
========================= */
.dropdown-menu {
    background-color: #111 !important;
    color: #fff !important;
    border-color: var(--border-dark) !important;
}

.dropdown-menu * {
    color: inherit;
}

.dropdown-item {
    color: #fff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #222 !important;
    color: #fff !important;
}

/* =========================
   Alerts
========================= */
.alert-success {
    color: #0f5132;
}

.alert-danger {
    color: #842029;
}

.alert-warning {
    color: #664d03;
}

.alert-info {
    color: #055160;
}

/* =========================
   Hero / Carousel
========================= */
.hero-section {
    min-height: 85vh;
    background: #000;
}

.hero-slide {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item {
    min-height: 85vh;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

/* =========================
   Partner Logos
========================= */
.partner-logo {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
}

/* =========================
   Responsive
========================= */
@media (max-width: 767.98px) {
    .card img,
    .card-img-top {
        height: 280px;
    }
}