/* Reset & Basics */
:root {
	--primary-color: #004b79; /* Deep blue from screenshot */
	--secondary-color: #f7941d; /* Orange accent */
	--bg-color: #f4f6f9;
	--card-bg: #ffffff;
	--text-color: #333333;
	--light-text: #777777;
	--border-color: #e1e5eb;
	--success-color: #28a745;
    --red-accent: #f52d5a; /* Vivid pink-red */
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: var(--primary-color);
}

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

/* ========================================
   HEADER & NAVIGATION — Demo Style
   ======================================== */

.site-header {
	background-color: #ffffff !important;
	position: sticky;
	top: 0;
	z-index: 999;
	border-bottom: 1px solid #edf0f4;
	box-shadow: 0 2px 20px rgba(0, 40, 100, 0.06);
}

/* Fix header offset when WordPress admin bar is present */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Ensure nav has no background of its own */
.main-navigation,
#site-navigation {
    background: transparent !important;
}

/* Kill any leftover blue from old CSS */
#primary-menu {
    background: transparent !important;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
    flex-wrap: nowrap;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 0;
}

/* ── Logo area ────────────────────────── */
.site-branding {
    display: flex;
    align-items: center;
    padding: 10px 32px 10px 0;
    border-right: 1px solid #edf0f4;
    flex-shrink: 0;
}

.site-branding img,
.site-branding .custom-logo {
    max-height: 46px;
    width: auto;
    display: block;
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
    color: #1a3c6e;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* ── Navigation container ────────────── */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

/* WordPress wraps nav in a <div> — target the inner ul */
.main-navigation > div {
    display: flex;
    align-items: stretch;
    flex: 1;
    justify-content: flex-end;
}

.main-navigation > div > ul,
.main-navigation > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 15px;
    align-items: stretch;
    justify-content: flex-end;
}

.main-navigation > div > ul > li,
.main-navigation > ul > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* ── Nav links ───────────────────────── */
.main-navigation a,
.main-navigation ul li a,
#site-navigation a,
#primary-menu a,
#primary-menu li a {
	font-weight: 500;
	font-size: 14px;
	color: #333333;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    text-decoration: none;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    white-space: nowrap;
    line-height: normal;
    background: transparent;
    transition: color 0.3s ease;
}

/* Animated Underline Effect */
.main-navigation > div > ul > li > a::after,
.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 22px;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

/* Hover state */
.main-navigation > div > ul > li:hover > a,
.main-navigation > ul > li:hover > a,
#primary-menu > li:hover > a {
    color: var(--primary-color);
}

.main-navigation > div > ul > li:hover > a::after,
.main-navigation > ul > li:hover > a::after {
    width: 100%;
    left: 0;
}

/* Active/current page */
.main-navigation > div > ul > li.current-menu-item > a,
.main-navigation > div > ul > li.current-menu-ancestor > a,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    color: var(--primary-color);
    font-weight: 600;
}
.main-navigation > div > ul > li.current-menu-item > a::after,
.main-navigation > div > ul > li.current-menu-ancestor > a::after,
.main-navigation > ul > li.current-menu-item > a::after,
.main-navigation > ul > li.current-menu-ancestor > a::after {
    width: 100%;
    left: 0;
}

/* Dropdown chevron */
.main-navigation > div > ul > li.menu-item-has-children > a,
.main-navigation > ul > li.menu-item-has-children > a,
#primary-menu > li.menu-item-has-children > a {
    padding-right: 22px !important;
}
.main-navigation > div > ul > li.menu-item-has-children > a::before,
.main-navigation > ul > li.menu-item-has-children > a::before,
#primary-menu > li.menu-item-has-children > a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    position: absolute;
    right: 8px;
    top: 50%;
    margin-top: -4px;
    transition: transform 0.3s ease;
}
.main-navigation > div > ul > li.menu-item-has-children:hover > a::before,
.main-navigation > ul > li.menu-item-has-children:hover > a::before,
.main-navigation > div > ul > li.menu-item-has-children.submenu-open > a::before,
.main-navigation > ul > li.menu-item-has-children.submenu-open > a::before {
    transform: rotate(-135deg);
    margin-top: -1px;
}

/* ── Dropdown sub-menu ───────────────── */
.main-navigation ul.sub-menu,
#primary-menu ul.sub-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-items: stretch;
    justify-content: flex-start;
}

.main-navigation li:hover > .sub-menu,
#primary-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    top: 100%;
}

.main-navigation ul.sub-menu li,
#primary-menu ul.sub-menu li {
    width: 100%;
    display: block;
    position: relative;
}

