/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    padding: 20px;
    max-width: 1100px;
    margin: auto;
    background-color: #ffffff;

    background-image:
        radial-gradient(circle at top left, rgba(255, 248, 220, .8) 0%, transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 233, 168, .7) 0%, transparent 30%),
        radial-gradient(#e8e8e8 1px, transparent 1px);

    background-size:
        auto,
        auto,
        24px 24px;

    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: fixed;
}

.text-custom {
    color: #292722;
}

table th,
table td {
    width: 11.11%;
    /* 9 columns: 1 label + 8 data */
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    font-size: 1.1rem;
    height: 45px;
    border: 1px solid #ddd;
}

table th {
    background-color: #0d6efd;
    color: white;
}

.date-heading {
    margin-top: 0px;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 16px;
    background: #ff6d01;
    /* background: #292722; */
    padding: 5px;
    text-align: center;
    color: #fff;
}

.text-muted {
    color: #bbb;
}

.table-bordered thead th {
    /* background: #dfecfb; */
    background: #fff1c9;
}

.table-bordered td {
    font-weight: 400;
}

.table-bordered th {
    font-weight: bold;
}

.table-bordered td,
.table-bordered th {
    font-size: 16px;
    padding: 8px !important;
    height: auto !important;

    vertical-align: middle;
}




.logo {
    font-size: 24px;
    text-align: center;
    margin: 0px 0 15px 0;
    width: 100%;

}

.logo img {
    max-width: 130px;
}

.blinking-dot {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#refreshButton {
    float: right;
    background: #292722;
    color: #fff;
    font-size: 14px;
    border: none;
    padding: 6px 15px;
    border-radius: 3px;
}

.clear {
    clear: both;
}

/* Compact date range form styling */
#dateRangeForm {
    max-width: 450px;
    margin: 0 auto 30px auto;
    font-size: 0.85rem;
}

#dateRangeForm .form-label {
    font-weight: 600;
    margin-bottom: 4px;
}

#dateRangeForm input[type="date"] {
    padding: 4px 8px;
    font-size: 0.85rem;
    height: 32px;
}

#dateRangeForm .btn {
    padding: 6px 0;
    font-size: 0.85rem;
    height: 34px;
}

#dateRangeForm>div {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ===== Header ===== */
.custom-header {
    /* background: #fff; */
    border-bottom: 2px solid #292722;
    padding: 15px;
    text-align: center;
}

.logo-area {
    margin-bottom: 15px;
}

.logo-area img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* ===== Menu ===== */
.custom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.custom-nav a {
    text-decoration: none;
    color: #292722;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 30px;
    transition: .3s;
}

.custom-nav a:hover {
    background: #292722;
    color: #fff;
}

.custom-nav .active-pill {
    background: #ff6d01;
    /* background: #292722; */
    color: #fff;
}

/* ===== Tablet ===== */
@media (max-width:768px) {

    .logo-area img {
        max-width: 170px;
    }

    .custom-nav {
        gap: 10px;
    }

    .custom-nav a {
        font-size: 14px;
        padding: 8px 14px;
    }
}

/* ===== Mobile ===== */
@media (max-width:480px) {

    .custom-header {
        padding: 12px;
    }

    .logo-area img {
        max-width: 140px;
    }

    .custom-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }

    .custom-nav a {
        text-align: center;
        font-size: 13px;
        padding: 10px;
        width: 100%;
    }
}

.btn-primary {
    background: #ff6d01 !important;
    border: 1px solid #ff6d01;
}

.text-primary {
    color: #ff6d01 !important;
}

.live-marquee {
    background-color: #ff6d01;
    /* background-color: #292722; */
    /* Dark blue */
    color: #fff;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    /* margin-left: -20px; */
    /* Offset body padding */
    /* margin-right: -20px; */
    margin-bottom: 20px;
}

.live-marquee .live-label {
    margin-right: 15px;
    white-space: nowrap;
}

.live-marquee marquee {
    flex-grow: 1;
}

