/* ==========================================================================
   GLOBAL VARIABLES & FONTS
   ========================================================================== */
:root {
    --font-regular: 'SagoMini Rounded Regular', sans-serif;
    --font-bold: 'SagoMini Rounded Bold', sans-serif;
    --color-text-main: #635F5E;
    --color-link: #51beb5;
    --color-modal-text: #4b5563;
    --color-modal-heading: #2c3e50;
    --color-btn-blue: #4aa0e2;
    --color-btn-blue-hover: #354eb5;
}

@font-face {
    font-family: 'SagoMini Rounded Regular';
    src: url('https://world-cdn.sagosago.com/fonts/SagoMiniRounded-Regular_v2.otf') format('opentype'),
         url('https://world-cdn.sagosago.com/fonts/SagoMiniRounded-Regular_v2.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'SagoMini Rounded Bold';
    src: url('https://world-cdn.sagosago.com/fonts/SagoMiniRounded-Bold_v2.otf') format('opentype'),
         url('https://world-cdn.sagosago.com/fonts/SagoMiniRounded-Bold_v2.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BASE & LAYOUT STYLES
   ========================================================================== */
body {
    font-family: var(--font-regular);
}

footer p {
    text-align: center;
    margin-top: 20px;
}

ul {
    padding: 0px;
    margin: 0px;
}

li { 
    padding-left: 0px; 
}

a {
    color: var(--color-link);
}

/* Hide Default Nav Elements */
.brand span, .nav-collapse, .navbar .btn-navbar {
    display: none;
}

.navbar .navbar-inner {
    background-color: #fff;
    box-shadow: 0px 4px 4px -2px #EFEFEF;
}

/* ==========================================================================
   SEARCH AREA
   ========================================================================== */
#searchBar .search-query {
    background: #fff;
    border-color: transparent;
    box-shadow: none;
    color: #777;
    border-radius: 25px;
    height: 50px;
    padding: 0px 20px 0px 50px;
    background: white url(https://world-cdn.sagosago.com/images/helpscout_search_icon.svg) no-repeat 22px 16px;
    background-size: 18px 18px;
}

#searchBar button { display: none; }
#docsSearch #searchBar button i::before { color: #fff; }

#docsSearch {
    background: #85C8EE;
    border-bottom: none;
    padding-top: 200px;
    padding-bottom: 40px;
    background-image: url(https://world-cdn.sagosago.com/images/sagomini_helpscout_tom.png);
    background-repeat: no-repeat;
    background-position: center 50px;
    z-index: 1;
}

#docsSearch h1 {
    color: white;
    font-weight: bold;
    font-size: 40px;
}

@media only screen and (max-width: 768px) {
    #docsSearch h1 { font-size: 28px; }
}

/* ==========================================================================
   ARTICLE LISTS & CATEGORIES
   ========================================================================== */
/* Popular Articles */
.most-pop-articles h2, .icon-article-doc, .sep::after { display: none; }

.most-pop-articles .popArticles {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 40px;
}

.most-pop-articles::before {
    content: 'Popular articles';
    font-size: 30px;
    text-align: center;
    display: block;
    color: var(--color-text-main);
    margin-bottom: 50px;
    margin-top: 20px;
}

/* Categories */
.category-list::before {
    content: 'Categories';
    display: block;
    font-size: 30px;
    text-align: center;
    color: var(--color-text-main);
    margin-bottom: 50px;
}

.category-list .category {
    border: 1px solid #D8D7D7;
    border-radius: 10px;
    background-color: #fff;
    transition: all ease 0.15s;
}

.category-list .category:hover { transform: scale(1.04); }

.category-list .category h3 {
    font-weight: bold;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}

.category-list .category .article-count { display: none; }
.category-list h3 { color: var(--color-text-main); }

@media only screen and (max-width: 768px) {
    .category-list .category { margin-bottom: 10px; }
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.articleRatings, .rateAction, .rateAction hover { box-shadow: none; }
.articleRatings { border: 0px; padding: 0px; justify-content: left; }

/* Language Picker */
.wg-default, .wg-default .country-selector { position: relative; }
.country-selector { height: 38px; top: 10px; border-radius: 5px; border: none; font-size: 16px; }
.wg-drop.country-selector .wgcurrent { border-radius: 5px; }
.wg-default .wg-drop.country-selector a, #weglot-container #wg-default { font-size: 16px; }

/* Sidebar */
#sidebar form .search-query { border-radius: 25px; border: solid 1px #B1AFAE; height: 50px; font-size: 16px; }
#sidebar h3 { display: none; }
#sidebar .sm { margin-bottom: 30px; }
#sidebar .nav-list li { line-height: 42px; }

#sidebar .nav-list a, #sidebar .nav-list .active a {
    color: var(--color-text-main);
    font-size: 18px;
    font-family: var(--font-regular);
}

#sidebar .nav-list .active a { font-weight: bold; }
#sidebar .nav-list .active a .icon-arrow, #sidebar .nav-list .active a:hover .icon-arrow { display: none; }
#sidebar .nav-list .active a:hover, #sidebar .nav-list a:hover { text-decoration: underline; }

/* ==========================================================================
   ARTICLE CONTENT (FULL VIEW)
   ========================================================================== */
#main-content { background: none; }

#main-content .contentWrapper {
    border-radius: 0px;
    box-shadow: none;
    border: none;
    padding: 0px 0px 80px 0px;
}

#main-content .sort { display: none; }
#categoryHead { margin-bottom: 40px; }
#fullArticle .title { margin-bottom: 1.5em; }

.articleFoot p.lu, .articleFoot time.lu, .articleFoot p, .articleFoot time {
    font-family: var(--font-regular);
    font-style: normal;
    color: var(--color-text-main);
    display: inline-block;
}

#sbContact { color: var(--color-link); border-bottom: none; }
#sbContact a:hover { text-decoration: underline; }
.icon-print { display: none; }

@media only screen and (max-width: 768px) {
    #main-content .contentWrapper { padding: 22px 22px 45px 22px; }
}

#fullArticle img { border: none; }
.related a span { color: var(--color-link); }
.related { border: none; padding: 0px 0px 30px 0px; }
.related h3 { text-transform: none; color: var(--color-text-main); font-size: 18px; }
.related ul>li a { font-size: 18px; }

#fullArticle h1 { color: var(--color-text-main); }
#fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table { font-size: 18px; }
#fullArticle ul { list-style-position: inside; }

.contentWrapper.withRelated { padding: 50px; }
.contentWrapper h1 { color: var(--color-text-main); }

.articleList {
    font-size: 20px;
    line-height: 1.4em;
    margin-left: -25px;
    list-style-position: inside;
    list-style-image: none;
    list-style-type: none;
    padding-inline-start: 0px;
}
.articleList a { margin-left: 0px; }
.articleList li { padding-left: 25px; }

@media (max-width: 768px) {
    ul.articleList { margin-left: -25px; margin-right: 25px; margin-top: 25px; margin-bottom: -25px; }
}

/* ==========================================================================
   HIDDEN ARTICLES & PAGINATION (MANUAL OVERRIDES)
   ========================================================================== */
/* Hides specific utility/sub-articles from main category lists */
ul.articleList li:has(a[href*="/article/841-map-downtown"]),
ul.articleList li:has(a[href*="/article/838-map-local-laneway"]),
ul.articleList li:has(a[href*="/article/837-map-nola-s-neighborhood"]),
ul.articleList li:has(a[href*="/article/839-map-party-park"]),
ul.articleList li:has(a[href*="/article/840-map-bridge-boulevard"]),
ul.articleList li:has(a[href*="/article/843-map-western-waves"]),
ul.articleList li:has(a[href*="/article/844-map-harbor"]),
ul.articleList li:has(a[href*="/article/821-nola-s-neighborhood-quest-1-grandma-nola"]),
ul.articleList li:has(a[href*="/article/822-nola-s-neighborhood-quest-2-harvey"]),
ul.articleList li:has(a[href*="/article/823-nola-s-neighborhood-quest-3-rosie"]),
ul.articleList li:has(a[href*="/article/824-party-park-quest-1-slip-and-slide"]),
ul.articleList li:has(a[href*="/article/825-party-park-quest-2-mud-pit"]),
ul.articleList li:has(a[href*="/article/826-party-park-quest-3-dance-floor"]),
ul.articleList li:has(a[href*="/article/827-party-park-quest-4-bouncy-castle"]),
ul.articleList li:has(a[href*="/article/828-downtown-quest-1-astrid"]),
ul.articleList li:has(a[href*="/article/829-downtown-quest-2-robin"]),
ul.articleList li:has(a[href*="/article/830-downtown-quest-3-jack"]),
ul.articleList li:has(a[href*="/article/831-jinja-s-garden-keyboard-navigation"]),
ul.articleList li:has(a[href*="/article/833-jinja-s-garden-controller-navigation"]),
ul.articleList li:has(a[href*="/article/834-jinja-s-garden-mfi-controller-navigation"]) {
    display: none !important;
}

/* Hide page 2 pagination link in Jinjas Garden category */
.pagination ul li a[href="/category/792-jinjas-garden/2?sort=custom"] {
    display: none !important;
}

/* ==========================================================================
   CUSTOM PROMO BANNER STYLES
   ========================================================================== */
#promo-banner {
    position: relative;
    width: 100vw; 
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 9999;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-regular);
    color: white;
    overflow: hidden; 
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, background-color 0.8s ease;
}

