/* ============================================
   GLOBAL VARIABLES
   ============================================ */
:root {
    --primary-blue: #073e95;
    --dark-blue: #0056b3;
    --primary-green: #99fe4b;
    --dark-bg: #212529;
    --light-text: #f8f9fa;
    --main-border: 2px solid #000;
    --content-padding: 10px;
    --yellow-bar: #fdd835;
    --grid-border-color: #000000;
    --yellow-accent: #ffcc00;
    --header-dark-blue: #1c529e;
    --box-border-color: #e0e0e0;
    --light-green: #8efb36;
}

/* ============ GLOBAL RESETS ============ */
* {
    font-family: Arial, Helvetica, sans-serif !important;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif !important;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: visible !important;
}

/* ============================================
   MASTER CONTAINER
   ============================================ */
.page-master-container {
    width: 100%;
    max-width: 1024px;
    margin: 10px auto;
    border: var(--main-border);
    border-radius: 8px;
    background: #fff;
    overflow: visible !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 1000px) {
    .page-master-container {
        margin: 5px auto;
        width: 98%;
        border-radius: 6px;
    }
}

@media (max-width: 600px) {
    .page-master-container {
        margin: 0 auto;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ============================================
   HEADER STYLES
   ============================================ */
.top-bar {
    background: var(--dark-blue);
    padding: 8px 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    color: white !important;
    text-decoration:none;

}

.logo-section a:hover {
    color: white !important;
    background-color: transparent !important;
}

.logo-section a:hover span {
    color: black !important;
    background-color: transparent !important;
}

.logo-section a:hover img {
    opacity: 1 !important;
    filter: none !important;
}

.site-header a:hover {
    background-color: transparent !important;
}

.logo-section span {
    transition: none !important;
}

.logo-section img {
    width: 35px;
    height: 35px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .logo-section img {
        height: 35px;
    }
    
    .logo-section a {
        gap: 5px;
    }
}

.search-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.search-page-link img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}

@media (max-width: 480px) {
    .search-page-link img {
        width: 20px;
        height: 20px;
    }
}

/* ============ CATEGORY BAR ============ */
.category-bar {
    background: var(--dark-bg);
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    border-top: 2px solid var(--yellow-bar);
    border-bottom: 2px solid var(--yellow-bar);
}

.category-bar a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    padding: 10px 8px;
    flex: 1 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background-color 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-bar a:hover,
.category-bar a:focus {
    background-color: #99fe4b !important;
    outline: none;
}

/* Desktop - force single line */
@media (min-width: 1024px) {
    .category-bar {
        flex-wrap: nowrap;
    }
    
    .category-bar a {
        font-size: 12px;
        padding: 10px 4px;
        white-space: nowrap;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .category-bar a {
        font-size: 13px;
        padding: 10px 6px;
    }
}

/* Tablet landscape */
@media (max-width: 1023px) and (min-width: 769px) {
    .category-bar a {
        flex: 1 0 25%;
        font-size: 12px;
        padding: 10px 4px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) and (min-width: 481px) {
    .category-bar a {
        flex: 1 0 33.333%;
        font-size: 12px;
        padding: 10px 4px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .category-bar a {
        flex: 1 0 50%;
        font-size: 12px;
        padding: 10px 3px;
        white-space: normal;
        line-height: 1.3;
        min-height: 50px;
    }
    
    .category-bar a:nth-child(even) {
        border-right: none;
    }
    
    .category-bar a:nth-child(odd) {
        border-left: none;
    }
}

@media (max-width: 360px) {
    .category-bar a {
        font-size: 11px;
        padding: 8px 2px;
    }
}
/* ============================================
   CONTENT AREA & ACCESSIBILITY
   ============================================ */
.content-area {
    padding: 15px;
}

@media (max-width: 768px) {
    .content-area {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 8px;
    }
}

:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer-wrapper {
    background: var(--dark-bg);
    padding: 0;
}

.footer-disclaimer-full-width {
    background-color: #f0f0f0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 12px 0;
}

.footer-content-inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.footer-disclaimer {
    font-size: 12px;
    color: #555;
    line-height: 20px;
}

.footer-disclaimer strong { 
    color: var(--primary-blue); 
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
    padding: 8px 4px;
    color: #fff;
}

.footer-column h3 {
    font-size: 12px;
    color: #99fe4b;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 6px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.footer-column a {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    opacity: .85;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: #99fe4b;
}

@media (max-width: 980px) {
    .footer-links-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-links-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-links-container {
        grid-template-columns: 1fr;
    }

    .footer-column {
        transition: all 0.2s ease;
    }

    .footer-column h3 {
        background: #333;
        padding: 12px;
        margin: 0;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        white-space: normal;
    }

    .footer-column h3::after {
        content: '+';
        float: right;
        font-size: 18px;
        color: var(--primary-green);
    }

    .footer-column.open h3::after {
        content: '-';
    }

    .footer-column a {
        display: none;
        padding-left: 12px;
        font-size: 12px;
        white-space: normal;
        line-height: 24px;
    }

    .footer-column.open a {
        display: block;
    }
}

.full-width-copyright-bar {
    background: #fff;
    border-top: 1px solid #ccc;
}

.footer-copyright {
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    color: #000;
}

/* ============ AD STYLES ============ */
.ad-box-fix {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    min-height: 90px;
    max-width: 100%;
    box-sizing: border-box;
}
.ad-box-fix ins,
.ad-box-fix iframe {
    position: relative !important;
    z-index: 1 !important;
    max-width: 100%;
}

ins.adsbygoogle {
    max-width: 100% !important;
    width: 100% !important;
}

.ad-box-fix .adsbygoogle {
    pointer-events: auto !important;
}

.ad-label-small { 
    font-size: 10px; 
    color: #666; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 5px; 
    text-align: center; 
    letter-spacing: 0.5px;
}

.top-ad-area { 
    width: 100%;
    max-width: 100%;
    text-align: center; 
    padding: 20px 0;
    background: #fff;
    min-height: 90px;
    contain: layout;
}

.left-ad-sidebar { 
    width: 180px;
    min-width: 180px;
    padding: 10px;
    text-align: left;
    min-height: 600px;
    flex-shrink: 0;
}

.main-content-flex { 
    display: flex; 
    flex-wrap: wrap; 
    padding: 0; 
    align-items: flex-start;
    min-height: 600px;
}

.content-main-box { 
    flex: 1; 
    min-width: 300px; 
    background: #fff; 
    padding: 5px;
    box-sizing: border-box; 
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#ast-scroll-top {
    position: fixed ;
    bottom: 30px ;
    right: 30px ;
    width: 45px ;
    height: 45px ;
    background-color: var(--dark-blue);
    border-radius: 50% ;
    cursor: pointer ;
    display: none;
    align-items: center;
    justify-content: center ;
    z-index: 9999 ;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) ;
    transition: background-color 0.3s ease ;
}

#ast-scroll-top[style*="display: block"] {
    display: flex ;
}

#ast-scroll-top:hover {
    background-color: var(--primary-blue) ;
}

#ast-scroll-top .ast-arrow-svg {
    fill: #ffffff;
    width: 20px ;
    height: 20px ;
    transform: rotate(180deg) ;
}

#ast-scroll-top .screen-reader-text {
    display: none ;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-right: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-container {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    
    .mobile-menu-container.open {
        max-height: 500px;
        transition: max-height 0.4s ease-in;
    }
    
    .category-bar {
        flex-direction: column;
        border-top: none;
    }
    
    .category-bar a {
        flex: none;
        width: 100%;
        text-align: left;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .logo-section {
        flex: 1;
    }
    
    .search-page-link {
        margin-left: auto;
    }
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .category-bar,
    .search-page-link,
    .top-ad-area,
    .left-ad-sidebar,
    .ad-label-small,
    .ad-box-fix,
    .social-share-icons,
    .post-navigation {
        display: none !important;
    }
    
    .page-master-container {
        border: none;
        margin: 0;
        max-width: 100%;
    }
}