:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f1c40f;
    --dark-bg: #000000;
    --card-bg: #222222;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --border-gold: 1px solid rgba(212, 175, 55, 0.5);
}

body {
    background-color: var(--dark-bg) !important;
    color: var(--text-white) !important;
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white) !important;
}

a {
    color: var(--primary-gold) !important;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-gold) !important;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 2px solid var(--primary-gold) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.navbar-brand {
    color: var(--text-white) !important;
}

.navbar-brand span {
    color: var(--primary-gold) !important;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
}

.top-nav-collapse {
    background: #000 !important;
    border-bottom: 2px solid var(--primary-gold) !important;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4) !important;
}

/* Ensure menu links are visible on scroll (override main.css specificity) */
.top-nav-collapse .navbar-nav .nav-link {
    color: var(--text-white) !important;
}

.top-nav-collapse .navbar-nav .nav-link:hover,
.top-nav-collapse .navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
}

.dropdown-menu {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--primary-gold) !important;
}

.dropdown-item {
    color: var(--text-white) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}

/* Buttons */
.btn-common, .btn-danger, .btn-primary, .btn-success, .apply-btn, .btn-outline-danger:hover {
    background: linear-gradient(45deg, #b8860b, #d4af37, #ffd700, #d4af37, #b8860b) !important;
    background-size: 200% auto !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700 !important;
    animation: shine 3s infinite linear;
}

.btn-common:hover, .btn-danger:hover, .btn-primary:hover, .btn-success:hover, .apply-btn:hover {
    background-position: right center !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4) !important;
}

.btn-border, .btn-outline-danger {
    border-color: var(--primary-gold) !important;
    color: var(--primary-gold) !important;
    background: transparent !important;
}

.btn-border:hover {
    background: var(--primary-gold) !important;
    color: #000 !important;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Sections */
.section-padding {
    background-color: var(--dark-bg) !important;
}

.bg-light, #about, #schedules, #gallery, #pricing, .bg-drack {
    background-color: #0f0f0f !important;
}

.light-background {
    background-color: #0f0f0f !important;
}

/* Cards & Boxes */
.card, .single-intro-text, .team-item, .blog-item, .price-block-wrapper, .competition-card, .counter, .box, .modal-content {
    background-color: var(--card-bg) !important;
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

.card:hover, .competition-card:hover, .box:hover {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 40px rgba(212, 175, 55, 0.7) !important;
}

.card-body, .card-header, .card-footer {
    background-color: transparent !important;
    border-color: rgba(212, 175, 55, 0.1) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Text Colors Override */
.text-primary {
    color: var(--primary-gold) !important;
}
.text-danger {
    color: var(--secondary-gold) !important;
}
.text-secondary {
    color: #ccc !important;
}

.section-title {
    color: var(--primary-gold) !important;
}

.section-title:before, .section-title:after {
    color: var(--text-white) !important;
}

/* Forms */
.form-control, .form-select, input, select, textarea {
    background-color: #111 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}

.form-label, label, .form-group label {
    color: var(--primary-gold) !important;
    font-weight: 600;
}

.form-control::placeholder {
    color: #666 !important;
    opacity: 1;
}

.form-control:focus, .form-select:focus {
    background-color: #000 !important;
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
    color: #fff !important;
}

.choices__inner {
    background-color: #111 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
}
.choices__list--dropdown {
    background-color: #222 !important;
    border: 1px solid var(--primary-gold) !important;
}
.choices__item--choice {
    color: #fff !important;
}
.choices__item--choice.is-highlighted {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}

/* Card Content Text */
.card p, .card span, .card div, .card small {
    color: #fff;
}
.card .text-muted {
    color: #aaa !important;
}


/* Icons */
.icon i, .lni, .bi {
    color: var(--primary-gold) !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary-gold) !important;
}

.social-icons li a i {
    background: var(--primary-gold) !important;
    color: #000 !important;
}

/* Footer */
footer, .footer-section {
    background-color: #050505 !important;
    border-top: 2px solid var(--primary-gold) !important;
    box-shadow: 0 -4px 15px rgba(212, 175, 55, 0.3) !important;
}

.footer-link, .site-info p {
    color: #ccc !important;
}

.footer-link:hover {
    color: var(--primary-gold) !important;
}

.social-icons-footer a:hover {
    border-color: var(--primary-gold) !important;
    color: var(--primary-gold) !important;
}

/* Login/Register Specific */
.login-wrapper, .hold-transition {
    background-image: none !important;
    background-color: var(--dark-bg) !important;
}

.bg-white {
    background-color: var(--card-bg) !important;
    color: #fff !important;
}

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

.shadow-lg {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1) !important;
}

.input-group-text {
    background-color: #222 !important;
    border-color: #333 !important;
    color: var(--primary-gold) !important;
}

/* Table */
.table {
    color: #fff !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.05) !important;
}

/* Preloader */
#preloader {
    background: #000 !important;
}
.sk-circle .sk-child:before {
    background-color: var(--primary-gold) !important;
}

