/*
Theme Name: MH Alerts Pro SEO Edition
Theme URI: https://mhalerts.com
Author: Automation Pipeline
Description: Ultimate SEO theme with App Menu, AdSense, Custom Footer, OneSignal Push, Age Calculator, and MCQ Quizzes.
Version: 10.0.0
Text Domain: mhalerts-pro
*/

/* VARIABLES */
:root {
    --bg-color: #f4f7f6;
    --surface-color: #ffffff;
    --footer-bg: #03081F;
    --text-primary: #1A1A2E;
    --text-secondary: #6B7280;
    --accent: #FFD600; 
    --accent-glow: rgba(255, 214, 0, 0.4);
    --primary: #081B4B; 
    --border-color: #e5e7eb;
    
    --logo-width-desktop: 250px;
    --logo-width-mobile: 180px;
    --footer-logo-width: 250px;
    --title-size: 28px;
    --header-dir: row;
    --header-justify: space-between;
}

* { box-sizing: border-box; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
body { margin: 0; font-family: 'Yantramanav', 'Noto Sans Devanagari', sans-serif; background-color: var(--bg-color); color: var(--text-primary); line-height: 1.6; overflow-x: clip; }
a { text-decoration: none; color: var(--primary); transition: 0.2s; }

/* HEADER LAYOUT */
.site-header { background: var(--surface-color); padding: 15px 5%; display: flex; flex-wrap: wrap; flex-direction: var(--header-dir); justify-content: var(--header-justify); align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: -1px; z-index: 1000; border-bottom: 3px solid var(--accent); }
.site-branding { display: flex; align-items: center; justify-content: center; }
.site-branding a { font-size: var(--title-size); font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 8px; line-height: 1.1; }
.site-branding span { color: var(--accent); }
.site-branding img.custom-logo { width: var(--logo-width-desktop); max-width: 100%; height: auto; object-fit: contain; }

/* DESKTOP MENUS */
.main-navigation { display: flex; align-items: center; }
.menu-wrapper { display: flex; align-items: center; }
.primary-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.primary-menu li a { color: var(--text-primary); font-weight: 700; font-size: 18px; padding: 5px 10px; border-radius: 6px; }
.primary-menu li a:hover { background: var(--bg-color); color: var(--primary); }
.menu-toggle { display: none; background: transparent; color: var(--primary); border: none; padding: 5px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-search { display: none; }

/* NEWS TICKER */
.news-ticker { background: #fff; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); font-weight: 700; font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.ticker-label { background: #E63946; color: #fff; padding: 8px 15px; white-space: nowrap; font-weight: 900; position: relative; z-index: 2; }
.news-ticker marquee { padding: 8px 0; color: var(--text-primary); flex-grow: 1; }
.news-ticker a { color: var(--primary); margin-right: 30px; }
.news-ticker a:hover { color: #E63946; text-decoration: underline; }

/* AD SPACES */
.ad-space { text-align: center; margin: 20px auto; min-height: 90px; background: rgba(0,0,0,0.02); display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-color); color: #aaa; font-size: 12px; width: 100%; max-width: 728px; overflow: hidden; }

/* BREADCRUMBS */
.breadcrumbs { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 20px; padding: 10px 15px; background: #fff; border-radius: 8px; border: 1px solid var(--border-color); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: #E63946; }
.breadcrumbs .current { color: #E63946; }

/* HERO SECTION */
.hero-section { background: linear-gradient(135deg, var(--primary), #1A3673); color: #fff; padding: 40px 20px; text-align: center; border-bottom: 5px solid var(--accent); position: relative; overflow: hidden; }
.hero-section h1 { font-size: 38px; font-weight: 900; margin: 0 0 10px 0; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-section p { font-size: 18px; color: #cbd5e1; margin: 0; max-width: 800px; margin: 0 auto; }

/* GRID LAYOUTS */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.section-title { font-size: 26px; font-weight: 900; border-left: 6px solid #E63946; padding-left: 15px; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

/* QUICK LINKS */
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.quick-link-box { background: #fff; border: 2px solid var(--border-color); padding: 15px; text-align: center; border-radius: 12px; font-weight: 900; font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); color: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 80px; line-height: 1.2; }
.quick-link-box:hover { border-color: var(--accent); background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px var(--accent-glow); }

/* CARDS */
.job-card { background: var(--surface-color); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.job-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.job-card img { width: 100%; height: auto; border-bottom: 1px solid var(--border-color); }
.job-card-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.job-card h3 { font-size: 19px; margin: 0 0 10px 0; font-weight: 800; line-height: 1.3; }
.job-card a.read-more { margin-top: auto; display: block; background: var(--primary); color: #fff; text-align: center; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 16px; border-bottom: 3px solid #051029; }
.job-card a.read-more:hover { background: var(--accent); color: #000; border-bottom-color: #cca800; }

/* PAGINATION */
.pagination { text-align: center; margin-top: 40px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 10px 18px; background: var(--surface-color); color: var(--primary); font-weight: 700; border-radius: 8px; border: 1px solid var(--border-color); }
.pagination a:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* SINGLE POST */
.single-container { max-width: 850px; margin: 20px auto; background: var(--surface-color); padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.single-container img { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 20px; }
.entry-title { font-size: 32px; font-weight: 900; margin-bottom: 15px; line-height: 1.3; color: var(--primary); }
.entry-meta { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); font-weight: 700; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content h2, .entry-content h3 { color: var(--primary); margin-top: 25px; padding-bottom: 5px; }

/* SOCIAL SHARE BUTTONS */
.share-buttons { display: flex; gap: 10px; }
.share-btn { padding: 6px 12px; border-radius: 5px; font-weight: 700; color: #fff !important; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tg { background: #0088cc; }

/* DISCLAIMER WARNING BOX */
.disclaimer-warning { background: #fff0f0; border-left: 5px solid #E63946; padding: 15px 20px; border-radius: 8px; margin: 25px 0; font-size: 16px; font-weight: 700; color: #d32f2f; line-height: 1.5; }

/* JOIN COMMUNITY BOX */
.join-community-box { background: #FFF9F2; border: 2px dashed #FFD600; border-radius: 12px; padding: 25px; text-align: center; margin: 30px 0; box-shadow: 0 8px 20px rgba(255, 214, 0, 0.15); }
.join-community-box h3 { color: #E63946; margin-top: 0; font-size: 24px; font-weight: 900; }
.join-community-box p { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.join-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-wa, .btn-tg { padding: 12px 25px; border-radius: 50px; font-weight: 900; font-size: 16px; color: #fff !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: inline-flex; align-items: center; gap: 8px; }
.btn-wa { background: linear-gradient(135deg, #25D366, #128C7E); border-bottom: 3px solid #075E54; }
.btn-tg { background: linear-gradient(135deg, #0088cc, #005A9E); border-bottom: 3px solid #003F6E; }
.btn-wa:hover, .btn-tg:hover { transform: translateY(-2px); }

/* AGE CALCULATOR WIDGET */
.age-calc-widget { background: var(--bg-color); border: 2px solid var(--primary); border-radius: 12px; padding: 20px; margin: 25px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.age-calc-widget h4 { margin: 0 0 15px 0; color: var(--primary); font-size: 20px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
.age-calc-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.age-calc-col { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.age-calc-col label { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.age-calc-col input { padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 16px; font-family: inherit; }
.age-calc-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; font-size: 16px; font-weight: 700; border-radius: 6px; cursor: pointer; display: block; width: 100%; transition: 0.2s; }
.age-calc-btn:hover { background: var(--accent); color: #000; }
.age-calc-result { margin-top: 15px; padding: 15px; background: #e8f5e9; border: 1px dashed #4caf50; border-radius: 6px; font-size: 18px; font-weight: 700; color: #2e7d32; display: none; text-align: center; }

/* MCQ QUIZ WIDGET */
.mcq-widget { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin: 25px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.mcq-question { font-size: 20px; font-weight: 900; color: var(--primary); margin: 0 0 15px 0; }
.mcq-options { display: flex; flex-direction: column; gap: 10px; }
.mcq-opt { background: var(--bg-color); border: 2px solid var(--border-color); padding: 12px 15px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.mcq-opt:hover { border-color: var(--primary); background: #f0f4f8; }
.mcq-opt.correct { background: #d4edda; border-color: #4caf50; color: #1b5e20; }
.mcq-opt.wrong { background: #f8d7da; border-color: #f44336; color: #b71c1c; }

/* 3-COLUMN FOOTER STYLES */
.site-footer { background: var(--footer-bg); color: #cbd5e1; padding: 60px 5% 30px; margin-top: 60px; text-align: left; font-family: 'Noto Sans Devanagari', sans-serif; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; max-width: 1200px; margin: 0 auto; }

/* Footer Logo & About */
.footer-col-1 img { width: var(--footer-logo-width); max-width: 100%; height: auto; margin-bottom: 20px; background: #fff; padding: 10px; border-radius: 8px; } 
.footer-about { font-size: 16px; line-height: 1.6; margin-bottom: 25px; color: #f8fafc; font-weight: 500; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { color: #fff; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; transition: 0.3s; }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

/* Footer Headings & Menus */
.footer-col h3 { color: #ffffff; font-size: 24px; font-weight: 700; margin-top: 0; margin-bottom: 25px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 15px; }
.footer-menu li a { color: #f8fafc; font-size: 17px; font-weight: 500; transition: 0.2s; }
.footer-menu li a:hover { color: var(--accent); text-decoration: underline; }

/* Footer Bottom Bar */
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; color: #f8fafc; flex-wrap: wrap; gap: 15px; }
.footer-bottom a { color: #f8fafc; }
.footer-bottom a:hover { color: var(--accent); }

/* MOBILE FIXED BOTTOM APP NAV */
.mobile-fixed-footer { display: none; }

/* MOBILE OPTIMIZATION & APP DROPDOWN */
@media (max-width: 768px) {
    body { padding-bottom: 90px; }
    .site-branding img.custom-logo { width: var(--logo-width-mobile); }
    
    .site-header { justify-content: space-between; position: sticky; top: 0; z-index: 9999; } 
    
    .menu-toggle { display: flex; }
    .menu-toggle svg { width: 32px; height: 32px; }
    
    .menu-wrapper { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--surface-color); box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
        border-top: 1px solid var(--border-color); 
        flex-direction: column; padding: 25px; gap: 15px; 
        display: none; 
    }
    .menu-wrapper.active { 
        display: flex; 
        animation: slideDown 0.3s ease forwards;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-15px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .mobile-search { display: flex; width: 100%; margin-bottom: 10px; }
    .search-form { display: flex; width: 100%; }
    .search-field { flex: 1; padding: 14px 15px; border: 2px solid var(--border-color); border-radius: 8px 0 0 8px; font-family: inherit; font-size: 16px; outline: none; }
    .search-field:focus { border-color: var(--primary); }
    .search-submit { background: var(--primary); color: #fff; border: none; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; font-size: 20px; }
    
    .primary-menu { display: flex; width: 100%; flex-direction: column; gap: 8px; }
    .primary-menu li a { display: block; padding: 14px 15px; background: var(--bg-color); border-radius: 8px; border: 1px solid var(--border-color); font-size: 17px; }
    
    .news-ticker { font-size: 14px; }
    .ticker-label { padding: 8px 10px; font-size: 13px; }
    
    .hero-section h1 { font-size: 28px; }
    .single-container { margin: 15px; padding: 15px; }
    .entry-title { font-size: 24px; }
    
    .join-buttons { flex-direction: column; }
    .btn-wa, .btn-tg { width: 100%; justify-content: center; }
    
    .footer-top { grid-template-columns: 1fr; gap: 30px; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
    
    .mobile-fixed-footer {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--surface-color); box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 1000; justify-content: space-around; 
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
        border-top: 2px solid var(--accent);
    }
    .mobile-fixed-footer a {
        display: flex; flex-direction: column; align-items: center;
        color: var(--text-secondary); font-size: 13px; font-weight: 700; text-decoration: none;
    }
    .mobile-fixed-footer a svg { width: 24px; height: 24px; margin-bottom: 4px; fill: currentColor; }
    .mobile-fixed-footer a.home-link { color: var(--primary); }
    .mobile-fixed-footer a.wa-link { color: #25D366; }
    .mobile-fixed-footer a.tg-link { color: #0088cc; }
    
    .site-footer { padding-bottom: 100px; }
}