.main-navigation ul.sub-menu a, 
.main-navigation ul.sub-menu li > a,
#primary-menu ul.sub-menu li > a {
    padding: 12px 24px !important;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    transition: color 0.2s, padding-left 0.2s, background 0.2s;
    white-space: normal;
    display: block;
}

.main-navigation ul.sub-menu li:hover > a,
#primary-menu ul.sub-menu li:hover > a {
    background-color: #fafbfc;
    color: var(--primary-color);
    padding-left: 30px !important;
}

/* 3rd level sub-menu */
.main-navigation ul.sub-menu .sub-menu,
#primary-menu ul.sub-menu .sub-menu {
    left: 100%;
    top: -10px;
}

.header-actions {
	display: flex;
	gap: 10px;
    margin-left: auto;
    align-items: center;
    padding-left: 20px;
}

/* Buttons */
.btn {
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: 600;
	text-align: center;
	display: inline-block;
	border: none;
	cursor: pointer;
}

.btn-login {
	background-color: transparent;
	color: var(--primary-color);
	border: 1px solid var(--primary-color);
}
.btn-login:hover { background-color: var(--primary-color); color: #fff; }

.btn-register {
	background-color: var(--red-accent);
	color: #fff;
}

.btn-play {
	background-color: var(--success-color);
	color: #fff;
	width: 100%;
	padding: 12px;
	font-size: 16px;
	border-radius: 8px;
}
.btn-play:hover { background-color: #218838; }

/* Ads Area */
.ad-widget {
    background: #fff;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
}
.header-ad-area { width: 100%; margin-top: 10px; }

/* Layout Wrapper */
.main-layout-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.content-area {
    flex: 1; /* takes up remaining space (approx 70%) */
    min-width: 0;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(135deg, var(--primary-color), #1a4985);
	color: #ffffff;
	text-align: center;
	padding: 40px 20px;
    margin-bottom: 20px;
}

.hero-content h2 { font-size: 32px; margin: 0 0 10px; }

/* Lottery Grid */
.section-title {
	font-size: 24px;
    margin: 0 0 20px 0;
    line-height: 1.1;
	color: var(--primary-color);
}

.lottery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.lottery-grid.slider-mode {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lottery-grid.slider-mode::-webkit-scrollbar {
    display: none;
}
.lottery-grid.slider-mode .slider-item {
    flex: 0 0 calc(33.3333% - 14px);
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-btn.prev {
    left: -20px;
}
.slider-btn.next {
    right: -20px;
}
.slider-btn:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

@media (max-width: 1200px) {
    .slider-btn.prev { left: 0px; }
    .slider-btn.next { right: 0px; }
}

@media (max-width: 992px) {
    .lottery-grid.slider-mode .slider-item {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 576px) {
    .lottery-grid { gap: 10px; }
    .lottery-grid.slider-mode .slider-item { flex: 0 0 calc(50% - 5px); }
    
    .lottery-card-header { padding: 12px 10px; }
    .lottery-logo { width: 32px; height: 32px; margin-bottom: 8px; }
    .lottery-title { font-size: 13px; line-height: 1.3; }
    
    .lottery-card-body {
        padding: 12px 10px 8px;
        display: flex;
        flex-direction: column;
    }
    .jackpot-amount { font-size: 16px; margin-bottom: 4px; }
    .draw-date { font-size: 11px; margin-bottom: 12px; }
    
    .last-result {
        margin-top: auto !important;
        padding-top: 10px !important;
    }
    .last-result > div:first-child { font-size: 10.5px !important; margin-bottom: 4px !important; }
    
    .lottery-ball, .lottery-ball.bonus {
        width: 22px;
        height: 22px;
        font-size: 11px;
        line-height: 22px;
    }
    .lottery-ball-plus { font-size: 12px; margin: 0 1px; }
    .lottery-balls-container { gap: 3px !important; }
    
    .lottery-card-footer { padding: 10px; }
    .btn.btn-play { padding: 8px 5px; font-size: 13px; }
}

/* Card Design */
.lottery-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
}

.lottery-card-header {
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 15px;
	border-bottom: 1px solid var(--border-color);
}

.lottery-logo { width: 40px; height: 40px; object-fit: contain; }
.lottery-logo-placeholder { width: 40px; height: 40px; background-color: #eee; border-radius: 50%; }
.lottery-title { margin: 0; font-size: 16px; color: var(--primary-color); }

.lottery-card-body {
	padding: 15px;
	flex-grow: 1;
	text-align: center;
}

.jackpot-amount {
	font-size: 24px;
	font-weight: 700;
	color: var(--red-accent);
	margin-bottom: 5px;
}

.draw-date { font-size: 13px; color: var(--light-text); }

.lottery-card-footer {
	padding: 15px;
	background-color: #fafbfc;
	border-top: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
	background-color: #ffffff;
	color: #555555;
	padding: 50px 20px 20px;
	border-top: 1px solid #e1e5eb;
    margin-top: 40px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
    flex-wrap: wrap;
}
.footer-widget-col {
    flex: 1;
    min-width: 250px;
}
.footer-logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}
.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}
.footer-widget-title,
.footer-widget-col .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}
.footer-links,
.footer-widget-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-widget-col ul li {
    margin-bottom: 12px;
}
.footer-links a,
.footer-widget-col ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links a:hover,
.footer-widget-col ul li a:hover {
    color: var(--primary-color);
}
.site-info {
    border-top: 1px solid #e1e5eb;
    padding-top: 20px;
    text-align: left;
    font-size: 13px;
    color: #888;
}
.site-info p {
    margin: 0;
}

/* Mobile Menu Toggle & Overlay */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    position: relative;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}
.menu-toggle.toggled .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.toggled .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.toggled .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}
.menu-overlay.toggled {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .main-layout-wrapper {
        flex-direction: column;
    }
    .widget-area {
        width: 100%;
        margin-top: 0;
    }
    .lottery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .lottery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        align-items: center;
    }
    .site-branding {
        border-right: none;
        padding-right: 0;
    }
    .menu-toggle { display: flex; flex-direction: column; }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        z-index: 10000;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding-top: 80px; /* Space for the close button */
        display: block; /* Overwrite display:none if any */
    }

    .main-navigation.toggled {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 0;
        background: transparent;
        box-shadow: none;
    }

    .main-navigation li {
        display: block;
        border-bottom: 1px solid #f0f2f5;
    }

    .main-navigation a, .main-navigation ul li a, #primary-menu a {
        padding: 16px 24px;
        font-size: 15px;
        color: #333;
    }
    
    .main-navigation a::after {
        display: none; /* Hide animated underline on mobile */
    }

    .main-navigation li:hover > a {
        background-color: #fafbfc;
        color: var(--primary-color);
    }

    /* Mobile submenu accordion */
    .main-navigation ul.sub-menu,
    #primary-menu ul.sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: #f4f6f9;
        animation: none;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-left: 4px solid var(--primary-color);
        min-width: 100%;
    }
    
    .main-navigation li.submenu-open > .sub-menu,
    #primary-menu li.submenu-open > .sub-menu {
        display: flex;
    }
    
    .main-navigation ul.sub-menu a {
        padding: 12px 24px 12px 30px !important;
        font-size: 14px;
        color: #444;
        border-bottom: 1px solid #e1e5eb;
    }
    
    .main-navigation .menu-item-has-children > a::before {
        right: 24px; /* Move chevron to the edge */
    }
    
    .main-navigation .menu-item-has-children.submenu-open > a::before {
        transform: rotate(45deg); /* Point up when open */
    }

    .header-actions {
        display: none;
    }
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
}
.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pagination .current {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* All Lotteries Button */
.all-lotteries-btn-wrapper {
    margin-top: 40px;
    text-align: center;
}
.btn-all-lotteries {
    display: inline-block;
    background-color: #f4f6f9;
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.btn-all-lotteries:hover {
    background-color: #e1e5eb;
}

/* Category Posts Section */
.category-posts-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.category-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e1e5eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.cat-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #0b2b53;
}
.cat-view-all {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.cat-view-all:hover {
    color: #0b2b53;
}
.cat-post-item {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}
.cat-post-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.cat-post-thumb {
    position: relative;
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f4f6f9;
}
.cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-index {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #0b2b53;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}
.cat-post-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cat-name {
    font-size: 11px;
    text-transform: uppercase;
    color: #2b78c5;
    font-weight: 700;
    margin-bottom: 4px;
}
.post-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: #0b2b53;
}
.post-title a {
    color: inherit;
    text-decoration: none;
}
.post-meta {
    font-size: 11px;
    color: #888;
    display: flex;
    gap: 10px;
}

/* Archive & Single Pages */
.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.page-title {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}
.archive-description {
    color: var(--light-text);
    margin-top: 10px;
}
.archive-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.archive-post-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}
.archive-post-item .post-thumbnail {
    flex-shrink: 0;
    width: 250px;
}
.archive-post-item .post-thumbnail img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.archive-post-item .entry-title {
    margin: 0 0 10px 0;
    font-size: 22px;
}
.archive-post-item .entry-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.archive-post-item .entry-meta {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 15px;
}
.archive-post-item .entry-summary {
    color: var(--text-color);
    line-height: 1.6;
}
.single-post-item .entry-title {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
}
.single-post-item .entry-meta {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.single-post-item .entry-content {
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .archive-post-item {
        flex-direction: column;
    }
    .archive-post-item .post-thumbnail {
        width: 100%;
    }
}

/* Mobile responsive for Category Columns */
@media (max-width: 992px) {
    .category-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-columns {
        grid-template-columns: 1fr;
    }
}

/* Lottery Balls Styling */
.lottery-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: #f4f6f9;
    border: 1px solid #d1d6e0;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
}
.lottery-ball.bonus {
    background: #ffeb3b;
    border-color: #fbc02d;
    color: #c2185b;
}

/* ── MEGA CTA SECTION ────────────── */
.mega-cta-section {
    position: relative;
    padding: 60px 20px;
    /* Background image - 798x352px, ratio 2.27:1 */
    background-image: url('/wp-content/uploads/winlottery.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 352px;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    margin: 20px auto 40px;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark gradient overlay for readability */
.mega-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 10, 25, 0.80) 0%,
        rgba(10, 20, 50, 0.70) 50%,
        rgba(5, 10, 25, 0.80) 100%
    );
    z-index: 1;
}

