/* Universal Styles & Base Reset */
:root {
    --primary-color: #28a745; /* Green */
    --secondary-color: #007bff; /* Blue */
    --accent-color: #ffc107; /* Yellow */
    --text-color: #343a40;
    --light-text-color: #6c757d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --font-family: 'Arial', sans-serif;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --border-radius: 0.3rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.refresh-btn {
    position: fixed;       /* page scroll par bhi fix */
    bottom: 20px;          /* bottom se gap */
    right: 20px;           /* right se gap */
    z-index: 9999;         /* sab ke upar dikhe */
    padding: 5px 10px;
    background: #d32f2f;
    color: #fff;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}
.refresh-btn:hover {
    background: #a30000;
    transform: scale(1.1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background-color: #218838; /* Darker green */
    color: #fff;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: #fff;
}

.secondary-btn:hover {
    background-color: #0069d9; /* Darker blue */
    color: #fff;
}

.btn-view-details {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    display: inline-block;
    margin-top: 1rem;
}

.btn-view-details:hover {
    background-color: #e0a800; /* Darker yellow */
    color: var(--text-color);
}

.download-btn {
    background-color: #dc3545; /* Red */
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #c82333; /* Darker red */
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.logo-link {
    display: flex; /* Ensures image is treated correctly for alignment */
    align-items: center;
}

.logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-toggle {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu li a {
    color: var(--text-color);
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://ghoshbabu.in/public/lottery_banner.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #eee;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Section Styling */
section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

section:last-of-type {
    margin-bottom: 0;
}

section h2, section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    font-size: 1.05rem;
    color: var(--light-text-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Results Overview Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background-color: #fefefe;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.result-card .draw-time {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 1rem;
}

.prize-summary .prize-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block; /* Ensure it takes full width for emphasis */
    margin-bottom: 0.5rem;
}

.prize-summary .highlight {
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

/* New: 1st Prize Graphical Ticket Design */
.prize-category-first {
    border-bottom: none; /* Remove bottom border for the ticket design */
    padding-bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0),
        radial-gradient(circle at 10px 10px, rgba(0,0,0,0.04) 1px, transparent 0);
    background-size: 20px 20px;
    padding: 1.5rem;
    margin: -1.5rem; /* Counteract parent padding to fill space */
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.prize-category-first h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: bold;
}

.first-prize-ticket {
    background: linear-gradient(145deg, #fceabb, #f8b500);
    border: 2px solid #e0a800;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    margin-top: 1rem;
    color: #4a2c00;
}

.first-prize-ticket::before,
.first-prize-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 40px;
    background-color: var(--card-background); /* Match the section background */
    border-radius: 50%;
    transform: translateY(-50%);
}

.first-prize-ticket::before {
    left: -12px;
    box-shadow: inset -2px 0 4px rgba(0,0,0,0.1);
}

.first-prize-ticket::after {
    right: -12px;
    box-shadow: inset 2px 0 4px rgba(0,0,0,0.1);
}

.ticket-winner-label {
    background-color: #c82333;
    color: #fff;
    padding: 0.25rem 1rem;
    display: inline-block;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ticket-number {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-shadow: 1px 1px 2px #fff, 0 0 5px rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    margin: 0 -1.5rem 1rem; /* Extend to edges */
}

/* New: Winner Details inside ticket */
.ticket-winner-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.winner-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.winner-info {
    text-align: center;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c82333; /* Red color for name */
    margin: 0;
    text-shadow: 1px 1px 1px #fff;
}

.winner-message {
    font-style: italic;
    color: #5d3a00;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.ticket-graphic .star {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.9);
    margin: 0 0.2rem;
    animation: sparkle 2s infinite ease-in-out;
}

.ticket-graphic .star:nth-child(2) { animation-delay: 0.2s; }
.ticket-graphic .star:nth-child(3) { animation-delay: 0.4s; }
.ticket-graphic .star:nth-child(4) { animation-delay: 0.6s; }
.ticket-graphic .star:nth-child(5) { animation-delay: 0.8s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Detailed Results Section */
.detailed-result-section {
    padding: 2rem 1.5rem;
}

.detailed-result-section .draw-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.detailed-result-section .draw-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.detailed-result-section .draw-date {
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.prize-table-wrapper {
    background-color: #fefefe;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.05);
}

.prize-category {
    margin-bottom: 2rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

.prize-category:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.prize-category h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left; /* Align category titles to the left */
}

/* Base styles for prize number grids */
.prize-numbers {
    display: grid;
    gap: 0.5rem;
    justify-content: center;
}

.multi-col-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.prize-numbers span {
    background-color: red;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background-color 0.2s, color 0.2s;
}

.prize-numbers span:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* New: Styles for 3rd, 4th, 5th prizes (small and dense) */
.prize-numbers.small-dense {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* Slightly denser than default multi-col */
    gap: 0.3rem; /* Reduce gap */
}

.prize-numbers.small-dense span {
    font-size: 0.6rem; /* Smaller font size */
    padding: 0.25rem 0.4rem; /* Smaller padding */
    font-weight: 500; /* Slightly less bold to emphasize smaller size */
}

/* New: Winner Spotlight Section */
.winner-spotlight {
    display: none; /* Hiding the old spotlight as its content is now in the ticket */
}

/* Schedule Section */
.schedule-section .schedule-table-wrapper {
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.05);
}

.schedule-section table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px; /* Ensure table doesn't get too narrow */
}

.schedule-section th, .schedule-section td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
}

.schedule-section th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-section tr:nth-child(even) {
    background-color: #f2f2f2;
}

.schedule-section tr:hover {
    background-color: #e9e9e9;
}

/* SEO Content Section */
.seo-content h2, .seo-content h3 {
    text-align: left;
    color: var(--text-color);
}

.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.seo-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.seo-content p {
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.seo-content strong {
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
    border-top: 5px solid var(--primary-color);
}

footer .disclaimer {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

footer .quick-links a {
    color: #fff;
    margin: 0 0.75rem;
    font-size: 0.95rem;
}

footer .quick-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    .prize-category-first {
        margin: -0.75rem;
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .winner-spotlight h4 { font-size: 1.4rem; }
    .winner-spotlight .winner-name { font-size: 1.1rem; }
    .winner-spotlight .winner-message { font-size: 0.9rem; }

    /* Header Nav Toggle */
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none; /* Hide by default on small screens */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        box-shadow: var(--shadow);
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Ticket winner details adjustments for mobile */
    .ticket-winner-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    .winner-name {
        font-size: 1.3rem;
    }
    .ticket-number {
        font-size: 2.2rem;
    }

    /* Results Grid - Collapses into single column */
    .results-grid {
        grid-template-columns: 1fr;
    }

    /* Detailed Result Prize Numbers - Adjust columns */
    .multi-col-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); /* More compact on small screens for 2nd prize */
        gap: 0.5rem;
    }

    .prize-numbers.small-dense { /* Even smaller columns for 3rd, 4th, 5th prize */
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.2rem; /* Even smaller gap */
    }

    .prize-numbers.small-dense span {
        font-size: 0.7rem; /* Even smaller font size */
        padding: 0.15rem 0.3rem; /* Even smaller padding */
    }

    /* Responsive Table for Schedule */
    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        background-color: var(--card-background);
        padding: 1rem;
    }

    .responsive-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Space for the label */
        text-align: right;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    .responsive-table td::before {
        /* This is where the magic happens! */
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
    .schedule-section td:nth-of-type(1)::before { content: "Day:"; }
    .schedule-section td:nth-of-type(2)::before { content: "Time:"; }
    .schedule-section td:nth-of-type(3)::before { content: "Draw Name:"; }

    .seo-content h2, .seo-content h3 {
        text-align: center;
    }

    footer .quick-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    footer .quick-links a {
        margin: 0;
        padding: 0.25rem 0.5rem;
    }
}

@media (min-width: 769px) {
    .nav-menu.active {
        display: flex; /* Ensure it's always flex on large screens */
    }
}

/* Specific adjustments for larger desktops */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
    .detailed-result-section .prize-table-wrapper {
        padding: 2.5rem;
    }
    .prize-category h3 {
        font-size: 1.4rem;
    }
    .prize-category-first {
        margin: -2.5rem;
        padding: 2.5rem;
        margin-bottom: 2rem;
    }
    /* Make winner details side-by-side on larger screens */
    .ticket-winner-details {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }
    .winner-info {
        text-align: left;
    }

    /* New: Smaller style for 3rd, 4th, 5th prize numbers on larger screens */
    .prize-numbers.small-dense {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)); /* A bit denser than mobile, more readable */
        gap: 0.3rem;
    }

    .prize-numbers.small-dense span {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}
.h33 {
  width: auto;
  background: gold;
    -moz-border-radius:75px;
    -webkit-border-radius: 75px;
}
.matka_link{color:black;background:linear-gradient(110deg,#f16868 30%,rgba(0,0,0,0) 60%);box-shadow:1px 2px 5px #333;padding:10px;font-size:0.9em;border-radius:5px}
.matka_link:hover{background:linear-gradient(110deg,rgba(0,0,0,0) 30%,#f16868 60%);color:#00f;border-radius:20px}
.h3{background:linear-gradient(110deg,rgba(0,0,0,0) 50%,gold 50%);color:#000;border:solid 2px #7c0808;box-shadow:1px 2px 5px #333;padding:10px;font-size:20px;border-radius:5px} 
h3:hover{color:red;background:linear-gradient(110deg,gold 50%,rgba(0,0,0,0) 50%);border-radius:50px}
 .right-block{margin-left:150px;width:120px;text-align:center}
  .mrp{font-size:12px;font-weight:900;color:#c21b1b;background:#fff7f7;padding:2px;border-radius:6px;border:1px solid #f0dede}
  .live{margin-top:10px;background:#f39c12;color:#fff;padding:8px;border-radius:6px;font-weight:800}