/* =========================
BASE RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #dfe0d7;
    color: #222;
    line-height: 1.6;
}



/* =========================
   SHOP HEADER - DESKTOP
========================= */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: orange;
    padding: 16px 8%;
    border-bottom: 1px solid #ddd;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* LEFT BRAND */
.shop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.shop-logo {
    width: 75px;
    height: auto;
    object-fit: contain;
}



.shop-brand > span:first-child,
.shop-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.shop-center {
    color: #555;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    padding-top: 2px;
    font-family: Arial, sans-serif;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* CENTER SEARCH */
.shop-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shop-search input {
    width: 65%;
    padding: 11px 16px;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: border 0.3s ease;
}

.shop-search input:focus {
    border-color: #f5b301;
}

/* RIGHT ACTIONS */
.shop-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* MENU WRAPPER */

   .menu-wrapper {
    position: relative;
    display: inline-block;
    
    
    
}


.menu-icon {
    font-size: 36px;
    cursor: pointer;
    user-select: none;
    padding: 5px;
    color: #333;
    transition: 0.2s;
}

.menu-icon:hover {
    color: #ffffff;
}

/* DROPDOWN */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    background: white;
    width: 170px;
    display: none;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.13);
    overflow: hidden;
    z-index: 999;
}

.menu-dropdown a {
    padding: 11px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.menu-dropdown a:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover {
    background: #f5b301;
    color: #000;
    padding-left: 20px;
}

.menu-wrapper:hover .menu-dropdown {
    display: flex;
}


/* =========================
   BLOG HERO - DESKTOP
========================= */
.blog-hero {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            to bottom,
            rgba(227, 243, 8, 0.2) 0%,
            rgb(59, 55, 20) 100%
        ),
        url("images/waxshap1.png");
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 50px 5%;
}

.blog-hero-overlay {
    max-width: 800px;
    color: #fff;
}

.blog-tag {
    display: inline-block;
    background: #f5b301;
    color: #270702;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    color: #f0e0d0;
}


/* =========================
   TABLET — 769px to 1024px
========================= */
@media (min-width: 769px) and (max-width: 1024px) {

    /* HEADER */
    .shop-header {
        padding: 14px 6%;
        gap: 15px;
    }

    .shop-center {
        font-size: 1.6rem;
    }

    .shop-search input {
        width: 80%;
        padding: 10px 14px;
    }

    /* HERO */
    .blog-hero {
        min-height: 55vh;
        padding: 60px 6%;
    }

    .blog-hero h1 {
        font-size: 2.3rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }
}


/* =========================
   MOBILE — max 768px
========================= */
@media (max-width: 768px) {

    /* HEADER */
    .shop-header {
        flex-direction: row;          /* keep in one row on mobile */
        flex-wrap: wrap;
        padding: 12px 5%;
        gap: 10px;
        align-items: center;
    }

    /* BRAND - smaller on mobile */
    .shop-brand {
        flex-shrink: 0;
    }

    .shop-center {
        font-size: 1.2rem;            /* ← much smaller */
        padding-top: 0;
    }

    /* SEARCH - full width below brand and icon */
    .shop-search {
        order: 3;                     /* push to second row */
        width: 100%;
        flex: none;
    }

    .shop-search input {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
    }

    /* ACTIONS stay right */
    .shop-actions {
        margin-left: auto;
    }

    /* DROPDOWN wider on mobile */
    .menu-dropdown {
        width: 160px;
        right: 0;
    }

    .menu-dropdown a {
        font-size: 15px;
        padding: 10px 14px;
    }

    /* HERO */
    .blog-hero {
        min-height: 28vh;
        padding: 40px 5%;
        background-position: center top;
    }

    .blog-tag {
        font-size: 0.7rem;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .blog-hero h1 {
        font-size: 3rem;            /* ← reduced */
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .blog-hero p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

.article-content {
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
    font-size: 18px;
    color: #222;
}

#article-view {
    position: relative;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-hero img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.author-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}



.article-content ul,
.article-content ol {
    margin: 15px 0 15px 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #f5b301;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

.article-content strong {
    font-weight: 700;
}

.article-content img {
    max-width: 100%;
    
    margin: 20px 0;
}
/* =========================
BACK TO BLOG BUTTON (BASE)
========================= */


/* =========================
BACK TO BLOG BUTTON (BASE)
========================= */

#back-to-blog {
    background: #030633;
    color: #f9f7ff;

    border: none;
    padding: 10px 16px;
    border-radius: 10px;

    cursor: pointer;
    font-size: 14px;

    transition: all 0.35s ease;
    z-index: 9999;

    position: absolute;
    top: 15px;
    left: 15px;   /* ✅ FIXED: now TOP LEFT */
}

/* hover state */
#back-to-blog:hover {
    background: orange;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
STICKY BOTTOM CENTER MODE
========================= */

#back-to-blog.sticky-bottom {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    top: auto;
    right: auto;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    padding: 12px 18px;
    font-size: 15px;
}

/* =========================
HIDDEN STATE (SMOOTH FADE)
========================= */

#back-to-blog.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.95);
}

/* =========================
FEATURED
========================= */

#featured-article {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.featured-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #f5b301;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}


/* =========================
LATEST ARTICLES HEADER (UPDATED)
========================= */