.mega-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mega-cta-badge {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    animation: bounceBadge 2s infinite;
}

@keyframes bounceBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.mega-cta-logo {
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.2));
}

.mega-cta-jackpot {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(246, 211, 101, 0.3);
    line-height: 1.2;
}

.mega-cta-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
}

.time-box small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a8b2d1;
    margin-top: 5px;
}

.colon {
    font-size: 2rem;
    font-weight: bold;
    color: #fda085;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.mega-cta-button {
    position: relative;
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(90deg, #11998e, #38ef7d);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    z-index: 1;
}

.mega-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(56, 239, 125, 0.5);
    color: #fff;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    animation: pulse 2s infinite;
    background: rgba(56, 239, 125, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.time-expired {
    font-size: 1.5rem;
    color: #ff4b2b;
    font-weight: bold;
}

@media (max-width: 768px) {
    .mega-cta-jackpot { font-size: 2.5rem; }
    .mega-cta-timer { padding: 15px; gap: 10px; }
    .time-box span { font-size: 1.8rem; }
    .mega-cta-button { font-size: 16px; padding: 15px 30px; }
}

/* ── SIDEBAR WIDGET AREA ──────────────── */
#secondary.widget-area {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* Widget card container */
.widget {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    border: 1px solid #eef0f5;
}

/* Widget title bar */
.widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color, #1a3c6e);
    padding: 14px 16px;
    margin: 0;
    border-bottom: 2px solid var(--primary-color, #1a3c6e);
    background: #f8f9fc;
    border-left: 4px solid var(--accent-color, #e63946);
}

/* Custom widget wrapper */
.tl-cat-posts-widget {
    padding: 0;
}

.tl-cat-posts-header {
    /* header already styled by .widget-title above */
}

/* Post list */
.tl-cat-post-list {
    padding: 8px 0;
}

/* Each post card */
.tl-cat-post-item {
    margin: 0;
    border-bottom: 1px solid #f0f2f7;
}

.tl-cat-post-item:last-child {
    border-bottom: none;
}

/* Clickable card link wrapping thumb + title */
.tl-post-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tl-post-card-link:hover {
    background: #f4f7fc;
}

/* Thumbnail */
.tl-cat-post-thumb {
    width: 68px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #e8ecf4;
}

.tl-cat-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tl-post-card-link:hover .tl-cat-post-thumb img {
    transform: scale(1.06);
}

/* Placeholder if no thumbnail */
.tl-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dde3f0 0%, #c8d0e4 100%);
}

/* Post title */
.tl-post-title {
    flex: 1;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #1e2a3a;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tl-post-card-link:hover .tl-post-title {
    color: var(--primary-color, #1a3c6e);
}

/* Responsive: hide sidebar on small screens */
@media (max-width: 900px) {
    #secondary.widget-area {
        display: none;
    }
}

/* Latest News Section */
.latest-news-section .section-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-thumb-link {
    display: block;
    width: 100%;
}

.news-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #eee;
    overflow: hidden;
}

.news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    margin: 0 0 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Pagination */
.news-pagination {
    margin-top: 40px;
    text-align: center;
}

.news-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.news-pagination a.page-numbers:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.news-pagination span.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Widget Spacing */
.site-footer .widget_text { padding-left: 20px; padding-right: 20px; margin-left: 15px; margin-right: 15px; }
.site-info { padding-left: 20px; padding-right: 20px; }


.site-footer .footer-widget-col {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 20px;
}
.site-footer .widget {
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 0 0 15px 0;
    padding: 0;
}
.site-footer .widget:last-child {
    margin-bottom: 0;
}
