/* ===========================================================================
   CSS CUSTOM PROPERTIES
=========================================================================== */
:root {
    --th-body-bg        : #FFFFCC;
    --th-dark-bg        : #033b57;
    --th-dark-bg2       : #1a4a6e;
    --th-dark-bg-alt    : #022b42;
    --th-accent         : #FFEB54;
    --th-accent-dark    : #c09800;
    --th-hr-color       : #0D348E;
    --th-block-default  : #1685BB;
    --th-block-box1     : #e1563f;
    --th-block-box2     : #23b1bf;
    --th-block-box3     : #ad4455;
    --th-block-box4     : #336598;
    --th-block-box5     : rgba(0,0,0,0.8);
    --th-block-box6-from: #FFFFFF;
    --th-block-box6-to  : #FFFFCC;
    --th-font-family    : 'Comic Sans MS', 'Comic Sans', Helvetica, Arial, sans-serif;
    --th-font-size      : 13px;
    --th-line-height    : 1.7em;
    --th-menu-color     : #DDDDDD;
    --th-menu-hover     : #FFFFFF;
    --th-menu-drop-bg   : rgba(0,0,0,0.88);
    --th-transition     : all 0.2s ease-in-out;
}

/* ===========================================================================
   RESET / BASE
=========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--th-body-bg);
    font-family: var(--th-font-family);
    font-size: var(--th-font-size);
    line-height: var(--th-line-height);
    color: #333333;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--th-accent-dark);
    text-decoration: none;
    transition: var(--th-transition);
}
a:hover,
a:focus {
    color: var(--th-hr-color);
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 2px solid var(--th-hr-color);
    margin: 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--th-font-family);
    line-height: 1.3;
}

h2 {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.5em;
}

/* ===========================================================================
   DARK / LIGHT PANEL OVERRIDES
   .rt-dark — used on header, footer, bottom, showcase
   .rt-light — used on main body surround
=========================================================================== */
.rt-dark {
    background-color: var(--th-dark-bg);
    color: var(--th-menu-color);
}
.rt-dark a { color: var(--th-accent); }
.rt-dark a:hover { color: var(--th-menu-hover); text-decoration: none; }

.rt-light {
  
    color: #333333;
}
.rt-light a { color: var(--th-accent-dark); }
.rt-light a:hover { color: var(--th-hr-color); }

/* ===========================================================================
   DRAWER
=========================================================================== */
#rt-drawer {
    background-color: var(--th-dark-bg-alt);
    color: var(--th-menu-color);
    padding: 8px 0;
    font-size: 0.9em;
}
#rt-drawer a { color: var(--th-accent); }

/* ===========================================================================
   TOP SURROUND  (header + header)
=========================================================================== */
#rt-top-surround {
    background-color: var(--th-dark-bg);
    background-image: linear-gradient(180deg, var(--th-dark-bg2) 0%, var(--th-dark-bg) 100%);
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

#rt-top {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.85em;
    color: var(--th-menu-color);
}

/* ===========================================================================
   NAVBAR  (Bootstrap 5 overrides for dark header)
=========================================================================== */
#rt-header {
    padding: 0;
}

#rt-navbar {
    padding: 0;
    min-height: 60px;
}

/* Logo wrapper */
.rt-logo-wrap {
    padding: 8px 10px;
}

/* #rt-logo — background-image logo block.
   Dimensions here are defaults; override width/height in custom.css
   to match your actual image size. */
#rt-logo {
    display: block;
    width: 121px;
    height: 97px;
    background-repeat: no-repeat;
    background-position: 50% 0;
    text-decoration: none;
}

/* Fallback text link (used only when no header-a module AND no #rt-logo bg set) */
.rt-logo-wrap .navbar-brand {
    color: var(--th-menu-hover) !important;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    font-family: var(--th-font-family);
}

.rt-logo-wrap img {
    max-height: 80px;
    width: auto;
}

/* Navbar toggler */
.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 6px 10px;
    margin: 8px 0;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu wrap — push menu to right */
.rt-menu-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

