.achievements-under-hero .achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.15);
}

.achievements-under-hero .achievement-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: transform .6s ease;
}

.achievements-under-hero .achievement-item:hover::after {
    transform: translateX(250%) skewX(-20deg);
}

.achievements-under-hero .achievement-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 123, 255, .25), rgba(0, 123, 255, 0));
    animation: pulse-ring 2.2s infinite ease-out;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.85);
        opacity: .45;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056B3;
    --light-blue: #E3F2FD;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --border-color: #E9ECEF;
    --shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 123, 255, 0.15);
    --transition: all 0.3s ease;
}

/* Global Image Quality Optimization */
img {
    image-rendering: auto;
    image-rendering: -webkit-optimize-quality;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content .logo {
    width: 85px;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Page Hero */
.page-hero {
    padding: 40px 0;
    background: var(--light-gray);
}

.page-hero .section-title {
    margin-bottom: 8px;
}

.page-hero .section-subtitle {
    color: var(--text-gray);
}

/* About page */

.about-block.alt {
    position: relative;
    z-index: 0;
}

/* Full-width background for alternating sections, content still follows container width */
.about-block.alt::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: var(--light-gray);
    z-index: -1;
}

/* Constrain timeline content width to match section content and center it */
.about-block.alt .timeline-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
    min-height: 100vh;
}

body .pd-about-ecosystem {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

body .pd-about-activity {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

body .pd-about-values {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

body .pd-about-bookmedi {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

body .pd-about-sustain {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

/* Sustainable Development */
.pd-about-sustain .sustain-header {
    text-align: center;
    margin-bottom: 50px;
}

.pd-about-sustain .sustain-header h2 {
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.pd-about-sustain .section-intro {
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.6;
    font-size: 16px;
    margin: 0 auto;
    font-weight: 500;
}

.pd-about-sustain .sustain-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.pd-about-sustain .sustain-visual {
    position: relative;
    top: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

.pd-about-sustain .sustain-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    margin-top: 0;
}

.pd-about-sustain .sustain-image:hover {
    transform: scale(1.02);
}

.pd-about-sustain .sustain-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pd-about-sustain .sustain-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-about-sustain .sustain-image:hover .sustain-overlay {
    opacity: 1;
}

.pd-about-sustain .sustain-badge {
    background: rgba(76, 175, 80, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.pd-about-sustain .sustain-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pd-about-sustain .sustain-description p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.pd-about-sustain .sustain-initiatives {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-about-sustain .initiative-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pd-about-sustain .initiative-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pd-about-sustain .initiative-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    transition: width 0.3s ease;
}

.pd-about-sustain .initiative-item:hover::before {
    width: 8px;
}

.pd-about-sustain .initiative-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pd-about-sustain .initiative-item:hover .initiative-icon {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    transform: scale(1.05);
}

.pd-about-sustain .initiative-content h4 {
    margin: 0 0 6px;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 600;
}

.pd-about-sustain .initiative-content p {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.pd-about-sustain .sustain-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
    border-radius: 20px;
    border: 1px solid #C8E6C9;
}

.pd-about-sustain .stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pd-about-sustain .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pd-about-sustain .stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #4CAF50;
    margin-bottom: 8px;
    line-height: 1;
}

.pd-about-sustain .stat-label {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
}

/* Bookmedi */
/* Bookmedi Section - Enhanced Styling */
.pd-about-bookmedi {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 50%, #f0f7ff 100%);
    overflow: hidden;
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.pd-about-bookmedi::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.pd-about-bookmedi::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.pd-about-bookmedi .bookmedi-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pd-about-bookmedi .bookmedi-header h2 {
    margin-bottom: 12px;
    color: var(--dark-blue);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pd-about-bookmedi .section-intro {
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.8;
    font-size: 18px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
}

.pd-about-bookmedi .bookmedi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pd-about-bookmedi .bookmedi-visual {
    position: relative;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pd-about-bookmedi .bookmedi-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.15), 0 0 0 1px rgba(0, 123, 255, 0.1);
    width: 100%;
    max-width: 550px;
    height: 350px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pd-about-bookmedi .bookmedi-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.pd-about-bookmedi .bookmedi-image-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 123, 255, 0.25), 0 0 0 1px rgba(0, 123, 255, 0.2);
}

.pd-about-bookmedi .bookmedi-image-container:hover::before {
    opacity: 1;
}

.pd-about-bookmedi .bookmedi-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.pd-about-bookmedi .bookmedi-image-container:hover .bookmedi-main-image {
    transform: scale(1.05);
}

.pd-about-bookmedi .bookmedi-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 0 auto;
}

.pd-about-bookmedi .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pd-about-bookmedi .slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    position: relative;
    left: 0;
}

.pd-about-bookmedi .slider-slide {
    position: relative;
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.pd-about-bookmedi .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-about-bookmedi .slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.pd-about-bookmedi .slider-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pd-about-bookmedi .slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.pd-about-bookmedi .slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pd-about-bookmedi .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pd-about-bookmedi .dot.active {
    background: white;
    transform: scale(1.2);
}

.pd-about-bookmedi .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.pd-about-bookmedi .bookmedi-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-about-bookmedi .slider-slide:hover .bookmedi-overlay {
    opacity: 1;
}

.pd-about-bookmedi .bookmedi-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pd-about-bookmedi .bookmedi-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pd-about-bookmedi .bookmedi-description {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.pd-about-bookmedi .bookmedi-description:hover {
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.15);
    transform: translateX(4px);
}

.pd-about-bookmedi .bookmedi-description p {
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

.pd-about-bookmedi .bookmedi-description p strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.pd-about-bookmedi .bookmedi-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pd-about-bookmedi .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.pd-about-bookmedi .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.pd-about-bookmedi .feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
}

.pd-about-bookmedi .feature-item:hover::before {
    opacity: 1;
}

.pd-about-bookmedi .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.pd-about-bookmedi .feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.pd-about-bookmedi .feature-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.pd-about-bookmedi .feature-content h4 {
    margin: 0 0 6px;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.pd-about-bookmedi .feature-item:hover .feature-content h4 {
    color: var(--primary-blue);
}

.pd-about-bookmedi .feature-content p {
    margin: 0;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
}

.pd-about-bookmedi .bookmedi-cta {
    text-align: center;
    margin-top: 10px;
}

.pd-about-bookmedi .bookmedi-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.pd-about-bookmedi .bookmedi-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.pd-about-bookmedi .bookmedi-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pd-about-bookmedi .bookmedi-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 123, 255, 0.5);
    color: white;
    text-decoration: none;
}

.pd-about-bookmedi .bookmedi-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.pd-about-bookmedi .bookmedi-btn i {
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.pd-about-bookmedi .bookmedi-btn:hover i {
    transform: translateX(4px);
}

.pd-about-bookmedi .bookmedi-btn span {
    position: relative;
    z-index: 1;
}

/* Pulse animation for CTA button */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.35), 0 0 0 10px rgba(0, 123, 255, 0.1);
    }
}

.pd-about-bookmedi .bookmedi-btn {
    animation: pulse 3s ease-in-out infinite;
}

/* Core Values */
.pd-about-values .values-header {
    text-align: center;
    margin-bottom: 50px;
}

.pd-about-values .values-header h2 {
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.pd-about-values .section-intro {
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.6;
    font-size: 16px;
    margin: 0 auto;
    font-weight: 500;
}

.pd-about-values .values-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pd-about-values .value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pd-about-values .value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pd-about-values .value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    transition: width 0.3s ease;
}

.pd-about-values .value-item:hover::before {
    width: 8px;
}

.pd-about-values .value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pd-about-values .value-item:hover .value-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    transform: scale(1.05);
}

.pd-about-values .value-content h3 {
    margin: 0 0 4px;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 600;
}

.pd-about-values .value-content p {
    margin: 0;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
}

/* Vision & Mission */
.pd-about-vision .vision-header {
    text-align: center;
    margin-bottom: 50px;
}

.pd-about-vision .vision-header h2 {
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.pd-about-vision .section-intro {
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.6;
    font-size: 16px;
    margin: 0 auto;
    font-weight: 500;
}

.pd-about-vision .vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.pd-about-vision .vision-visual {
    position: relative;
}

.pd-about-vision .vision-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 526 px;
}

.pd-about-vision .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pd-about-vision .slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.pd-about-vision .slider-slide {
    position: relative;
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.pd-about-vision .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-about-vision .slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.pd-about-vision .slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pd-about-vision .slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.pd-about-vision .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.pd-about-vision .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pd-about-vision .dot.active {
    background: white;
    transform: scale(1.2);
}

.pd-about-vision .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.pd-about-vision .vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-about-vision .vision-image:hover .vision-overlay {
    opacity: 1;
}

.pd-about-vision .vision-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 32px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.pd-about-vision .vision-image:hover .vision-icon {
    transform: scale(1);
}

.pd-about-vision .vision-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-about-vision .vision-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pd-about-vision .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pd-about-vision .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pd-about-vision .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 24px;
    transition: all 0.3s ease;
}

.pd-about-vision .vision-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    transform: scale(1.05);
}

.pd-about-vision .card-header h3 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 600;
}

