/* ========================= BASE RESET ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f2f2;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* ========================= LAYOUT ========================= */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

footer .container {
    max-width: 1100px;
    padding: 10px 20px;
    background: transparent;
    box-shadow: none;
}

/* ========================= TYPOGRAPHY ========================= */

h1 { margin-top: 0; }

.blog-content {
    font-size: 18px;
    line-height: 1.75;
    color: #333;
}

.blog-content h2 {
    font-size: 26px;
    margin: 10px 0 15px;
}

.blog-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
}

/* ========================= HERO ========================= */

.hero {
    width: 100%;
    line-height: 0;
}

.hero-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

/* ========================= TOPICS ========================= */

.topics {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.topic-box {
    background: #fff;
    padding: 14px 18px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    min-width: 140px;
    text-align: center;
    transition: 0.2s ease;
}

.topic-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ========================= BLOG GRID ========================= */

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.blog-card img.thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card h3 {
    margin: 12px 15px 8px;
    font-size: 18px;
}

.blog-card p {
    margin: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* ========================= VIDEO GRID ========================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.video-card h3 {
    padding: 10px;
    font-size: 16px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================= HEADER ========================= */

header {
    background: #111;
    color: #fff;
    padding: 15px 0;
    position: relative;
    overflow-x: hidden;
}

/* FIX: HEADER ALWAYS FULL WIDTH */
header, .header-container {
    width: 100%;
}

.header-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-left a,
.nav-right a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
}

.nav-left a:hover,
.nav-right a:hover {
    color: #fff;
}

.logo a {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}

/* ========================= DROPDOWN (DESKTOP) ========================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-item > a {
    display: block;
    padding: 10px 12px;
    color: #111;
    text-decoration: none;
}

.dropdown-item > a:hover {
    background: #f2f2f2;
}

/* ========================= BUTTONS ========================= */

.button,
button,
a.button {
    background: #1e73ff;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/* ========================= LAYOUT BLOG ========================= */
.blog-layout {
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 3;
    min-width: 0;
}

.blog-sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
    min-width: 0;
}

/* ========================= RELATED / CTA ========================= */

.related-posts {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

@media (max-width: 992px) {

    /* HEADER LAYOUT FIX */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* SHOW HAMBURGER */
    .mobile-menu-btn {
    display: block !important;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

   /* MOBILE NAV ONLY */
#mobileNav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    z-index: 1000;
}

    /* NAV OPEN STATE */
    #mobileNav.show-mobile-menu {
    display: flex;
}

    .nav-left a {
        padding: 14px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* RIGHT ICONS STAY INLINE */
    .nav-right {
        display: flex;
        gap: 14px;
    }

    /* BLOG STACK FIX (prevents sidebar merging issues) */
    .blog-layout {
        flex-direction: column;
    }

    /* DROPDOWN MOBILE */
    .dropdown-menu {
        position: static;
        display: none;
        background: #1a1a1a;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-item > a {
        color: #ddd;
    }
}

/* ========================= MOBILE TYPOGRAPHY ========================= */

@media (max-width: 768px) {

    .video-grid {
        grid-template-columns: 1fr;
    }

    body { font-size: 18px; }

    .container {
        padding: 20px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    .blog-content {
        font-size: 20px;
        line-height: 1.9;
    }

    .hero-img {
        height: 220px;
    }

    .topic-box {
        width: 100%;
        font-size: 18px;
    }
}

/* ========================= MOBILE OVERFLOW FIXES ========================= */

img,
iframe,
video,
table {
    max-width: 100%;
}

.blog-content * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content iframe {
    width: 100%;
    height: auto;
}

.ql-editor img,
.blog-content img {
    height: auto;
    max-width: 100%;
}

.gyg-widget-wrap,
.blog-content iframe {
    max-width: 100%;
    overflow: hidden;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.blog-content img,
.blog-content iframe,
.blog-content video,
.blog-content table {
    max-width: 100% !important;
    height: auto;
}

.blog-content iframe {
    width: 100% !important;
}

.blog-main,
.blog-content {
    min-width: 0;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {

    .container {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    overflow-x: hidden;
}

    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        position: relative;
        width: 100%;
        top: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

iframe {
    max-width: 100% !important;
}

.stay22-wrap,
.gyg-widget-wrap {
    width: 100%;
    overflow: hidden;
}



.blog-content {
    width: 100%;
    overflow-wrap: break-word;
}

.blog-layout,
.blog-main,
.blog-sidebar {
    min-width: 0;
}