/* ================================================================
   ALLIANCE CIGAR - Desktop Styles (min-width: 64em / 1024px+)
   Premium Tobacconist aesthetic: warm, refined, editorial
   ================================================================ */

/* --- CSS Custom Properties for Desktop Theme --- */
:root {
    --nav-bg: #1b2838;
    --nav-hover: #c5953a;
    --sub-bar-bg: #f7f4f0;
    --accent-gold: #c5953a;
    --accent-gold-light: #ddb96a;
    --text-primary: #2a2a2a;
    --text-muted: #6b6560;
    --text-on-dark: #f0ece6;
    --border-subtle: #e2ddd6;
    --bg-warm: #faf8f5;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(27,40,56,0.06);
    --shadow-md: 0 4px 16px rgba(27,40,56,0.08);
    --shadow-lg: 0 8px 32px rgba(27,40,56,0.12);
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-smooth: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Mobile nav hidden on desktop --- */
#alliance-mobile-nav {
    display: none;
}
#alliance-desktop-nav {
    display: block;
}

/* --- Base Typography --- */
body {
    text-align: left;
    min-width: 56.25em;
    background-color: var(--bg-warm);
    background-position: center;
    background-repeat: repeat-y;
    font-family: var(--font-body);
    font-size: 1em;
    font-weight: 400;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Mobile nav hidden on desktop, burger hidden --- */
section.burger {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* --- Utility Bar (top slim bar) --- */
.utility-bar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- Main Header Bar --- */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}
.main-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

/* --- Logo --- */
.header-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.header-logo .logo {
    max-height: 38px;
    width: auto;
    transition: opacity var(--transition-smooth);
}
.header-logo .logo:hover {
    opacity: 0.85;
}
.slogan {
    font-family: var(--font-display);
    font-size: 12px;
    text-align: left;
    margin-top: 2px;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* --- Override general2.css mobile-first hiding of menu --- */
input[type=checkbox]:checked ~ div.menu-main,
div.menu-main {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: 72px;
    flex: 1;
    display: flex !important;
    justify-content: center;
}

/* Prevent checkbox toggle from moving flextop */
input[type=checkbox]:checked ~ div.flextop {
    position: static;
    top: auto;
    left: auto;
}

.navDiv {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

div.menu-main > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 0;
}

div.menu-main > ul > li {
    position: relative;
    height: 72px;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* --- Nav Link Styling --- */
.main-header a.maincat {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 72px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition-smooth);
}
.main-header a.maincat:hover {
    color: var(--accent-gold);
}
.main-header a.maincat:focus {
    color: var(--accent-gold);
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

.main-header a.maincat span {
    padding: 0 16px;
    font-weight: 600;
    display: block;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    transition: color var(--transition-smooth);
    border-right: none;
    position: relative;
}

/* Gold underline on hover */
div.menu-main > ul > li > a span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}
div.menu-main > ul > li:hover > a span::after {
    transform: scaleX(1);
}

/* --- Header Search --- */
.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-search {
    display: flex;
    align-items: center;
    margin: 0;
}
.header-search #searchfield {
    width: 180px;
    height: 36px;
    border: 1px solid var(--border-subtle);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-family: var(--font-body);
    background: var(--bg-warm);
    color: var(--text-primary);
    margin: 0;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.header-search #searchfield::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.header-search #searchfield:focus {
    border-color: var(--accent-gold);
    background: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197,149,58,0.12);
}
.header-search button {
    height: 36px;
    width: 38px;
    border: 1px solid var(--border-subtle);
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: var(--bg-warm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0;
    margin: 0;
    transition: all var(--transition-smooth);
}
.header-search button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
}

