/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FAF8F5;
    color: #2F2F2F;
    font-family: "Lora", serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 80px;
}


/* ===========================
   Header
=========================== */

header {
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #FAF8F5;
}

nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(20px);
    position: relative;
    z-index: 1000;
}

/* Logo */

.logo a {
    font-family: "Cormorant Garamond", serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #2F2F2F;
}


/* Navigation Links */

nav ul {
    display: flex;
    gap: 55px;
}
/* Dropdown Menu */

.nav-item {
    position: relative;
}
.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 30px;
}
.dropdown {
    position: absolute;
    top: 45px;
    left: 0;

    background: #FAF8F5;
    padding: 25px 35px;

    min-width: 220px;

    display: none;
    flex-direction: column;
    gap: 18px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    z-index: 10;
}

.dropdown a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2F2F2F;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.dropdown a:hover {
    color: #B89D87;
}

.nav-item:hover .dropdown {
    display: flex;
}
nav ul a {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: #2F2F2F;
    text-transform: uppercase;
}

nav ul a:hover {
    color: #B89D87;
}


/* Search & Profile */

.nav-icons {
    display: flex;
    gap: 30px;
}

.nav-icons a {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
}
nav a:hover {
    color: #B89D87;
}
/* SVG Icons */

.nav-icons svg {
    width: 22px;
    height: 22px;
    stroke: #2F2F2F;
    transition: 0.3s ease;
}

.nav-icons a:hover svg {
    stroke: #B89D87;
}








/* =========================
    Journal Hero
========================= */

.journal-hero{

    margin-top:100px;

    position:relative;

    height:72vh;

    display:flex;

    align-items:center;

    background:url("journal-assets/journal-hero.jpg") center center/cover no-repeat;

    overflow:hidden;

}



/* Warm Overlay */

.journal-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        270deg,
        rgba(250,246,240,.92) 0%,
        rgba(250,246,240,.75) 30%,
        rgba(250,246,240,.20) 65%,
        rgba(0,0,0,.10) 100%
    );

}



.journal-hero .container{

    position:relative;

    z-index:2;

    width: 100%;

    display: flex;

    justify-content: flex-end;

}



.journal-hero-content{

    max-width:460px;

}



.journal-hero h1{

    font-family:"Cormorant Garamond",serif;

    font-size:68px;

    font-weight:500;

    line-height:1.08;

    color:#272727;

    margin-bottom:20px;

}



.journal-subtitle{

    font-family:"Lora",serif;

    font-size:15px;

    line-height:1.3;

    color:#4F4F4F;

    margin-bottom:52px;

}



/* =========================
   ARTICLE LAYOUT
========================= */


.article-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 760px);
    gap: 60px;
    align-items: start;

    /* Top: 50px, Right: 30px, Bottom: 0, Left: 30px */
    padding: 50px 30px 0 30px;

    margin-left: 80px;
}


/* =========================
   LEFT SIDEBAR
========================= */

.article-sidebar{

    position:sticky;
    top:120px;
    align-self:start;

}


.article-sidebar h3{

    font-family:"Inter",sans-serif;
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#B89D87;
    margin-bottom:18px;

}


/* Table of Contents */

.table-of-contents{

    margin-bottom:20px;

}

.table-of-contents ul{

    list-style:none;
    margin:0;
    padding:0;

}

.table-of-contents li{

    margin-bottom:14px;

}

.table-of-contents a{

    font-family:"Lora",serif;
    font-size:15px;
    line-height:1.8;
    color:#272727;
    text-decoration:none;
    transition:.3s;

}

.table-of-contents a:hover{

    color:#B89D87;

}


/* Share */

.share-box{

    margin-top:45px;

}

.share-icons{

    display:flex;
    gap:16px;
    margin-top:18px;

}

.share-icons a{

    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #D8D2C8;
    border-radius:50%;

    color:#6B6B6B;
    font-size:18px;

    transition:.3s ease;

}

.share-icons a:hover{

    background:#B89D87;
    border-color:#B89D87;
    color:#F8F7F4;
    transform:translateY(-2px);

}


/* =========================
   RIGHT ARTICLE
========================= */