.pd-about-vision .card-description {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.pd-about-vision .card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-about-vision .highlight-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pd-about-vision .highlight-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.pd-about-vision .vision-card-vision {
    border-top: 4px solid #4CAF50;
}

.pd-about-vision .vision-card-mission {
    border-top: 4px solid #FF9800;
}

.pd-about-vision .vision-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.pd-about-vision .stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pd-about-vision .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pd-about-vision .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.pd-about-vision .stat-info {
    flex: 1;
}

.pd-about-vision .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.pd-about-vision .stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-text h2 {
    margin-bottom: 12px;
    margin-top: 0;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 16px;
    text-align: justify;
    hyphens: auto;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

.about-list li {
    margin-bottom: 0.8rem;
    font-size: 14px;
    text-align: justify;
}

.about-media {
    position: relative;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
    align-self: flex-start;
    margin-top: 0;
    padding-top: 0;
}

.about-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* About Carousel Styles */
.about-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-carousel .carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    /* pointer-events: none; */
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.carousel-btn i {
    color: var(--primary-color);
    font-size: 14px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: #007bff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.carousel-dots .dot:hover {
    background: rgba(0, 123, 255, 0.7);
    transform: scale(1.1);
}

.about-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3b5bdb;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #e3f2fd;
    color: var(--primary-blue);
}

.lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
    text-align: justify;
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.about-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 8px;
    align-items: stretch;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
}

.highlight-card i {
    color: var(--primary-blue);
    font-size: 20px;
    line-height: 1;
    text-align: center;
}

.highlight-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--dark-blue);
    line-height: 1.4;
    min-height: fit-content;
    /* đảm bảo chiều cao tiêu đề đồng nhất ~2 dòng */
    width: 100%;
}

.highlight-card p {
    margin: 0;
    color: var(--text-gray);
    font-size: 14px;
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
}

.stat {
    text-align: center;
}