/* ===========================================================================
   NAVIGATION MENU  (mod_menu Bootstrap 5 output)
=========================================================================== */

/* --- Navbar level 1 --- */
.rt-menu-wrap .navbar-nav {
    gap: 0;
}

.rt-menu-wrap .nav-item {
    position: relative;
}

.rt-menu-wrap .nav-link {
    color: var(--th-menu-color) !important;
    font-size: 18px;
    font-weight: normal;
    padding: 20px 10px;
    font-family: var(--th-font-family);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
    transition: var(--th-transition);
    white-space: nowrap;
}

.rt-menu-wrap .nav-link:hover,
.rt-menu-wrap .nav-link:focus,
.rt-menu-wrap .nav-item.active > .nav-link,
.rt-menu-wrap .nav-item.current > .nav-link {
    color: var(--th-menu-hover) !important;
    background-color: transparent;
    text-shadow: none;
     text-decoration: none;
}

.rt-menu-wrap .nav-item.active > .nav-link,
.rt-menu-wrap .nav-item.current > .nav-link {
    border-bottom: 3px solid var(--th-accent);
}

/* Active arrow pointer above item (recreate original style) */
.rt-menu-wrap .nav-item.active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid var(--th-body-bg);
}

/* --- Dropdown menu --- */
.rt-menu-wrap .dropdown-menu {
    display: none;
    background-color: var(--th-menu-drop-bg);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0 0 4px 4px;
    padding: 8px 0;
    margin-top: 0;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    position: absolute;
    z-index: 1000;
}

/* Desktop hover: show dropdown on parent hover */
@media (min-width: 992px) {
    .rt-menu-wrap .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

.rt-menu-wrap .dropdown-item {
    color: var(--th-menu-color);
    font-size: 15px;
    padding: 6px 16px;
    font-family: var(--th-font-family);
    transition: var(--th-transition);
    white-space: normal;
}

.rt-menu-wrap .dropdown-item:hover,
.rt-menu-wrap .dropdown-item:focus,
.rt-menu-wrap .dropdown-item.active {
    background-color: rgba(255,255,255,0.12);
    color: var(--th-menu-hover);
}

/* Submenu arrow triangle */
.rt-menu-wrap .dropdown-menu::before {
    content: '';
    display: block;
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0,0,0,0.88);
}

/* Nested dropdown (3rd level) */
.rt-menu-wrap .dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--th-menu-drop-bg);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 160px;
    display: none;
}
.rt-menu-wrap .dropdown-item:hover > .dropdown-submenu {
    display: block;
}

/* Dropdown heading / separator */
.rt-menu-wrap .dropdown-header {
    color: var(--th-accent);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
}
.rt-menu-wrap .dropdown-divider {
    border-color: rgba(255,255,255,0.12);
    margin: 4px 0;
}

/* Extra header modules */
.rt-header-extra {
    padding: 0 8px;
    display: flex;
    align-items: center;
    color: var(--th-menu-color);
}
.rt-header-extra a { color: var(--th-accent); }

/* Feature */
#rt-feature {
    background-color: rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Utility */
#rt-utility {
    background-color: rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Breadcrumbs */
#rt-breadcrumbs {
    padding: 6px 0;
    font-size: 0.85em;
    background-color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
#rt-breadcrumbs .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Maintop / Mainbottom */
#rt-maintop,
#rt-mainbottom {
    padding: 8px 0;
}

/* ===========================================================================
   MAIN CONTENT AREA  (9:3 layout)
=========================================================================== */
#rt-main {
    padding: 20px 0;
}

.rt-main-col {
    padding-right: 20px;
}

.rt-sidebar-col {
    padding-left: 10px;
}