.article-content{

    width:100%;
    max-width:760px;

}


/* Intro */

.article-intro{

    margin:0;
    padding:0;

}

.article-intro p{

    font-family:"Lora", serif;
    font-size:18px;
    line-height:1.9;
    color:#555;
    margin:0 0 12px 0;

}

.article-intro p:last-child{

    margin-bottom:0;

}

.article-intro p:first-child::first-letter{

    float:left;
    font-family:"Cormorant Garamond", serif;
    font-size:86px;
    line-height:.8;
    color:#B89D87;
    padding-right:15px;
    padding-top:8px;

}


.article-introduction p{

    font-family:"Lora",serif;

    font-size:18px;

    line-height:2;

    color:#555;

}



/* ===========================
   ARTICLE SECTIONS
=========================== */

.article-sections{

    width:100%;
    margin-top:0px;

}

.article-section{

    width:100%;
    margin-bottom:70px;

}

.article-section h2{

    font-family:"Cormorant Garamond", serif;
    font-size:34px;
    font-weight:500;
    color:#272727;
    line-height:1.2;
    margin-bottom:18px;

}

.article-section p{

    font-family:"Lora", serif;
    font-size:17px;
    line-height:1.9;
    color:#4A4A4A;
    margin-bottom:28px;

}

.article-section img{

    width:100%;
    height:220px;
    object-fit:cover;
    display:block;

}

.article-section:last-child{

    margin-bottom:0;

}

.article-section img{

    width:100%;
    height:320px;
    object-fit:cover;
    display:block;
    margin-bottom:0;

}

/* =========================
HIDDEN ARTICLE
========================= */

.article-hidden{

    display:none;
    margin-top:30px;

}
/* ===================================
ARTICLE IMAGE OVERLAY
=================================== */

.article-image{

    position:relative;

    overflow:hidden;

    border-radius:8px;

    margin-top:30px;

}


.article-image img{

    display:block;

    width:100%;

    transition:
        transform .6s ease,
        filter .6s ease;

}


.article-section:hover .article-image img{

    transform:scale(1.04);

    filter:brightness(.9);

}

.article-hidden h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 500;
    color: #272727;
    margin: 35px 0 18px;
    line-height: 1.2;
}

/* Read Article Button */

.read-overlay{

    position:absolute;

    top:50%;
    left:50%;
    transform:translate(-50%,-50%);

    z-index:100;

    padding:10px 18px;

    background:rgba(248,247,244,.95);

    border:none;

    border-radius:30px;

    font-family:"Inter",sans-serif;
    font-size:11px;
    font-weight:500;
    letter-spacing:.14em;
    text-transform:uppercase;

    color:#272727;

    cursor:pointer;

    opacity:0;

    pointer-events:auto;

    transition:all .35s ease;

}

/* Show button only on hover */

.article-section:hover .read-overlay{

    opacity:1;

    transform:translate(-50%, -50%);

}


/* Button Hover */

.read-overlay:hover{

    background:#A98A70;

    color:#fff;

}



/* Back To Top */

.article-section:last-child{

    position: relative;

}

.article-section:last-child .back-top{

    position: absolute;

    right: -85px;

    top: 98%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    border: 1px solid rgba(184,157,135,0.5);

    color: #B89D87;

    font-size: 18px;

    text-decoration: none;

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .3s ease;

}

.article-section:last-child .back-top:hover{

    background: #B89D87;

    color: #F8F7F4;

    transform: translateY(-50%) scale(1.08);

}




/* ===========================
   Pagination
=========================== */


.pagination-section {
    padding-top: 0;
    padding-bottom: 20px;
}

.pagination{

    margin:0;

}
.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:18px;

    font-family:"Inter",sans-serif;

}

.page-link,
.page-number,
.page-dots{

    font-size:14px;

    color:#6E675F;

    text-decoration:none;

    transition:.3s ease;

}

.page-number{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

}

/* Active Page */

.pagination .page-number.active{

    background:#B89D87;

    color:#F8F7F4;

    border-color:#B89D87;

}
.pagination .page-number:hover{

    background:#B89D87;

    color:#F8F7F4;

    border-color:#B89D87;

}

