/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme (cleaned + mobile nav fix)
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* ===== GLOBAL BACKGROUND ===== */
body {
    background: #111827;
}

/* ===== HEADER ===== */
.site-header {
    background: #0f172a;
    padding: 0;
    margin-bottom: 0;
    min-height: 58px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
}
.inside-header {
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.site-title a,
.main-navigation a,
.menu-toggle {
    color: #fff;
}
.menu-toggle {
    width: 46px;
    height: 46px;
    padding: 8px;
}

/* ===== LOGO ===== */
.site-branding .main-title,
.site-branding .main-title a {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 800;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.4px;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 0 12px rgba(249,115,22,.25);
    position: relative;
}
.site-branding .main-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

/* ===== MOBILE HEADER ===== */
@media (max-width:768px) {
    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 17px;
    }
    .inside-header {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* ===== ARTICLE CARD ===== */
.separate-containers .inside-article {
    background: #fff;
    border-radius: 18px;
    padding-top: 0;
    padding-bottom: 16px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width:1024px) {
    .separate-containers .inside-article:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0,0,0,.12);
    }
}
.separate-containers .inside-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #fb923c, #fdba74);
}

/* ===== REMOVE EXTRA GAPS ===== */
.site-content {
    padding-top: 0;
    margin-top: 0;
}
.single .site-content,
.single .inside-article,
.single .entry-header {
    margin-top: 0;
    padding-top: 0;
}
.entry-header {
    margin-bottom: 6px;
    padding-top: 0;
}
h1.entry-title {
    margin-top: 0;
    margin-bottom: 8px;
}

/* ===== TITLE ===== */
h1.entry-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 8px auto;
    font-size: 34px;
    letter-spacing: -1px;
    color: #111827;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
@media (max-width:768px) {
    h1.entry-title {
        font-size: 24px;
        max-width: 95%;
        line-height: 1.24;
        margin-bottom: 8px;
    }
}

/* ===== META ===== */
.entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.entry-meta a {
    color: #2563eb;
    font-weight: 600;
}

/* ===== CONTENT WIDTH ===== */
.entry-content {
    max-width: 700px;
    margin: auto;
}
.entry-content > *:first-child {
    margin-top: 0;
}

/* ===== PARAGRAPHS ===== */
.entry-content p {
    text-align: left;
    line-height: 1.9;
    font-size: 18px;
    font-family: "Source Sans Pro", sans-serif;
    color: #222;
    margin-bottom: 18px;
}
.entry-content p:first-of-type {
    font-size: 20px;
    line-height: 1.8;
    color: #111827;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 24px;
}
.entry-content p:first-of-type::first-letter {
    float: left;
    font-size: 50px;
    line-height: 1;
    padding-right: 6px;
    font-weight: 700;
    color: #f97316;
}
@media (max-width:768px) {
    .entry-content p {
        font-size: 17px;
        line-height: 1.88;
    }
    .entry-content p:first-of-type {
        font-size: 18px;
    }
}

/* ===== H2 STYLE ===== */
.entry-content h2,
.entry-content h2.wp-block-heading,
.entry-content .wp-block-heading {
    position: relative;
    display: block;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.2px;
    color: #0f172a;
    margin-top: 18px;
    margin-bottom: 10px;
    padding: 12px 14px 10px 14px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.entry-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c, transparent);
    opacity: .95;
}
.entry-content h2::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 6px;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}
.entry-content h2 + p {
    margin-top: 8px;
}
@media (max-width:768px) {
    .entry-content h2,
    .entry-content h2.wp-block-heading,
    .entry-content .wp-block-heading {
        font-size: 16px;
        margin-top: 16px;
        margin-bottom: 8px;
        padding: 10px 12px 9px 12px;
    }
}

/* ===== H3 ===== */
.entry-content h3 {
    font-family: "Merriweather", serif;
    color: #111827;
    margin-top: 28px;
    margin-bottom: 14px;
    line-height: 1.35;
    font-size: 22px;
}

/* ===== LINKS ===== */
.entry-content a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}
.entry-content a:hover {
    text-decoration: underline;
}

/* ===== LISTS ===== */
.entry-content ul {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 18px 22px 18px 42px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 18px 0 26px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.entry-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 16px;
}

/* ===== IMAGES ===== */
.entry-content img {
    border-radius: 14px;
    margin: 22px auto;
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* ===== BLOCKQUOTE ===== */
.entry-content blockquote {
    border-left: 4px solid #f97316;
    font-style: italic;
    color: #444;
    margin: 22px 0;
    background: #fff7ed;
    padding: 14px 18px;
    border-radius: 12px;
}

/* ===== HERO VIDEO ===== */
.mg-hero-video-container {
    max-width: 900px;
    margin: 0 auto 16px auto;
    animation: mgFadeIn .8s ease-out;
}
.mg-featured-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 8px;
}
.mg-hero-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.mg-hero-video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.mg-hero-video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.18), transparent 50%);
    pointer-events: none;
}
.mg-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== RELATED BOX ===== */
.related-post-box {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 18px;
    margin: 28px 0;
    box-shadow: 0 4px 14px rgba(249,115,22,.08);
}