/* Badges */
.badge {
    color: #000 !important;
}
.bg-primary, .fee-badge {
    background-color: var(--primary-gold) !important;
    color: #000 !important;
}
.status-badge {
    /* Keep original colors for status or override if needed */
}

/* Specific Overrides for existing elements */
.section-title-header .subtitle {
    color: var(--primary-gold) !important;
}

/* Enhanced Contact Form Styling */
#contact-map {
    background-color: var(--dark-bg) !important;
    position: relative;
}

/* Add a subtle golden gradient overlay to the section background */
#contact-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.container-form {
    padding: 0 !important; /* Reset padding to let wrapper handle it */
}

.container-form .form-wrapper {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 15px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(212, 175, 55, 0.1),
                inset 0 0 10px rgba(212, 175, 55, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-form .form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(212, 175, 55, 0.2) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
}

.container-form .form-group {
    margin-bottom: 25px !important;
    position: relative;
}

.container-form .form-control {
    background-color: #050505 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    height: auto !important; /* Allow padding to define height */
    color: #fff !important;
    font-size: 15px;
    transition: all 0.3s ease;
}

.container-form .form-control:focus {
    background-color: #000 !important;
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

.container-form .form-control::placeholder {
    color: #bbb !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating label effect using placeholder shown hack if we wanted, 
   but for now let's just make the input look premium */

.form-submit .btn-common {
    width: 100%;
    padding: 15px !important;
    font-size: 16px !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px !important;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.form-submit .btn-common i {
    margin-right: 10px;
}

/* Form validation error text */
.help-block.with-errors {
    color: #ff4d4d !important;
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

#hero-area .contents .head-title {
    color: var(--primary-gold) !important;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.competition-card:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-5px);
}

.back-to-top i {
    background: var(--primary-gold) !important;
    color: #000 !important;
}

/* Tabs */
.competition-tabs .nav-link.active {
    background: var(--primary-gold) !important;
    color: #000 !important;
}

/* Contact Items */
.contact-item i {
    color: var(--primary-gold) !important;
}

/* Overriding gradients from main.css */
.section-title:before, .section-title:after, 
.single-intro-text .count-number,
.blog-item .icon,
.schedule .card .schedule-slot-time,
.counter-section .counter .icon,
.schedule .nav-tabs .nav-item.show .nav-link, 
.schedule .nav-tabs .nav-link.active,
.schedule .nav-tabs .nav-item .nav-link:hover,
#pricing .active,
#count .count-wrapper,
a.back-to-top i {
    background-image: linear-gradient(65deg, #d4af37 0, #ffd700 100%) !important;
    color: #000 !important;
}

.ready-to-play:before {
    background-image: linear-gradient(0deg, #d4af37 0, #ffd700 100%) !important;
}

/* Information Bar Section (About Page) */
#information-bar {
    background-color: var(--dark-bg) !important;
    padding: 20px 0;
    margin-top: 30px; /* Separation from video */
}

#information-bar .inforation-wrapper {
    background-color: var(--card-bg) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 0;
    border-radius: 4px;
}

#information-bar ul li,
#information-bar ul li span,
#information-bar ul li span b {
    color: var(--text-white) !important;
}

#information-bar ul li i {
    color: var(--primary-gold) !important;
}

/* Vertical Separation Lines for Information Bar */
#information-bar .col-lg-3 {
    border-right: 1px solid var(--primary-gold);
}

#information-bar .col-lg-3:last-child {
    border-right: none;
}