/* Component block */
.component-block.rt-block {
    background-color: var(--th-body-bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Component content styles */
.component-content {
    color: #333333;
    font-size: var(--th-font-size);
    line-height: var(--th-line-height);
}
.component-content h1,
.component-content h2,
.component-content h3 {
    color: #1a1a1a;
    margin-top: 0.5em;
    font-size:1.6em;
     font-weight: bold;
    margin-bottom: 15px;
}

.component-content a { color: var(--th-hr-color); }
.component-content a:hover { color: var(--th-accent-dark); }

/* Content top / bottom */
#rt-content-top,
#rt-content-bottom {
    margin-bottom: 16px;
}

/* ===========================================================================
   MODULE BLOCKS  (replaces Gantry's rt-block / moduletable system)
=========================================================================== */
.rt-block,
.moduletable,
#rt-extension .col-12{
    margin-bottom: 20px;
    background-color: #1dad7d;
    border-radius: 4px;
}
#rt-extension{color:#FFFFFF}
#rt-extension a{color:#edc7ce}



.rt-dark .rt-module-wrap {
    background-color: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: var(--th-menu-color);
}

/* Module title (h3) */
.module-title {
    margin-bottom: 10px;
}
.module-title .title,
.module-title h3 {
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: normal;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--th-font-family);
}