/* ===== READ MORE BUTTON ===== */
.read-more-btn {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 14px 30px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    display: inline-block;
    box-shadow: 0 8px 22px rgba(249,115,22,.25);
    transition: transform .25s ease, box-shadow .25s ease;
}
.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(249,115,22,.35);
}
.visabuzz-read-more-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0;
    text-align: center;
}
.visabuzz-read-more-wrap .read-more-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* ===== FADE ANIMATIONS ===== */
.entry-content > * {
    animation: contentFade .5s ease;
}
@keyframes contentFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes mgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== READING PROGRESS ===== */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #f97316;
    z-index: 99999;
}

/* ===== ARTICLE END EFFECT ===== */
.entry-content::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    margin: 40px auto 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fdba74);
}

/* ===== HR ===== */
.entry-content hr,
.wp-block-separator {
    border: none;
    height: 1px;
    background: #d1d5db;
    margin: 18px 0 14px 0;
}
.entry-content hr + h2 {
    margin-top: 6px;
}

/* ===== SIDEBAR ===== */
.sidebar .widget {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
    overflow: hidden;
    position: relative;
}
.sidebar .widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c, transparent);
}
.sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}
.sidebar .widget a {
    color: #1e293b;
    text-decoration: none;
    transition: .25s ease;
    line-height: 1.7;
    font-weight: 600;
}
.sidebar .widget a:hover {
    color: #f97316;
    padding-left: 4px;
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding-bottom: 12px;
}
.sidebar .widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===== STICKY SIDEBAR ===== */
@media (min-width:1024px) {
    .inside-right-sidebar {
        position: sticky;
        top: 85px;
    }
}

/* ===== FOOTER (NO DUPLICATES) ===== */
.site-footer {
    background: linear-gradient(180deg, #0f172a, #111827);
    color: #e5e7eb;
    border-top: 1px solid rgba(255,255,255,.05);
    margin-top: 40px;
}
.footer-widgets {
    background: transparent;
    padding: 20px 18px 8px 18px;
}
.footer-widgets .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 18px;
}
.footer-widgets .widget-title,
.footer-widgets h2,
.footer-widgets h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}
.footer-widgets .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
}
.footer-widgets p {
    margin-bottom: 10px;
    line-height: 1.7;
}
.footer-widgets p,
.footer-widgets li,
.footer-widgets a {
    color: #d1d5db;
    font-size: 16px;
    text-decoration: none;
}
.footer-widgets a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.footer-widgets ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.footer-widgets li {
    margin-bottom: 6px;
}
.site-info {
    background: rgba(255,255,255,.02);
    border-top: 1px solid rgba(255,255,255,.05);
    text-align: center;
    margin-top: 0;
    padding: 12px 14px;
    font-size: 14px;
    color: #94a3b8;
}
@media (max-width:768px) {
    .footer-widgets {
        padding: 30px 18px 14px 18px;
    }
    .footer-widgets .widget-title {
        font-size: 20px;
    }
}

/* ===== MOBILE NAVIGATION FIX (NO WHITE BOX) ===== */
.main-navigation.toggled .menu-content,
.main-navigation.toggled .main-nav {
    background: #0f172a;
}
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .mobile-bar-items a {
    color: #fff !important;
    background: transparent !important;
}
.main-navigation.toggled .main-nav ul {
    background: #0f172a;
}
.main-navigation.toggled .main-nav ul li {
    background: #0f172a;
}
.main-navigation.toggled .main-nav ul li a {
    color: #fff !important;
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-navigation.toggled .main-nav ul li a:hover {
    background: #f97316 !important;
    color: #fff !important;
}
.menu-toggle {
    background: transparent !important;
    color: #fff !important;
    border: none;
}
.main-navigation.toggled .sub-menu {
    background: #1e293b !important;
}
.main-navigation.toggled .sub-menu li a {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}
@media (max-width: 768px) {
    .main-navigation.toggled .main-nav ul li a {
        padding: 12px 20px;
    }
}

/* Premium Countdown Overlay */
.mg-hero-video-wrapper {
    position: relative;
}

.premium-countdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a, #020617);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    font-family: 'Poppins', sans-serif;
    color: white;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.countdown-badge {
    background: linear-gradient(135deg, #f97316, #ea580c);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(249,115,22,0.5);
    animation: pulse 1.5s infinite;
}

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

.progress-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
}

.progress-ring svg {
    transform: rotate(-90deg);
    width: 130px;
    height: 130px;
}

.progress-ring-circle-bg {
    stroke: rgba(255,255,255,0.2);
    fill: none;
    stroke-width: 4;
}

.progress-ring-circle {
    stroke: #f97316;
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 0.1s linear;
}

.countdown-number-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: 800;
    color: #f97316;
}

.countdown-message {
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
    color: #cbd5e1;
    min-height: 60px;
    padding: 0 20px;
}

.countdown-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 20px;
    letter-spacing: 0.5px;
}
/* Extra glow for random excitement */
.countdown-number-inner {
    animation: textGlow 0.8s ease-in-out infinite alternate;
}
@keyframes textGlow {
    from { text-shadow: 0 0 5px #f97316; }
    to { text-shadow: 0 0 20px #f97316, 0 0 30px #ea580c; }
}