/*
Theme Name: SBS Portal
Description: Custom WordPress theme for SBS Driving School Portal
Version: 1.0.0
Optimized for Bootstrap 5 integration
*/

/* Accessibility Classes */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Base Styles - Essential only */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #262626;
    background-color: #F7F7F7;
}

/* Override Bootstrap container max-width */
.container {
    max-width: 1500px;
}

/* Navigation Section - Based on Figma Design */
.nav-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0;
    position: relative;
    width: calc(50% - 40px);
    z-index: 1000;
}

.portal-sticky {
    position: fixed;
}

/* Mega Search Box - Main Container */
.mega-search-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 64px;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.content-left {
  display: flex;  
  flex-direction: row;
  justify-content: flex-end;
}

/* Navigation Items Container */
.navigation-items {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    /* Responsive gap: 16px to 32px */
    margin: 0;
    /* Add horizontal padding */
    padding: 0 14px;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    position: relative;
    z-index: 1002;
    justify-content: space-between;
    /* Distribute items evenly */
    width: 100%;
}

/* Navigation Item Base Styles */
.nav-item {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
}

/* Dropdown items need higher z-index */
.nav-item.dropdown {
    z-index: 1003;
}

.header-section-title-text {
    font-size: 24px;
    font-weight: 600;
    font-style: Semi Bold;
}

.header-section-title-subtitle {
    display: inline;
    font-family: Cormorant Garamond;
    font-weight: 700;
    font-style: Italic;
    font-size: 52px;
}


/* Navigation Links - Figma Typography */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    color: #262626;
    text-decoration: none;
    margin: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    color: #DD1F01;
    text-decoration: none;
}

.nav-link:focus {
    color: #DD1F01;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.nav-link.active {
    color: #262626;
}

/* Dropdown with Icon Styles */
.dropdown-with-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropdown-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.dropdown-text:focus {
    color: #DD1F01;
    outline: none;
    text-decoration: none;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-icon svg {
    width: 8px;
    height: 4px;
    stroke: #262626;
    stroke-width: 1px;
    fill: none;
    transition: stroke 0.2s ease;
}

.dropdown-icon:focus svg {
    stroke: #DD1F01;
}

/* Menu Button - Based on Figma Frame 1948758089 */
.menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background-color: #DD1F01;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navigation-container {
    padding: 0 40px;
}

.menu-button:hover,
.menu-button:focus {
    background-color: #C11A01;
    color: #FFFFFF;
}

.menu-text {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    white-space: nowrap;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-section .nav-link {
    padding: 0;
}

.menu-icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF;
    stroke-width: 1.5px;
    fill: none;
}

/* Responsive Navigation Styles */
@media (max-width: 1200px) {
    .mega-search-box {
        height: auto;
        min-height: 64px;
        align-items: center;
        max-width: 100%;
    }

    .navigation-items {
        gap: clamp(0.5rem, 1.5vw, 1rem);
        /* Smaller gap on tablets */
        padding: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: end;
    }

    .navigation-items::-webkit-scrollbar {
        display: none;
    }

    .menu-button {
        padding: 8px 12px;
        gap: 8px;
    }

    .menu-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .mega-search-box {
        gap: 15px;
    }

    .navigation-items {
        gap: clamp(0.25rem, 1vw, 0.5rem);
        /* Very small gap on mobile */
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: end;
        /* Left align on mobile for easier scrolling */
        /* Minimal padding on mobile */
    }

    .nav-link {
        font-size: clamp(0.75rem, 1.5vw, 0.875rem);
        /* Smaller font on mobile */
        white-space: nowrap;
        padding: 0.375rem 0.5rem;
        /* Compact padding on mobile */
    }

    /* Better touch targets for mobile */
    .nav-item {
        min-height: 44px;
        /* iOS minimum touch target */
        display: flex;
        align-items: center;
    }

    /* Improve dropdown positioning on mobile */
    .nav-item.dropdown .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
        width: auto !important;
        margin-top: 0.5rem;
    }

    .dropdown-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .menu-text {
        font-size: 14px;
        white-space: nowrap;
    }

    .menu-button {
        padding: 6px 10px;
    }
}

/* Enhanced Dropdown Styles */
.nav-item.dropdown .dropdown-menu {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 12px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.2s ease-out;
    position: absolute;
    z-index: 9999;
    display: none;
}

/* ============================================================================
   SBS MEGA MENU STYLES - Based on Figma Design
   ========================================================================== */

/* Offcanvas Mega Menu Base */
.sbs-mega-menu {
    z-index: 10000;
    width: 100vw !important;
    max-width: none;
    height: 100vh;
    background: #F7F7F7;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    padding: 24px;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.brand-logo-dark img {
    position: absolute;
    top: 67%;
}