.rt-dark .module-title .title,
.rt-dark .module-title h3 {
    color: var(--th-menu-hover);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.rt-light .module-title .title,
.rt-light .module-title h3,
.component-block .module-title .title {
    color: #fff;
}

/* Module content area */
.module-content {
    font-size: var(--th-font-size);
    line-height: var(--th-line-height);
}

/* --- Module Color Variations (box1…box6) --- */
.box1 .rt-module-wrap {
    background: linear-gradient(180deg, #ea6e57 0%, var(--th-block-box1) 60%);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.4);
}
.box2 .rt-module-wrap {
    background: linear-gradient(180deg, #3fc9d7 0%, var(--th-block-box2) 60%);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.4);
}
.box3 .rt-module-wrap {
    background: linear-gradient(180deg, #bd6172 0%, var(--th-block-box3) 60%);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.2);
}

   .box4 .rt-module-wrap {
   background-color: #1777a3;
  background-image: -webkit-gradient(linear,0 0,0 100%,from(#1d98d0),color-stop(60%,#1777a3),to(#1777a3));
  background-image: -webkit-linear-gradient(#1d98d0,#1777a3 60%,#1777a3);
  background-image: -moz-linear-gradient(top,#1d98d0,#1777a3 60%,#1777a3);
  background-image: -o-linear-gradient(#1d98d0,#1777a3 60%,#1777a3);
  background-image: linear-gradient(#1d98d0,#1777a3 60%,#1777a3);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1d97cf', endColorstr='#ff1777a3', GradientType=0);
  border-top: 1px solid rgba(255,255,255,0.2);
}

.box4 .rt-module-wrap a { color: pink; }
.box5 .rt-module-wrap {
    background-color: var(--th-block-box5);
    color: #fff;
}
.box6 .rt-module-wrap {
    background: linear-gradient(180deg, var(--th-block-box6-from) 0%, var(--th-block-box6-to) 60%);
    color: #2E2E2E;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Colored block link overrides */
.box1 .rt-module-wrap a,
.box2 .rt-module-wrap a,
.box3 .rt-module-wrap a,
.box5 .rt-module-wrap a {
    color: rgba(255,255,255,0.9);
}
.box1 .rt-module-wrap a:hover,
.box2 .rt-module-wrap a:hover,
.box3 .rt-module-wrap a:hover,
.box5 .rt-module-wrap a:hover {
    color: #fff;
}

/* Default block (Gantry blocks-default color) */
.rt-dark-block .rt-module-wrap {
    background-color: rgba(22,133,187,0.8);
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.rt-light-block .rt-module-wrap {
    background-color: rgba(22,133,187,0.8);
    color: #fff;
}

/* --- Module Class Suffix Helpers --- */
.rounded .rt-module-wrap  { border-radius: 5px !important; }
.square .rt-module-wrap   { border-radius: 0 !important; }
.basic .rt-module-wrap    { background: transparent !important; border: none !important; box-shadow: none !important; }
.flush .rt-module-wrap    { padding: 0 !important; }
.flushtop .rt-module-wrap { padding-top: 0 !important; }
.flushbottom .rt-module-wrap { padding-bottom: 0 !important; }

/* Shadow variations */
.shadow2 .rt-module-wrap  { box-shadow: inset 0 0 3px rgba(0,0,0,0.2) !important; }
.shadow3 .rt-module-wrap  { box-shadow: inset -1px 1px 3px rgba(0,0,0,0.2) !important; }
.shadow6 .rt-module-wrap  { box-shadow: 0 0 5px rgba(0,0,0,0.2) !important; }
.shadow7 .rt-module-wrap  { box-shadow: 1px 1px 3px rgba(0,0,0,0.2) !important; }

/* Text case */
.uppercase .module-title .title   { text-transform: uppercase; }
.lowercase .module-title .title   { text-transform: lowercase; }
.standardcase .module-title .title{ text-transform: none; }

/* ===========================================================================
   SIDEBAR
=========================================================================== */
#rt-sidebar .rt-module-wrap {
   
    border: 1px solid rgba(0,0,0,0.1);
    color:#fff;
}
#rt-sidebar .rt-module-wrap a{color:#edc7ce;}

/* Sidebar vertical menu */
#rt-sidebar .module-content ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
#rt-sidebar .module-content ul.menu li {
    list-style: none;
    margin-bottom: 0;
}
#rt-sidebar .module-content ul.menu li a,
#rt-sidebar .module-content ul.menu li .item {
    display: block;
    padding: 6px 0;
    font-size: 1.05em;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
#rt-sidebar .module-content ul.menu li a:hover,
#rt-sidebar .module-content ul.menu li .item:hover {
    color: var(--th-hr-color);
    text-decoration: none;
}
#rt-sidebar .module-content ul.menu li.active > a,
#rt-sidebar .module-content ul.menu li.current > a {
    color: var(--th-hr-color);
    font-weight: bold;
}
#rt-sidebar .module-content ul.menu ul {
    margin-left: 14px;
}
#rt-sidebar .module-content ul.menu ul li a {
    font-size: 0.9em;
    font-weight: normal;
}

/* ===========================================================================
   EXTENSION SECTION
=========================================================================== */
#rt-extension {
  
    padding: 10px 0;
   
}

/* ===========================================================================
   BOTTOM
=========================================================================== */
#rt-bottom {
    background-color: var(--th-dark-bg-alt);
    background-image: linear-gradient(180deg, var(--th-dark-bg) 0%, var(--th-dark-bg-alt) 100%);
    padding: 20px 0;
    border-top: 2px solid rgba(255,255,255,0.05);
}
#rt-bottom .rt-module-wrap {
    background-color: transparent;
    border: none;
    box-shadow: none;
}
#rt-bottom .module-title .title {
    color: var(--th-menu-hover);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* ===========================================================================
   FOOTER
=========================================================================== */
#rt-footer-surround {
    background-color: var(--th-dark-bg);
    background-image: linear-gradient(180deg, var(--th-dark-bg-alt) 0%, var(--th-dark-bg) 100%);
    border-top: 2px solid rgba(255,255,255,0.06);
}

#rt-footer {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#rt-copyright {
    padding: 12px 0;
    font-size: 0.85em;
    color: rgba(255,255,255,0.55);
    text-align: center;
}
#rt-copyright a { color: var(--th-accent); }
#rt-copyright a:hover { color: var(--th-menu-hover); }

#rt-footer-surround .rt-module-wrap,
#rt-footer .rt-module-wrap,
#rt-copyright .rt-module-wrap {
    background-color: transparent;
    border: none;
    box-shadow: none;
}
#rt-footer-surround .module-title .title {
    color: var(--th-menu-hover);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

/* ===========================================================================
   SOCIAL BUTTONS (fixed left side)
=========================================================================== */
#rt-social-buttons {
    position: fixed;
    left: 0;
    top: 375px;
    z-index: 1000;
    width: 60px;
}
#rt-social-buttons a {
    display: block;
    width: 60px;
    height: 60px;
    opacity: 0.55;
    transition: opacity 0.2s ease-in;
    background-color: var(--th-dark-bg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    line-height: 60px;
    font-size: 1.4em;
    color: var(--th-menu-hover);
}
#rt-social-buttons a:hover {
    opacity: 1;
    text-decoration: none;
}