.page-link.disabled{

    opacity:.4;

    pointer-events:none;

}


/* =========================
AFFILIATE DISCLAIMER
========================= */

.affiliate-disclaimer {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 80px auto;
    padding: 0 20px;

    text-align: center;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #8A837A;

    white-space: normal;

    position: relative;
}

/* Footer Social Icons */

.social-icons {
    display: flex;
    gap: 18px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pinterest */
.social-icons a:nth-child(1) svg {
    fill: #E60023;
}

/* Instagram */
.social-icons a:nth-child(2) svg {
    color: #C13584;
}

/* YouTube */
.social-icons a:nth-child(3) svg {
    color: #FF0000;
}

/* Hover */

.social-icons a:hover svg {
    transform: scale(1.12);
    opacity: 0.8;
}
/* ===================================
   Footer
=================================== */

footer {
    background-color: #2F2F2F;
    padding: 90px 0 50px;
    margin-top: 30px;
    text-align: center;
}


/* Footer Logo */

.footer-logo h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #FAF8F5;
    margin-bottom: 10px;
}

.footer-logo p {
    max-width: 380px;
    margin: 0 auto;

    font-family: "Lora", serif;
    font-size: 14px;
    line-height: 1.7;
    color: #D8D2C8;
}


/* Footer Links */

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 30px 0;
}

.footer-links a {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #FAF8F5;

    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #B89D87;
}


/* Social */

.footer-social p {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D8D2C8;
}


/* Social Icons */

.social-icons {
    justify-content: center;
}


/* Copyright */

.copyright {
    margin-top: 30px;

    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: #B8B1A8;
}







/* ===================================
   Newsletter Popup
=================================== */

.newsletter-popup {

    position: fixed;
    inset: 0;

    background: rgba(47,47,47,0.45);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

    z-index: 9999;
}

/* Active State */

.newsletter-popup.active {

    opacity: 1;
    visibility: visible;

}

/* Popup Card */

.newsletter-content {

    position: relative;

    width: 90%;
    max-width: 520px;

    background: #FAF8F5;

    border-radius: 10px;

    padding: 55px 50px;

    text-align: center;

    box-shadow: 0 25px 60px rgba(0,0,0,0.18);

    transform: translateY(20px);

    transition: transform .35s ease;

}

.newsletter-popup.active .newsletter-content {

    transform: translateY(0);

}

/* Logo */

.newsletter-logo img{

    width:90px;

    margin:0 auto 22px;

}

/* Tagline */

.newsletter-tagline{

    font-family:"Inter",sans-serif;

    font-size:12px;

    letter-spacing:.25em;

    text-transform:uppercase;

    color:#B89D87;

    margin-bottom:18px;

}

/* Title */

.newsletter-content h2{

    font-family:"Cormorant Garamond",serif;

    font-size:46px;

    font-weight:400;

    color:#2F2F2F;

    margin-bottom:18px;

}

/* Description */

.newsletter-text{

    font-family:"Lora",serif;

    font-size:16px;

    line-height:1.8;

    color:#6E675F;

    margin-bottom:35px;

}

/* Email */

.newsletter-form input{

    width:100%;

    padding:16px 18px;

    border:1px solid #D8D2C8;

    background:#FFFFFF;

    font-family:"Inter",sans-serif;

    font-size:14px;

    margin-bottom:18px;

    outline:none;

}

.newsletter-form input:focus{

    border-color:#B89D87;

}

/* Button */

.newsletter-form button{

    width:100%;

    height:56px;

    border:none;

    background:#A98A70;

    color:#FFFFFF;

    font-family:"Inter",sans-serif;

    font-size:13px;

    font-weight:600;

    letter-spacing:.18em;

    text-transform:uppercase;

    cursor:pointer;

    transition:.3s ease;

}

.newsletter-form button:hover{

    background:#947761;

}

/* Bottom Note */

.newsletter-note{

    margin-top:22px;

    font-family:"Inter",sans-serif;

    font-size:12px;

    color:#8A837A;

}

/* Close */

