/* === INTECH ARENA DARK THEME === */
/* Shared styles for all pages */

body {
    background: #0a0a0f !important;
    color: #e0d6c8 !important;
    font-family: 'Poppins', sans-serif;
}

/* === HEADER SOMBRE ARENA === */
.container-fluid.d-none.d-lg-block {
    background: rgba(10, 10, 15, 0.95) !important;
    border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}
.container-fluid.d-none.d-lg-block h6,
.container-fluid.d-none.d-lg-block small,
.container-fluid.d-none.d-lg-block i,
.container-fluid.d-none.d-lg-block a {
    color: #e0d6c8 !important;
}
.container-fluid.d-none.d-lg-block small b {
    color: #ffd700 !important;
}

/* Navbar sombre */
.navbar, .navbar-light, .bg-light {
    background: rgba(10, 10, 15, 0.95) !important;
}
.navbar .nav-link,
.navbar-nav .nav-link {
    color: #e0d6c8 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffd700 !important;
}
.bg-secondary {
    background: rgba(20, 16, 30, 0.95) !important;
    border-color: rgba(139, 115, 85, 0.4) !important;
}
.bg-secondary h5,
.text-primary {
    color: #ffd700 !important;
}
.navbar-vertical .nav-link {
    color: #d0c8b8 !important;
    border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}
.navbar-vertical .nav-link:hover {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.05) !important;
}
.form-control {
    background: rgba(20, 16, 30, 0.8) !important;
    border-color: rgba(139, 115, 85, 0.5) !important;
    color: #fff !important;
}
.form-control::placeholder {
    color: #8a7a6a !important;
}
.btn-outline-primary {
    border-color: rgba(139, 115, 85, 0.5) !important;
    color: #ffd700 !important;
}
.btn-outline-primary:hover {
    background: rgba(255, 215, 0, 0.15) !important;
}
.btn-secondary {
    background: rgba(20, 16, 30, 0.8) !important;
    border-color: rgba(139, 115, 85, 0.5) !important;
    color: #e0d6c8 !important;
}
.dropdown-menu {
    background: rgba(15, 12, 25, 0.97) !important;
    border: 1px solid rgba(139, 115, 85, 0.3) !important;
}
.dropdown-item {
    color: #d0c8b8 !important;
}
.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #ffd700 !important;
}

/* Hamburger mobile */
.navbar-toggler {
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    background: rgba(10, 10, 15, 0.8) !important;
    padding: 8px 12px;
    border-radius: 8px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffd700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* === PAGE HEADER BANNER === */
.page-header {
    background: linear-gradient(rgba(10, 10, 15, 0.4), rgba(10, 10, 15, 0.7)), url('/assets/img/gates/gate_contact.jpg') center/cover no-repeat !important;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 0 !important;
}
.page-header h3 {
    font-family: 'Cinzel', serif !important;
    color: #ffd700 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 700;
}
.page-header a {
    color: #e0d6c8 !important;
    transition: color 0.3s;
}
.page-header a:hover {
    color: #ffd700 !important;
}
.page-header .fa-angle-double-right {
    color: #ffd700 !important;
}

/* === SECTION COURSES === */
.container-fluid.py-5 {
    background: #0a0a0f !important;
}
.container-fluid.py-5 h5.text-primary {
    font-family: 'Cinzel', serif;
    color: #ffd700 !important;
    letter-spacing: 5px;
}
.container-fluid.py-5 h1 {
    color: #f5e6c8 !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* === COURSE CARDS - STYLE ARENA === */
.col-lg-4 .rounded {
    background: rgba(15, 12, 25, 0.9);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.col-lg-4 .rounded:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
    transform: translateY(-5px);
}
.col-lg-4 .rounded .bg-secondary {
    background: rgba(15, 12, 25, 0.95) !important;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    padding: 1.5rem !important;
}
.col-lg-4 .rounded .bg-secondary .h5,
.col-lg-4 .rounded .bg-secondary a.h5 {
    color: #f5e6c8 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.col-lg-4 .rounded .bg-secondary a.h5:hover {
    color: #ffd700 !important;
}
.col-lg-4 .rounded .bg-secondary small {
    color: #a89a8a !important;
}
.col-lg-4 .rounded .bg-secondary .fa {
    color: #ffd700 !important;
}
.col-lg-4 .rounded .border-top {
    border-color: rgba(139, 115, 85, 0.3) !important;
}
.col-lg-4 .rounded .bg-secondary h5.m-0 {
    color: #ffd700 !important;
    font-weight: 700;
}
.col-lg-4 .rounded .bg-secondary .text-muted {
    color: #6a5a4a !important;
}

/* === DECORATIVE ROMAN TOUCHES === */
.container-fluid.py-5 .text-center.mb-5::before {
    content: '\2694';
    display: block;
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.4);
    margin-bottom: 15px;
}
.container-fluid.py-5 .text-center.mb-5::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    margin: 15px auto 0;
}