/* tips */
.tips-title {
    text-align: center;
    color: #292722;
    /* dark blue */
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.tips-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px auto;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.tips-table th {
    background-color: #292722;
    /* dark blue */
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #292722;
}

.tips-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
    font-size: 16px;
    font-weight: 400;
}

.tips-table tr:nth-child(even) {
    background-color: #f8fbff;
    /* light blue tint */
}

.bazi-col {
    text-align: left !important;
    width: 30%;
    padding-left: 30px !important;
    font-weight: 400 !important;
}

.status-icon {
    display: inline-block;
    margin-left: 10px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: white;
    font-size: 12px;
}

.status-wrong {
    background: #dc3545;
}

.status-correct {
    background: #28a745;
}



/* Voting CSS */
.voting-section {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.vote-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vote-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    color: #292722;
}

.vote-btn:hover {
    border-color: #292722;
}

.vote-btn.selected {
    background: #292722;
    border-color: #292722;
    color: #fff;
}

.cast-vote-btn {
    background: #292722;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.cast-vote-btn:hover {
    background: #22304d;
}

.vote-msg {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

.live-results-title {
    color: #292722;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.results-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .results-container {
        grid-template-columns: 1fr;
    }
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.result-num-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    background: #292722;
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    color: #fff;
}

.progress-bar-bg {
    background: #eee;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #28a745;
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

/* Content Box CSS */
.content-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 50px auto;
    max-width: 900px;
}

.content-box h4 {
    color: #292722;
    font-weight: bold;
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #292722;
    padding-bottom: 5px;
}

.content-box h4:first-child {
    margin-top: 0;
}

.content-box p,
.content-box ul {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
}

.content-box ul {
    padding-left: 20px;
}

.content-box li {
    margin-bottom: 8px;
}

/* tips */
/* patti */
.page-title {
    text-align: center;
    color: #292722;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.page-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.patti-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    border: 2px solid #292722;
}

.patti-table th {
    background-color: #292722;
    color: #ffffff;
    padding: 12px;
    font-size: 18px;
    border: 1px solid #292722;
}

.patti-table td {
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.patti-table tr:nth-child(even) {
    background-color: #f8fbff;
}

.patti-table tr:hover {
    background-color: #e6f2ff;
}

.bottom-section {
    border-top: 3px solid #292722 !important;
}

/* patti */

/* --- GRID LAYOUT FIX (no format change; only CSS) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop */
    gap: 30px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2 columns on tablets */
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* 1 column on mobile */
}

.blog-post {
    margin-bottom: 0;
}

.blog-post a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 20px;
    font-weight: 500;
    color: #292722;

}

/* .blog-title:hover {
    text-decoration: underline;
} */

/* --- /GRID LAYOUT FIX --- */
@media (max-width: 576px) {

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* 21-08-2026 */

.weekly-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #f5f6f7;
    color: #111;
    border: 1px solid #333;
}

.weekly-table th {
    height: 36px;
    background: #292823;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.weekly-table td {
    /* width: 100%; */
    padding: 10px 8px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #333;
    vertical-align: middle;
}

.weekly-table td:last-child {
    border-right: 0;
}

.result-row {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 4px 0;
}

.result-row input[type="text"].save-input {
    width: 100px !important;
    height: 30px !important;
    padding: 2px 4px !important;
    border: 1px solid #ccc !important;
    outline: none;
    background: #ffffff !important;
    color: #111 !important;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, background-color 0.2s;
}

.result-row .display-val {
    display: inline-block;
    width: 60px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.result-row input[type="text"].save-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.result-row .middle-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.result-row span {
    font-size: 18px;
    font-weight: 700;
}
.result-table tr td {
    font-size: 18px !important;
    font-weight: 700;
}
@media (max-width: 576px) {

    .result-row input[type="text"].save-input,
    .result-row .display-val {
        width: 48px !important;
        font-size: 14px;
    }

    .weekly-table th {
        font-size: 16px;
    }
}