.close-popup{

    position:absolute;

    top:18px;

    right:20px;

    border:none;

    background:none;

    font-size:30px;

    cursor:pointer;

    color:#B89D87;

    transition:.3s ease;

}

.close-popup:hover{

    color:#2F2F2F;

}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Tablets & Mobile Devices)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLETS & SMALL LAPTOPS (Max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* Container */
  .container {
    padding: 0 40px;
  }

  /* Navigation Links */
  nav ul {
    gap: 30px;
  }

  /* Journal Hero */
  .journal-hero h1 {
    font-size: 54px;
  }

  /* Article Layout Grid Adjustments */
  .article-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 35px;
    margin-left: 0;
    padding: 40px 0 0 0;
  }

  .article-section:last-child .back-top {
    right: -50px;
  }
}


/* --------------------------------------------------------------------------
   2. MOBILE DEVICES (Smartphones / iPhones / Android) (Max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Header & Navigation Stack */
  header {
    height: auto;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    transform: none;
    text-align: center;
    padding-top: 15px;
  }

  nav ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-icons {
    gap: 20px;
  }

  /* Journal Hero Mobile Adaptation */
  .journal-hero {
    margin-top: 30px;
    height: auto;
    min-height: 380px;
    padding: 60px 0;
  }

  .journal-hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .journal-subtitle {
    margin-bottom: 0;
  }

  /* Article Layout Stacking */
  .article-layout {
    display: flex;
    flex-direction: column;
    padding: 30px 20px 0;
    gap: 35px;
  }

  /* Sidebar (Table of Contents & Share Box) */
  .article-sidebar {
    position: static;
    width: 100%;
    padding-bottom: 25px;
    border-bottom: 1px solid #E2DDD7;
  }

  .share-box {
    margin-top: 25px;
  }

  /* Article Content */
  .article-content {
    max-width: 100%;
  }

  .article-intro p {
    font-size: 16px;
  }

  .article-intro p:first-child::first-letter {
    font-size: 64px;
    padding-right: 10px;
  }

  .article-section h2 {
    font-size: 26px;
  }

  .article-section p {
    font-size: 15px;
    line-height: 1.8;
  }

  .article-section img {
    height: 240px;
  }

  /* Make hover read overlay always visible on touch screens */
  .read-overlay {
    opacity: 1;
    top: auto;
    bottom: 15px;
    transform: translateX(-50%);
  }

  .article-section:hover .read-overlay {
    transform: translateX(-50%);
  }

  /* Back to top button repositioning */
  .article-section:last-child .back-top {
    position: relative;
    right: auto;
    top: auto;
    margin: 30px auto 0 auto;
    transform: none;
  }

  .article-section:last-child .back-top:hover {
    transform: scale(1.08);
  }

 /* ==========================================================================
   HORIZONTAL PAGINATION LAYOUT
   ========================================================================== */

.pagination-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
}

.pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Page Numbers & Previous/Next Buttons */
.page-number,
.pagination-prev,
.pagination-next,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D8D2C8;
  color: #2F2F2F;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Active Page & Hover States */
.page-number.active,
.pagination .active {
  background-color: #B89D87;
  border-color: #B89D87;
  color: #FFFFFF;
}

.page-number:hover,
.pagination a:hover {
  border-color: #B89D87;
  color: #B89D87;
}

/* --------------------------------------------------------------------------
   Mobile Adjustment (Ensures everything fits comfortably on narrow screens)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .pagination {
    gap: 6px;
  }

  .page-number,
  .pagination-prev,
  .pagination-next,
  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
}

  /* Footer */
  footer {
    padding: 60px 20px 40px;
    margin-top: 50px;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  /* Newsletter Modal */
  .newsletter-content {
    padding: 40px 24px;
  }

  .newsletter-content h2 {
    font-size: 34px;
  }
}


/* --------------------------------------------------------------------------
   3. EXTRA SMALL MOBILE SCREENS (Max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {

  .logo a {
    font-size: 36px;
  }

  .journal-hero h1 {
    font-size: 32px;
  }

  .article-section h2 {
    font-size: 22px;
  }

  .article-section img {
    height: 200px;
  }
}