/* ===========================================================================
   SCROLL-TO-TOP BUTTON
=========================================================================== */
#rt-totop {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 38px;
    height: 38px;
    background-color: var(--th-dark-bg);
    color: var(--th-menu-hover) !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
#rt-totop.visible {
    opacity: 0.8;
    visibility: visible;
}
#rt-totop:hover {
    opacity: 1 !important;
    text-decoration: none;
}

/* ===========================================================================
   BUTTONS / READON / READMORE
=========================================================================== */
.button,
.readon,
.readmore a,
.btn-primary {
    display: inline-block;
    padding: 4px 14px;
    line-height: 1.5em;
    font-size: 1em;
    border-radius: 15px;
    border: 2px solid;
    transition: background-color 0.1s ease-in, color 0.1s ease-in;
    font-family: var(--th-font-family);
    cursor: pointer;
}
.component-content .button,
.component-content .readon {
    background-color: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.4);
    color: #333;
}
.component-content .button:hover,
.component-content .readon:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* ===========================================================================
   JOOMLA SYSTEM MESSAGES
=========================================================================== */
.alert { border-radius: 6px; }
.alert-message       { border-radius: 6px; padding: 15px; font-weight: bold; border: 1px solid; }
.alert-success       { background: #dff0d8; border-color: #c3e6cb; color: #468847; }
.alert-danger,
.alert-error         { background: #f2dede; border-color: #f5c6cb; color: #b94a48; }
.alert-warning       { background: #fcf8e3; border-color: #ffeeba; color: #c09853; }
.alert-info          { background: #d9edf7; border-color: #bee5eb; color: #3a87ad; }

/* ===========================================================================
   FORMS
=========================================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: var(--th-font-family);
    font-size: var(--th-font-size);
    background-color: #fff;
    transition: border-color 0.15s ease-in-out;
    max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--th-hr-color);
    box-shadow: 0 0 0 2px rgba(13,52,142,0.15);
}

/* ===========================================================================
   PAGINATION
=========================================================================== */
.pagination { margin: 20px 0; }
.page-item .page-link {
    color: var(--th-hr-color);
    border-color: rgba(0,0,0,0.15);
    font-family: var(--th-font-family);
}
.page-item.active .page-link {
    background-color: var(--th-hr-color);
    border-color: var(--th-hr-color);
}

/* ===========================================================================
   ARTICLE / BLOG LAYOUT
=========================================================================== */
.article-info {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.article-info .label {
    font-weight: bold;
    color: #555;
}
.article-info i { display: none; }

.blog-featured .blog h2,
.component-content .blog h2,
.component-content .item-page h2 {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.component-content .blog h2 a { color: #444; }
.component-content .blog h2 a:hover { color: var(--th-hr-color); }

.items-leading .leading-0,
.blog .article-separator { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 16px; }

/* Even/odd rows */
.cat-list-row0 { background-color: rgba(255,255,255,0.4); }
.cat-list-row1 { background-color: transparent; }
.cat-list-row0:hover,
.cat-list-row1:hover { background-color: rgba(255,255,255,0.6); }

/* ===========================================================================
   LOGIN MODULE
=========================================================================== */
.module-content .login {
    padding: 0;
}
.module-content .login form { margin: 0; }
#rt-popuplogin,
#rt-popup {
    display: none;
}

/* ===========================================================================
   BREADCRUMBS
=========================================================================== */
.breadcrumb-item + .breadcrumb-item::before { color: #888; }
.breadcrumb-item a { color: var(--th-hr-color); }
.breadcrumb-item.active { color: #555; }

/* ===========================================================================
   DEBUG
=========================================================================== */
#rt-debug {
    border-top: 2px solid #c00;
    background: #ffe;
    padding: 10px 0;
    font-size: 12px;
}

/* ===========================================================================
   ECWID  (carried forward from original custom CSS)
=========================================================================== */
div.ecwid-productBrowser-categoryPath-storeLink,
span.ecwid-productBrowser-categoryPath-separator-first { display: none !important; }
div.ecwid-results-topPanel-sortByPanel             { display: none !important; }
div.ecwid-productBrowser-categoryPath              { display: none; }
table.ecwid-productBrowser-cart-estimation,
div.ecwid-productBrowser-cart-asterisk             { display: none; }
span.ecwid-productBrowser-cart-weight,
span.ecwid-Invoice-productDescr-weight             { display: none; }
div.ecwid-productBrowser-auth                      { display: none; }
table.ecwid-Checkout-blockTitle button,
div.ecwid-Checkout-PasswordBlock                   { display: none; }
div.ecwid-productBrowser-cart-hint                 { display: none; }
.ecwid-Checkout-PaymentRightPanel .ecwid-btn--sign_in,
.ecwid-Checkout-ShippingAddress .ecwid-btn--address_book_sign_in { display: none !important; }
.ecwid div, .ecwid span, .ecwid a, .ecwid p {
    font-family: 'Comic Sans MS', 'Comic Sans', Arial, sans-serif !important;
}
.owner_block { display: none; }
span.ecwid-minicart-label-text { color: #9A2E17; }

/* ===========================================================================
   UTILITY  (port from original custom CSS)
=========================================================================== */
p.small { font-size: 8px; line-height: 0.9; }
p.blue  { color: #000080; }

/* ===========================================================================
   POSITION ROW PADDING  (sections share consistent vertical rhythm)
=========================================================================== */
.rt-position {
    padding: 10px;
}

#rt-top .rt-position { padding: 5px 10px; }
#rt-showcase .rt-position { padding: 0; }
#rt-feature .rt-position  { padding: 10px; }

/* ===========================================================================
   RESPONSIVE OVERRIDES
=========================================================================== */

/* Large desktop (≥ 1200px) — full layout */
@media (min-width: 1200px) {
    .container-xl { max-width: 1200px; }
}

/* Tablet (768px – 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .rt-menu-wrap .nav-link { font-size: 14px; padding: 16px 8px; }
    .rt-logo-wrap img { max-height: 64px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {

    /* Collapse sidebar to full width */
    .rt-main-col,
    .rt-sidebar-col {
        padding-right: 12px;
        padding-left: 12px;
    }

    /* Mobile navbar */
    #rt-navbar {
        flex-wrap: wrap;
    }
    .rt-logo-wrap { flex: 1; }
    .rt-menu-wrap {
        width: 100%;
        flex: none;
    }
    .rt-menu-wrap .navbar-nav {
        flex-direction: column;
        width: 100%;
        background-color: var(--th-dark-bg);
        padding: 8px 0;
    }
    .rt-menu-wrap .nav-link {
        padding: 10px 16px;
        text-align: left;
    }
    .rt-menu-wrap .nav-item.active::after { display: none; }
    .rt-menu-wrap .dropdown-menu {
        position: static;
        background-color: rgba(0,0,0,0.3);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
    }
    .rt-menu-wrap .dropdown-menu::before { display: none; }
    .rt-menu-wrap .dropdown-item {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Stack position rows on mobile */
    #rt-top .row > [class*="col-"],
    #rt-showcase .row > [class*="col-"],
    #rt-feature .row > [class*="col-"],
    #rt-utility .row > [class*="col-"],
    #rt-maintop .row > [class*="col-"],
    #rt-mainbottom .row > [class*="col-"],
    #rt-extension .row > [class*="col-"],
    #rt-bottom .row > [class*="col-"],
    #rt-footer .row > [class*="col-"],
    #rt-copyright .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Social buttons hidden on mobile to avoid overlap */
    #rt-social-buttons { display: none; }

    /* Scroll to top closer to edge */
    #rt-totop { right: 10px; bottom: 16px; }
}

/* Very small screens */
@media (max-width: 480px) {
    body { font-size: 12px; }
    .component-block.rt-block { padding: 14px; }
    h2 { font-size: 22px; }
}
