/* 
@font-face {
    font-family: 'Gothic';
    src: url('/assets/gothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
*/

@font-face {
    font-family: "iconfont";
    src: url('/assets/fonts/iconfont.woff2') format('woff2'),
        url('/assets/fonts/iconfont.woff') format('woff'),
        url('/assets/fonts/iconfont.ttf') format('truetype');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 32px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --accent: #007aff;
    --text-white: #ffffff;
    --text-gray: #888888;
    --bg-black: #000000;
    --font-main: 'Inter', sans-serif;

    /* DYNAMIC VARIABLES (Filled by Renderer) */
    --header-height: 90px;
    --nav-gap: 40px;
    --burger-width: 400px;
    --burger-bg: #ffffff;
    --burger-text: #000000;
    --burger-font-size: 24px;
    --burger-spacing: 60px;
    --burger-align: center;
}

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

body {
    font-family: var(--font-main);
    background: #000;
    color: #fff;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s ease;
}

body.is-loading {
    opacity: 0;
}

h1,
h2,
h3,
.collection-subtitle,
.footer-column h4 {
    font-family: 'Gothic', sans-serif;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 1000;
    transition: background 0.3s;
}

header .logo img {
    height: 35px;
    width: auto;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: var(--nav-gap);
}

/* AI OVERLAY */
#ai-overlay {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    background: #000;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    display: none;
}

#ai-overlay.active {
    display: block;
    transform: translateY(-100%);
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: 0.3s;
}

header nav ul li a:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
}

.header-right a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.hamburger {
    width: 25px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* BURGER OVERLAY */
#burger-overlay {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--burger-width));
    width: var(--burger-width);
    height: 100vh;
    background: var(--burger-bg);
    color: var(--burger-text);
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
}

#burger-overlay.active {
    right: 0;
}

#burger-overlay .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: var(--burger-text);
}

.burger-links {
    display: flex;
    flex-direction: column;
    gap: var(--burger-spacing);
    text-align: var(--burger-align);
    align-items: var(--burger-align);
    width: 100%;
}

.burger-links a {
    color: var(--burger-text);
    text-decoration: none;
    font-size: var(--burger-font-size);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.3s;
}

.burger-links a:hover {
    opacity: 0.5;
    color: var(--accent);
}