.stat .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.stat .label {
    color: var(--text-gray);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .about-highlight-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-band {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .about-highlight-grid {
        grid-template-columns: 1fr;
    }

    .stats-band {
        grid-template-columns: 1fr 1fr;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.value-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.value-card h4 {
    margin-bottom: 6px;
    color: var(--dark-blue);
}

/* History timeline */
.timeline-wrap {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
}

.timeline-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-logo img {
    margin-left: 0;
    width: clamp(100px, 18vw, 220px);
    height: auto;
}

.timeline {
    position: relative;
    margin-top: 16px;
}

.timeline.axis {
    position: relative;
    overflow: hidden;
}

.tl-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e9ecef;
    transform: translateX(-50%);
    z-index: 1;
}

.tl-progress {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
    height: 0;
    z-index: 2;
    transition: height 0.2s ease;
    transform-origin: top;
}

.tl-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: start;
    gap: 18px;
    padding: 18px 0;
}

.tl-year {
    text-align: right;
    font-weight: 700;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.tl-row.active .tl-year {
    color: var(--dark-blue);
}

/* Ảnh bên trái năm - mặc định */
.tl-year::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 80px;
    background: url('./9.png') no-repeat center;
    background-size: cover;
    border-radius: 8px;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hiển thị ảnh khi timeline item active */
.tl-row.active .tl-year::before {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 980px) {
    .tl-year::before {
        left: 40%;
    }
}

@media (max-width: 768px) {
    .tl-year::before {
        left: 30%;
        top: 300%;
    }

    .tl-row.active .tl-year::before {
        transform: translateY(-50%) scale(1.02);
    }
}

@media (max-width: 600px) {
    .tl-year::before {
        left: 20%;
        top: 300%;
    }
}

@media (max-width: 480px) {
    .tl-year::before {
        left: 10%;
        top: 300%;
    }
}

@media (max-width: 360px) {
    .tl-year::before {
        left: 5%;
        top: 400%;
    }
}

/* Ảnh khác nhau cho từng mốc thời gian */
.timeline .tl-row:nth-child(3) .tl-year::before {
    background-image: url('./images/vechungtoi/lichsu/1996.jpg');
}

.timeline .tl-row:nth-child(4) .tl-year::before {
    background-image: url('./images/vechungtoi/lichsu/2010.jpg');
}

.timeline .tl-row:nth-child(5) .tl-year::before {
    background-image: url('./images/vechungtoi/lichsu/2015.jpg');
}

.timeline .tl-row:nth-child(6) .tl-year::before {
    background-image: url('./11.png');
}

.tl-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.tl-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    position: relative;
    top: 2px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.tl-row.active .tl-dot {
    border-color: var(--primary-blue);
    transform: scale(1.2);
}

.tl-event h4 {
    margin: 0 0 6px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.tl-row.active .tl-event h4 {
    color: var(--dark-blue);
}

.tl-event p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}

@media (max-width: 980px) {
    .tl-event p {
        font-size: 12px;
    }
}

/* About history heading alignment */
#about-history>h2 {
    text-align: center;
    margin: 0 auto 12px auto;
    max-width: 1200px;
    /* khớp bề rộng với timeline */
    padding: 20px 20px;
    /* khớp padding ngang của section */
}

.about-block {
    padding: 0px 20px 20px 20px;
}

/* Ensure bookmedi section content is centered within full-width background */
.pd-about-bookmedi .bookmedi-header,
.pd-about-bookmedi .bookmedi-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .ecosystem-header {
        margin-bottom: 30px;
    }

    .ecosystem-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .ecosystem-stats {
        margin: 20px 0;
        padding: 16px;
        gap: 12px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .pillars-showcase {
        gap: 12px;
        margin: 20px 0;
    }

    .pillar-card {
        padding: 16px;
    }

    .pillar-header {
        gap: 10px;
        margin-bottom: 10px;
    }

    .pillar-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pillar-info h4 {
        font-size: 14px;
    }

    .pillar-tag {
        font-size: 10px;
    }

    .highlight-text {
        font-size: 11px;
        padding: 5px 8px;
    }

    .ecosystem-summary {
        margin-top: 20px;
        padding: 16px;
        gap: 12px;
    }

    .summary-card {
        padding: 12px;
    }

    .summary-card i {
        font-size: 18px;
    }

    .summary-card h5 {
        font-size: 14px;
    }

    .summary-card p {
        font-size: 11px;
    }

    .ecosystem-header {
        margin-bottom: 30px;
    }

    .ecosystem-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .ecosystem-visual {
        height: 60px;
        margin: 16px 0;
    }

    .ecosystem-logo {
        width: 50px;
        height: 50px;
    }

    .ecosystem-logo i {
        font-size: 16px;
    }

    .ecosystem-logo span {
        font-size: 8px;
    }

    .ecosystem-connections {
        width: 150px;
        height: 150px;
    }

    .connection-line {
        height: 40px;
    }

    .pillars-grid {
        gap: 12px;
        margin-top: 12px;
    }

    .pillar {
        padding: 12px 10px;
    }

    .pillar-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .pillar h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .pillar-summary {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .pillar-points li {
        font-size: 12px;
        margin-bottom: 4px;
        padding-left: 16px;
    }

    .domains-overview {
        margin-bottom: 20px;
        gap: 16px;
    }

    .domain-category {
        padding: 20px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .domain-category h3 {
        font-size: 16px;
    }

    .category-desc {
        font-size: 12px;
    }

    .domains-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .domain-section {
        padding: 14px;
    }

    .domain-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .domain-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .domain-header h4 {
        font-size: 13px;
    }

    .domain-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .pd-about-vision .vision-header {
        margin-bottom: 30px;
    }

    .pd-about-vision .vision-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .pd-about-vision .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .pd-about-vision .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .pd-about-vision .vision-slider {
        height: 100px;
    }

    .pd-about-vision .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .pd-about-vision .slider-controls {
        padding: 0 15px;
    }

    .pd-about-vision .dot {
        width: 10px;
        height: 10px;
    }

    .pd-about-vision .vision-cards {
        gap: 20px;
    }

    .pd-about-vision .vision-card {
        padding: 24px;
    }

    .pd-about-vision .card-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .pd-about-vision .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pd-about-vision .card-header h3 {
        font-size: 20px;
    }

    .pd-about-vision .card-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .pd-about-vision .highlight-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .pd-about-vision .vision-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .pd-about-vision .stat-item {
        padding: 16px;
    }

    .pd-about-vision .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pd-about-vision .stat-number {
        font-size: 16px;
    }

    .pd-about-vision .stat-label {
        font-size: 12px;
    }

    .pd-about-values .values-header {
        margin-bottom: 30px;
    }

    .pd-about-values .values-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .pd-about-values .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .pd-about-values .values-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pd-about-values .value-item {
        flex-direction: column;
        text-align: center;
        padding: 16px 12px;
        gap: 12px;
    }

    .pd-about-values .value-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .pd-about-values .value-content h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .pd-about-values .value-content p {
        font-size: 11px;
        line-height: 1.4;
    }

    .pd-about-bookmedi .bookmedi-header {
        margin-bottom: 30px;
    }

    .pd-about-bookmedi .bookmedi-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .pd-about-bookmedi .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .pd-about-bookmedi .bookmedi-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pd-about-bookmedi .bookmedi-slider {
        max-width: 300px;
        height: 200px;
    }

    .pd-about-bookmedi .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .pd-about-bookmedi .slider-controls {
        padding: 0 12px;
    }

    .pd-about-bookmedi .dot {
        width: 8px;
        height: 8px;
    }

    .pd-about-bookmedi .bookmedi-info {
        gap: 20px;
    }

    .pd-about-bookmedi .bookmedi-description p {
        font-size: 14px;
    }

    .pd-about-bookmedi .bookmedi-features {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .pd-about-bookmedi .feature-item {
        padding: 12px;
        gap: 10px;
    }

    .pd-about-bookmedi .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .pd-about-bookmedi .feature-content h4 {
        font-size: 13px;
    }

    .pd-about-bookmedi .feature-content p {
        font-size: 11px;
    }

    .pd-about-bookmedi .bookmedi-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .pd-about-sustain .sustain-header {
        margin-bottom: 30px;
    }

    .pd-about-sustain .sustain-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .pd-about-sustain .section-intro {
        font-size: 14px;
        max-width: 90%;
    }

    .pd-about-sustain .sustain-content {
        /* Giữ layout 2 cột trên tablet, chỉ thu hẹp khoảng cách */
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 32px;
        align-items: flex-start;
    }

    .pd-about-sustain .sustain-visual {
        position: relative;
        top: auto;
        height: auto;
        display: block;
    }

    .pd-about-sustain .sustain-image {
        max-height: 300px;
    }

    .about-media {
        transition: none;
        will-change: auto;
    }

    /* Mobile Dropdown Menu */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
    }

    .dropdown-link {
        padding: 8px 0;
        font-size: 12px;
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-link:hover {
        background: none;
        color: var(--primary-color);
        padding-left: 0;
        border-left: none;
    }

    .pd-about-sustain .sustain-info {
        gap: 20px;
    }

    .pd-about-sustain .sustain-description p {
        font-size: 14px;
    }

    .pd-about-sustain .sustain-initiatives {
        gap: 16px;
    }

    .pd-about-sustain .initiative-item {
        padding: 16px;
        gap: 12px;
    }

    .pd-about-sustain .initiative-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .pd-about-sustain .initiative-content h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .pd-about-sustain .initiative-content p {
        font-size: 13px;
    }

    .pd-about-sustain .sustain-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .pd-about-sustain .stat-item {
        padding: 16px;
    }

    .pd-about-sustain .stat-number {
        font-size: 20px;
    }

    .pd-about-sustain .stat-label {
        font-size: 12px;
    }

    .tl-row {
        grid-template-columns: 1fr 40px 1fr;
        /* giữ cột giữa nằm đúng giữa */
    }

    .tl-year {
        font-size: 14px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .lead {
        font-size: 1rem;
        padding: 1rem;
    }

    .pillar p {
        font-size: 13px;
    }

    .about-list li {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .timeline-wrap {
        grid-template-columns: 1fr;
    }

    .timeline-logo img {
        width: clamp(80px, 30vw, 160px);
        height: auto;
    }
}

/* Ecosystem */
.ecosystem-header {
    text-align: center;
    margin-bottom: 40px;
}

.ecosystem-header h2 {
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.section-intro {
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.6;
    font-size: 16px;
    margin: 0 auto;
    font-weight: 500;
}

.ecosystem-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    height: 120px;
}

.ecosystem-center {
    position: relative;
    z-index: 4;
}

.ecosystem-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease;
}

.ecosystem-logo:hover {
    transform: scale(1.05);
}

.ecosystem-logo i {
    font-size: 24px;
    margin-bottom: 4px;
}

.ecosystem-logo span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ecosystem-connections {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
    transform-origin: bottom center;
    opacity: 0.6;
}

.connection-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}

.connection-2 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(120deg);
}

.connection-3 {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(240deg);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.pillar {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary-blue);
    font-size: 24px;
    transition: all 0.3s ease;
}

.pillar:hover .pillar-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    transform: scale(1.1);
}

.pillar h4 {
    margin: 0 0 8px;
    color: var(--dark-blue);
    font-size: 18px;
    font-weight: 600;
}

.pillar-summary {
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.4;
}

.pillar-points {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pillar-points li {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pillar-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 12px;
}

.pillar-market {
    border-top: 3px solid #4CAF50;
}

.pillar-supply {
    border-top: 3px solid #FF9800;
}

.pillar-human {
    border-top: 3px solid #9C27B0;
}

/* Domains */
.domains-header {
    text-align: center;
    margin-bottom: 40px;
}

.domains-header h2 {
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.domains-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.domain-category {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.domain-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    transition: all 0.3s ease;
}

.domain-category:hover .category-icon {
    transform: scale(1.1);
}

.domain-category h3 {
    margin: 0 0 12px;
    color: var(--dark-blue);
    font-size: 20px;
    font-weight: 600;
}

.category-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.domains-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.domain-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.domain-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.domain-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.domain-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.domain-section:hover .domain-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    transform: scale(1.05);
}

.domain-header h4 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.domain-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.domain-tag:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(4px);
}

.domain-tag::before {
    content: '•';
    margin-right: 6px;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .ecosystem-visual {
        height: 80px;
        margin: 20px 0;
    }

    .ecosystem-logo {
        width: 60px;
        height: 60px;
    }

    .ecosystem-logo i {
        font-size: 18px;
    }

    .ecosystem-logo span {
        font-size: 9px;
    }

    .ecosystem-connections {
        width: 200px;
        height: 200px;
    }

    .connection-line {
        height: 60px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
    }

    .pillar {
        padding: 16px 12px;
    }

    .pillar-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .pillar h4 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .pillar-summary {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .pillar-points li {
        font-size: 13px;
        margin-bottom: 6px;
        padding-left: 18px;
    }

    .domains-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .domain-category {
        padding: 16px;
    }

    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .domain-category h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .category-desc {
        font-size: 11px;
        line-height: 1.4;
    }

    .domains-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .domain-section {
        padding: 16px;
    }

    .domain-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .domain-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .domain-header h4 {
        font-size: 14px;
    }

    .domain-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .pd-about-vision .vision-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .pd-about-vision .vision-slider {
        height: 200px;
    }

    .pd-about-vision .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .pd-about-vision .vision-cards {
        gap: 20px;
    }

    .pd-about-vision .vision-card {
        padding: 24px;
    }

    .pd-about-vision .card-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .pd-about-vision .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .pd-about-vision .card-header h3 {
        font-size: 20px;
    }

    .pd-about-vision .card-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .pd-about-vision .highlight-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .pd-about-vision .vision-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 30px;
    }

    .pd-about-vision .stat-item {
        padding: 16px;
    }

    .pd-about-vision .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .pd-about-vision .stat-number {
        font-size: 16px;
    }

    .pd-about-vision .stat-label {
        font-size: 12px;
    }

    .pd-about-values .values-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pd-about-values .value-item {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
        gap: 14px;
    }

    .pd-about-values .value-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .pd-about-values .value-content h3 {
        font-size: 15px;
    }

    .pd-about-values .value-content p {
        font-size: 12px;
    }

    .pd-about-bookmedi .bookmedi-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pd-about-bookmedi .bookmedi-slider {
        max-width: 350px;
        height: 250px;
    }

    .pd-about-bookmedi .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .pd-about-bookmedi .bookmedi-info {
        gap: 24px;
    }

    .pd-about-bookmedi .bookmedi-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Ensure mobile (max-width: 768px) displays as single column */
    @media (max-width: 768px) {
        .pd-about-bookmedi .bookmedi-features {
            grid-template-columns: 1fr !important;
        }
    }

    .pd-about-bookmedi .feature-item {
        padding: 14px;
        gap: 11px;
    }

    .pd-about-bookmedi .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .pd-about-bookmedi .feature-content h4 {
        font-size: 13px;
    }

    .pd-about-bookmedi .feature-content p {
        font-size: 11px;
    }

    .pd-about-bookmedi .bookmedi-btn {
        padding: 15px 28px;
        font-size: 15px;
    }

    .pd-about-sustain .sustain-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pd-about-sustain .sustain-info {
        gap: 24px;
    }

    .pd-about-sustain .sustain-initiatives {
        gap: 18px;
    }

    .pd-about-sustain .initiative-item {
        padding: 18px;
        gap: 14px;
    }

    .pd-about-sustain .initiative-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .pd-about-sustain .initiative-content h4 {
        font-size: 15px;
    }

    .pd-about-sustain .initiative-content p {
        font-size: 13px;
    }

    .pd-about-sustain .sustain-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 24px;
    }

    .pd-about-sustain .stat-item {
        padding: 18px;
    }

    .pd-about-sustain .stat-number {
        font-size: 22px;
    }

    .pd-about-sustain .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-carousel {
        height: 300px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-btn i {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-carousel {
        height: 250px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn i {
        font-size: 10px;
    }

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }
}

/* Modern animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hover-rise {
    transition: transform .25s ease, box-shadow .25s ease;
}

.hover-rise:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.about-hero {
    background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 220px;
    background: radial-gradient(ellipse at top, rgba(59, 91, 219, .15), transparent 60%);
    pointer-events: none;
}

/* Parallax image wrapper */
.parallax-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.parallax-img {
    will-change: transform;
    transition: transform .3s ease;
}

.parallax-wrap:hover .parallax-img {
    transform: scale(1.03);
}

.top-bar {
    background: var(--light-blue);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.contact-item i {
    color: var(--primary-blue);
    width: 16px;
}

.consultation-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.consultation-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Navigation */
.navbar {
    padding: 15px 0;
}


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


.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 144%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-group-title {
    font-size: 16px;
    line-height: 1.25;
    max-width: 280px;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-group-title:hover {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 26px;
}

.dropdown-link {
    display: block;
    padding: 12px 14px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 24px;
}

.about-nav .dropdown-link {
    font-size: 13px;
    padding: 10px 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--white);
    color: var(--dark-gray);
    font-size: 14px;
    position: relative;
    z-index: 1001;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: var(--transition);
}

/* Mobile menu overlay - global styles */
.mobile-menu-overlay {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
    pointer-events: none;
    will-change: opacity, visibility, top;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 1200px;
    max-width: 100%;
    padding: 40px 20px;
    margin: 0 auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 420px;
    overflow: visible;
}

.hero-content-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}

.hero-content-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-badge {
    margin-bottom: 25px;
}

.badge-text {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.badge-logo {
    height: 30px;
    border-radius: 5px;
}

.hero-badge img {
    height: 30px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 10px;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

/* Achievements under hero */
.achievements-under-hero {
    background: var(--light-gray);
    padding: 30px 0;
}

.achievements-under-hero .achievements-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 24px;
    align-items: center;
}

.achievements-under-hero .achv-intro {
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.achievements-under-hero .achv-intro .badge {
    display: inline-block;
    padding: 6px 10px;
    background: #eaf3ff;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.achievements-under-hero .achv-intro h2 {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin: 10px 0 6px;
}

.achievements-under-hero .achv-intro p {
    color: var(--gray);
    font-size: 0.95rem;
}

.achievements-under-hero .achv-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.achievements-under-hero .achv-card {
    position: relative;
    padding: 20px 16px;
    border-radius: 14px;
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(135deg, #9fd3ff, #bfe6ff) border-box;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.08);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.achievements-under-hero .achv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.15);
}

.achievements-under-hero .achv-card .icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: var(--primary-blue);
    box-shadow: inset 0 0 0 2px rgba(0, 123, 255, .15);
    font-size: 20px;
    margin-bottom: 8px;
}

.achievements-under-hero .achv-card .num {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.1;
}

.achievements-under-hero .achv-card .num .counter {
    letter-spacing: .5px;
}

.achievements-under-hero .achv-card .label {
    color: var(--gray);
    font-size: 13px;
    margin-top: 4px;
}

/* flow-circles removed by request */
.achievements-under-hero .footer-achievements {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.achievements-under-hero .achievement-item {
    position: relative;
    text-align: center;
    padding: 22px 16px;
    border-radius: 14px;
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, #9fd3ff, #bfe6ff) border-box;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.achievements-under-hero .achievement-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 10px;
    box-shadow: inset 0 0 0 2px rgba(0, 123, 255, 0.15);
    position: relative;
}

.achievements-under-hero .achievement-number {
    color: var(--primary-blue);
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 1px 0 #fff;
}

.achievements-under-hero .achievement-number .counter {
    letter-spacing: 0.5px;
}

.achievements-under-hero .achievement-text {
    color: var(--gray);
    font-size: 12px;
    margin-top: 6px;
}

.hero-carousel {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-image.active {
    opacity: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.slide-logo {
    z-index: 2;
}

.slide-logo img {
    height: 80px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-blue);
}

/* News Section */
.news-section {
    padding: 30px 0;
    background: var(--light-gray);
}

/* Partners Logos Slider */
.partners-section {
    background: var(--white);
    padding: 40px 0;
}

.partners-header {
    text-align: center;
    margin-bottom: 24px;
}

.partners-header .badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(180deg, #f3f9ff, #eaf3ff);
    color: var(--primary-blue);
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(0, 123, 255, .15), 0 1px 2px rgba(0, 0, 0, .04);
    position: relative;
}

.partners-header .badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.partners-header h2 {
    font-size: 1.6rem;
    color: var(--dark-gray);
    margin-top: 10px;
    font-weight: 700;
}

.partners-header p {
    margin-top: 6px;
    color: var(--gray);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.logos-slider {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

.logos-slider:active {
    cursor: grabbing;
}

.logos-slider * {
    pointer-events: none;
}

.logos-slider .slider-arrow {
    pointer-events: auto;
}

.logos-track {
    display: flex;
    gap: 40px;
    align-items: center;
    animation: slideLogos 18s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo-item {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    display: grid;
    place-items: center;
    filter: none;
    opacity: 1;
    transition: transform .2s ease;
}

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

.logo-item:hover {
    transform: translateY(-2px);
}

@keyframes slideLogos {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    color: var(--primary-blue);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.slider-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.slider-arrow:hover svg {
    transform: scale(1.1);
}

/* Pause animation class */
.logos-track.paused {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .logos-track {
        gap: 24px;
        animation-duration: 14s;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow-left {
        left: 10px;
    }
    
    .slider-arrow-right {
        right: 10px;
    }
    
    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.news-main {
    display: flex;
    flex-direction: column;
    height: auto;
}

.news-card.featured {
    background: var(--white);
    padding: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 520px;
    overflow: hidden;
    flex: none;
    position: relative;
    transition: all 0.5s ease;
}

.news-card.featured.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.news-card.featured.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.news-card.featured .news-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card.featured .news-text-content {
    overflow: auto;
}

/* Featured news navigation overlay */
.news-nav {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.news-card.featured .news-image {
    position: relative;
}

.news-nav-inner {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    gap: 8px;
}

.news-nav-btn {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.news-nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, .55);
}

.news-nav-btn i {
    font-size: 16px;
}

.news-content {
    transition: opacity 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image {
    height: 280px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    /* Allow vertical scroll but prevent zoom */
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    touch-action: pan-y;
    /* Prevent zoom on touch */
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* Disable iOS callout */
}

.news-image:hover .featured-image {
    transform: scale(1.05);
}

.news-text-content {
    flex: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-text-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.news-text-content p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* News extras: compact blocks under news-main */
.news-share-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-top: 14px;
}

.news-share-bar a {
    color: var(--primary-blue);
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.news-share-bar a:hover {
    background: rgba(13, 71, 161, 0.1);
    transform: translateY(-2px);
}

.news-share-bar a[aria-label="Share Zalo"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-share-bar a[aria-label="Share Zalo"] img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.news-share-bar a[aria-label="Share Zalo"]:hover {
    background: rgba(0, 157, 224, 0.1);
}

.news-share-bar a[aria-label="Copy Link"] {
    color: #666;
}

.news-share-bar a[aria-label="Copy Link"]:hover {
    color: var(--primary-blue);
    background: rgba(13, 71, 161, 0.1);
}

.news-share-bar .share-stats {
    margin-left: auto;
    display: flex;
    gap: 12px;
    color: var(--gray);
    font-size: 12px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* margin-top: 12px; */
}

.news-tags .tag {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    border: 1px solid rgba(13, 71, 161, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-tags .tag:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: var(--primary-blue);
    color: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 71, 161, 0.15);
}

.related-posts {
    margin-top: 16px;
}

.related-posts .related-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.related-card {
    display: flex;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    text-decoration: none;
    align-items: center;
}

.related-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-card .related-text {
    color: var(--dark-gray);
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    /* standard property for compatibility */
    -webkit-line-clamp: 2;
    /* show up to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover .related-text {
    color: var(--primary-blue);
}

.newsletter-cta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.newsletter-cta .cta-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.newsletter-cta .cta-form {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.newsletter-cta input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-cta input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.newsletter-cta input::placeholder {
    color: #999;
}

.newsletter-cta button {
    padding: 12px 24px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-cta button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.newsletter-cta button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: var(--white);
    padding: 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transform: translateY(0);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    opacity: 0.9;
}

.news-item.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    opacity: 1;
    animation: newsItemActivate 0.5s ease-out;
}

@keyframes newsItemActivate {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-5px) scale(1);
        opacity: 1;
    }
}

.news-date {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    /* margin-bottom: 10px; */
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    min-height: 25px;
}

.news-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.news-tag {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.news-tag:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.news-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* Product Categories */
.product-categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Quote Section */
.quote-section {
    padding: 80px 0;
    background: var(--white);
}
@media screen and (max-width: 768px) {
    .quote-section {
        padding: 40px 0;
    }
    
}

.quote-content {
    text-align: center;
    margin-bottom: 50px;
}

.quote-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

cite {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-style: normal;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tablet - keep 4 columns for larger tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-preview {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        max-width: 1000px;
    }
}

.gallery-item {
    width: 244px;
    height: 154px;
    background: var(--light-blue);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.0));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

/* HTML Modal (load external HTML) */
.html-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.html-modal-overlay.active {
    display: flex;
}

.html-modal {
    width: min(900px, 96vw);
    max-height: 88vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.html-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f6fb;
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.html-modal-close:hover {
    background: #e7eef8;
}

.html-modal-body {
    padding: 20px;
    overflow: auto;
}

.html-modal-body.loading {
    opacity: .7;
}

.html-modal-body iframe {
    width: 100%;
    height: 72vh;
    border: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

@media (max-width: 480px) {
    .html-modal-body {
        padding: 14px;
    }
}

/* Educational Resources */
.educational-resources {
    padding: 60px 0;
    background: var(--light-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Tablet - keep 3 columns for larger tablets */
@media (max-width: 900px) and (min-width: 769px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.resource-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.resource-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.resource-card h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* Articles & Events */
.articles-events {
    padding: 60px 0;
    background: var(--white);
}


@media (max-width: 1024px) {
    .articles-events {
        padding: 40px 0;
    }
}

.articles-events-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.articles-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    min-height: 35px;
}

.article-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.article-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.article-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s ease;
}

.article-tag:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.article-tag:hover::before {
    left: 100%;
}

/* Tag colors */
.tag-event {
    background: #FF6B6B;
    color: white;
}

.tag-partnership {
    background: #4ECDC4;
    color: white;
}

.tag-partner {
    background: #45B7D1;
    color: white;
}

.tag-education {
    background: #96CEB4;
    color: white;
}

.tag-conference {
    background: #FFEAA7;
    color: #2D3436;
}

.tag-talent {
    background: #DDA0DD;
    color: white;
}

.tag-international {
    background: #FF7675;
    color: white;
}

.tag-special {
    background: #FDCB6E;
    color: #2D3436;
}

/* Additional news tag colors */
.tag-technology {
    background: #6C5CE7;
    color: white;
}

.tag-assessment {
    background: #00B894;
    color: white;
}

.tag-specialized {
    background: #E17055;
    color: white;
}

.tag-english {
    background: #74B9FF;
    color: white;
}

.article-date {
    color: var(--dark-gray);
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    height: 35px;
}

.article-card {
    background: var(--light-gray);
    padding: 0;
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-quality;
    image-rendering: high-quality;
    image-rendering: auto;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
    image-rendering: -webkit-optimize-quality;
}


.article-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    position: relative;
}

.article-date {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
}

.article-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.4;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn {
    width: fit-content;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure links styled as buttons have no underline */
.read-more-btn {
    text-decoration: none;
}

.read-more-btn:hover {
    text-decoration: none;
}


/* FAQ & Contact Section */
.faq-contact-section {
    padding: 80px 0;
    background: var(--light-gray);
}

/* Contact CTA (news detail) */
.contact-cta {
    margin: 16px 0 8px;
}

.contact-cta-inner {
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.08);
}

.contact-cta-inner::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.12), transparent 60%);
    filter: blur(6px);
}

.contact-cta-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #eaf3ff;
    color: var(--primary-blue);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(0, 123, 255, .15);
}

.contact-cta-title {
    margin: 10px 0 6px;
    color: var(--dark-blue);
    font-size: 20px;
}

.contact-cta-sub {
    color: var(--text-gray);
    margin: 0 0 14px;
}

.contact-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.contact-cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-cta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    border-color: rgba(0, 123, 255, .25);
}

.contact-cta-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--light-blue), #e3f2fd);
    color: var(--primary-blue);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-cta-label {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 13px;
    line-height: 1.2;
}

.contact-cta-text {
    color: var(--text-gray);
    font-size: 13px;
}

.contact-cta-actions {
    display: flex;
    gap: 10px;
}

.btn.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

@media (max-width: 768px) {
    .contact-cta-grid {
        grid-template-columns: 1fr;
    }
}

.faq-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faq-contact-section .faq-section {
    padding: 0;
    background: none;
}

.faq-contact-section .contact-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-contact-section .section-title {
    margin-bottom: 30px;
    text-align: left;
    font-size: 1.8rem;
}

.faq-contact-section .consultation-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ Section (standalone) */
.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-blue);
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin: 0;
}

@media (max-width: 768px) {
    .faq-question h4 {
        font-size: 14px;
    }
}

.faq-question i {
    color: var(--primary-blue);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 1500px; /* hoặc 2000px nếu có nhiều nội dung dài */
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Consultation Form */
.consultation-form {
    padding: 80px 0;
    background: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .form-container h2 {
        font-size: 1.6rem;
    }
}

.consultation-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-large {
    padding: 18px 40px;
    font-size: 14px;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.footer-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.company-details p {
    margin-bottom: 10px;
    color: #B0B0B0;
    line-height: 1.6;
}

.footer-achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.achievement-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.achievement-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.achievement-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.achievement-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #B0B0B0;
    font-size: 14px;
}

.recaptcha-notice {
    background: var(--primary-blue);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

/* Catalog styles removed */


@media (max-width: 1074px) {
    .gallery-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Events Page Styles */
.events-page {
    padding: 60px 0 80px;
    background: var(--light-gray);
    min-height: 100vh;
}

/* Event Detail Page Styles (separate from .events-page) */
.event-detail-page {
    padding: 60px 0 80px;
    background: var(--white);
    min-height: 100vh;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 30px;
}

.page-title-section h1 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-title-section p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.search-section {
    flex-shrink: 0;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--dark-blue);
}

.events-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* Scope layout specifically for the events listing page (su-kien.html) */
.events-page .events-layout {
    grid-template-columns: 300px 1fr;
}

.events-sidebar {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.sidebar-content h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.reset-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.filter-header h4 {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.filter-header i {
    color: var(--text-gray);
    transition: var(--transition);
}

.filter-content {
    display: block;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-range input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-input {
    position: relative;
    margin-bottom: 15px;
}

.search-input input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-input .fa-times,
.search-input .fa-search {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"]:checked+.checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.events-main {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.results-info {
    color: var(--text-gray);
    font-size: 14px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Tablet - keep 2 columns for larger tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.event-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-category {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
}

.event-date {
    font-weight: 500;
}

.event-author {
    font-style: italic;
}

.load-more-section {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design for FAQ & Contact Section */
@media (max-width: 1024px) {
    .faq-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-contact-section .contact-section {
        padding: 30px;
    }
}

/* Responsive Design for Events Page */
@media (max-width: 1024px) {
    .events-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .events-sidebar {
        position: static;
        order: 1;
    }

    .events-main {
        order: 1;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .events-page {
        padding: 36px 0 48px;
    }

    .event-detail-page {
        padding: 36px 0 48px;
    }

    .events-page .events-layout{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* On the listing page, place sidebar above main on mobile */
    .events-page .events-layout {
        display: flex;
        flex-direction: column;
    }
    .events-page .events-sidebar { order: 1; }
    .events-page .events-main { order: 2; }

    /* Ensure full-width columns on mobile */
    .events-page .events-sidebar,
    .events-page .events-main {
        width: 100%;
        max-width: 100%;
    }

    /* Apply the same mobile behavior for event detail page */
    .event-detail-page .events-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .event-detail-page .events-sidebar {
        order: 1;
        position: static;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    .event-detail-page .article-card {
        order: 2;
        width: 100%;
        max-width: 100%;
    }

    /* Detail pages: stack sidebar below article */
    .events-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .events-sidebar {
        order: 2;
        position: static;
        padding: 0;
    }

    .article-card {
        order: 1;
    }

    .sidebar-content {
        padding: 0;
    }

    /* Hero and article sizing on mobile */
    .page-hero {
        padding: 24px 0;
    }

    .page-hero .section-title {
        font-size: 1.8rem;
    }

    .page-hero .section-subtitle {
        font-size: 1rem;
    }

    .article-content {
        padding: 16px;
    }

    .article-image {
        height: 200px;
    }

    .page-title-section h1 {
        font-size: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .events-sidebar,
    .events-main {
        padding: 15px;
    }

    .events-sidebar {
        padding-bottom: 10px;
    }

    .sidebar-content h3 {
        margin-bottom: 15px;
    }

    .reset-btn {
        margin-bottom: 20px;
    }

    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .filter-content {
        display: none;
    }

    .faq-contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-contact-section .contact-section {
        padding: 20px;
    }

    /* News share bar - mobile */
    .news-share-bar {
        gap: 10px;
        font-size: 13px;
    }

    .news-share-bar a {
        font-size: 13px;
    }

    .news-share-bar .share-stats {
        font-size: 12px;
        gap: 10px;
    }
}

/* Tablet tweaks for detail pages */
@media (max-width: 1024px) {
    .article-image {
        height: 260px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 14px;
    }

    .events-layout {
        gap: 12px;
    }

    .articles-actions {
        margin-top: 12px;
    }

    /* Compact buttons and text on very small screens */
    .btn {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
    }

    .btn-large {
        padding: 10px 18px;
        font-size: 13px;
    }

    .read-more-btn {
        padding: 9px 16px;
        font-size: 12px;
    }

    .article-card h2,
    .article-card h3 {
        font-size: 0.95rem;
    }

    .article-content p {
        font-size: 13px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* News share bar - small phones */
    .news-share-bar {
        gap: 8px;
        font-size: 12px;
    }

    .news-share-bar a {
        font-size: 12px;
    }

    .news-share-bar .share-stats {
        font-size: 11px;
        gap: 8px;
    }
}

/* Desktop layout for detail pages (laptop and up) */
@media (min-width: 1025px) {
    .events-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 40px;
        align-items: start;
    }

    .events-sidebar {
        position: sticky;
        top: 120px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-text-content p {
        font-size: 12px;
    }

    .news-text-content h3 {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        justify-content: center;
        gap: 20px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        z-index: 9999;
    }

    .nav-link {
        font-size: 13px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu overlay - only darken content below header */
    .mobile-menu-overlay {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Fix language selector dropdown positioning on tablet */
    .language-selector {
        min-width: 120px;
        text-align: center;
    }

    .nav-actions {
        position: relative;
        z-index: 1000;
    }

    .logo img {
        height: 50px;
        width: 80%;
    }

    .slide-logo img {
        height: 70px;
    }

    .footer-logo img {
        height: 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 60px 20px;
        width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Hide sidebar and show arrows on mobile */
    .news-sidebar {
        display: none;
        /* other props handled below if shown */
    }

    .news-nav {
        display: block;
    }

    /* News: mobile layout — if sidebar is enabled later, make it horizontal */
    .news-sidebar.horizontal {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        padding: 6px 2px 8px;
        -webkit-overflow-scrolling: touch;
    }

    .news-sidebar.horizontal::-webkit-scrollbar {
        height: 6px;
    }

    .news-sidebar.horizontal::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .15);
        border-radius: 3px;
    }

    .news-item {
        flex: 0 0 auto;
        min-width: 240px;
    }

    .news-item h4 {
        font-size: 13px;
    }

    .news-date {
        font-size: 11px;
    }

    .news-card.featured {
        height: auto;
        flex: none;
    }

    .news-image {
        height: 250px;
        touch-action: pan-y;
    }

    .featured-image {
        touch-action: pan-y;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .news-text-content {
        padding: 20px;
    }

    .newsletter-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .newsletter-cta .cta-form {
        margin-left: 0;
        width: 100%;
    }

    .newsletter-cta input {
        flex: 1;
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .category-icon i {
        font-size: 1.5rem;
    }

    .category-card h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .category-card p {
        font-size: 13px;
        line-height: 1.4;
    }

    .gallery-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-events-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* footer-achievements grid override removed; hidden below */

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

    /* Hide achievements block on mobile */
    .footer-achievements {
        display: none;
    }

    /* Hide top bar on mobile */
    .top-bar {
        display: none;
    }

    /* Achievements-under-hero: stack and compact */
    .achievements-under-hero {
        padding: 24px 0;
    }

    .achievements-under-hero .achievements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .achievements-under-hero .achv-intro {
        padding: 16px;
        text-align: center;
    }

    .achievements-under-hero .achv-intro h2 {
        font-size: 1.4rem;
    }

    .achievements-under-hero .achv-intro p {
        font-size: 0.95rem;
    }

    .achievements-under-hero .achv-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .achievements-under-hero .achv-card {
        padding: 16px;
    }

    .achievements-under-hero .achv-card .icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .achievements-under-hero .achv-card .num {
        font-size: 1.6rem;
    }

    .achievements-under-hero .achv-card .label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ecosystem-header {
        margin-bottom: 20px;
    }

    .ecosystem-header h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .section-intro {
        font-size: 13px;
        max-width: 95%;
    }

    .ecosystem-visual {
        height: 50px;
        margin: 12px 0;
    }

    .ecosystem-logo {
        width: 45px;
        height: 45px;
    }

    .ecosystem-logo i {
        font-size: 14px;
    }

    .ecosystem-logo span {
        font-size: 7px;
    }

    .ecosystem-connections {
        width: 120px;
        height: 120px;
    }

    .connection-line {
        height: 30px;
    }

    .pillars-grid {
        gap: 10px;
        margin-top: 10px;
    }

    .pillar {
        padding: 10px 8px;
    }

    .pillar-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .pillar h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .pillar-summary {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .pillar-points li {
        font-size: 11px;
        margin-bottom: 3px;
        padding-left: 14px;
    }

    .nav-link {
        font-size: 12px;
    }

    .events-sidebar {
        padding: 10px;
        padding-bottom: 5px;
    }

    .sidebar-content h3 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .reset-btn {
        margin-bottom: 15px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-section {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .filter-header h4 {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .quote-content h2 {
        font-size: 1.8rem;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-achievements {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 45px;
    }

    .slide-logo img {
        height: 60px;
    }

    .footer-logo img {
        height: 45px;
    }


    .hero-content {
        padding: 40px 15px;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent accidental horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating Actions (fixed buttons) */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1500;
}

/* Chatbot button positioned at bottom right corner */
.floating-actions .fab-chatbot-primary {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
}
.floating-actions .fab-top {
    z-index: 2100;
}

/* Bookmedi button positioned at bottom left corner */
.fab-btn.fab-bookmedi {
    position: fixed !important;
    left: 24px;
    bottom: 24px;
    z-index: 2000;
    width: auto;
    min-width: 200px;
    height: 60px;
    padding: 0 16px;
    background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%);
    border: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: bookmedi-glow 3s ease-in-out infinite;
    opacity: 1;
    box-shadow: 
        0 0 5px rgba(0, 102, 204, 0.2),
        0 0 10px rgba(30, 144, 255, 0.15),
        0 8px 24px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: visible;
    text-decoration: none;
    transform: scale(1) rotate(0deg) translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease,
                box-shadow 0.3s ease;
}

/* Bookmedi logo container */
.bookmedi-logo {
    display: block;
    width: 44px;
    height: 44px;
    min-width: 44px;
    /* Firefox compatibility: use both absolute and relative paths */
    background-image: url('/logo-icon-bookmedi.jpg'), url('./logo-icon-bookmedi.jpg');
    /* Firefox vendor prefix for background-size */
    -moz-background-size: contain;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* Firefox compatibility: ensure border-radius works with background */
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    -moz-transform: scale(1) translateZ(0);
    /* Firefox: ensure background is visible */
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    /* Firefox: force hardware acceleration and ensure rendering */
    will-change: transform;
    /* Firefox: ensure element is visible */
    opacity: 1;
    visibility: visible;
    /* Firefox: prevent background from being clipped */
    overflow: visible;
}

/* Bookmedi text container */
.bookmedi-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

.bookmedi-text-main {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.bookmedi-text-url {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.fab-btn.fab-bookmedi::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: bookmedi-shine 3s ease-in-out infinite;
    border-radius: 30px;
    pointer-events: none;
    z-index: 0;
}

.fab-btn.fab-bookmedi::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #1e90ff, #0066cc);
    background-size: 200% 200%;
    z-index: -1;
    animation: bookmedi-border 3s linear infinite;
    filter: blur(0px);
    opacity: 0;
}

.fab-btn.fab-bookmedi:hover {
    transform: translateY(-6px) scale(1.05);
    animation: bookmedi-glow 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 8px rgba(0, 102, 204, 0.3),
        0 0 15px rgba(30, 144, 255, 0.2),
        0 15px 40px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%);
}

.fab-btn.fab-bookmedi:hover .bookmedi-logo {
    transform: scale(1.15);
}

.fab-btn.fab-bookmedi:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 20px rgba(0, 102, 204, 0.8),
        0 4px 15px rgba(0, 102, 204, 0.6);
}

/* Bookmedi tooltip */
.bookmedi-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(0);
    background: #ffffff;
    color: #0066cc;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2001;
    border: 2px solid #1e90ff;
}

.bookmedi-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #ffffff transparent transparent transparent;
}

.bookmedi-tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 9px 0 9px;
    border-color: #1e90ff transparent transparent transparent;
    z-index: -1;
}

.fab-btn.fab-bookmedi:hover .bookmedi-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}



@keyframes bookmedi-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes bookmedi-glow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 102, 204, 0.2),
            0 0 10px rgba(30, 144, 255, 0.15),
            0 8px 24px rgba(0, 102, 204, 0.2);
    }
    50% {
        box-shadow: 
            0 0 8px rgba(0, 102, 204, 0.25),
            0 0 15px rgba(30, 144, 255, 0.2),
            0 8px 24px rgba(0, 102, 204, 0.25);
    }
}

@keyframes bookmedi-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes bookmedi-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bookmedi-hover-pulse {
    0%, 100% {
        transform: translateY(-6px) scale(1.05);
    }
    50% {
        transform: translateY(-6px) scale(1.08);
    }
}

@keyframes bookmedi-logo-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
    position: relative;
}

.fab-btn i {
    font-size: 20px;
}

.fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.fab-cart {
    background: #0d6efd;
}

/* Chatbot button - primary style (larger, more prominent) */
.fab-chatbot-primary {
    width: 64px;
    height: 64px;
    font-size: 26px;
    position: relative;
    animation: chatbot-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes chatbot-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.fab-chatbot {
    background: linear-gradient(135deg, #1e90ff 0%, #0d6efd 100%);
    position: relative;
    overflow: hidden;
    animation: chatbot-pulse 2s ease-in-out infinite, chatbot-glow 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(13, 110, 253, 0.5),
        0 0 40px rgba(30, 144, 255, 0.3),
        0 8px 24px rgba(13, 110, 253, 0.4);
}

.fab-chatbot::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: chatbot-shine 3s ease-in-out infinite;
}

.fab-chatbot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e90ff, #0d6efd, #1e90ff);
    background-size: 200% 200%;
    z-index: -1;
    animation: chatbot-border 3s linear infinite;
    filter: blur(8px);
    opacity: 0.7;
}

.fab-chatbot:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #1e90ff 100%);
    transform: translateY(-4px) scale(1.08) rotate(5deg);
    animation: chatbot-hover-pulse 0.6s ease-in-out infinite, chatbot-glow 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(13, 110, 253, 0.8),
        0 0 60px rgba(30, 144, 255, 0.5),
        0 12px 36px rgba(13, 110, 253, 0.6);
}

.fab-chatbot:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 15px rgba(13, 110, 253, 0.6),
        0 4px 12px rgba(13, 110, 253, 0.4);
}

.fab-chatbot i {
    animation: chatbot-icon-bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes chatbot-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes chatbot-glow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(13, 110, 253, 0.5),
            0 0 40px rgba(30, 144, 255, 0.3),
            0 8px 24px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(13, 110, 253, 0.7),
            0 0 60px rgba(30, 144, 255, 0.5),
            0 12px 32px rgba(13, 110, 253, 0.6);
    }
}

@keyframes chatbot-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes chatbot-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes chatbot-hover-pulse {
    0%, 100% {
        transform: translateY(-4px) scale(1.08) rotate(5deg);
    }
    50% {
        transform: translateY(-4px) scale(1.12) rotate(5deg);
    }
}

@keyframes chatbot-icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Chatbot notice (speech bubble) */
.chatbot-notice {
    position: fixed;
    z-index: 99999;
    right: 90px; /* will be adjusted by JS */
    top: 120px; /* fallback */
    background: #ffffff;
    color: #333;
    padding: 14px 18px;
    padding-right: 38px; /* space for close button */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(12px) scale(0.95);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .32s ease;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    max-width: 280px;
    animation: chatbot-notice-wobble 2.5s ease-in-out infinite;
}

.chatbot-notice.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Speech bubble arrow pointing to chatbot button */
.chatbot-notice::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 12px;
    border-color: transparent transparent transparent #ffffff;
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.06));
}

.chatbot-notice .chatbot-notice-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    font-weight: 400;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-notice .chatbot-notice-close:hover {
    background: #f0f0f0;
    color: #333;
}

.chatbot-notice .chatbot-notice-content {
    white-space: normal;
    overflow: visible;
    max-width: 100%;
    color: #555;
}

/* Bookmedi notice (speech bubble) - similar to chatbot but positioned on left */
.bookmedi-notice {
    position: fixed;
    z-index: 99999;
    left: 90px; /* will be adjusted by JS */
    top: 120px; /* fallback */
    background: #ffffff;
    color: #333;
    padding: 14px 18px;
    padding-right: 38px; /* space for close button */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-12px) scale(0.95);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .32s ease;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    max-width: 280px;
    min-width: 0; /* Cho phép shrink */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bookmedi-notice.show {
    transform: translateX(0) scale(1);
    opacity: 1;
    animation: bookmedi-notice-wobble 2.5s ease-in-out infinite;
}

/* Speech bubble arrow pointing to bookmedi button (on left side) */
.bookmedi-notice::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 12px 10px 0;
    border-color: transparent #ffffff transparent transparent;
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.06));
}

.bookmedi-notice .bookmedi-notice-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    font-weight: 400;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bookmedi-notice .bookmedi-notice-close:hover {
    background: #f0f0f0;
    color: #333;
}

.bookmedi-notice .bookmedi-notice-content {
    white-space: normal;
    overflow: visible;
    max-width: 100%;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0; /* Cho phép text wrap */
}

/* Subtle wobble animation to attract attention */
@keyframes bookmedi-notice-wobble {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(-2px) scale(1.01);
    }
    75% {
        transform: translateX(2px) scale(1.01);
    }
}

/* Subtle wobble animation to attract attention */
@keyframes chatbot-notice-wobble {
    0%, 100% {
        transform: translateX(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateX(-2px) scale(1) rotate(-1deg);
    }
    75% {
        transform: translateX(2px) scale(1) rotate(1deg);
    }
}

.fab-phone {
    background: #dc3545;
}

.fab-zalo {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 8px 24px rgba(13, 110, 253, .25);
}

.fab-zalo:hover {
    background: #f3f7ff;
}

.fab-zalo-text {
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* Back to top visibility */
.fab-top {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    position: relative;
    overflow: visible !important;
}

.fab-top.show,
.fab-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Progress circle styling */
.progress-circle-svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Remove default focus outlines/borders */
.fab-btn:focus,
.fab-btn:active,
.fab-btn:focus-visible {
    outline: none;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

@media (max-width: 480px) {
    .floating-actions {
        right: 14px;
        bottom: 120px;
        gap: 12px;
    }

    .fab-btn {
        width: 52px;
        height: 52px;
    }

    .fab-chatbot-primary {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .fab-btn.fab-bookmedi {
        position: fixed !important;
        left: 14px;
        bottom: 24px;
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0 !important;
        font-size: 0;
        overflow: hidden;
        background: linear-gradient(135deg, #0066cc 0%, #1e90ff 100%) !important;
        box-shadow: 
            0 0 20px rgba(0, 102, 204, 0.5),
            0 0 40px rgba(30, 144, 255, 0.3),
            0 8px 24px rgba(0, 102, 204, 0.4);
    }

    .bookmedi-logo {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        /* Firefox compatibility: use both absolute and relative paths */
        background-image: url('/logo-icon-bookmedi.jpg'), url('./logo-icon-bookmedi.jpg') !important;
        /* Firefox vendor prefix for background-size */
        -moz-background-size: cover !important;
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        /* Firefox compatibility: ensure border-radius works */
        -moz-border-radius: 50% !important;
        border-radius: 50% !important;
        display: block !important;
        flex-shrink: 0 !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        /* Firefox: ensure background is visible */
        -moz-background-clip: padding-box !important;
        background-clip: padding-box !important;
    }

    .bookmedi-text {
        display: none !important;
    }

    .bookmedi-text-main {
        display: none;
    }

    .bookmedi-text-url {
        display: none;
    }
    
    /* Adjust bookmedi button hover for mobile - giống chatbot */
    .fab-btn.fab-bookmedi:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 
            0 0 30px rgba(0, 102, 204, 0.8),
            0 0 60px rgba(30, 144, 255, 0.5),
            0 12px 36px rgba(0, 102, 204, 0.6);
    }
    
    /* Adjust bookmedi button active for mobile */
    .fab-btn.fab-bookmedi:active {
        transform: scale(0.95);
        box-shadow: 
            0 0 15px rgba(0, 102, 204, 0.6),
            0 4px 12px rgba(0, 102, 204, 0.4);
    }
    
    /* Adjust bookmedi button pseudo-elements for circular shape */
    .fab-btn.fab-bookmedi::before {
        border-radius: 50%;
    }
    
    .fab-btn.fab-bookmedi::after {
        border-radius: 50%;
        inset: -2px;
        filter: blur(0.5px);
    }

    .bookmedi-tooltip {
        display: none;
    }

    .chatbot-notice {
        max-width: 220px;
        font-size: 13px;
        padding: 12px 16px;
        padding-right: 36px;
    }

    .bookmedi-notice {
        max-width: calc(100vw - 100px) !important;
        min-width: 0;
        font-size: 13px;
        padding: 12px 16px;
        padding-right: 36px;
        left: 80px !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .bookmedi-notice .bookmedi-notice-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Additional responsive refinements */
@media (max-width: 1024px) {
    .container {
        padding: 0 18px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 10px;
    }


    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .news-grid {
        gap: 16px;
    }

    .news-image {
        height: 240px;
    }

    .section-title {
        font-size: 25px;
    }

    .articles-events-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .articles-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .logo-item {
        width: 180px;
        height: 90px;
    }

    .logo-item img {
        width: 180px;
        height: 90px;
    }

    /* Achievements-under-hero: lighten spacing */
    .achievements-under-hero {
        padding: 26px 0;
    }

    .achievements-under-hero .achievements-grid {
        gap: 18px;
    }

    .achievements-under-hero .achv-intro h2 {
        font-size: 1.6rem;
    }

    /* Fix featured height on medium screens */
    .news-card.featured {
        height: 480px;
    }
}

/* Refine 768 and below for better mobile scaling */
@media (max-width: 768px) {
    /* Bookmedi button stays circular on tablet and mobile */
    .fab-btn.fab-bookmedi {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .bookmedi-logo {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        /* Firefox compatibility: use both absolute and relative paths */
        background-image: url('/logo-icon-bookmedi.jpg'), url('./logo-icon-bookmedi.jpg') !important;
        /* Firefox vendor prefix for background-size */
        -moz-background-size: cover !important;
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        padding: 0 !important;
        /* Firefox: ensure background is visible */
        -moz-background-clip: padding-box !important;
        background-clip: padding-box !important;
    }

    .bookmedi-text-main {
        font-size: 13px;
    }

    .bookmedi-text-url {
        font-size: 10px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 24px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }

    .news-image {
        height: 220px;
        overflow: visible;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: 100%;
        height: 120px;
    }

    blockquote {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 20px;
    }

    /* Fix featured height on tablet */
    .news-card.featured {
        height: 533px;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        overflow: visible;
    }

    .news-text-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Article cards responsive */
    .article-image {
        height: 180px;
    }

    .article-card h3 {
        font-size: 1rem;
    }

    .news-nav-inner {
        padding: 0 4px;
    }
}

/* Smallest screens: 360px */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .nav-link {
        font-size: 11px;
    }

    .top-bar {
        padding: 8px 0;
    }

    .logo img {
        height: 42px;
    }

    .language-selector {
        padding: 6px 10px;
        font-size: 13px;
        z-index: 1002;
        position: relative;
        min-width: 120px;
        text-align: center;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 16px;
        padding-right: 30px;
    }

    .language-selector option {
        background: var(--white);
        color: var(--dark-gray);
        padding: 8px 12px;
        text-align: center;
    }

    /* Fix dropdown positioning on mobile */
    .nav-actions {
        position: relative;
        z-index: 1000;
    }

    .language-selector:focus {
        outline: none;
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    }

    .hero {
        padding: 32px 0;
    }

    .hero-content {
        gap: 28px;
        padding: 28px 12px;
    }

    .hero-text {
        min-height: 260px;
    }

    .hero-title {
        font-size: 1.7rem;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 9px 16px;
        font-size: 13px;
        border-radius: 22px;
    }

    .btn-large {
        padding: 12px 22px;
        font-size: 14px;
    }



    .news-image {
        height: 180px;
        overflow: visible;
    }

    /* Fix featured height on small phones */
    .news-card.featured {
        height: 420px;
        max-width: 94%;
        margin-left: auto;
        margin-right: auto;
        overflow: visible;
    }

    .news-card.featured .news-text-content {
        padding: 14px 26px;
    }

    .news-nav-btn {
        width: 32px;
        height: 32px;
    }

    /* News: tighter horizontal list on the smallest screens */
    .news-item {
        min-width: 200px;
    }

    /* Article cards for smallest screens */
    .article-card {
        height: 240px;
    }

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 15px;
    }

    .article-card h3 {
        font-size: 0.9rem;
    }

    .news-item h4 {
        font-size: 12.5px;
    }

    .news-text-content h3 {
        font-size: 1rem;
    }

    .news-text-content p {
        font-size: 12px;
    }

    .newsletter-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-cta .cta-form {
        margin-left: 0;
        width: 100%;
    }

    .newsletter-cta input {
        flex: 1;
        width: 100%;
    }

    .categories-grid {
        gap: 16px;
    }

    .category-card {
        padding: 24px 18px;
    }

    .category-icon {
        width: 64px;
        height: 64px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    .quote-section {
        padding: 50px 0;
    }

    .quote-content h2 {
        font-size: 1.6rem;
    }

    blockquote {
        font-size: 1rem;
    }

    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: none;
    }

    .gallery-item {
        height: 100px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .articles-events {
        padding: 60px 0;
    }

    .articles-events-grid {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .articles-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-image {
        height: 160px;
    }


    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .consultation-form {
        padding: 60px 0;
    }

    .form-container h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 15px;
    }

    .footer {
        padding: 44px 0 16px;
    }

    .footer-bottom p {
        font-size: 13px;
    }

    .recaptcha-notice {
        font-size: 11px;
    }

    .floating-actions {
        right: 12px;
        bottom: 12px;
        gap: 10px;
    }

    .fab-btn {
        width: 48px;
        height: 48px;
    }

    .fab-zalo-text {
        font-size: 14px;
    }

    /* Achievements-under-hero: single column cards and tighter spacing */
    .achievements-under-hero {
        padding: 20px 0;
    }

    .achievements-under-hero .achv-intro {
        padding: 14px;
    }

    .achievements-under-hero .achv-intro h2 {
        font-size: 1.25rem;
    }

    .achievements-under-hero .achv-intro p {
        font-size: 0.9rem;
    }

    .achievements-under-hero .achv-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .achievements-under-hero .achv-card {
        padding: 14px;
    }

    .achievements-under-hero .achv-card .icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 6px;
    }

    .achievements-under-hero .achv-card .num {
        font-size: 1.4rem;
    }

    .achievements-under-hero .achv-card .label {
        font-size: 11px;
    }
}

/* Mobile layout for max-width 600px */
@media (max-width: 600px) {
    .articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =============================
   Product detail page (san-pham.html)
   Scoped styles to avoid conflicts
============================= */
.articles-events .news-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-sidebar .news-item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f9fb;
    color: #1f2a37;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: background .2s ease, box-shadow .2s ease, transform .04s ease;
}

.news-sidebar .news-item h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.news-sidebar .news-item:hover {
    background: #eef6ff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.news-sidebar .news-item.active {
    background: #e6f0ff;
    border-color: #c7dcff;
}

/* Right content */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-grid .article-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    transition: transform .12s ease, box-shadow .2s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* Ensure overlay sits above all inner contents */
.product-grid .article-card > * { position: relative; z-index: 0; }

.product-grid .article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.product-grid .article-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-grid .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-grid .article-content {
    padding: 14px 14px 16px;
}

.product-grid .article-content h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.product-grid .article-content p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}

/* Hover overlay with text */
.product-grid .article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 1;
}

.product-grid .article-card::after {
    content: "Chi tiết";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    z-index: 2;
}

.product-grid .article-card:hover::before,
.product-grid .article-card:hover::after {
    opacity: 1;
}

/* Hide inner texts on hover so chỉ hiện rõ "Chi tiết" */
.product-grid .article-card:hover .article-content { opacity: 1; }
.product-grid .article-card .article-content { transition: none; }

/* Layout tweaks for this page */
.articles-events .articles-events-grid[style*="grid-template-columns:280px"] {
    align-items: start;
}

/* Responsive */
@media (max-width: 1280px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .articles-events .articles-events-grid[style*="grid-template-columns:280px"] {
        grid-template-columns: 1fr !important;
    }
    .news-sidebar { position: static !important; display:none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Show mobile selector only on small screens */
@media (max-width: 1024px) {
    .mobile-category-select { display:block !important; }
}

@media (min-width: 1025px) {
    .mobile-only{
        display:none;
    }
    .desktop-only{
        display:block;
    }
}



@media (max-width: 1024px) {
    .desktop-only{
        display:none;
    }
    .mobile-only{
        display:block;
    }
}
/* Partners Logo Modal */
.partners-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.partners-modal-overlay.active {
    display: flex;
}

.partners-modal {
    width: min(800px, 92vw);
    max-height: 85vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.partners-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.partners-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.partners-modal-header {
    padding: 20px 30px 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.partners-modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.partners-modal-header p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.partners-modal-body {
    padding: 40px 30px;
    overflow: auto;
}

.partners-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-items: center;
}

.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.partner-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.partner-logo-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.partner-logo-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-modal {
        width: 95vw;
        border-radius: 16px;
    }
    
    .partners-modal-header {
        padding: 18px 20px 12px;
    }
    
    .partners-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .partners-modal-body {
        padding: 25px 20px;
    }
    
    .partners-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-logo-item {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .partner-logo-item img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .partners-logos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partners-modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Partners Modal Footer */
.partners-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.partners-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partners-contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.partners-contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.partners-contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.4);
    background: linear-gradient(135deg, #0078FF 0%, #0062DD 100%);
}

.partners-contact-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.partners-contact-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.partners-contact-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .partners-modal-footer {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .partners-contact-btn {
        padding: 14px 30px;
        font-size: 15px;
        gap: 10px;
    }
    
    .partners-contact-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .partners-contact-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Solution Image Modal */
.solution-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.solution-modal-overlay.active {
    display: flex;
}

.solution-modal {
    width: min(900px, 92vw);
    max-height: 90vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.solution-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.solution-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.solution-modal-header {
    padding: 20px 30px 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.solution-modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.solution-modal-header p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.solution-modal-body {
    padding: 30px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.solution-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.solution-image {
    width: 85%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
}

.solution-modal-footer {
    text-align: center;
    padding-top: 10px;
}

.solution-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.solution-contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.solution-contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.4);
    background: linear-gradient(135deg, #0078FF 0%, #0062DD 100%);
}

.solution-contact-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.solution-contact-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.solution-contact-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .solution-modal {
        width: 95vw;
        border-radius: 16px;
    }
    
    .solution-modal-header {
        padding: 18px 20px 12px;
    }
    
    .solution-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .solution-modal-body {
        padding: 20px;
        gap: 20px;
    }
    
    .solution-image-container {
        padding: 12px;
    }
    
    .solution-image {
        width: 90%;
        max-height: 45vh;
    }
    
    .solution-contact-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .solution-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .solution-modal-body {
        padding: 15px;
    }
    
    .solution-contact-btn {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Ebook Modal - Reuse Solution Modal Styles */
.ebook-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.ebook-modal-overlay.active {
    display: flex;
}

.ebook-modal {
    width: min(900px, 92vw);
    max-height: 90vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ebook-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.ebook-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.ebook-modal-header {
    padding: 20px 30px 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.ebook-modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.ebook-modal-header p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.ebook-modal-body {
    padding: 30px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ebook-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ebook-image {
    width: 85%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
}

.ebook-modal-footer {
    text-align: center;
    padding-top: 10px;
}

.ebook-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ebook-contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ebook-contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ebook-contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.4);
    background: linear-gradient(135deg, #0078FF 0%, #0062DD 100%);
}

.ebook-contact-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.ebook-contact-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.ebook-contact-btn span {
    position: relative;
    z-index: 1;
}

/* Learning Gift Set Modal */
.gift-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.gift-modal-overlay.active {
    display: flex;
}

.gift-modal {
    width: min(1000px, 96vw);
    max-height: 90vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gift-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.gift-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.gift-modal-header {
    padding: 20px 30px 16px;
    text-align: center;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
}

.gift-modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.gift-modal-header p {
    font-size: 0.9rem;
    opacity: 0.95;
}

.gift-modal-body {
    padding: 24px 28px 28px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gift-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gift-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-item img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.gift-modal-footer {
    text-align: center;
    padding-top: 4px;
}

.gift-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.gift-contact-btn i {
    font-size: 16px;
}

/* Gift Lightbox (zoom image) */
.gift-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.gift-lightbox-overlay.active {
    display: flex;
}

.gift-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gift-lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 2;
    pointer-events: auto;
}

.gift-lightbox-close:hover {
    background: #ff4444;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .ebook-modal {
        width: 95vw;
        border-radius: 16px;
    }
    
    .ebook-modal-header {
        padding: 18px 20px 12px;
    }
    
    .ebook-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .ebook-modal-body {
        padding: 20px;
        gap: 20px;
    }
    
    .ebook-image-container {
        padding: 12px;
    }
    
    .ebook-image {
        width: 90%;
        max-height: 45vh;
    }
    
    .ebook-contact-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .gift-modal {
        width: 95vw;
    }

    .gift-modal-body {
        padding: 18px 18px 22px;
    }

    .gift-gallery {
        grid-template-columns: 1fr;
    }

    .gift-item img {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    .ebook-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .ebook-modal-body {
        padding: 15px;
    }
    
    .ebook-contact-btn {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Hero Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
    left: 15px;
}

.carousel-arrow-next {
    right: 15px;
}

.carousel-arrow i {
    font-size: 18px;
    color: var(--dark-blue);
    transition: color 0.3s ease;
}

.carousel-arrow:hover i {
    color: white;
}

/* Responsive - hide arrows on mobile */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 38px;
        height: 38px;
    }
    
    .carousel-arrow i {
        font-size: 16px;
    }
    
    .carousel-arrow-prev {
        left: 10px;
    }
    
    .carousel-arrow-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .carousel-arrow i {
        font-size: 14px;
    }
    
    .carousel-arrow-prev {
        left: 8px;
    }
    
    .carousel-arrow-next {
        right: 8px;
    }
}


.checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 15px;
    cursor: pointer;
    font-weight: normal;
  }
  .checkbox-label input[type="checkbox"] {
    margin-right: 6px !important;
    accent-color: var(--primary-blue);
  }