#promo-banner.visible { max-height: 120px; opacity: 1; }

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px; 
    padding: 15px 50px; 
    box-sizing: border-box;
    text-align: center;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.promo-content.fading-out { opacity: 0; }
.promo-text { font-size: 16px; line-height: 1.4; }

.promo-btn {
    background-color: white;
    border-radius: 4px;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
    color: inherit; 
    display: inline-block;
}

.promo-btn:hover { opacity: 0.9; text-decoration: none; }

.promo-close {
    position: absolute;
    right: 20px; 
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    z-index: 10;
    color: white !important; 
}

.promo-close:hover { opacity: 1; }

@media only screen and (max-width: 768px) {
    #promo-banner.visible { max-height: 250px; }
    .promo-content { flex-direction: column; gap: 15px; padding: 20px 40px; }
    .promo-text { font-size: 15px; }
    .promo-close { top: 15px; right: 15px; transform: none; }
}

/* ==========================================================================
   CUSTOM CENTER MODAL STYLES
   ========================================================================== */
.sago-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 43, 69, 0.6); 
    z-index: 99999; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sago-modal-overlay.show { opacity: 1; visibility: visible; }

.sago-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    font-family: var(--font-regular);
}

.sago-modal-overlay.show .sago-modal { transform: translateY(0); }

.sago-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555555;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 2px;
    transition: background 0.2s ease;
}

.sago-modal-close:hover { background: #f0f0f0; }

.sago-modal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Ensures the modal never jumps in size */
    object-fit: cover;
    display: block;
    background-color: #ffffff; /* Fallback if JS config doesn't have a color */
}

.sago-modal-content {
    padding: 35px 30px;
    min-height: 260px; /* Anchors the content so it stays perfectly balanced */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sago-modal-content h2 {
    font-family: var(--font-bold);
    font-size: 24px;
    color: var(--color-modal-heading);
    margin: 0 0 12px;
}

.sago-modal-content p {
    font-size: 16px;
    color: var(--color-modal-text);
    margin: 0; 
    line-height: 1.5;
}

.sago-modal-btn {
    display: inline-block;
    background: var(--color-btn-blue);
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-bold);
    font-size: 16px;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.sago-modal-btn:hover {
    background: var(--color-btn-blue-hover);
    color: #ffffff;
    text-decoration: none;
}

.sago-modal-button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

#sago-modal-dynamic-content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#sago-modal-dynamic-content.fading-out { opacity: 0; }