:root {
    --spc-primary-color: #ce2027;
    --spc-secondary-color: #ce2027;
    --spc-accent-color: #f59e0b;
    --spc-success-color: #04be23;
    --spc-error-color: #ef4444;
    --spc-text-color: #374151;
    --spc-light-text-color: #f9fafb;
    --spc-bg-color: #f8f9fa;
    --spc-font-family: 'Manrope', sans-serif;
    --spc-border-radius: 6px;
}

/* Popup styles */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Ticker styles - Dòng chữ chạy */
.spc-ticker-container {
    width: 100%;
    background-color: #f0f4f8;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #333333;
}

.spc-ticker-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    padding-right: 50px;
}

.spc-ticker-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.spc-ticker-content {
    display: inline-block;
    padding-left: 55px;
    animation-name: ticker;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 30s;
}

.spc-ticker-speed-slow .spc-ticker-content {
    animation-duration: 50s;
}

.spc-ticker-speed-medium .spc-ticker-content {
    animation-duration: 30s;
}

.spc-ticker-speed-fast .spc-ticker-content {
    animation-duration: 20s;
}

.spc-ticker-text {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spc-ticker-text:hover {
    color: var(--spc-primary-color);
}

.spc-ticker-more {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background-color: var(--spc-primary-color);
    color: var(--spc-light-text-color);
    border-radius: var(--spc-border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.spc-ticker-more:hover {
    background-color: var(--spc-secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .spc-ticker-icon {
        left: 10px;
    }
    
    .spc-ticker-content {
        padding-left: 45px;
    }
    
    .spc-ticker-more {
        right: 10px;
    }
}



/* Popup styles */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Ticker styles - Dòng chữ chạy */
.spc-ticker-container {
    width: 100%;
    background-color: #f0f4f8;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #333333;
}

.spc-ticker-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    padding-right: 50px;
}

.spc-ticker-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.spc-ticker-content {
    display: inline-block;
    padding-left: 55px;
    animation-name: ticker;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 30s;
}

.spc-ticker-speed-slow .spc-ticker-content {
    animation-duration: 50s;
}

.spc-ticker-speed-medium .spc-ticker-content {
    animation-duration: 30s;
}

.spc-ticker-speed-fast .spc-ticker-content {
    animation-duration: 20s;
}

.spc-ticker-text {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spc-ticker-text:hover {
    color: var(--spc-primary-color);
}

.spc-ticker-more {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background-color: var(--spc-primary-color);
    color: var(--spc-light-text-color);
    border-radius: var(--spc-border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.spc-ticker-more:hover {
    background-color: var(--spc-secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .spc-ticker-icon {
        left: 10px;
    }
    
    .spc-ticker-content {
        padding-left: 45px;
    }
    
    .spc-ticker-more {
        right: 10px;
    }
}



/* Popup styles */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Ticker styles - Dòng chữ chạy */
.spc-ticker-container {
    width: 100%;
    background-color: #f0f4f8;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #333333;
}

.spc-ticker-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    padding-right: 50px;
}

.spc-ticker-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.spc-ticker-content {
    display: inline-block;
    padding-left: 55px;
    animation-name: ticker;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 30s;
}

.spc-ticker-speed-slow .spc-ticker-content {
    animation-duration: 50s;
}

.spc-ticker-speed-medium .spc-ticker-content {
    animation-duration: 30s;
}

.spc-ticker-speed-fast .spc-ticker-content {
    animation-duration: 20s;
}

.spc-ticker-text {
    display: inline-block;
    margin-right: 50px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.spc-ticker-text:hover {
    color: var(--spc-primary-color);
}

.spc-ticker-more {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background-color: var(--spc-primary-color);
    color: var(--spc-light-text-color);
    border-radius: var(--spc-border-radius);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.spc-ticker-more:hover {
    background-color: var(--spc-secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .spc-ticker-icon {
        left: 10px;
    }
    
    .spc-ticker-content {
        padding-left: 45px;
    }
    
    .spc-ticker-more {
        right: 10px;
    }
}

/**
 * Custom CSS for the SPC Calculator Page Template
 */

@import url('common.css');

body.spc-template-body {
    font-family: var(--spc-font-family);
    margin: 0;
    padding: 0;
    background-color: var(--spc-bg-color);
    color: var(--spc-text-color);
    line-height: 1.6;
}

/* Header styles */
.spc-template-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
    position: relative;
    z-index: 100;
}

.spc-template-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.spc-template-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

img.main-logo {
    padding: 5px;
}

.spc-template-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--spc-text-color);
}

.spc-template-logo img.main-logo,
.spc-template-logo img.mobile-logo {
    max-height: 50px;
    width: auto;
    padding-right: 40px;
}

.spc-template-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

.spc-mobile-logo {
    display: none;
}

/* Navigation wrapper */
.spc-navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

/* Menu styles */
.spc-template-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.spc-template-menu li {
    margin-left: 20px;
    position: relative;
}

.spc-template-menu a {
    text-decoration: none;
    color: var(--spc-text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--spc-transition);
    display: flex;
    align-items: center;
}

.spc-template-menu a:hover {
    color: var(--spc-primary-color);
}

/* Submenu styles */
.spc-template-menu .menu-item-has-children > a .menu-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.spc-template-menu .menu-item-has-children:hover > a .menu-arrow {
    transform: rotate(-180deg);
}

.spc-template-menu .spc-sub-menu {
    position: absolute;
    top: 100%;
    left: -15px;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--spc-border-radius);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.spc-template-menu .menu-item-has-children:hover > .spc-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.spc-template-menu .spc-sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.spc-template-menu .spc-sub-menu a {
    padding: 8px 20px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc-template-menu .spc-sub-menu a:hover {
    background-color: rgba(var(--spc-primary-color-rgb, 52, 152, 219), 0.1);
}

/* Third level submenu */
.spc-template-menu .spc-sub-menu .spc-sub-menu {
    left: 100%;
    top: 0;
}

.spc-template-menu .spc-sub-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spc-template-menu .spc-sub-menu .menu-item-has-children > a .menu-arrow {
    transform: rotate(-90deg);
}

.spc-template-menu .spc-sub-menu .menu-item-has-children:hover > a .menu-arrow {
    transform: rotate(-270deg);
}

/* Button styles */
.spc-template-buttons {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.spc-btn {
    display: inline-block;
    padding: 5px 25px;
    border-radius: var(--spc-border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--spc-transition);
    text-align: center;
    margin-left: 10px;
}

.spc-btn-register {
    background-color: var(--spc-primary-color);
    color: var(--spc-light-text-color);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spc-btn-register:hover {
    background-color: var(--spc-secondary-color);
    color: var(--spc-light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.spc-btn-download {
    border: 1px solid var(--spc-primary-color);
    color: var(--spc-primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spc-btn-download:hover {
    background-color: var(--spc-accent-color);
    border-color: var(--spc-accent-color);
    color: var(--spc-light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile menu toggle */
.spc-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    position: relative;
}

.spc-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--spc-text-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    position: absolute;
    left: 8px;
    border-radius: 3px;
}

.spc-menu-toggle span:nth-child(1) {
    top: 10px;
}

.spc-menu-toggle span:nth-child(2) {
    top: 18px;
}

.spc-menu-toggle span:nth-child(3) {
    top: 26px;
}

/* Trạng thái active của nút toggle */
.spc-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.spc-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.spc-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

/* Khi menu mở, biểu tượng X sẽ có màu đỏ */
.spc-menu-toggle.active span {
    background-color: var(--spc-primary-color);
}

/* Mobile menu close button */
.spc-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--spc-text-color);
    z-index: 1001;
}

/* Content styles */
.spc-template-content {
    padding: 10px 0;
    min-height: 500px;
}

/* Footer styles */
.spc-template-footer {
    background-color: rgb(243 243 243);
    color: var(--spc-text-color);
    padding: 20px 0;
    margin-top: 40px;
}

.spc-template-footer p {
    margin: 0;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .spc-template-menu li {
        margin-left: 15px;
    }
    
    .spc-btn {
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .spc-template-logo {
        margin-bottom: 0;
    }
    
    .spc-menu-toggle {
        display: block;
        position: relative;
    }
    
    .spc-menu-close {
        display: block;
    }
    
    .spc-navigation-wrapper {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.97);
        z-index: 1001;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 20px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .spc-navigation-wrapper.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Thêm overlay mờ cho nền */
    body:after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    body.menu-open:after {
        visibility: visible;
        opacity: 0.3;
        pointer-events: none;
    }
    
    .spc-template-menu {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0;
        padding: 0;
    }
    
    .spc-template-menu li {
        margin: 0;
        font-size: 18px;
        width: 100%;
        position: relative;
    }
    
    .spc-template-menu a {
        font-size: 18px;
        padding: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;
    }
    
    .spc-template-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spc-mobile-menu-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
        z-index: 1002;
    }
    
    .spc-template-buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin: 20px 0 0 0;
    }
    
    .spc-btn {
        margin: 10px 0;
        padding: 12px 30px;
        width: 200px;
        font-size: 18px;
        position: relative;
        z-index: 1;
    }
    
    .spc-mobile-logo {
        display: block;
        margin-bottom: 30px;
    }
    
    .spc-mobile-logo img.mobile-logo {
        max-height: 40px;
    }
    
    /* Mobile submenu handling */
    .spc-template-menu .spc-sub-menu {
        position: relative;
        top: auto;
        left: auto;
        min-width: 100%;
        background-color: rgba(0, 0, 0, 0.03);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 2;
    }
    
    .spc-template-menu .menu-item-has-children.active > .spc-sub-menu {
        max-height: 1000px;
    }
    
    .spc-template-menu .spc-sub-menu li {
        margin: 0;
        padding: 0;
    }
    
    .spc-template-menu .spc-sub-menu a {
        padding: 8px 20px;
        font-size: 16px;
    }
    
    .spc-template-menu .menu-item-has-children > a .menu-arrow {
        margin-left: 10px;
    }
    
    /* Third level on mobile */
    .spc-template-menu .spc-sub-menu .spc-sub-menu {
        left: auto;
        top: auto;
        background-color: rgba(0, 0, 0, 0.02);
        padding-left: 15px;
    }

    .spc-template-menu .menu-item-has-children > a {
        padding-left: 15px;
    }
}

/* Calculator-specific styles for the template */
.spc-template-content .calculator-container {
    background-color: #ffffff;
    border-radius: var(--spc-border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.spc-template-content .tab-content {
    background-color: #ffffff;
    border-radius: 0 0 var(--spc-border-radius) var(--spc-border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.spc-template-content .nav-tabs {
    border-bottom: none;
}

.spc-template-content .nav-tabs .nav-link {
    border-radius: var(--spc-border-radius) var(--spc-border-radius) 0 0;
    font-weight: 500;
}

.spc-template-content .nav-tabs .nav-link.active {
    background-color: #ffffff;
    border-bottom-color: #ffffff;
}

.spc-template-content .form-control:focus {
    border-color: var(--spc-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--spc-primary-color-rgb, 52, 152, 219), 0.25);
}

.spc-template-content .btn-primary {
    background-color: var(--spc-primary-color);
    border-color: var(--spc-primary-color);
}

.spc-template-content .btn-primary:hover {
    background-color: var(--spc-secondary-color);
    border-color: var(--spc-secondary-color);
}

/* Page content section */
.spc-page-content-section {
    padding: 30px 0;
    background-color: var(--spc-bg-color);
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.spc-content-wrapper {
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
}

.spc-content-wrapper.collapsed .spc-content-inner {
    max-height: 150px;
    overflow: hidden;
}

.spc-content-wrapper:not(.collapsed) .spc-content-fade {
    display: none;
}

.spc-content-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0) 0%, var(--spc-bg-color) 90%);
    pointer-events: none;
}

.spc-read-more-btn {
    display: block;
    width: 200px;
    margin: 15px auto;
    padding: 10px 20px;
    background-color: #f1f5f9;
    color: var(--spc-text-color);
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.spc-read-more-btn:hover {
    background-color: #e2e8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.spc-read-more-btn i {
    margin-right: 5px;
    color: var(--spc-primary-color);
}

.spc-content-inner {
    padding-bottom: 30px;
}

.spc-content-inner h1, 
.spc-content-inner h2, 
.spc-content-inner h3 {
    color: var(--spc-text-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.spc-content-inner p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.spc-content-inner ul, 
.spc-content-inner ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.spc-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--spc-border-radius);
    margin: 1em 0;
} 

.spc-btn-download {
    background-color: #fff !important;
    color: var(--spc-primary-color) !important;
}

/* Banner và popup styles */
/* Popup styles */
.spc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.spc-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spc-popup-content {
    background-color: #fff;
    border-radius: var(--spc-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 90%;
    max-height: 90%;
}

.spc-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.spc-popup-close:hover {
    background-color: #f0f0f0;
}

.spc-popup-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.spc-popup-img-container img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.spc-popup-text-container {
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
}

/* Banner styles */
.spc-top-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
    padding: 10px 0;
}

.spc-top-banner a {
    display: block;
}

.spc-top-banner img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.spc-side-banners-container {
    position: fixed;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 100;
}

.spc-side-banner {
    position: absolute;
    pointer-events: auto;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.spc-side-banner:hover {
    transform: scale(1.02);
}

.spc-side-banner.left {
    left: 10px;
}

.spc-side-banner.right {
    right: 10px;
}

.spc-side-banner a {
    display: block;
}

.spc-side-banner img {
    display: block;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.spc-bottom-banner {
    width: 100%;
    text-align: center;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
    padding: 10px 0;
    border-radius: 4px;
}

.spc-bottom-banner a {
    display: block;
}

.spc-bottom-banner img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

@media (max-width: 1100px) {
    .spc-side-banners-container {
        display: none;
    }
}

.spc-top-banner a:hover img, .spc-bottom-banner a:hover img {
    opacity: 0.95;
    transition: opacity 0.3s ease;
}