/* SWIPER CUSTOM */
.swiper {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* SLIDE THEMES */
.theme-light {
    color: #000;
}

.theme-light header nav ul li a,
.theme-light .header-right a {
    color: #000;
}

.theme-light .hamburger span {
    background: #000;
}

body.header-light header nav ul li a,
body.header-light .header-right a {
    color: #000;
}

body.header-light .hamburger span {
    background: #000;
}

body.header-light .logo {
    filter: invert(1);
}

/* LAYOUTS */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

/* HERO LAYOUT */
.layout-hero .slide-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.collection-logo {
    max-height: var(--logo-max-height);
    margin-bottom: 20px;
    width: auto;
    transition: filter 0.5s ease;
}

.theme-light .collection-logo {
    filter: brightness(0);
}

.theme-dark .collection-logo {
    filter: none;
}

.collection-subtitle {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 10px;
    height: 70px;
    line-height: 70px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.collection-text {
    font-family: 'Gothic', sans-serif;
    font-size: 16px;
    line-height: 2;
    font-weight: 300;
    max-width: 470px;
    opacity: 1;
    margin: 30px auto 50px auto;
    text-align: center;
}

/* SPLIT LAYOUTS */
.layout-split .slide-content,
.layout-split-reversed .slide-content {
    display: grid;
    gap: var(--gap);
}

.layout-split .slide-content {
    grid-template-columns: 1.2fr 0.8fr;
}

.layout-split-reversed .slide-content {
    grid-template-columns: 0.8fr 1.2fr;
}

.layout-split .slide-left,
.layout-split-reversed .slide-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.layout-split .slide-right,
.layout-split-reversed .slide-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-wrapper {
    position: relative;
    width: 440px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.device-off {
    z-index: 10;
    opacity: 1;
}

.device-on {
    z-index: 11;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.is-settled .device-on {
    opacity: 1;
}

.slide-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* HORIZONTAL CENTER */
    text-align: center;
    /* TEXT CENTER */
}

.learn-more {
    display: inline-block;
    margin-top: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* OVERLAY LAYOUT */
.layout-overlay .slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.overlay-product {
    position: absolute;
    left: 15%;
    top: 40%;
    width: 300px;
}

.overlay-product img {
    width: 100%;
    height: auto;
}

.overlay-text {
    position: absolute;
    right: 15%;
    bottom: 15%;
    max-width: 470px;
    text-align: right;
}

.is-admin-mode .admin-placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 20px;
    font-size: 10px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

/* HEADER TRANSITIONS */
header nav ul li a,
.header-right a,
.logo,
.hamburger span {
    transition: color 0.5s ease, filter 0.5s ease, background 0.5s ease, opacity 0.5s ease;
}

/* FEATURE GRID LAYOUT */
.layout-grid .slide-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.grid-container {
    max-width: 1170px;
    /* Standard site width */
    width: 100%;
    text-align: center;
}

.grid-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    width: 100%;
}

.grid-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 330px;
    transition: 0.3s;
}

.feature-icon {
    width: 330px;
    height: 330px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: 0.3s;
}

/* Force white icons only on dark slides, original color on light */
.theme-dark .feature-icon img {
    filter: brightness(0) invert(1);
}

.theme-light .feature-icon img {
    filter: none;
    /* Keep original colors */
}

.feature-title {
    font-family: 'Gothic', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: 10px;
    opacity: 0.8;
}

.feature-desc {
    font-size: 13.5px;
    line-height: 1.6;
    opacity: 0.7;
    font-weight: 300;
    max-width: 100%;
}

.grid-description {
    font-family: 'Gothic', sans-serif;
    font-size: 16px;
    line-height: 2;
    max-width: 1170px;
    /* Exact match from inspector */
    margin: 30px auto 0 auto;
    opacity: 1;
    font-weight: 300;
    text-align: center;
}

/* FEATURE GRID 5 LAYOUT (Scales to 6) */
.layout-grid-5 .grid-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    /* Increased to 50px as requested */
    margin-top: 60px;
    width: 100%;
}

.layout-grid-5 .grid-feature-item {
    flex: 1;
    max-width: 240px;
}

.layout-grid-5 .feature-icon {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
}

.layout-grid-5 .feature-title {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.layout-grid-5 .feature-desc {
    font-size: 13px;
    line-height: 1.5;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;
}

.grid-bottom-title {
    font-family: 'Gothic', sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 80px;
    margin-bottom: 20px;
    text-align: center;
}

/* TECHNICAL SPECS LAYOUT */
.layout-tech-specs .slide-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tech-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-top {
    height: 250px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.tech-top img {
    height: 100%;
    width: auto;
    max-width: 956px;
}

.tech-middle {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.tech-feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 375px;
}

.tech-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-text {
    font-size: 13.5px;
    line-height: 1.5;
    width: 303px;
    opacity: 0.9;
    font-weight: 300;
}

.tech-bottom {
    height: 100px;
    display: flex;
    justify-content: center;
}

.tech-bottom img {
    height: 100%;
    width: auto;
    max-width: 680px;
}

/* INTERACTIVE TABS LAYOUT */
.layout-interactive-tabs .slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-right: 0 !important;
    /* Flush to right edge */
}

.tabs-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
}

.tab-content-area {
    min-height: 250px;
}

.tab-title {
    margin-top: 40px;
    height: auto !important;
    line-height: 1.2 !important;
    margin-bottom: 25px;
    text-align: center !important;
}

.tab-desc {
    max-width: 500px;
    margin-bottom: 50px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tab-icons-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.tab-icon-item {
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.tab-icon-item img,
.tab-icon-item i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: inherit;
    font-style: normal;
}

/* ANY ICON FONT MAPPINGS */
.icon-3c-1::before {
    content: "\e65d";
}

.icon-3c-8::before {
    content: "\e65f";
}

.icon-3c-6::before {
    content: "\e664";
}

.icon-3c-9::before {
    content: "\e661";
}

.icon-3c-5::before {
    content: "\e662";
}

.icon-3c-10::before {
    content: "\e666";
}

.icon-3c-3::before {
    content: "\e65e";
}

.icon-3c-7::before {
    content: "\e663";
}

.icon-3c-2::before {
    content: "\e660";
}

.tab-icon-item.active,
.tab-icon-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tabs-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tab-image-wrapper {
    width: 771px;
    height: 861px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.tab-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transition: opacity 0.5s ease;
}

/* TOP IMAGE + SPLIT COLUMNS LAYOUT */
.layout-top-image-split .slide-content {
    justify-content: center;
    align-items: center;
}

.top-img-split-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layout-top-image-split .top-img-wrapper {
    width: 1170px;
    height: 325px;
    margin-bottom: 80px;
}

.layout-top-image-split .top-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.split-columns-wrapper {
    display: flex;
    justify-content: space-between;
    width: 1170px;
    margin: 0 auto;
}

.split-left-col {
    width: 440px;
    text-align: right;
    margin-left: 65px;
    /* Ovo podešava tekstualni deo da ne bude previše levo */
}

.split-right-col {
    width: 570px;
    display: flex;
    justify-content: center;
}

.split-right-col img {
    max-width: 100%;
    object-fit: contain;
}

/* DOWNLOAD GRID LAYOUT */
.layout-download-grid .slide-content {
    justify-content: center;
    align-items: center;
}

.download-container {
    width: 1170px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-header {
    margin-bottom: 60px;
    text-align: center !important;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 100%;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card {
    width: 210px;
    height: 210px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.theme-dark .download-card {
    background: #000;
    border-color: rgba(255, 255, 255, 0.1);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.download-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.download-title {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 210px;
}

/* CONTACT LIST LAYOUT */
.layout-contact-list .slide-content {
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 1170px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header {
    margin-bottom: 80px;
    text-align: center !important;
}

.contact-rows-wrapper {
    width: 100%;
}

.contact-row {
    display: flex;
    align-items: center;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.theme-dark .contact-row {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.contact-row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-dark .contact-row:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.contact-icon-col {
    width: 200px;
    /* Space for the left icon */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-icon-col img {
    height: 60px;
    width: auto;
}

.contact-content-col {
    flex: 1;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    padding-right: 200px;
    /* Balance the icon width on left */
}

.contact-content-col a {
    color: inherit;
    text-decoration: none;
    display: block;
    font-weight: 300;
}

.contact-content-col a:hover {
    opacity: 0.7;
}

/* PRODUCT MATERIALS GRID LAYOUT */
.layout-product-materials-grid .slide-content {
    justify-content: center;
    align-items: center;
}

.materials-container {
    width: 1170px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.materials-header {
    position: relative;
    top: 40px;
    /* Vraćeno malo na gore za bolji balans */
    margin-bottom: 30px;
    /* Razmak do slika */
    text-align: center !important;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 277.5px);
    column-gap: 20px;
    row-gap: 30px;
    /* Smanjeno sa 40px na 30px da bi se donji red podigao */
    width: 100%;
}

.material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-image {
    width: 277.5px;
    height: 277.5px;
    margin-bottom: 15px;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.material-caption {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    opacity: 0.9;
}

/* TOP IMAGE + TWO COLUMNS LAYOUT */
.layout-top-image-columns .slide-content {
    justify-content: center;
    align-items: center;
}

.top-img-columns-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.top-img-wrapper {
    width: 1170px;
    height: 324px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bottom-columns-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.column-item {
    width: 570px;
    text-align: center;
}

.column-title {
    font-family: 'Gothic', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.column-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.column-desc a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    /* Veoma suptilna linija umesto debelog podvlačenja */
    transition: opacity 0.3s;
}

.theme-dark .column-desc a {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.column-desc a:hover {
    opacity: 1;
}

.column-desc small {
    font-size: 0.85em;
    opacity: 0.8;
    display: inline-block;
    margin-top: 5px;
}

/* FIX: Centriranje teksta unutar Overlay slajda bez pomeranja pozicije */
.layout-overlay .collection-subtitle,
.layout-overlay .collection-text {
    text-align: center !important;
}

/* CENTERED TEXT LAYOUT */
.layout-centered-text .slide-content {
    justify-content: center;
    align-items: center;
}

.centered-text-container {
    width: 570px;
    text-align: center;
}

.layout-centered-text .collection-subtitle {
    margin-bottom: 30px;
    text-align: center !important;
}

.layout-centered-text .collection-text {
    line-height: 1.6;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.layout-footer {
    display: flex;
    flex-direction: column;
    height: 100vh !important;
    width: 100%;
    overflow: hidden;
}

.footer-top {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
    padding: 120px 0 80px 0;
    /* Pushed icons down and line lower */
    flex: 1;
    /* Takes remaining space */
}

.footer-icon-item {
    color: #fff;
    text-decoration: none;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s ease;
}

.footer-icon-item:hover {
    transform: translateY(-5px);
}

.footer-icon-item:hover .iconfont2 {
    color: var(--accent);
}

.footer-icon-item .iconfont2 {
    display: block;
    font-size: 55px;
    margin-bottom: 25px;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-icon-item span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.footer-middle {
    background: #fff;
    color: #000;
    padding: 60px 80px;
    height: auto;
    min-height: 250px;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

.footer-column h4 {
    font-family: 'Gothic', sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 30px;
    text-transform: none;
    letter-spacing: 1px;
}

.footer-column h4 a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column h4 a:hover {
    opacity: 0.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 18px;
}

.footer-column ul li a {
    color: #000;
    font-size: 13px;
    opacity: 0.7;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    background: #fff;
    color: #000;
    padding: 30px 80px 50px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-credit,
.footer-copyright {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

.footer-copyright a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

.footer-socials a {
    color: #000;
    font-size: 16px;
    margin-left: 20px;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Resource Hub Layout */
.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    height: 100%;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.hub-container::-webkit-scrollbar {
    width: 4px;
}

.hub-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.layout-resource-hub.swiper-slide {
    pointer-events: auto;
}

.hub-main-title {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 60px;
    flex-shrink: 0;
}

.hub-cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    flex-shrink: 0;
}

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
    width: 220px;
    margin-bottom: 20px;
}

.hub-card-box {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.hub-card:hover .hub-card-box {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.hub-card-box img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.hub-card-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    text-align: center;
}

.hub-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 40px 0;
    flex-shrink: 0;
}

.hub-section-title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 20px;
    flex-shrink: 0;
}

.hub-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 60px;
    margin-bottom: 100px;
    flex-shrink: 0;
}

.hub-column {
    min-width: 0;
}

.hub-column-header {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    letter-spacing: 1px;
    color: inherit;
    font-weight: 400;
}

.hub-links-list {
    list-style: none;
    padding: 0;
}

.hub-links-list li {
    margin-bottom: 18px;
}

.hub-links-list a {
    text-decoration: none;
    color: inherit;
    /* Follow custom text color */
    font-size: 13px;
    opacity: 0.7;
    transition: 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-links-list a:hover {
    opacity: 1;
    transform: translateX(8px);
}

/* ==========================================================================
   RESPONSIVE DESIGN - CRITICAL MOBILE OVERHAUL
   ========================================================================== */

/* FORCE 100% WIDTH ON EVERYTHING */
html,
body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1024px) {
    header {
        padding: 0 30px;
    }

    .hub-columns {
        gap: 30px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 55px;
    }

    /* PREVENT ALL HORIZONTAL OVERFLOW */
    * {
        box-sizing: border-box !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    iframe,
    video,
    canvas {
        max-width: 100% !important;
    }

    .hub-container {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding: 0 20px !important;
    }

    /* HEADER - Shrink and Simplify */
    header {
        padding: 0 15px !important;
        height: var(--header-height) !important;
        background: #000 !important;
        z-index: 9999 !important;
    }

    header .logo img {
        height: 18px !important;
        width: auto !important;
    }

    header nav ul,
    .header-right a:not(.hamburger-link) {
        display: none !important;
    }

    .header-right .hamburger {
        display: flex !important;
        margin-left: auto;
    }

    /* GLOBAL SLIDE STRUCTURE */
    .swiper-slide {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .slide-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 80px 20px 40px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        /* Default vertical stack */
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        overflow-y: auto !important;
        height: 100% !important;
    }

    /* PRODUCT LAYOUTS - ALWAYS IMAGE TOP */
    .layout-split .slide-content {
        flex-direction: column-reverse !important;
        /* Text is left (first), Image is right (second) -> Reverse puts Image on top */
    }

    .layout-split-reversed .slide-content {
        flex-direction: column !important;
        /* Image is left (first), Text is right (second) -> Column keeps Image on top */
    }

    .device-wrapper {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        margin: 0 auto 20px auto !important;
    }

    .device-on {
        display: none !important;
    }

    .device-off {
        opacity: 1 !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }

    /* TYPOGRAPHY */
    .collection-subtitle {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .collection-text {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin: 12px auto !important;
        width: 100% !important;
    }

    /* LOGOS */
    .collection-logo {
        max-height: 50px !important;
        width: auto !important;
        margin-bottom: 20px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* FEATURE GRIDS - More compact */
    .grid-features,
    .layout-grid-5 .grid-features {
        display: block !important;
        /* Use block to prevent any flex/grid stretching issues */
        width: 100% !important;
        margin-top: 20px !important;
    }

    .grid-feature-item {
        width: 100% !important;
        margin-bottom: 40px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .feature-icon {
        width: 180px !important;
        height: 180px !important;
        margin-bottom: 15px !important;
    }

    .feature-desc {
        display: none !important;
    }

    .feature-title {
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }

    /* INTERACTIVE TABS */
    .tabs-left {
        width: 100% !important;
    }

    .tabs-right {
        display: none !important;
    }

    .tab-icons-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    /* DOWNLOAD GRID */
    .download-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
    }

    .download-card {
        height: 100px !important;
    }

    /* RESOURCE HUB (Drastic) */
    .hub-main-title {
        font-size: 16px !important;
        padding: 0 10px !important;
    }

    .hub-cards-grid {
        display: none !important;
    }

    .hub-columns {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .hub-column {
        margin-bottom: 40px !important;
    }

    .hub-column-header {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .hub-links-list li a {
        font-size: 12px !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    /* FOOTER MOBILE OVERRIDES */
    .footer-grid {
        display: block !important;
    }

    .footer-column {
        margin-bottom: 30px !important;
    }

    .footer-icon-item {
        margin-bottom: 30px !important;
    }

    .footer-bottom {
        font-size: 10px !important;
    }

    /* BURGER MENU MOBILE OVERRIDES */
    #burger-overlay {
        width: 100% !important;
    }

    .burger-links a {
        font-size: 15px !important;
    }
}

/* AI CHAT BAR - Unified Styles (Global) */
#ai-chat-bar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 380px;
    z-index: 25000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#ai-chat-bar:hover,
#ai-chat-bar:focus-within {
    background: rgba(0, 0, 0, 0.8);
    border-color: #d4af37;
    /* Gold accent like AI CMS */
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

#ai-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 15px;
    outline: none;
    font-weight: 300;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

#ai-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

#ai-chat-btn {
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#ai-chat-btn:hover {
    transform: scale(1.1);
    background: #d4af37;
    /* Gold accent on hover */
    color: white;
}

/* AI CMS Admin Link */
.admin-website-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}