/* --- Cart in Header (top right) --- */
.header-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-smooth);
    text-decoration: none !important;
    color: var(--text-primary) !important;
}
.header-cart-link:hover {
    background: rgba(197,149,58,0.08);
    color: var(--text-primary) !important;
}
.header-cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--nav-bg);
    line-height: 1;
    background: none !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
    float: none;
}
.header-cart-icon:hover {
    background: none !important;
    background-image: none !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    transform: none;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--font-body);
}
.header-cart-text {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    float: none;
}
.cart-total {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* --- Hide old header elements that are no longer in the markup --- */
.searchSect,
.headerLogin,
.border_bottom_1,
.logoDiv,
.yearsDiv,
.headercartDiv,
.freeshipDiv {
    /* These are no longer used in the new header structure */
}

.center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Social Media (legacy) --- */
.socialMedia {
    float: left;
}

.social {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2px;
    border: 1px solid var(--border-subtle);
    width: 140px;
    height: 60px;
    opacity: .9;
    z-index: 1;
    background-color: var(--bg-warm);
    padding: 5px 1px 1px 5px;
    border-radius: var(--radius-md);
}

.social_text {
    width: 130px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 90%;
    z-index: 20;
}

.header_facebook {
    background-image: url(../images/facebook_60x14.jpg);
    float: left;
    background-repeat: no-repeat;
    height: 14px;
    width: 60px;
    line-height: 80%;
    vertical-align: middle;
    font-size: 11px;
    text-align: center;
    margin: 2px;
    z-index: 1000;
}

.header_twitter {
    background-image: url(../images/twitter_60x14.jpg);
    float: left;
    background-repeat: no-repeat;
    height: 14px;
    width: 60px;
    line-height: 80%;
    vertical-align: middle;
    font-size: 11px;
    text-align: center;
    margin: 2px;
    z-index: 1000;
}

/* --- Mega Menu Dropdown --- */
.menu-sub {
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
    position: absolute;
    background: var(--bg-white);
    top: 72px;
    display: none;
    padding: 28px 32px;
    width: 680px;
    color: var(--text-primary);
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
}

nav li:hover .menu-sub,
nav li:focus-within .menu-sub,
div.menu-main > ul > li:hover > .menu-sub,
div.menu-main > ul > li:focus-within > .menu-sub {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 200ms ease, transform 200ms ease;
}

.menu-sub p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
}

.menu-col-3,
.menu-col-1 p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.menu-col-3 a,
.menu-col-1 a {
    color: var(--text-primary);
    transition: color var(--transition-smooth);
}

.menu-col-3 a:hover,
.menu-col-1 a:hover {
    color: var(--accent-gold);
}

.menu-col-3 a:focus,
.menu-col-1 a:focus {
    color: var(--accent-gold);
}

nav li {
    /* clean list item */
}

.menu-sub li {
    display: block;
}

.menu-sub a {
    padding: 0;
    margin-bottom: 0.35em;
    font-family: var(--font-body);
    transition: color var(--transition-smooth);
}

.menu-sub a:hover {
    text-decoration: none;
    color: var(--accent-gold);
}

.menu-sub a:focus {
    text-decoration: none;
    color: var(--accent-gold);
}

.menu-category {
    margin: 1.5em 0 0.4em;
}

.menu-category:first-of-type {
    margin-top: 0;
}

.menu-category a {
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color var(--transition-smooth);
    position: relative;
    display: inline-block;
}

.menu-category a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-smooth);
}

.menu-category a:hover::after,
.menu-category a:focus::after {
    width: 100%;
}

.menu-category a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.menu-category a:focus {
    color: var(--accent-gold);
    text-decoration: none;
}

h5.menu-category a {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1.3;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.3em;
    letter-spacing: 0.08em;
}

.menu-col-1,
.menu-col-2,
.menu-col-3,
.menu-col-4 {
    float: left;
}

.menu-col-1 {
    width: 25%;
}

.menu-col-2 {
    width: 50%;
    padding-left: 24px;
    border-left: 1px solid var(--border-subtle);
    box-shadow: none;
}

.menu-col-2:first-of-type {
    width: 50%;
    padding-left: 0;
    border-left: unset;
}

.menu-col-2 p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.menu-col-3 {
    width: 30%;
    padding-left: 20px;
    border-left: 1px solid var(--border-subtle);
    box-shadow: none;
}