.modern-header {
    text-align: left;
    max-width: 1100px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
}

.modern-header h2 {
    font-size: 2rem;
    color: #f5b301; /* gold accent */
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
}

/* optional subtle accent line under H2 */
.modern-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #f5b301;
   
    margin-top: 6px;
    border-radius: 2px;
}

.modern-header p {
    color: #555;
    font-size: 1rem;
    margin-top: 8px;
    max-width: 600px;
}

/* FULL BOUNDARY LINE BELOW HEADER SECTION */
.header-line {
    margin-top: 15px;
    width: 100%;
    height: 1px;
    background: #ddd;
}


/* =========================
GRID
========================= */

.latest-articles {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-header {
    text-align: left;
    margin-bottom: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* BLOG CARD */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.read-more-btn {
    margin-top: 10px;
    padding: 8px 14px;
    background: #f5b301;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* =========================
NEWSLETTER
========================= */

.newsletter {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px;
    width: 280px;
    border-radius: 6px;
    border: none;
}

.newsletter-form button {
    background: #f5b301;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
}

/* =========================
ARTICLE VIEW
========================= */


#back-to-blog.sticky-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    top: auto;
    right: auto;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9999;
}

#article-view {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.article-hero img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* META */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

/* AUTHOR */
.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

#article-author {
    font-weight: bold;
    font-size: 14px;
}

#article-reading-time {
    font-size: 12px;
    color: #777;
}

/* META RIGHT */
.meta-right {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #777;
}

.meta-right span {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

/* TITLE */
#article-title {
    font-size: 2rem;
    margin: 15px 0;
}

/* CONTENT */
.article-body {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background: #f5b301;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* RELATED */
#related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

    .featured-card {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 480px) {

    #article-view {
        padding: 14px;
    }

    .article-hero img {
        height: 200px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-box {
        flex-direction: row;
        gap: 8px;
    }

    .author-avatar {
        width: 30px;
        height: 30px;
    }

    #article-title {
        font-size: 1px;
        line-height: 1.2;
    }

    #article-body {
        font-size: 12px;
        line-height: 1.4;
    }

    #article-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    #related-articles-grid {
        grid-template-columns: 1fr;
    }

  @media (max-width: 480px) {

    #back-to-blog {
        position: fixed;   /* ✅ correct for mobile UI */
        top: 10px;
        left: 10px;

        z-index: 9999;

        padding: 10px 14px;
        border-radius: 8px;

        background: #ccc;
        color: #000;

        width: auto;
        text-align: center;
        opacity: 0.9;
    transition: all 0.3s ease;


        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    #back-to-blog:hover {
        background: orange;
        color: white;
    }
    #back-to-blog:active {
    transform: scale(0.95);
}
}
}


@media (max-width: 768px) {

    #article-view {
        padding: 18px;
    }

    .article-hero img {
        height: 300px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .meta-right {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    #article-title {
        font-size: 28px;
    }

    #article-body {
        font-size: 16px;
    }

    #related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================
ARTICLE READER BASE MODE
========================= */

#article-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;

    line-height: 1.7;
    background: #fff;

    position: relative;
}

/* =========================
READING PROGRESS BAR
========================= */

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;

    height: 4px;
    width: 0%;

    background: orange;
    z-index: 99999;

    transition: width 0.1s linear;
}

/* =========================
BACK TO BLOG BUTTON (BASE)
========================= */

#back-to-blog {
    background: #030633;
    color: #f9f7ff;

    border: none;
    padding: 10px 16px;
    border-radius: 10px;

    cursor: pointer;
    font-size: 14px;

    transition: all 0.35s ease;

    position: absolute;
    top: 15px;
    left: 15px;

    z-index: 9999;
}

/* hover */
#back-to-blog:hover {
    background: orange;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
STICKY BOTTOM MODE
========================= */

#back-to-blog.sticky-bottom {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    top: auto;
    right: auto;

    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 12px 18px;
    font-size: 15px;
}

/* =========================
HIDDEN STATE
========================= */

#back-to-blog.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.95);
}




@media (max-width: 768px) {

    /* =========================
    BLOG GRID → CAROUSEL MODE
    ========================= */

    #blog-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;

        padding: 10px 15px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* hide scrollbar (optional clean UI) */
    #blog-grid::-webkit-scrollbar {
        display: none;
    }

    /* =========================
    BLOG CARDS IN CAROUSEL
    ========================= */

    .blog-card {
        min-width: 80%;
        flex: 0 0 auto;

        scroll-snap-align: start;

        border-radius: 12px;
        overflow: hidden;

        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: #fff;
    }

    .blog-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .blog-card-content {
        padding: 10px;
    }
}


/* =========================
ARTICLE SHARE BAR
========================= */

.article-share {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;

    margin: 20px 0 25px;
}

.share-btn {
    width: 30px;
    height: 30spx;

    border: none;
    border-radius: 50%;

    background: #030633;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.3s ease;
}

.share-btn i {
    font-size: 18px;
}

.share-btn:hover {
    background: rgb(255, 166, 0);
    transform: translateY(-2px);
}

/* mobile */

@media (max-width:768px) {

    .article-share {
        justify-content: center;
    }

    .share-btn {
        width: 42px;
        height: 42px;
    }

}