/* Mobile responsiveness for Information Bar borders */
@media (max-width: 991px) {
    #information-bar .col-lg-3 {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    #information-bar .col-lg-3:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* =========================================
   User Dashboard Black & Gold Theme Overrides
   ========================================= */

/* Ensure body and wrappers are black */
body.light-skin, 
body.light-skin .content-wrapper, 
body.light-skin .main-footer,
body.light-skin .wrapper {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Sidebar Styling - Black Background with Gold Links */
.main-sidebar, .left-side {
    background-color: #000000 !important;
    border-right: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.sidebar-menu > li > a {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover, 
.sidebar-menu > li.active > a {
    color: #d4af37 !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-left-color: #d4af37 !important;
}

.sidebar-menu > li > a > i {
    color: #d4af37 !important;
}

/* Headings and Text */
body.light-skin h1, body.light-skin h2, body.light-skin h3, 
body.light-skin h4, body.light-skin h5, body.light-skin h6,
body.light-skin .h1, body.light-skin .h2, body.light-skin .h3, 
body.light-skin .h4, body.light-skin .h5, body.light-skin .h6,
body.light-skin .box-title {
    color: #ffffff !important;
}

body.light-skin .text-muted {
    color: #aaaaaa !important;
}

/* Cards & Boxes - Dark with Gold Border */
body.light-skin .card, 
body.light-skin .box, 
body.light-skin .modal-content,
body.light-skin .box-body {
    background-color: #000000 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    color: #ffffff !important;
}

body.light-skin .card-header, 
body.light-skin .box-header,
body.light-skin .modal-header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: #d4af37 !important;
}

body.light-skin .modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* Override utility classes that might set white background */
body.light-skin .bg-white,
body.light-skin .bg-light {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Buttons in dark mode */
body.light-skin .btn-outline-secondary {
    color: #d4af37 !important;
    border-color: #d4af37 !important;
}

body.light-skin .btn-outline-secondary:hover {
    background-color: #d4af37 !important;
    color: #000000 !important;
}

body.light-skin .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Text Colors */
body.light-skin .text-primary { color: #d4af37 !important; }
body.light-skin .text-secondary { color: #cccccc !important; }
body.light-skin .text-dark { color: #ffffff !important; }

/* Badges */
body.light-skin .badge {
    color: #000000 !important;
}
body.light-skin .badge.bg-warning {
    background-color: #d4af37 !important;
    color: #000000 !important;
}
body.light-skin .badge.bg-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

/* Octagon Badge in All Contribution */
body.light-skin .octagon-badge {
    background-color: #d4af37 !important;
    color: #000000 !important;
    font-weight: bold;
    padding: 5px 10px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Carousel Controls */
body.light-skin .carousel-control-prev-icon,
body.light-skin .carousel-control-next-icon {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg);
}

/* Forms - Dark Inputs */
body.light-skin .form-control, 
body.light-skin .form-select, 
body.light-skin input, 
body.light-skin select, 
body.light-skin textarea,
body.light-skin .choices__inner {
    background-color: #050505 !important;
    border: 1px solid #444 !important;
    color: #ffffff !important;
}

body.light-skin .form-control:focus, 
body.light-skin .form-select:focus,
body.light-skin .choices__inner:focus {
    background-color: #000000 !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
}

body.light-skin label, 
body.light-skin .form-label {
    color: #d4af37 !important;
}

/* Table */
body.light-skin .table {
    color: #ffffff !important;
}
body.light-skin .table-light th {
    background-color: #222222 !important;
    color: #d4af37 !important;
    border-color: #444 !important;
}
body.light-skin .table td, 
body.light-skin .table th {
    border-color: #444 !important;
    background-color: transparent !important; 
}

body.light-skin .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.05) !important;
}

/* Navbar (Header) - Ensure Black/Gold */
body.light-skin .navbar {
    background: #000000 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5) !important;
}

/* Remove white background overrides from previous edit */


/* Contact Text Section (Below Map) */
#contact-text {
    background-color: var(--dark-bg) !important;
    padding: 20px 0;
}

#contact-text .contact-wrapper {
    background-color: var(--card-bg) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2) !important;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#contact-text ul li,
#contact-text ul li span,
#contact-text ul li span b,
#contact-text ul li span strong {
    color: var(--text-white) !important;
}

#contact-text ul li i {
    color: var(--primary-gold) !important;
}

/* Vertical Separation Lines for Contact Text */
#contact-text .col-lg-4 {
    border-right: 1px solid var(--primary-gold);
}

#contact-text .col-lg-4:last-child {
    border-right: none;
}

/* Mobile responsiveness for borders */
@media (max-width: 991px) {
    #contact-text .col-lg-4 {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    #contact-text .col-lg-4:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* --- Added Animation & Hover Styles --- */

/* Card Animations & Styling */
.card, .competition-card, .team-item, .single-intro-text, .work-counter-widget .counter {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .competition-card:hover, .team-item:hover, .single-intro-text:hover, .work-counter-widget .counter:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 25px rgba(212, 175, 55, 0.5) !important;
    z-index: 10;
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: scale(1.05);
}

/* Input Focus Effects */
.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5); /* Gold glow */
    border-color: #d4af37;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Competition Card Specifics */
.competition-card {
    border-radius: 10px;
    overflow: hidden;
}

.competition-banner-wrapper {
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.competition-banner-wrapper img {
    transition: transform 0.5s ease;
}

.competition-card:hover .competition-banner-wrapper img {
    transform: scale(1.1);
}

/* Team Item Hover */
.team-item:hover .team-overlay {
    opacity: 1;
}

/* List Group Item - Dark Mode */
body.light-skin .list-group-item {
    background-color: transparent !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #ffffff !important;
}

body.light-skin .list-group-item a {
    color: #ffffff !important; /* Default white for links in list */
    text-decoration: none;
}
body.light-skin .list-group-item a:hover {
    color: #d4af37 !important; /* Gold on hover */
}

/* Ensure text colors are visible on black background */
body.light-skin .text-success { color: #28a745 !important; }
body.light-skin .text-info { color: #17a2b8 !important; }
body.light-skin .text-warning { color: #ffc107 !important; }
body.light-skin .text-danger { color: #dc3545 !important; }

/* Single Intro Text Hover */
.single-intro-text:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