.menu-col-3:first-of-type {
    width: 30%;
    padding-left: 0;
    border-left: unset;
}

.menu-col-3 p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.maincat {
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
}

a.maincat:hover {
    color: var(--accent-gold);
}

a.maincat:focus {
    color: var(--accent-gold);
}

/* --- Sticky Navigation --- */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 101;
}

/* --- Main Content Area --- */
.home_content {
    clear: both;
    background-color: var(--bg-warm);
    width: 100%;
    margin-top: 108px;
    min-height: 10px;
}

.main {
    border: 0;
    border-color: transparent;
    width: 100%;
    text-align: center;
    background-color: var(--bg-warm);
    padding: 10px;
}

/* --- Brands Page Header --- */
.brands-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--nav-bg);
    padding: 32px 20px 24px;
    text-align: center;
    width: 100%;
}

.brands-header-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.brands-header h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.brands-header p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.brands-header .alphabet_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
}

.brands-header .alphabet_container a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-smooth), background-color var(--transition-smooth);
}

.brands-header .alphabet_container a:hover {
    color: var(--accent-gold);
    background-color: var(--bg-warm);
}

.main1 {
    border: 0;
    border-color: transparent;
    width: 100%;
    text-align: left;
    background-color: var(--bg-white);
}

.main2 {
    border: 0;
    border-color: transparent;
    width: 100%;
    background-color: var(--bg-white);
}

/* --- Homepage Hero Section --- */
.home_main {
    height: auto;
    border-bottom: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    background-color: var(--bg-warm);
}

#heroBanner {
    aspect-ratio: 850 / 700;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#heroBanner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#heroSpecials {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    height: 700px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.home_main > .prem_whse2::-webkit-scrollbar {
    width: 5px;
}

.home_main > .prem_whse2::-webkit-scrollbar-track {
    background: transparent;
}

.home_main > .prem_whse2::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.home_main > div:last-child {
    overflow: hidden;
}

.prem_whse {
    float: left;
    height: 100%;
    color: #FFF;
    font-weight: 700;
    padding-top: 100px;
}

.prem_whse_fff {
    text-align: center;
    font-style: italic;
    font-size: 120%;
    font-family: var(--font-display);
}

.prem_whse_phrase {
    text-align: center;
    font-size: 100%;
    margin-top: 20px;
    line-height: 200%;
    font-family: var(--font-body);
}

/* --- Specials List Styling --- */
.prem_whse2 {
    float: left;
    height: 100%;
    color: #FFF;
    font-weight: 400;
    padding: 20px;
    background-color: var(--nav-bg);
}

.prem_whse2 h3,
.prem_whse2 h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.specials_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specials2_li {
    color: rgba(240,236,230,0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.875rem;
    line-height: 1.5;
    transition: background-color var(--transition-smooth);
}

.specials2_li:last-child {
    border-bottom: none;
}

.specials2_li a {
    color: var(--accent-gold-light);
    transition: color var(--transition-smooth);
}

.specials2_li a:hover {
    color: #fff;
}

/* --- Content Sections (Why Buy, Brands) --- */
.news_container {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    height: auto;
    overflow: visible;
    position: relative;
    padding: 24px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

#content-mid {
    height: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-weight: 400;
    overflow: visible;
    padding: 24px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* --- Row Overrides --- */
.row {
    /* inherits from foundation, just override max-width */
}

/* --- Advanced Search --- */
#adv_search_txt::before {
    content: "Advanced ";
}
#adv_search_txt::after {
    content: "Search";
}

/* --- Cigar Brands Grid --- */
ul.large-block-grid-3.cigar_brands {
    line-height: 30%;
    padding: 0;
    padding-top: 15px;
}

/* --- Filter UI --- */
.oiULFilter h3, .oiULFilter ul, .oiULFilter li {
    display: inline;
    margin: 0 1rem 0 0;
}

#oiFiltSubmit {
    width: 20%;
    text-align: center;
}