.mega-menu-brand-panel {
    width: 661px;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.brand-vertical-text {
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
}

.vertical-text-line {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 80px;
    line-height: 1em;
    color: #FFFFFF;
    opacity: 0.25;
    text-align: right;
    letter-spacing: 0.05em;
    text-orientation: mixed;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.3s ease;
}

.vertical-text-line:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

.brand-logo-strip {
    position: absolute;
    left: 69px;
    bottom: 171px;
    width: 397px;
    height: 74px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-strip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Right Content Panel */
.mega-menu-content-panel {
    flex: 1;
    height: 100%;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mega Menu Header */
.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 40px 0 40px;
    position: relative;
    z-index: 10001;
    background: transparent;
}

.dropdown-footer button {
    background: transparent;
    border: none;
    color: #FFFFFF;
    padding: 0;
    font-weight: 400;
    font-size: 14px;
}

.dropdown-footer li {
    list-style-type: none;
}

/* Language Switcher in Header */
.language-switcher-container {
    display: flex;
    align-items: center;
}

.mega-language-dropdown {
    position: relative;
}

.language-switcher-mega {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    color: #262626;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    transition: all 0.3s ease;
}

.language-switcher-mega:hover {
    color: #DD1F01;
    text-decoration: none;
}

.language-switcher-mega:focus {
    color: #DD1F01;
    text-decoration: none;
    outline: none;
}

.language-switcher-mega .dropdown-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher-mega .dropdown-icon svg {
    width: 8px;
    height: 4px;
    stroke: #262626;
    stroke-width: 1px;
    fill: none;
    transition: stroke 0.2s ease;
}

.language-switcher-mega:hover .dropdown-icon svg {
    stroke: #DD1F01;
}

/* Language Dropdown Menu in Mega Menu */
.language-dropdown-menu-mega {
    min-width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 10002;
    top: 100%;
    right: 0;
}

/* Close Button */
.mega-menu-close {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #262626;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mega-menu-close:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.mega-menu-close .close-text {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
}

.mega-menu-close svg {
    width: 24px;
    height: 24px;
    stroke: #FFFFFF;
    stroke-width: 1.5px;
    fill: none;
}

/* Mega Menu Body */
.mega-menu-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menu-footer-logo {
    padding: 40px;
}

/* Navigation Columns */
.mega-nav-columns {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}

.mega-nav-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 220px;
    flex: 1;
}

/* Section Styles */
.mega-nav-section {
    display: flex;
    flex-direction: column;
}

.mega-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.4em;
    color: #262626;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    text-decoration: none;
}

.hover-link:hover {
    color: #CF0020;
    text-decoration: none;
}

/* Navigation Lists */
.mega-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-nav-list li {
    margin: 0;
    padding: 0;
}

.mega-nav-link {
    display: block;
    padding: 8px 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.5em;
    color: #262626;
    text-decoration: none;
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.mega-nav-link:hover {
    color: #CF0020 !important;
    text-decoration: none;
}

.mega-nav-link:focus {
    color: #CF0020 !important;
    outline: none;
    text-decoration: none;
    outline: none !important;
}

.mega-nav-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #CF0020 !important;
    transition: width 0.3s ease;
    content: none !important;
}

.mega-nav-link:hover::before,
.mega-nav-link:focus::before {
    width: 8px;
}

.mega-nav-link:hover {
    color: #DD1F01;
    text-decoration: none;
}

/* Subsections */
.mega-nav-subsection {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
    position: relative;
}

.mega-subsection-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.5em;
    color: #262626;
    margin: 0 0 16px 0;
    padding: 0;
    position: relative;
}

.mega-subsection-title:hover {
    cursor: pointer;
    color: #CF0020;
}

.mega-section-title:hover {
    color: #CF0020;
    cursor: pointer;
}

.mega-nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-nav-sublink {
    display: block;
    padding: 6px 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #666666;
    text-decoration: none;
    text-align: left;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.mega-nav-sublink:hover {
    color: #CF0020;
    transform: translateX(6px);
    text-decoration: none;
    outline: none;
    content: none !important;
}

.mega-nav-sublink:focus {
    color: #CF0020;
    transform: translateX(6px);
    outline: none;
    text-decoration: none;
    content: none !important;
    outline: none !important;
}

.mega-nav-sublink::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #CF0020;
    transition: width 0.3s ease;
    content: none !important;
}

.mega-nav-sublink:hover::before,
.mega-nav-sublink:focus::before {
    width: 6px;
}

/* Mega Menu Footer */
.mega-menu-footer {
    margin-top: auto;

}

.mega-footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: auto;
}

.mega-footer-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #8E8E8E;
    text-decoration: none;
    text-align: left;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
    cursor: pointer;
}

.mega-footer-link.primary {
    color: #8E8E8E;
}

.mega-footer-link:hover {
    color: #CF0020;
    transform: translateX(4px);
}

.mega-footer-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #CF0020;
    transition: width 0.3s ease;
}

.mega-footer-link:hover::before,
.mega-footer-link:focus::before {
    width: 4px;
}

