/* New Theme Overrides */
:root {
    --primary-orange: #ff9100;
    --secondary-orange: #ff6a00;
    --primary-blue: #000066;
    --accent-blue: #0033cc;
    --text-white: #ffffff;
    --bg-light: #f4f4f4;
    --footer-bg: #0b0c3a;
}

body {
    background-color: var(--bg-light);
    font-family: 'Poppins', sans-serif;
}

/* Header */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.navbar-brand img {
    height: 50px;
    border-radius: 50%;
    /* Circular Logo */
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Mobile Toggler */
.navbar-toggler {
    background: var(--bg-light) !important;
    border: 1px solid var(--primary-blue);
}

.navbar-toggler-icon {
    line-height: 1.5;
}

.navbar-toggler-icon i {
    color: var(--primary-blue);
}

.btn-whatsapp-header:hover {
    background: #128C7E !important;
    text-decoration: none;
}

.navbar-toggler-icon i {
    color: var(--primary-blue) !important;
    font-size: 28px;
}

/* Hero Section */
.top-sect {
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    height: auto;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    clip-path: none;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.telegram-btn {
    background: #229ED9;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.admin-msg-btn {
    background: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    border: 2px solid white;
}

.admin-msg-btn:hover {
    background: #000;
    color: white;
}

/* App Showcase */
.app-showcase {
    padding: 40px 0;
    text-align: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 10px;
}

/* High Specificity Override for Download Button */
.text-center .download-btn {
    background-color: var(--primary-blue) !important;
    color: white !important;
    text-decoration: none !important;
    border: 2px solid var(--primary-blue) !important;
    display: inline-flex !important;
}

.text-center .download-btn:hover,
.text-center .download-btn:focus,
.text-center .download-btn:active {
    background-color: white !important;
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    text-decoration: none !important;
}

/* Common Section Titles */
.sec-title h3 {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.sec-title h3::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--primary-orange);
    margin: 10px auto 0;
}

/* Game Rates */
.rate-area {
    background: white;
    padding: 40px 0;
}

.rate-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-name {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.rate-value {
    color: var(--secondary-orange);
    font-weight: bold;
}

/* Available Games (Results) */
.play_result {
    background: #f9f9f9;
}

.game-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--primary-blue);
}

.game-info h4 {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;
}

.game-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.game-result {
    text-align: center;
}

.game-result span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.game-action .btn-chart {
    background: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 10px;
}

/* Table Headers - Fixed visibility */
#time-table .table thead,
#starline .table thead,
#galidisawar .table thead,
.table thead {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

#time-table .table thead th,
#starline .table thead th,
#galidisawar .table thead th,
.table thead th {
    border: none;
    font-weight: 600;
    color: white !important;
    background-color: var(--primary-blue) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Banner Carousel */
.banner-area {
    margin: 20px 0;
}

.banner-carousel .item img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* How to Play Section */
/* How to Play Section - Image styles removed to keep original appearance */

#how-to-play ul li {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-orange);
}

#how-to-play ul li h4 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

#how-to-play ul li i {
    float: right;
    color: var(--secondary-orange);
}

/* Footer - Attractive */
footer {
    background: var(--footer-bg);
    color: #cfcfcf;
    padding: 50px 0 20px;
}

footer h3 {
    color: white;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p {
    line-height: 1.8;
}

footer a {
    color: var(--primary-orange);
    transition: 0.3s;
}

/* Mobile Navigation Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .nav-link {
        color: var(--primary-blue) !important;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
}

footer a:hover {
    color: white;
    text-decoration: none;
}

footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}