#toggleFilt {
    width: 20%;
    text-align: center;
    margin: 3px;
    padding: 1px 3px;
}

/* --- Totals Section --- */
.totalsSectionContainer {
    float: left;
}

/* --- Form Labels --- */
#subForm label {
    font-size: .7778rem !important;
    width: 200px !important;
    text-align: left !important;
    float: left;
    margin: 0;
}

/* --- Columns --- */
.column, .columns {
    position: relative;
    padding-left: 0.9375em;
    padding-right: 0.9375em;
    float: left;
}

p.regP label {
    float: left;
}

/* --- Product Listing Card Wrapper --- */
.product-listing-card {
    background-color: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: auto;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* --- Left Sidebar --- */
.left-sidebar {
    float: left;
    min-height: 300px;
    width: 230px;
    margin-right: -150px;
    background-color: transparent;
    padding: 0 15px 20px 15px;
    border: none;
    clear: both;
}

.search_main {
    border: none;
    min-height: 300px;
    width: auto;
    text-align: center;
    margin-left: 230px;
    background-color: transparent;
}

.search_main .products {
    padding-top: 16px;
    padding-bottom: 16px;
}

#page div div nav ol li a {
    color: #fff;
    font-weight: 700;
}

.searchdiv {
    float: right;
    line-height: 0;
    margin-top: -2px;
    margin-right: 10px;
}

div nav.megamenu.top-bar form.searchform2 {
    width: 150px !important;
}

nav form div div input#searchphrase2 {
    top: 0;
}

/* --- Footer Refinement --- */
.footer {
    clear: both;
    background-color: var(--nav-bg);
    color: rgba(240,236,230,0.75);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 32px 40px;
    font-size: 0.8125rem;
    margin-top: 0;
    line-height: 1.7;
    font-family: var(--font-body);
    border-top: 3px solid var(--accent-gold);
}

.footer a {
    color: var(--accent-gold-light) !important;
    text-decoration: none !important;
    transition: color var(--transition-smooth);
}

.footer a:hover {
    color: #fff !important;
}

/* --- Homepage Sections Below Hero --- */
.home_content > .row.fullWidth:not(:first-child) {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
}


.home_content > .row.fullWidth:not(:first-child) > div {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* --- Headings --- */
.home_content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

h3:has(+ .view-all-brands) {
    margin-bottom: 4px;
}

.view-all-brands {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: color var(--transition-smooth);
}

.view-all-brands:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* --- Why Buy Highlight Cards --- */
.why-buy-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.why-buy-card {
    background: var(--bg-warm);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 22px 24px;
    text-align: center;
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}


.why-buy-card-icon {
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 14px;
}

.why-buy-card-rule {
    width: 28px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto 14px;
    opacity: 0.5;
}

.why-buy-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.why-buy-card-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* --- Buttons Refinement --- */
button, .button {
    font-family: var(--font-body);
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition-smooth);
}

.w3-acblue {
    color: #fff !important;
    background-color: var(--nav-bg) !important;
    border-color: var(--nav-bg) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
}

.w3-acblue:hover {
    color: #fff !important;
    background-color: var(--accent-gold) !important;
}

/* --- Red Accent --- */
.red {
    color: #c44040;
    font-weight: 700;
}

/* --- Tables Refinement --- */
table {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

table thead {
    background: var(--bg-warm);
}

table tr.even, table tr.alt, table tr:nth-of-type(even) {
    background: var(--bg-warm);
}

/* --- Slider Wrapper Refinement --- */
.wrapper {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
}

/* --- Responsive content padding --- */
.bg-white {
    background-color: var(--bg-white);
    padding: 20px;
}

/* --- Modal Refinement --- */
.w3-modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.w3-container {
    z-index: 102;
    font-family: var(--font-body);
}

.w3-container h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
}

/* --- Smooth page transitions --- */
.home_content,
.main,
.main1,
.main2 {
    animation: fadeIn 400ms ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