@media (max-width: 1439px) {
    .sbs-mega-menu {
        max-width: 100vw;
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .sbs-mega-menu {
        flex-direction: column;
        width: 100vw !important;
        padding: 16px;
    }

    .mega-menu-content-panel {
        flex: 1;
        min-height: 0;
    }

    .brand-logo-strip {
        width: 250px;
        height: 50px;
        left: 50%;
        bottom: 40px;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    .mega-menu-header {
        padding: 20px 20px 0 20px;
    }

    .mega-menu-container {
        padding: 20px;
    }

    .menu-footer-logo {
        padding: 20px;
    }

    .sbs-mega-menu {
        width: 90% !important;
        padding: 12px;
    }

    .brand-logo-strip {
        width: 200px;
        height: 40px;
        bottom: 30px;
    }

    .mega-menu-close {
        align-self: flex-end;
        padding: 6px 12px;
        font-size: 14px;
    }

    .mega-section-title {
        font-size: 18px;
    }

    .mega-subsection-title {
        font-size: 18px;
    }

    .mega-nav-link {
        font-size: 18px;
    }
}


/* Body class when mega menu is open */
body.mega-menu-open {
    overflow: hidden;
}

/* Mobile layout specific styles */


/* Enhanced animations for better UX */
.mega-nav-link,
.mega-nav-sublink,
.mega-footer-link {
    position: relative;
    overflow: hidden;
}

.mega-nav-link::before,
.mega-nav-sublink::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #DD1F01;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mega-nav-link:hover::before,
.mega-nav-sublink:hover::before {
    width: 100%;
}

.mega-menu-close:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .mega-nav-link,
    .mega-nav-sublink {
        border: 1px solid transparent;
    }

    .mega-nav-link:hover,
    .mega-nav-sublink:hover {
        border-color: #DD1F01;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .mega-nav-link,
    .mega-nav-sublink,
    .mega-footer-link,
    .mega-menu-close {
        transition: none;
    }

    .sbs-mega-menu.show {
        animation: none;
    }

    .mega-nav-link::before,
    .mega-nav-sublink::before {
        transition: none;
    }
}

/* FAQ Sticky Responsive Overrides */
@media (max-width: 1024px) {
    .faq-section {
        flex-direction: column;
        gap: 0;
    }

    .faq-title-bar {
        position: relative;
        top: 0;
        width: 100%;
        min-width: 0;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        margin-bottom: 64px;
    }

    .faq-content-container {
        margin-left: 0;
        min-height: auto;
    }
}

/* Show dropdown when parent has show class */
.nav-item.dropdown.show .dropdown-menu {
    display: block;
}

/* Also reveal dropdowns on hover/focus for desktop */
.nav-item.dropdown:hover>.dropdown-menu,
.nav-item.dropdown:focus-within>.dropdown-menu {
    display: block;
}

/* Bootstrap 5 compatibility */
.dropdown-menu.show {
    display: block !important;
}

/* Ensure dropdown positioning is correct */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    top: 100%;
    left: 0;
    right: auto;
    z-index: 10002;
    /* keep above nav container */
}

/* Language dropdown positioning */
.nav-item.dropdown .language-dropdown-menu {
    right: 0;
    left: auto;
    z-index: 10003;
}

/* Ensure language dropdown items are clickable */
.language-option {
    position: relative;
    z-index: 10004;
    pointer-events: auto;
    cursor: pointer;
    display: block;
    width: 100%;
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.language-option.active {
    background-color: rgba(221, 31, 1, 0.1);
    color: #DD1F01;
}

/* Company dropdown positioning */
.nav-item.dropdown .company-dropdown-menu {
    left: 0;
    right: auto;
}

/* Company Info Dropdown */
.company-dropdown-menu {
    min-width: 220px;
    position: absolute;
    z-index: 9999;
}

/* Language Dropdown */
.language-dropdown-menu,
.language-dropdown-menu-mobile {
    min-width: 180px;
}

.nav-item.dropdown .dropdown-item {
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #262626;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: block;
    width: 100%;
    text-align: left;
}

.nav-item.dropdown .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #262626;
    text-decoration: none;
}

.nav-item.dropdown .dropdown-item:focus {
    background-color: transparent;
    color: #DD1F01;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.nav-item.dropdown .dropdown-item:active {
    background-color: rgba(0, 0, 0, 0.08);
    color: #262626;
}

/* Dropdown Animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Additional fixes for proper alignment */
.mega-search-box {
    box-sizing: border-box;
    overflow: visible;
}



/* Ensure all navigation elements stay on one line */
.nav-section {
    overflow: visible;
}

.navigation-items {
    min-width: max-content;
}

/* Prevent text wrapping in all navigation elements */
.nav-item,
.nav-link,
.dropdown-with-icon,
.language-switcher,
.menu-button {
    white-space: nowrap;
}

/* Smooth horizontal scroll for mobile */
@media (max-width: 1199.98px) {
    .navigation-items {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure proper icon sizing for chevron */
.dropdown-icon svg {
    width: 8px !important;
    height: 4px !important;
    stroke: #262626 !important;
    stroke-width: 1px !important;
    fill: none !important;
}

/* Language Switcher Enhanced UI */
.language-switcher .dropdown-text {
    color: #262626;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* .language-switcher:hover .dropdown-text {
    background-color: rgba(0, 0, 0, 0.04);
    color: #262626;
} */

.language-switcher:focus .dropdown-text {
    background-color: transparent;
    color: #DD1F01;
    outline: none;
    box-shadow: none;
    text-decoration: none;
}

.language-switcher:active .dropdown-text {
    background-color: rgba(0, 0, 0, 0.08);
    color: #262626;
}

/* Enhanced Hover and Focus Effects */
.nav-link:hover .dropdown-text {
    color: #DD1F01;
}

.nav-link:focus .dropdown-text {
    color: #DD1F01;
}

.nav-link:hover .dropdown-icon svg {
    stroke: #262626;
}

.nav-link:focus .dropdown-icon svg {
    stroke: #DD1F01;
}

/* Menu button active state */
.menu-button:active {
    background-color: #B01601;
    transform: translateY(1px);
}

/* SBS Portal Styles */


/* Hero Section - Combined ROW 1 & ROW 2 */
.sbs-hero-section {
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(247, 247, 247, 1) 0%, rgba(247, 247, 247, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ROW 1: Hero Container - 50/50 Split Layout */
.hero-container {
    padding-left: 28px;
    padding-right: 28px;
}

/* Left Column (50%) - Logo & Brand Message */
.hero-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 300px;
}

/* Hero Images Section */
.hero-images-section {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Circle Image - Figma specs: 408x408px at (158, 35) */
.hero-circle-image {
    top: -20%;
    max-width: 408px;
    max-height: 408px;
    /*border-radius: 50%;*/
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.header-action {
    white-space: nowrap;
}

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

/* Logo Strip - Figma specs: 492x92px at (116, 359) */
.hero-logo-strip {
    position: absolute;
    left: 50%;
    top: 240px;
    transform: translateX(-50%);
    width: 492px;
    height: 92px;
    z-index: 3;
}

.hero-logo-strip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.container-navbar .btn-custom-nav {
    background-color: #DD1F01;
    color: #FFFFFF;
}

.btn-custom-nav span {
    font-size: clamp(0.875rem, 2vw, 1rem);
    /* Responsive font size */
}

/* Enhanced responsive styles for navigation button */
.btn-custom-nav {
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem);
    gap: clamp(0.25rem, 1vw, 0.5rem);
    min-width: max-content;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-custom-nav:hover {
    background-color: #B81A01;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(221, 31, 1, 0.2);
}

/* Brand Message - Position below images */
.brand-message {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #262626;
    z-index: 4;
}

.slogan-main {
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #262626;
}

.slogan-sub {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
    color: #262626;
}

/* Floating Animation */


/* Right Column (50%) - Navigation + Services */
.hero-right-column {
    flex: 1;
    height: 100%;
}

/* Navigation Section */
.navigation-section {
    flex-shrink: 0;
}

/* Auto Service Section */
.auto-service-section {
    flex-shrink: 0;
}

/* ROW 2: Detail Services Main Section - Inside Hero */
.sbs-hero-section .detail-services-main-section {
    position: relative;
    padding: 0 0 80px 0;
    z-index: 2;
    margin-top: auto;
}

/* Detail Services Grid - Bootstrap Enhanced */
.detail-services-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Portal Box Styles */
.portal-box {
    background: linear-gradient(135deg, rgba(252, 252, 253, 1) 0%, rgba(252, 252, 253, 0.83) 100%);
    border: 1px solid rgba(252, 252, 253, 1);
    border-radius: 8px;
    backdrop-filter: blur(32px);
    box-shadow: 0px 40px 64px -32px rgba(15, 15, 15, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 160px;
    display: flex;
    padding: 0 40px;
}

.portal-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 50px 80px -32px rgba(15, 15, 15, 0.2);
}

.portal-box:hover .box-title {
    color: #DD1F01;
}

.portal-box:hover .box-icon svg path,
.portal-box:hover .box-icon svg rect {
    stroke: #DD1F01;
}

/* Auto Service Box - Full width in right column */
.auto-service-section .portal-box {
    height: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* School Service Boxes - Two boxes side by side */
.school-services-section .portal-box {
    height: 160px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Detail Service Boxes - 4 column grid */
.detail-services-grid .portal-box {
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Box content and header - now using Bootstrap classes in template */
.box-icon {
    width: 24px;
    height: 24px;
    color: #C3C3C3;
    transition: color 0.3s ease;
}

.box-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.box-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    color: #262626;
    transition: color 0.3s ease;
}

/* Ensure links inside portal titles use our color and no underline even if Bootstrap reboot loads later */
.portal-box .box-title a,
.portal-box .box-title a:link,
.portal-box .box-title a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.portal-box .box-title a:hover,
.portal-box .box-title a:focus {
    color: #DD1F01 !important;
    text-decoration: none !important;
}

.box-description {
    font-size: 16px;
    color: #777E90;
    line-height: 1.5;
}

.box-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 60px;
    border-left: 6px solid #DD1F01;
    opacity: 0.6;
    transform: translateY(-50%);
}

/* Portal Navigation */
.portal-navigation {
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 252, 253, 1);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 45px;
}

.nav-links {
    display: flex;
    gap: 45px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #DD1F01;
}

.language-selector {
    position: relative;
}

.language-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #262626;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.language-dropdown:hover {
    color: #DD1F01;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    display: none;
    min-width: 120px;
    z-index: 100;
}

.language-dropdown.active .language-options {
    display: block;
}




.menu-button {
    background: #DD1F01;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: #C41A00;
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
}

/* Content Section */
.sbs-content-section {
    padding: 80px 0;
}

/* Banner Carousel Section */
.sbs-banner-carousel-section {
    position: relative;
    background-color: rgba(221, 31, 1, 0.5);
    padding: 60px 0 80px 0;
    overflow: hidden;
    margin-bottom: 0;
}

.sbs-banner-carousel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    width: 100%;
    background-image: url('../images/footer-bg-section.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Add spacing when banner section is hidden between hero and blog sections */
.sbs-hero-section+.sbs-blog-section {
    margin-top: 60px;
}

.banner-carousel-container {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    padding-bottom: 30px;
    z-index: 2;
    overflow: hidden;
    /* Essential for seamless infinite scroll */
}

.banner-carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    transition: transform 0.1s linear;
}

/* JavaScript-controlled animation */
.banner-carousel-track.js-animated {
    transition: none;
}

/* Static display for few items (< 5 items) */
.banner-carousel-track.static-display {
    justify-content: flex-start;
    transform: none !important;
    animation: none !important;
}

.banner-carousel-track.static-display .banner-item {
    flex-shrink: 0;
}

/* Enable manual scrolling when carousel is static */
.banner-carousel-container.static-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.banner-carousel-container.static-scroll::-webkit-scrollbar {
    height: 8px;
}

.banner-carousel-container.static-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* Optional: Add subtle fade-in for static items */
.banner-carousel-track.static-display .banner-item {
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner-carousel-track.static-display .banner-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Smooth transitions for performance */
.banner-carousel-track * {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.banner-item {
    flex: 0 0 339px;
    height: 198px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.banner-item:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    /* Animation continues while hovering */
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.banner-item:hover img {
    transform: scale(1.05) translateZ(0);
}

.banner-item.clicked {
    transform: scale(0.98) translateZ(0);
    transition: transform 0.1s ease;
}

/* JavaScript cloned items styling */
.banner-item.js-clone {
    opacity: 1;
}

/* Ensure cloned items maintain same styling */
.banner-carousel-track.js-animated .banner-item.js-clone {
    flex: 0 0 339px;
    height: 198px;
    pointer-events: none;
    /* Prevent interaction with clones */
}

/* Override pointer-events for links inside clones */
.banner-carousel-track.js-animated .banner-item.js-clone a {
    pointer-events: none;
}

/* Performance optimizations */
.banner-carousel-track {
    contain: layout style paint;
}

.banner-item {
    contain: layout style paint;
}

/* Image loading states */
.banner-item img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-item img.loaded,
.banner-item img[src]:not([src=""]) {
    opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .banner-carousel-track {
        animation-duration: 120s !important;
        /* Much slower */
    }

    .banner-item,
    .banner-item img,
    .campaign-overlay {
        transition: none !important;
    }
}

/* No pause on hover - continuous animation */

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-item {
        flex: 0 0 350px;
        height: 220px;
    }

    /* Ensure cloned items also respond to breakpoints */
    .banner-carousel-track.js-animated .banner-item.js-clone {
        flex: 0 0 350px;
        height: 220px;
    }
}

@media (max-width: 1024px) {
    .banner-carousel-container {
        padding: 0 20px;
    }

    .banner-item {
        flex: 0 0 320px;
        height: 200px;
    }

    .banner-carousel-track.js-animated .banner-item.js-clone {
        flex: 0 0 320px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .sbs-banner-carousel-section {
        padding: 40px 0 60px 0;
    }

    .sbs-banner-carousel-section::after {
        height: 60px;
    }

    .banner-carousel-container {
        padding: 0 16px;
    }

    .banner-item {
        flex: 0 0 280px;
    }

    .banner-carousel-track.js-animated .banner-item.js-clone {
        flex: 0 0 280px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .sbs-banner-carousel-section::after {
        height: 50px;
    }

    .banner-item {
        flex: 0 0 260px;
        height: 160px;
    }
}

/* Blog Section */
.blog-section {
    margin-bottom: 100px;
}

.logo-icon {
    width: 53px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.section-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    color: #262626;
    margin: 0;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
    color: #262626;
    margin: 0;
}

.view-all-button {
    border: 1px solid #E2E8F0;
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.view-all-button:hover {
    background: #F8FAFC;
    border-color: #DD1F01;
    color: #DD1F01;
}

/* Blog posts grid - now handled by Bootstrap */

/* Blog Card */
.blog-card {
    background: linear-gradient(135deg, rgba(252, 252, 253, 1) 0%, rgba(252, 252, 253, 0.83) 100%);
    border: 1px solid rgba(252, 252, 253, 1);
    border-radius: 8px;
    backdrop-filter: blur(32px);
    box-shadow: 0px 40px 64px -32px rgba(15, 15, 15, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 437px;
    height: auto;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.blog-card-title a {
    color: #262626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #DD1F01;
}

.blog-card-excerpt {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #414141;
    margin: 0;
    height: 129px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blockquote Styles for Campaign and Blog Content */
.campaign-text-block blockquote,
.blog-detail-content-text blockquote {
    border-left: 4px solid #DD1F01;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555555;
}

.campaign-text-block blockquote p,
.blog-detail-content-text blockquote p {
    margin-bottom: 0;
}

/* Blog card meta - simplified for Bootstrap */
.meta-tags {
    display: flex;
    gap: 4px;
}

.category-tag,
.date-tag {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 2px 8px;
    border-radius: 4px;
    background: #F5F6F7;
    color: #8E8E8E;
}

.category-blog {
    background: #E3F2FD;
    color: #1976D2;
}

.category-news {
    background: #FFF3E0;
    color: #F57C00;
}

/* FAQ Section */
.faq-section {
    position: relative;
    margin-bottom: 100px;
    display: flex;
    gap: 40px;
}

.faq-title-bar {
    position: sticky;
    top: var(--faq-sticky-offset, 96px);
    align-self: flex-start;
    width: 156px;
    min-width: 156px;
    height: 760px;
    background: #CF0020;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
}

/* Increase offset when WordPress admin bar is visible */
body.admin-bar .faq-title-bar {
    top: calc(var(--faq-sticky-offset, 96px) + 32px);
}

.faq-main-title {
    font-family: 'Cormorant Garamond';
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin: 0;
    width: 100%;
    font-style: italic;
    align-self: flex-start;
}

.campaign-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-vertical-text {
    font-size: 80px;
    font-weight: 600;
    line-height: 1;
    color: white;
    opacity: 0.3;
    font-family: Semi Bold;
}

.faq-content-container {
    position: relative;
    margin-left: 0;
    min-height: 760px;
    flex: 1 1 auto;
}

/* FAQ Group */
.faq-group {
    background: linear-gradient(135deg, rgba(252, 252, 253, 1) 0%, rgba(252, 252, 253, 0.83) 100%);
    border: 1px solid rgba(252, 252, 253, 1);
    border-radius: 8px;
    backdrop-filter: blur(32px);
    box-shadow: 0px 80px 64px -32px rgba(15, 15, 15, 0.1);
    overflow: hidden;
    padding: 40px;
}

.border-header-top-faq {
    width: 48px;
    height: 4px;
    margin-left: 24px;
    margin-bottom: 12px;
    background-color: #DD1F01;
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 24px;
    cursor: pointer;
    margin-bottom: 24px;
}

.group-indicator {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background-color: #DD1F01;
}

.group-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.group-title {
    font-size: 18px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.group-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-toggle img {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.header-section-left {
    position: absolute;
    top: 0;
}

.blog-detail-content {
    padding: 60px 40px 60px;
    min-height: calc(100vh - 284px - 278px);
    position: relative;
}

.navigation-container {
    padding: 0 40px;
}

/* Icon Container Styles */
.icon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Header Icons (Group Toggle) - Red Background */
.group-toggle .icon-container.expanded,
.group-toggle .icon-container.collapsed {
    background-color: #DD1F01;
}

.group-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Item Icons (Question Toggle) - White Background */
.question-toggle .icon-container.expanded,
.question-toggle .icon-container.collapsed {
    background-color: #FFFFFF;
    border: 1px solid #E1E8ED;
}

.question-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(0%) contrast(100%);
}

.icon-container img {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

/* FAQ Group Expanded/Collapsed States */
.faq-group.expanded .group-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.faq-group:not(.expanded) .group-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.faq-group-content {
    padding-left: 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-group.expanded .faq-group-content {
    max-height: 2000px;
    padding-bottom: 24px;
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #E1E8ED;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    cursor: pointer;
}

.question-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #262626;
    flex: 1;
    margin: 0;
}

.question-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* FAQ Item Expanded/Collapsed States */
.faq-item.expanded .question-toggle .icon-container {
    background-color: #FFFFFF;
    border: 1px solid #E1E8ED;
}

.faq-item:not(.expanded) .question-toggle .icon-container {
    background-color: #FFFFFF;
    border: 1px solid #E1E8ED;
}

.faq-item.expanded .question-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(0%) contrast(100%);
}

.faq-item:not(.expanded) .question-toggle .icon-container img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(0%) contrast(100%);
}

.faq-answer {
    padding-top: 12px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

/* Hide answer for collapsed items */
.faq-item:not(.expanded) .faq-answer {
    display: none !important;
}

.answer-brief {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #DD1F01;
    margin: 0;
}

.answer-detail {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #262626;
    margin: 0;
}

/* FAQ Logos Section */
.faq-logos-section {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-item {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Float Buttons */
.float-buttons {
    position: fixed;
    bottom: 16px;
    right: 242px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

/* Footer */
.site-footer {
    background: #2A2A2A;
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: flex;
    gap: 60px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.company-slogan {
    font-size: 14px;
    color: #CCCCCC;
    margin: 0;
}

.company-description {
    font-size: 14px;
    line-height: 1.6;
    color: white;
    margin: 0;
    max-width: 335px;
}

.footer-columns {
    display: flex;
    gap: 60px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px 0;
}

.column-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.column-links a {
    font-size: 14px;
    color: white;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.column-links a:hover {
    color: #DD1F01;
}



.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    text-align: left;
}

.contact-item a {
    font-size: 16px;
    font-weight: 400;
    color: white;
    margin: 0 0 4px 0;
    text-decoration: none;
}

.contact-item a:hover {
    color: #DD1F01;
}

.contact-item p {
    font-size: 14px;
    color: white;
    margin: 0;
}

.contact-button-wrapper {
    margin-top: 8px;
}

.contact-button {
    background: #F68306;
    color: #F8FAFC;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background: #E07505;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;

}

.legal-links {
    display: flex;
    gap: 30px;
    cursor: pointer;
}

.legal-links a {
    font-size: 14px;
    color: #F5F6F7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #DD1F01;
}

.copyright {
    font-size: 12px;
    color: #DFDFDF;
}

.copyright p {
    margin: 0;
}

/* Animation Effects */
.portal-box.in-view {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}

/* Additional hover effects */
.portal-box.hovered {
    transform: translateY(-5px) scale(1.02);
}

/* Responsive Design - Optimized for Bootstrap */
@media (max-width: 1200px) {

    .mega-menu-close {
        padding: 8px;
    }

    .hero-circle-image {
        top: -30%;
        height: 350px;
        width: 100%;
    }

    .mega-nav-column {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #E2E8F0;
    }

    .nav-section {
        background-color: transparent;
        border-radius: 0;
    }

    .hero-logo-strip {
        width: 420px;
        height: 80px;
        left: 50%;
        transform: translateX(-50%);
        top: 200px;
    }

    .slogan-main {
        font-size: 40px;
    }

    .detail-services-grid {
        padding: 0 30px;
    }

    .sbs-hero-section .detail-services-main-section {
        padding: 0 0 60px 0;
    }

    .faq-title-bar {
        position: relative;
        width: 100%;
        height: 120px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }
}

@media (max-width: 1024px) {


    /* Hero Section - Stack columns vertically */
    .hero-container {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left-column,
    .hero-right-column {
        flex: none;
        height: auto;
    }

    .hero-left-column {
        min-height: 300px;
    }

    .hero-circle-image {
        top: -20%;
        height: 300px;
        width: 450px;
    }

    .nav-section {
        background-color: transparent;
        border-radius: 0;
    }

    .hero-logo-strip {
        width: 350px;
        height: 70px;
        left: 50%;
        top: 200px;
        transform: translateX(-50%);
    }

    .slogan-main {
        font-size: 32px;
    }

    .slogan-sub {
        font-size: 16px;
    }

    .brand-message {
        bottom: 20px;
    }

    .detail-services-grid {
        padding: 0 20px;
    }

    .sbs-hero-section .detail-services-main-section {
        padding: 0 0 40px 0;
    }

    .nav-container {
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .blog-card {
        width: 100%;
        max-width: 437px;
        margin: 0 auto;
    }

    .section-subtitle {
        font-size: 40px;
    }

    .faq-content-container {
        margin-left: 0;
        margin-top: 20px;
    }

    .faq-group {
        padding: 20px;
    }

    .faq-group-header {
        padding-left: 12px;
        margin-bottom: 16px;
    }

    .border-header-top-faq {
        margin-left: 12px;
    }

    .group-title {
        font-size: 16px;
    }

    .faq-group-content {
        padding-left: 12px;
    }



    .faq-main-title {
        margin: 0;
        align-self: center;
        margin-left: 0;
        font-size: 40px;
    }

    .faq-logos-section {
        position: relative;
        width: 150px;
        height: 120px;
        top: 0;
        right: 0;
    }

    .logos-container {
        gap: 15px;
        flex-direction: column;
    }

    .logo-item {
        width: 50px;
        height: 25px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .sbs-hero-section {
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        min-height: auto;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-left-column {
        min-height: 200px;
        order: 1;
    }

    .hero-right-column {
        order: 2;
        gap: 15px;
    }

    /* Hero Images Mobile */
    .hero-circle-image {
        top: -30%;
        height: 200px;
        width: 300px;
    }

    .nav-section {
        background-color: transparent;
        border-radius: 0;
    }

    .hero-logo-strip {
        width: 250px;
        height: 50px;
        left: 50%;
        top: 120px;
        transform: translateX(-50%);
    }

    .slogan-main {
        font-size: 28px;
    }

    .slogan-sub {
        font-size: 14px;
    }

    .brand-message {
        bottom: 10px;
    }

    /* Detail services - single column handled by Bootstrap */
    .detail-services-grid {
        padding: 0 15px;
    }

    .sbs-hero-section .detail-services-main-section {
        padding: 0 0 40px 0;
    }

    .portal-box {
        padding: 20px;
        height: 120px;
    }

    .school-services-section .portal-box,
    .detail-services-grid .portal-box {
        height: 120px;
    }

    .hero-3d-logo {
        top: 60%;
    }

    .symbol-3d {
        font-size: 120px;
    }

    .slogan-main {
        font-size: 32px;
    }

    .slogan-sub {
        font-size: 14px;
    }

    .portal-services-container {
        bottom: 0;
        left: 20px;
        width: calc(100% - 40px);
        height: auto;
        transform: translateY(-20px);
    }

    .portal-services {
        flex-direction: column;
        gap: 16px;
    }

    .portal-navigation {
        top: 10px;
        right: 20px;
        width: calc(100% - 40px);
        height: auto;
        padding: 8px 12px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
        padding: 16px;
        gap: 12px;
    }

    .mobile-menu-button,
    .menu-button {
        display: block;
    }

    .nav-container {
        gap: 12px;
    }

    .float-buttons {
        right: 20px;
    }

    .section-subtitle {
        font-size: 36px;
    }

    /* Blog Section Mobile */
    .blog-card {
        width: 100%;
        max-width: 100%;
    }

    .blog-card-content {
        padding: 12px;
    }

    .blog-card-title {
        font-size: 16px;
    }

    .blog-card-excerpt {
        font-size: 14px;
        height: 100px;
    }

    .blog-card-image {
        height: 180px;
    }

    .portal-box {
        padding: 24px;
        min-height: 100px;
        height: auto;
    }

    .box-info h3 {
        font-size: 20px;
    }

    .box-info p {
        font-size: 14px;
    }

    .school-services-column,
    .detail-services-column {
        max-width: none;
    }

    .detail-services-column {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .hero-container {
        gap: 15px;
    }

    .hero-left-column {
        min-height: 150px;
    }

    /* Hero Images Extra Small */
    .hero-circle-image {
        top: -30%;
        height: 150px;
        width: 200px;
        object-fit: contain;
    }

    .nav-section {
        background-color: transparent;
        border-radius: 0;
    }

    .hero-logo-strip {
        width: 200px;
        height: 40px;
        left: 50%;
        top: 80px;
        transform: translateX(-50%);
    }

    .slogan-main {
        font-size: 24px;
    }

    .slogan-sub {
        font-size: 12px;
    }

    .brand-message {
        bottom: 5px;
    }

    .school-services-section {
        gap: 8px;
    }

    .detail-services-grid {
        gap: 8px;
        padding: 0 10px;
    }

    .sbs-hero-section .detail-services-main-section {
        padding: 0 0 30px 0;
    }

    .portal-box {
        padding: 15px;
        height: 100px;
    }

    .school-services-section .portal-box,
    .detail-services-grid .portal-box {
        height: 100px;
    }

    .box-info h3 {
        font-size: 18px;
    }

    .box-info p {
        font-size: 14px;
    }

    /* Mobile Responsive for Popup and Float Buttons */
    .popup-content {
        width: 200px;
        height: 160px;
    }

    .popup-main-title {
        font-size: 14px;
        margin: 0 0 8px 0;
    }

    .popup-banner {
        padding: 4px 8px;
        margin-bottom: 8px;
    }

    .popup-banner span {
        font-size: 10px;
    }

    .popup-action {
        font-size: 10px;
        gap: 4px;
    }

    .play-button {
        width: 16px;
        height: 16px;
    }

    .external-btn {
        width: 28px;
        height: 28px;
    }

    .external-btn img {
        width: 14px;
        height: 14px;
    }

    .popup-tabs {
        padding: 10px 14px 0 14px;
        gap: 4px;
    }

    .popup-tab {
        padding: 4px 8px;
        font-size: 10px;
    }

    .popup-main-content {
        padding: 12px;
    }

    .popup-main-title {
        font-size: 16px;
        margin: 0 0 10px 0;
    }

    .popup-banner {
        padding: 4px 8px;
        margin-bottom: 12px;
    }

    .popup-banner span {
        font-size: 10px;
    }

    .popup-action {
        font-size: 10px;
        gap: 6px;
    }

    .play-button {
        width: 16px;
        height: 16px;
    }


    .float-buttons {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    /* Mobile responsive for back to top states */
    .float-buttons {
        bottom: 70px;
    }



    .back-to-top {
        right: 15px;
        bottom: 15px;
        min-width: 110px;
        height: 36px;
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top-content {
        padding: 0 14px;
        gap: 6px;
    }

    .back-to-top img {
        width: 14px;
        height: 14px;
    }

    .back-to-top span {
        font-size: 12px;
    }
}

/* Popup Styles */
.sbs-popup {
    position: fixed;
    right: 20px;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease;
}

/* Popup positioning based on back-to-top visibility */
/*.sbs-popup.back-to-top-hidden {*/
/*    bottom: 200px;*/
/*}*/

.sbs-popup {
    bottom: 200px;
}

.external-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.external-btn:hover {
    transform: scale(1.1);
}

.minus-btn {
    background: #DD1F01;
}

.plus-btn {
    background: white;
    border: 1px solid #E0E0E0;
}

.external-btn img {
    width: 16px;
    height: 16px;
}

.popup-content {
    border-radius: 12px;
    width: 233px;
    /* height: 187px; */
    overflow: hidden;
    cursor: move;
    user-select: none;
}

.popup-content.dragging {
    cursor: grabbing;
}

/* Popup Header */
.popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background: #1A1A1A;
    border-bottom: 1px solid #404040;
    cursor: move;
    position: relative;
    min-height: 52px;
}

.popup-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Popup Main Content */
.popup-main-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.popup-banner {
    background: #FFD700;
    color: #2A2A2A;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.popup-banner span {
    font-size: 11px;
    font-weight: 600;
}

.popup-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-size: 11px;
    font-weight: 500;
}

.play-button {
    width: 18px;
    height: 18px;
}

.play-button img {
    width: 100%;
    height: 100%;
}

.popup-close img {
    width: 16px;
    height: 16px;
}

.popup-close {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #5B5B5B;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popup-close:hover {
    background: #666666;
    transform: scale(1.1);
}

/* Float Buttons - Updated */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    transition: all 0.3s ease;
}

/* When back to top is hidden, push float buttons down */
/*.float-buttons.back-to-top-hidden {*/
/*    bottom: 20px;*/
/*}*/

/* When back to top is visible, push float buttons up */
.float-buttons {
    bottom: 100px;
}

/* Ensure float buttons stay visible and don't overlap with back-to-top */
.float-button {
    position: relative;
    z-index: 1000;
}

/* Ensure float buttons stay above footer */
.footer-background {
    position: relative;
    z-index: 1;
}

.sbs-portal {
    position: relative;
    z-index: 2;
    background-color: #F7F7F7;
}

.float-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #DD1F01;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(221, 31, 1, 0.3);
    transition: all 0.3s ease;
}

.float-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(221, 31, 1, 0.4);
}

.float-button img {
    width: 44px;
    height: 44px;
}

.text-truncate-lines-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    /* Standard property for compatibility */
    /* Giới hạn tối đa 5 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-to-top {
    position: fixed;
    right: 105px;
    bottom: 20px;
    background: #525252;
    color: white;
    border: none;

    padding: 0;
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* Ensure smooth transitions for all float elements */
.float-button,
.back-to-top,
.back-to-top-content {
    transition: all 0.3s ease;
}

.back-to-top-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    height: 100%;
}

.back-to-top:hover {
    background: #525252;
    transform: translateY(-2px);
}

.back-to-top img {
    width: 16px;
    height: 16px;
}

.back-to-top span {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        gap: 40px;
    }

    .footer-columns {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        gap: 30px;
        flex-direction: column;
    }

    .footer-columns {
        gap: 30px;
        flex-direction: column;
    }

    .footer-company {
        text-align: center;
    }

    .company-description {
        max-width: 100%;
    }

    .contact-info {
        text-align: center;
    }

    .contact-button {
        align-self: center;
        min-width: 200px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legal-links {
        gap: 20px;
    }
}

/* ============================================================================
   LANGUAGE SWITCHER STYLES
   ========================================================================== */

/* Language Switcher Integration with New Design */
.language-switcher,
.language-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: #262626;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
}

.language-switcher:hover,
.language-switcher-mobile:hover {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/* Flag Icons */
.flag-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    margin-right: 6px;
}

/* Language Names */
.lang-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
}

/* Language Dropdown Menu */
.language-dropdown-menu,
.language-dropdown-menu-mobile {
    min-width: 180px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 8px;
    position: absolute;
    z-index: 9999;
}

/* Removed empty ruleset for .list-group */

/* Enhanced Language Options */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #262626;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.language-option span {
    color: #262626;
}

.language-option.active {
    background: transparent;
    color: #262626;
    font-weight: 600;
    position: relative;
}

.language-option.active::after {
    content: "✓";
    margin-left: auto;
    color: #1976d2;
    font-weight: bold;
}

/* Mobile Language Switcher Styles */
@media (max-width: 1199.98px) {
    .language-switcher-mobile {
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .language-dropdown-menu-mobile {
        margin-left: 0;
    }

}

/* Desktop-specific styles */
@media (min-width: 1200px) {
    .language-switcher {
        min-width: 120px;
        justify-content: center;
    }
}

/* Dropdown animation */
.language-dropdown-menu.show,
.language-dropdown-menu-mobile.show {
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support for future expansion */
[dir="rtl"] .flag-icon {
    margin-right: 0;
    margin-left: 6px;
}


/* Accessibility improvements */




/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .language-switcher,
    .language-switcher-mobile,


    .language-dropdown-menu.show,
    .language-dropdown-menu-mobile.show {
        animation: none;
    }
}

.faq-japanese-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: white;
    opacity: 0.3;
    white-space: nowrap;
}

@media (max-width: 1024px) {
}

@media (max-width: 1024px) {
    .sbs-popup {
        bottom: 200;
    }

    /*.sbs-popup.back-to-top-hidden {*/
    /*    bottom: 150px;*/
    /*}*/

    .float-buttons {
        bottom: 100px;
    }
}

/* ===================================
   SIDEBAR WIDGET STYLES
   =================================== */
.sidebar-widget {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #EAECEE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-widget-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EAECEE;
    color: #262626;
}

.campaign-sidebar-list {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 15px;
    margin-right: -15px;
}

/* Custom Scrollbar Styling */
.campaign-sidebar-list::-webkit-scrollbar {
    width: 8px;
}

.campaign-sidebar-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.campaign-sidebar-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.campaign-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


.campaign-sidebar-item {
    margin-bottom: 10px;
}

.campaign-sidebar-item a {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.campaign-sidebar-item a:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.campaign-sidebar-item-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.campaign-sidebar-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-sidebar-item-content {
    flex-grow: 1;
}

.campaign-sidebar-item-title {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #262626;
}

.campaign-sidebar-item-date {
    font-family: Noto Sans JP, sans-serif;
    font-size: 13px;
    color: #8E8E8E;
}

.no-related-posts p {
    font-style: italic;
    color: #6c757d;
}