/* Roman column decorative borders on cards */
.col-lg-4 .rounded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}
.col-lg-4 .mb-4 {
    position: relative;
}

/* === PAGINATION ARENA STYLE === */
.pagination li {
    margin: 0 3px;
}
.pagination li a {
    background: rgba(15, 12, 25, 0.9) !important;
    border: 1px solid rgba(139, 115, 85, 0.4) !important;
    color: #e0d6c8 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    transition: all 0.3s;
}
.pagination li a:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    border-color: #ffd700 !important;
    color: #ffd700 !important;
}
.pagination li.active {
    background: transparent !important;
}
.pagination li.active a,
.pagination li.active span {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid #ffd700 !important;
    color: #ffd700 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 1px solid #ffd700 !important;
    color: #ffd700 !important;
}
.back-to-top:hover {
    background: #ffd700 !important;
    color: #0a0a0f !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991px) {
    .container-fluid.d-none.d-lg-block {
        display: none !important;
    }
    .navbar-collapse {
        background: rgba(10, 10, 15, 0.97);
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        margin-top: 5px;
    }
    .page-header h3 {
        font-size: 2rem;
    }
}

/* === SCROLLBAR CUSTOM === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.5);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* === SIDEBAR CATEGORIES / SUBJECTS LIST === */
.navbar-vertical,
#navbar-vertical,
.navbar-vertical .navbar-nav {
    background: rgba(10, 10, 15, 0.97) !important;
    border: 1px solid rgba(139, 115, 85, 0.3) !important;
    border-radius: 12px !important;
}
.navbar-vertical .nav-item {
    border-bottom: 1px solid rgba(139, 115, 85, 0.15) !important;
}
.navbar-vertical .nav-item:last-child {
    border-bottom: none !important;
}
.navbar-vertical .nav-link,
.navbar-vertical .nav-item a {
    color: #e0d6c8 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}
.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-item a:hover {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.05) !important;
    padding-left: 25px !important;
}
.navbar-vertical .nav-link .badge,
.navbar-vertical .nav-item a .badge,
.navbar-vertical .nav-link span.badge,
.navbar-vertical .badge,
.badge-warning,
.badge.bg-warning {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    font-weight: 600;
    border-radius: 50% !important;
    min-width: 28px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Sidebar collapse button */
.bg-secondary .h5,
.bg-secondary h5 {
    color: #ffd700 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 2px;
}

/* Courses page sidebar wrapper */
.col-lg-3 .bg-secondary,
.col-lg-3 > .bg-secondary {
    background: rgba(10, 10, 15, 0.95) !important;
    border: 1px solid rgba(139, 115, 85, 0.3) !important;
    border-radius: 12px !important;
}

/* List group items in sidebar */
.list-group-item {
    background: rgba(10, 10, 15, 0.9) !important;
    border-color: rgba(139, 115, 85, 0.2) !important;
    color: #e0d6c8 !important;
    transition: all 0.3s ease;
}
.list-group-item:hover {
    background: rgba(255, 215, 0, 0.05) !important;
    color: #ffd700 !important;
}
.list-group-item .badge {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
}

/* Mobile dropdown for subjects - full width overlay */
@media (max-width: 991px) {
    .navbar-vertical,
    #navbar-vertical,
    .navbar-vertical .navbar-nav,
    .collapse.navbar-collapse .navbar-nav {
        background: rgba(10, 10, 15, 0.97) !important;
    }
    .navbar-vertical .nav-link,
    .navbar-vertical .nav-item a {
        font-size: 1rem;
        padding: 14px 20px !important;
    }
}
