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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Kanit", sans-serif;
    overflow-x: hidden;
    background: #f8f9fc;
}

/* ===== HEADER / NAVBAR ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a3a5c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 50px;
    padding: 8px 15px;
    gap: 5px;
}

nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #1a5276;
    background: rgba(26, 82, 118, 0.08);
}

nav a.active {
    background: #1a3a5c;
    color: #fff;
    font-weight: 600;
}

nav a.active:hover {
    background: #1a3a5c;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a5c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.h-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.h-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.h-icon {
    color: #1a3a5c;
}

.h-icon:hover {
    transform: scale(1.15);
}

.h-icon.h-call:hover {
    color: #1a5276;
}

.h-icon.h-facebook:hover {
    color: #1877f2;
}

.h-icon.h-line:hover {
    color: #06c755;
}

.contact-btn {
    text-decoration: none;
    color: #1a5276;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 24px;
    border: 2px solid #1a5276;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #1a5276;
    color: #fff;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.lang-link {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s;
}

.lang-link.active {
    color: #1a5276;
    font-weight: 700;
}

.lang-link:hover {
    color: #1a5276;
}

.lang-sep {
    color: #ccc;
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 1100px) {
    header {
        padding: 12px 24px;
    }
    nav {
        padding: 6px 10px;
        gap: 2px;
    }
    nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    .header-right {
        gap: 12px;
    }
    .header-icons {
        gap: 8px;
    }
    .contact-btn {
        padding: 7px 18px;
    }
}

@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
        padding: 12px 20px;
    }
    .logo-img {
        width: 120px;
    }
    .nav-toggle {
        display: flex;
        order: 2;
    }
    nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        gap: 4px;
        margin-top: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    nav.open {
        display: flex;
    }
    nav a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }
    .header-right {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        gap: 12px;
        padding-top: 8px;
    }
    .header-right.open {
        display: flex;
    }
    .header-icons {
        justify-content: center;
        gap: 18px;
    }
    .contact-btn {
        width: 100%;
        text-align: center;
    }
    .lang-switch {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 16px;
    }
    .logo-img {
        width: 100px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 40px;
    position: relative;
    overflow: hidden;
}

/* Background Slideshow */
.slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slideshow-bg .slide.active {
    opacity: 1;
}

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

/* Mobile only — all slide backgrounds: anchor image to the left (crop right side) */
@media (max-width: 768px) {
    .slideshow-bg .slide img {
        object-position: left center;
    }
    /* Hide portal theme preview popup on mobile */
    .portal-theme-preview {
        display: none !important;
    }
}

/* Portal Slide - popup card */
.slide-portal {
    position: relative;
}

/* Theme Preview Card */
.portal-theme-preview {
    position: absolute;
    right: 8%;
    bottom: 15%;
    width: 240px;
    background: linear-gradient(135deg, #1a4a6e, #1565c0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    z-index: 5;
    opacity: 0;
    border: 1.5px solid rgba(100,181,246,0.3);
}

.slide-portal.active .portal-theme-preview {
    animation: themeCardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes themeCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-preview-header {
    background: rgba(0,0,0,0.2);
    padding: 6px 10px;
    display: flex;
    align-items: center;
}

.theme-dots {
    display: flex;
    gap: 4px;
}

.theme-dots .td {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.theme-dots .td.red { background: #ff5f57; }
.theme-dots .td.yellow { background: #febc2e; }
.theme-dots .td.green { background: #28c840; }

.theme-preview-body {
    display: flex;
    padding: 8px;
    gap: 6px;
    min-height: 70px;
}

.theme-sidebar {
    width: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-item {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    transition: all 0.3s;
}

.ts-item.active {
    background: rgba(255,255,255,0.5);
}

.slide-portal.active .ts-item {
    animation: sidebarFade 0.3s ease-out both;
}

.slide-portal.active .ts-item:nth-child(1) { animation-delay: 1.6s; }
.slide-portal.active .ts-item:nth-child(2) { animation-delay: 1.7s; }
.slide-portal.active .ts-item:nth-child(3) { animation-delay: 1.8s; }
.slide-portal.active .ts-item:nth-child(4) { animation-delay: 1.9s; }
.slide-portal.active .ts-item:nth-child(5) { animation-delay: 2.0s; }

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

.theme-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-row {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    width: 70%;
}

.tm-row.wide {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
}

.tm-cols {
    display: flex;
    gap: 4px;
    flex: 1;
}

.tm-cols div {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    min-height: 20px;
}

.theme-preview-footer {
    padding: 10px 12px;
    background: rgba(0,0,0,0.15);
    text-align: center;
}

.theme-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.theme-sublabel {
    display: block;
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
    margin-bottom: 8px;
}

.theme-apply-btn {
    padding: 4px 24px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-family: "Kanit", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-apply-btn:hover {
    background: #42a5f5;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33,150,243,0.4);
}

/* Portal Management Bar */
.portal-mgmt {
    position: absolute;
    bottom: 5%;
    right: 5%;
    left: 40%;
    background: rgba(26, 58, 92, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px 18px;
    z-index: 5;
    opacity: 0;
}

.slide-portal.active .portal-mgmt {
    animation: mgmtSlideUp 0.6s ease-out 1.8s forwards;
}

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

.portal-mgmt-title {
    font-size: 11px;
    color: #8ab4f8;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.portal-mgmt-cards {
    display: flex;
    gap: 10px;
}

.portal-mgmt-card {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

.slide-portal.active .portal-mgmt-card:nth-child(1) { animation: cardPop 0.4s ease-out 2.1s forwards; }
.slide-portal.active .portal-mgmt-card:nth-child(2) { animation: cardPop 0.4s ease-out 2.3s forwards; }
.slide-portal.active .portal-mgmt-card:nth-child(3) { animation: cardPop 0.4s ease-out 2.5s forwards; }

@keyframes cardPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.portal-mgmt-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.portal-mgmt-card.active {
    border-color: #64b5f6;
}

.mgmt-preview {
    height: 40px;
    border-radius: 5px;
    margin-bottom: 6px;
}

.mgmt-name {
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.mgmt-desc {
    font-size: 8px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
    line-height: 1.3;
}

.mgmt-apply {
    padding: 3px 16px;
    background: #2980b9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 9px;
    font-family: "Kanit", sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.mgmt-apply:hover {
    background: #3498db;
    transform: scale(1.05);
}

/* News Banner Animation - pan จากซ้ายไปขวา เน้นฝั่งหนังสือพิมพ์ */
.slide-news img {
    transform-origin: right center;
    animation: none;
}

.slide-news.active img {
    animation: newsPan 8s ease-in-out forwards;
}

@keyframes newsPan {
    0% {
        transform: scale(1.15) translateX(-3%);
    }
    50% {
        transform: scale(1.2) translateX(2%);
    }
    100% {
        transform: scale(1.15) translateX(-1%);
    }
}

/* Video Banner Animation - เน้นผู้หญิงในภาพขยับ */
.slide-video img {
    transform-origin: 70% 40%;
    animation: none;
}

.slide-video.active img {
    animation: personMove 8s ease-in-out infinite;
}

@keyframes personMove {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    25% {
        transform: scale(1.1) translate(-1%, 0.5%);
    }
    50% {
        transform: scale(1.08) translate(0.5%, -0.5%);
    }
    75% {
        transform: scale(1.12) translate(-0.5%, 0.3%);
    }
    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-left {
    max-width: 550px;
}

.hero-right {
    max-width: 600px;
    margin-left: auto;
    padding-left: 40px;
}

.hero-right .feature-card {
    width: 100%;
}

/* Slide Content Transitions */
.slide-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.slide-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: contentFadeIn 0.7s ease-out forwards;
}

.slide-content.active .feature-card {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease-out forwards;
}

.hero-right.slide-content.active .feature-card {
    transform: translateX(30px);
    animation: slideInFromRight 0.5s ease-out forwards;
}

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

.slide-content.active .feature-card:nth-child(1) { animation-delay: 0.15s; }
.slide-content.active .feature-card:nth-child(2) { animation-delay: 0.25s; }
.slide-content.active .feature-card:nth-child(3) { animation-delay: 0.35s; }
.slide-content.active .feature-card:nth-child(4) { animation-delay: 0.45s; }

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


/* Smart CMS Badge */
.cms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cms-badge .gear-icon {
    width: 30px;
    height: 30px;
    position: relative;
}

.cms-badge .gear-icon::before {
    content: '\2699';
    font-size: 24px;
    color: #2ecc71;
    animation: spin 8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cms-badge-text {
    line-height: 1;
}

.cms-badge-text .smart {
    font-size: 13px;
    color: #555;
    font-weight: 400;
    display: block;
}

.cms-badge-text .cms {
    font-size: 22px;
    color: #0097a7;
    font-weight: 800;
    display: block;
}

.cms-badge-text .sub {
    font-size: 8px;
    color: #999;
    letter-spacing: 1px;
    display: block;
}

/* Main Heading */
.hero-title {
    font-size: 72px;
    font-weight: 00;
    color: #1a3a5c;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

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

/* Feature Cards */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #0d2137, #132d4a);
    border: solid 3px;
    border-color: #00bcd4;
    border-radius: 16px;
    position: relative;
    padding: 16px 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00e676, #00bcd4, #2196f3);
    border-radius: 18px;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d2137, #132d4a);
    border-radius: 16px;
    z-index: -1;
}

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

.feature-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 172, 193, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: iconShimmer 3s ease-in-out infinite;
}

@keyframes iconShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}



.feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: #fff;
    font-weight: 400;
}

/* ===== SHOWCASE CARDS (Slide 2) ===== */
.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-card {
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

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

.showcase-title {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.showcase-badge {
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.showcase-badge.green { background: #4caf50; }
.showcase-badge.orange { background: #ff9800; }
.showcase-badge.blue { background: #2196f3; }

/* Video Player */
.video-player {
    margin-top: 6px;
}

.video-screen {
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    border-radius: 8px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: screenShimmer 3s ease-in-out infinite;
}

@keyframes screenShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.play-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0,0,0,0); }
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.video-time {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
    border-radius: 2px;
    animation: progressGrow 3s ease-out 0.5s forwards;
}

@keyframes progressGrow {
    from { width: 0%; }
    to { width: 38%; }
}

.speed-btns {
    display: flex;
    gap: 4px;
}

.speed-btns span {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #888;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.speed-btns span.active {
    background: #333;
    color: #fff;
}

/* Layout Grid */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.layout-grid.single-row {
    grid-template-columns: repeat(7, 1fr);
}

.layout-item {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 45px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: layoutPop 0.4s ease-out both;
    position: relative;
    margin-bottom: 18px;
}


@keyframes layoutPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.layout-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: layoutPop 0.4s ease-out both;
}

.layout-wrap:nth-child(1) { animation-delay: 0.2s; }
.layout-wrap:nth-child(2) { animation-delay: 0.3s; }
.layout-wrap:nth-child(3) { animation-delay: 0.4s; }
.layout-wrap:nth-child(4) { animation-delay: 0.5s; }
.layout-wrap:nth-child(5) { animation-delay: 0.6s; }
.layout-wrap:nth-child(6) { animation-delay: 0.7s; }
.layout-wrap:nth-child(7) { animation-delay: 0.8s; }

.layout-label {
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    font-size: 7px;
    color: #999;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s;
}

.layout-item:hover .layout-label {
    color: #ff9800;
}

.layout-item.active .layout-label {
    color: #ff9800;
    font-weight: 600;
}

.layout-item:hover {
    border-color: #ff9800;
    transform: scale(1.05);
}

.layout-item.active {
    border-color: #ff9800;
    background: #fff3e0;
}

.l-row {
    height: 4px;
    background: #bdbdbd;
    border-radius: 2px;
}

.l-row.short {
    width: 60%;
}

.l-img {
    height: 14px;
    background: #ccc;
    border-radius: 2px;
}

.l-cols {
    display: flex;
    gap: 3px;
}

.l-cols div {
    flex: 1;
    height: 14px;
    background: #ccc;
    border-radius: 2px;
}

.l-cols.equal div {
    height: 100%;
    min-height: 30px;
}

.l-img.full {
    height: 100%;
    min-height: 30px;
    background: #bbb;
    position: relative;
    overflow: hidden;
}

.l-img.crop {
    height: 100%;
    min-height: 30px;
    background: #bbb;
    position: relative;
    overflow: hidden;
}

.l-img.crop::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
    border: 1.5px dashed rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* WYSIWYG Editor Toolbar */
.editor-toolbar {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tb-btn {
    width: 30px;
    height: 28px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tb-btn:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #2196f3;
    animation: btnBounce 0.3s ease;
}

@keyframes btnBounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.tb-sep {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 4px;
}

.tb-select {
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Kanit", sans-serif;
}

.tb-select:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.tb-select small {
    margin-left: 4px;
    font-size: 9px;
}

/* Slide Navigation Buttons */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    color: #1a3a5c;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
}

.hero:hover .slide-btn {
    opacity: 1;
}

.slide-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

/* Dots Navigation */
.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 2s both;
}

.dot-nav {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.dot-nav.active {
    background: #1a5276;
    transform: scale(1.2);
}

.dot-nav:hover {
    background: #2980b9;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-left {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .hero-title {
        font-size: 48px;
    }
    .feature-card {
        justify-content: center;
    }
    .hero-overlay {
        background: rgba(240, 244, 248, 0.85);
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
    nav {
        display: none;
    }
    .hero {
        padding: 80px 20px 40px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-overlay {
        background: rgba(240, 244, 248, 0.9);
    }
}

/* Floating particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 5%; animation-delay: 2s; width: 8px; height: 8px; }
.particle:nth-child(3) { top: 40%; left: 45%; animation-delay: 4s; width: 4px; height: 4px; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(20px, -30px) rotate(90deg); opacity: 0.6; }
    50% { transform: translate(-10px, -60px) rotate(180deg); opacity: 0.3; }
    75% { transform: translate(30px, -30px) rotate(270deg); opacity: 0.6; }
}

/* ============================================
   TRUSTED BY SECTION
   ============================================ */
.trusted-section {
    padding: 80px 40px 0;
    background: #f8f9fc;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.trusted-top {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.trusted-tag {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.trusted-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1a5276, #2980b9, #6c3483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trusted-subtitle {
    font-size: 15px;
    color: #888;
    margin-bottom: 30px;
}

.trusted-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.btn-primary {
    text-decoration: none;
    padding: 12px 32px;
    background: #1a5276;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #154360;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.btn-outline {
    text-decoration: none;
    padding: 12px 32px;
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #1a5276;
    color: #1a5276;
    transform: translateY(-2px);
}

/* Trusted Showcase - side by side */
.trusted-showcase {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Left: Browser Window */
.trusted-browser {
    width: 65%;
    background: #141f2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: absolute;
    margin-top: 40px;
    z-index: 4;
}

.browser-bar {
    padding: 12px 16px;
    display: flex;
    gap: 7px;
    background: rgba(255,255,255,0.06);
}

.bw-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bw-dot.red { background: #ff5f57; }
.bw-dot.yellow { background: #febc2e; }
.bw-dot.green { background: #28c840; }

.browser-body {
    padding: 28px 32px 36px;
}

.trusted-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    text-align: left;
}

/* Logo Marquee inside browser */
.logo-marquee {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow: hidden !important;
}

.marquee-row {
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
}

.marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    width: max-content !important;
    will-change: transform;
}

.marquee-track.track-left {
    animation: marqueeLeft 22s linear infinite !important;
}

.marquee-track.track-right {
    animation: marqueeRight 26s linear infinite !important;
}

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

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

.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

.partner-logo {
    background: rgba(255,255,255,0.06) !important;
    border-radius: 10px !important;
    padding: 16px 28px !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    cursor: default;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 1px;
    transition: background 0.3s;
    min-height: 58px;
    min-width: 120px !important;
}

a.partner-logo {
    text-decoration: none !important;
}

.partner-logo:hover {
    background: rgba(255,255,255,0.12);
}

.partner-logo small {
    font-size: 8px;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Image logo support: <img> inside .partner-logo */
.partner-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* force white on dark bg; remove for colored logos */
}

.partner-logo.logo-colored img {
    filter: none;  /* use this variant when logo should keep its original colors */
}

.thai-logo {
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    color: #64b5f6;
}

/* Right: Dashboard - floats over the right side of browser */
.trusted-dashboard {
    position: absolute;
    top: -10px;
    right: 0;
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 5;
    margin-right: 50px;
}

.dash-chart-card {
    background: #141f2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-chart-header {
    padding: 14px 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.dash-chart-visual {
    flex: 1;
    padding: 10px 0 0;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-legend {
    display: flex;
    gap: 16px;
    padding: 8px 20px 14px;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    align-items: center;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.dash-bottom-row {
    display: flex;
    gap: 14px;
}

.dash-stat-card {
    flex: 1;
    background: #141f2e;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.dash-stat-label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.dash-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Kanit', sans-serif;
}

.dash-stat-card.highlight {
    background: linear-gradient(135deg, #1a5276, #2980b9);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 250px 40px 80px;
    background: url('/assets/images/bg-number.png') center center / cover no-repeat;
    position: relative;
    margin-top: 250px;
}

.stats-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 60px;
    font-weight: 500;
    line-height: 1;
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #7b6ff0 0%, #a06ee8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-plus {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #7b6ff0 0%, #a06ee8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-item:nth-child(2) .stat-number,
.stat-item:nth-child(2) .stat-plus {
    background: linear-gradient(135deg, #c36dd4 0%, #e06b9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(3) .stat-number,
.stat-item:nth-child(3) .stat-plus {
    background: linear-gradient(135deg, #e07a72 0%, #d4606a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item:nth-child(4) .stat-number,
.stat-item:nth-child(4) .stat-plus {
    background: linear-gradient(135deg, #6f8ff0 0%, #a06ee8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    font-size: 16px;
    color: #888;
    margin-top: 8px;
    font-weight: 400;
}

/* ============================================
   PRODUCTS & SERVICES SECTION
   ============================================ */
.products-section {
    padding: 80px 40px;
    background: #fff;
}

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

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.products-title {
    font-size: 52px;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 6px;
}

.products-subtitle {
    font-size: 15px;
    color: #888;
}

.view-more-btn {
    text-decoration: none;
    padding: 10px 28px;
    border: 2px solid #1a3a5c;
    border-radius: 8px;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-more-btn:hover {
    background: #1a3a5c;
    color: #fff;
}

.products-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.products-left {
    flex: 1;
}

.product-item {
    padding: 20px 24px;
    border-left: 4px solid #e0e0e0;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-left-color: #a06ee8;
}

.product-item.active {
    border-left-color: #7b6ff0;
    background: rgba(123, 111, 240, 0.04);
}

.product-item:nth-child(1).active {
    border-left-color: #7b6ff0;
    background: rgba(123, 111, 240, 0.04);
}

.product-item:nth-child(2).active {
    border-left-color: #c36dd4;
    background: rgba(195, 109, 212, 0.04);
}

.product-item:nth-child(3).active {
    border-left-color: #e07a72;
    background: rgba(224, 122, 114, 0.04);
}

.product-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 6px;
}

.product-item p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 8px;
    display: none;
}

.product-item.active p {
    display: block;
}

.learn-more-link {
    color: #2980b9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: none;
    transition: color 0.3s;
}

.product-item.active .learn-more-link {
    display: inline-block;
}

.learn-more-link:hover {
    color: #1a5276;
}

/* Products Right - Panels */
.products-right {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.products-right .product-panel {
    display: none !important;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}

.products-right .product-panel.active {
    display: block !important;
    visibility: visible;
    position: relative;
    opacity: 1;
    animation: panelFadeIn 0.5s ease-out forwards;
}

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

.product-screenshot {
    position: relative;
}

/* Extra panel styles */
.sw-search-bar {
    height: 32px;
    background: #e8e8e8;
    border-radius: 6px;
    margin-bottom: 14px;
}

.sw-card.tall {
    height: 120px;
}

.sw-content-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sw-chat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.sw-chat-item {
    height: 36px;
    background: #f0f0f0;
    border-radius: 6px;
    transition: all 0.3s;
}

.sw-chat-item.active {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.screenshot-window {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
}

.sw-bar {
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.sw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.sw-body {
    display: flex;
    min-height: 300px;
}

.sw-sidebar {
    width: 180px;
    background: #2c1a4a;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sw-nav-item {
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.sw-nav-item.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #9b59b6;
}

.sw-main {
    flex: 1;
    padding: 20px;
    background: #fafafa;
}

.sw-header-row {
    height: 16px;
    width: 60%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sw-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sw-card {
    height: 80px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Popup Chat Bubbles */
.screenshot-popup {
    position: absolute;
    right: -20px;
    top: 60px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: popupFloat 3s ease-in-out infinite;
    z-index: 2;
}

.screenshot-popup.bottom-popup {
    top: auto;
    bottom: 40px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes popupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.popup-chat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.chat-icon {
    font-size: 14px;
    color: #9b59b6;
}

/* Sparkles */
.sparkle {
    position: absolute;
    font-size: 18px;
    color: #9b59b6;
    animation: sparklePulse 2s ease-in-out infinite;
    opacity: 0.6;
}

.sparkle.s1 { top: 20px; right: 40px; animation-delay: 0s; }
.sparkle.s2 { top: 120px; right: -30px; animation-delay: 0.7s; font-size: 14px; }
.sparkle.s3 { bottom: 80px; right: 60px; animation-delay: 1.4s; font-size: 22px; }

@keyframes sparklePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.2) rotate(180deg); }
}

/* ============================================
   WHY US SECTION
   ============================================ */
.whyus-section {
    padding: 80px 0 80px 40px !important;
    background: url('/assets/images/BGWhyus.png') center center / cover no-repeat !important;
    overflow: hidden !important;
}

.whyus-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 60px !important;
}

/* Left */
.whyus-left {
    flex: 0 0 280px !important;
    padding-top: 20px !important;
}

.whyus-title {
    font-size: 64px !important;
    font-weight: 600 !important;
    color: #1a5276 !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
}

.whyus-desc {
    font-size: 13px !important;
    color: #888 !important;
    line-height: 1.7 !important;
    margin-bottom: 30px !important;
}

.whyus-nav {
    display: flex !important;
    gap: 10px !important;
}

.whyus-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #ccc !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
}

.whyus-btn:hover {
    border-color: #1a5276 !important;
    color: #1a5276 !important;
    background: #f0f7ff !important;
}

/* Right */
.whyus-right {
    flex: 1 !important;
    position: relative !important;
    min-height: 420px !important;
}

/* Image Slider */
.whyus-slider {
    position: relative !important;
    border-radius: 16px 0 0 16px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1) !important;
    background: #e8edf2 !important;
    margin-right: -40px !important;
}

.whyus-slide {
    display: none !important;
    opacity: 0 !important;
}

.whyus-slide.active {
    display: block !important;
    opacity: 1 !important;
    animation: whyFadeIn 0.7s ease-out !important;
}

@keyframes whyFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

.whyus-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Floating Info Cards */
.whyus-info-card {
    position: absolute !important;
    background: #fff !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    z-index: 5 !important;
    opacity: 1 !important;
}

.whyus-info-card.card-top {
    top: 20px !important;
    right: 20px !important;
    width: 300px !important;
    animation: whyCardSlideIn 0.6s ease-out 0.3s forwards !important;
}

.whyus-info-card.card-bottom {
    bottom: 30px !important;
    left: 20px !important;
    right: auto !important;
    width: 220px !important;
    text-align: center !important;
    animation: whyCardPopIn 0.5s ease-out 0.6s forwards !important;
}

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

@keyframes whyCardPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.whyus-info-card h4 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1a3a5c !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.whyus-info-card p {
    font-size: 11px !important;
    color: #888 !important;
    line-height: 1.5 !important;
}

.whyus-link {
    font-size: 11px !important;
    color: #2980b9 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.whyus-link:hover {
    color: #1a5276 !important;
}

.whyus-badge-row {
    margin-bottom: 10px !important;
}

.whyus-badge-img {
    width: 60px !important;
    height: auto !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .whyus-container {
        flex-direction: column !important;
    }
    .whyus-left {
        flex: auto !important;
    }
    .whyus-right {
        min-height: auto !important;
    }
    .whyus-info-card.card-top {
        right: 10px !important;
        width: 250px !important;
    }
}

@media (max-width: 768px) {
    .whyus-info-card {
        display: none !important;
    }
    .whyus-title {
        font-size: 40px !important;
    }
}

/* ============================================
   SHOWCASE SECTION - Airtable style vertical scroll
   ============================================ */
section.showcase-section {
    padding: 80px 100px !important;
    background: #fff !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
}

h2.showcase-heading {
    text-align: center !important;
    font-size: 52px !important;
    font-weight: 600 !important;
    color: #1a5276 !important;
    margin-bottom: 50px !important;
}

div.showcase-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

/* Title Tab */
.sc-title-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.sc-title-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a3a5c !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sc-title-text:hover {
    color: #0d6efd !important;
}

.sc-title-counter {
    font-size: 12px !important;
    color: #999 !important;
    background: #f0f2f5 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
}

.sc-title-nav {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.sc-nav-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #f0f2f5 !important;
    color: #1a3a5c !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.sc-nav-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.sc-nav-btn:hover {
    background: #1a3a5c !important;
    color: #fff !important;
    transform: scale(1.05) !important;
}

.sc-nav-btn:active {
    transform: scale(0.95) !important;
}

/* Stacked Cards */
.sc-stack-container {
    position: relative !important;
    height: 480px !important;
    perspective: 1000px !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.sc-stack-card {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(30px) scale(0.92) !important;
    width: 90% !important;
    max-width: 800px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    opacity: 0.3 !important;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1 !important;
    filter: blur(1px) !important;
}

.sc-stack-card:nth-child(2) {
    transform: translateX(-50%) translateY(20px) scale(0.95) !important;
    opacity: 0.5 !important;
    z-index: 2 !important;
}

.sc-stack-card:nth-child(3) {
    transform: translateX(-50%) translateY(40px) scale(0.89) !important;
    opacity: 0.2 !important;
    z-index: 0 !important;
}

/* Active card */
.sc-stack-card.active {
    transform: translateX(-50%) translateY(0) scale(1) !important;
    opacity: 1 !important;
    z-index: 10 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    filter: blur(0) !important;
}

/* Previous card - slides down behind */
.sc-stack-card.prev {
    transform: translateX(-50%) translateY(40px) scale(0.88) !important;
    opacity: 0.15 !important;
    z-index: 0 !important;
    filter: blur(2px) !important;
}

.sc-stack-card img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Responsive - scoped to showcase only */
@media (max-width: 1024px) {
    section.showcase-section {
        padding: 60px 40px !important;
    }
    div.showcase-wrapper {
        padding: 30px !important;
    }
    .sc-stack-container {
        height: 420px !important;
    }
}

@media (max-width: 768px) {
    section.showcase-section {
        padding: 50px 20px !important;
    }
    h2.showcase-heading {
        font-size: 40px !important;
        margin-bottom: 30px !important;
    }
    div.showcase-wrapper {
        padding: 20px !important;
        border-radius: 18px !important;
    }
    .sc-title-tab {
        padding: 12px 16px !important;
        max-width: 100% !important;
    }
    .sc-title-text {
        font-size: 13px !important;
    }
    .sc-stack-container {
        height: 360px !important;
    }
    .sc-stack-card {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    section.showcase-section {
        padding: 40px 14px !important;
    }
    h2.showcase-heading {
        font-size: 32px !important;
        margin-bottom: 24px !important;
    }
    div.showcase-wrapper {
        padding: 14px !important;
        border-radius: 16px !important;
    }
    .sc-title-tab {
        padding: 10px 14px !important;
    }
    .sc-title-text {
        font-size: 12px !important;
    }
    .sc-title-counter {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
    .sc-stack-container {
        height: 280px !important;
    }
}

/* ============================================
   SEAMLESS SECTION
   ============================================ */
.seamless-section {
    padding: 100px 40px !important;
    background: linear-gradient(180deg, #fff 0%, #f5f7fb 100%) !important;
    overflow: hidden !important;
}

.seamless-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 60px !important;
}

/* Left */
.seamless-left {
    flex: 1 !important;
}

.seamless-tag {
    display: inline-block !important;
    padding: 6px 18px !important;
    border: 1.5px solid #1a3a5c !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #1a3a5c !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 24px !important;
}

.seamless-title {
    font-size: 52px !important;
    font-weight: 600 !important;
    color: #1a3a5c !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
}

.gradient-text {
    background: linear-gradient(135deg, #c4a7e7, #b4c9e8, #a5d8e5) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-style: italic !important;
}

.seamless-desc {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.7 !important;
    margin-bottom: 32px !important;
    max-width: 500px !important;
}

.seamless-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin-bottom: 30px !important;
}

.seamless-btn-primary {
    padding: 14px 36px !important;
    background: #1a3a5c !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.seamless-btn-primary:hover {
    background: #0f2438 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(26,58,92,0.3) !important;
}

.seamless-btn-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1a3a5c !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: color 0.3s !important;
}

.seamless-btn-text:hover {
    color: #2980b9 !important;
}

.seamless-trust {
    display: flex !important;
    gap: 30px !important;
    font-size: 13px !important;
    color: #888 !important;
}

.trust-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Right */
.seamless-right {
    flex: 1 !important;
    position: relative !important;
    min-height: 500px !important;
}

.seamless-image {
    border-radius: 16px !important;
    overflow: hidden !important;
    animation: seamlessFloat 4s ease-in-out infinite !important;
}

.seamless-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

@keyframes seamlessFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* AI Badge - Top Right */
.seamless-ai-badge {
    position: absolute !important;
    top: 20px !important;
    right: -20px !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    box-shadow: 0 10px 30px rgba(37,99,235,0.3) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    z-index: 2 !important;
    animation: aiBadgePulse 2.5s ease-in-out infinite !important;
}

@keyframes aiBadgePulse {
    0%, 100% { transform: translateY(0) rotate(0deg); box-shadow: 0 10px 30px rgba(37,99,235,0.3); }
    50% { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 15px 40px rgba(37,99,235,0.5); }
}

.seamless-ai-badge svg {
    animation: aiSparkle 2s ease-in-out infinite !important;
}

@keyframes aiSparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* Stat Card - Bottom */
.seamless-stat-card {
    position: absolute !important;
    bottom: 30px !important;
    background: #fff !important;
    padding: 22px 28px !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    min-width: 280px !important;
    z-index: 2 !important;
    animation: statCardSlideIn 1s ease-out 0.3s both, statCardFloat 5s ease-in-out 1.3s infinite !important;
}

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

@keyframes statCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.seamless-stat-card h3 {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #1a3a5c !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
}

.seamless-stat-card .percent {
    font-size: 24px !important;
    color: #1a3a5c !important;
}

.seamless-stat-card p {
    font-size: 13px !important;
    color: #777 !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
}

.stat-bar {
    width: 100% !important;
    height: 3px !important;
    background: #e0e0e0 !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    position: relative !important;
}

.stat-bar::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    background: linear-gradient(90deg, #10b981, #22c55e) !important;
    border-radius: 2px !important;
    animation: statBarGrow 2s ease-out 1s forwards !important;
    width: 0 !important;
}

@keyframes statBarGrow {
    from { width: 0; }
    to { width: 99.9%; }
}

/* Responsive */
@media (max-width: 1024px) {
    .seamless-container {
        flex-direction: column !important;
    }
    .seamless-title {
        font-size: 36px !important;
    }
    .seamless-ai-badge, .seamless-stat-card {
        right: 20px !important;
    }
}

@media (max-width: 768px) {
    .seamless-ai-badge, .seamless-stat-card {
        position: static !important;
        margin-top: 20px !important;
    }
}

/* ============================================
   RESPONSIVE - NEW SECTIONS
   ============================================ */
@media (max-width: 1024px) {
    /* Trusted section: put browser + dashboard into normal flow so they stack cleanly */
    .trusted-showcase {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .trusted-browser {
        position: static;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
    .trusted-dashboard {
        position: static;
        width: 100%;
        top: auto;
        right: auto;
        margin-right: 0;
    }
    /* Showcase now has natural height — reduce the huge desktop compensation */
    .stats-section {
        padding-top: 100px;
        margin-top: 60px;
    }
    .products-content {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 0;
    }
    /* Reduce reserved panel height — stacked panel now shows its natural height */
    .products-right {
        min-height: 0;
    }
    .products-section {
        padding: 60px 40px 16px;
    }
    .whyus-section {
        padding: 20px 0 60px 40px !important;
    }
    .stats-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .whyus-content {
        flex-direction: column;
    }
    .whyus-cards-left,
    .whyus-cards-right {
        flex: auto;
        flex-direction: row;
    }
    .whyus-center {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .trusted-title {
        font-size: 28px;
    }
    .trusted-section {
        padding: 60px 20px 40px;
    }
    .stats-section {
        padding: 60px 20px;
        margin-top: 40px;
    }
    .stat-number {
        font-size: 48px;
    }
    .products-section {
        padding: 40px 20px 8px;
    }
    .products-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    .whyus-section {
        padding: 16px 20px 40px !important;
    }
    .screenshot-popup {
        display: none;
    }
    .sparkle {
        display: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #eef2f7;
    color: #1a3a5c;
    padding: 60px 40px 24px;
    font-family: "Kanit", sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d9dfe8;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 110px;
    height: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5a73;
    margin-bottom: 22px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #dde4ed;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.footer-social:hover {
    background: #1a3a5c;
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 22px;
}

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

.footer-links a {
    text-decoration: none;
    color: #4a5a73;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a3a5c;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4a5a73;
    line-height: 1.6;
}

.footer-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #dde4ed;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.footer-address-link {
    color: #4a5a73;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-address-link:hover {
    color: #1a3a5c;
}

.footer-phones {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.footer-phone-sep {
    color: #b0bac8;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7a90;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 40px 20px 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 28px;
    }
    .footer-tagline {
        max-width: 100%;
    }
}

/* ============================================
   CMS WINDOW ANIMATION (Panel 1) — GovWeb centered graphic with glow + rings
   ============================================ */
.cms-window {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    /* background: radial-gradient(circle at 50% 45%, #eaf2ff 0%, #f7faff 55%, #ffffff 100%); */
    border-radius: 28px;
    /* overflow: hidden; */
    font-family: "Kanit", sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 24px 60px rgba(30, 40, 70, 0.18); */
    isolation: isolate;
}

.cms-window-img {
    position: relative;
    z-index: 3;
    width: 100%;
    height: auto;
    display: block;
    animation: cmsGovFloat 6s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 12px 28px rgba(0, 73, 125, 0.18));
}

@keyframes cmsGovFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50%      { transform: translateY(-10px) rotate(1.5deg) scale(1.02); }
}

/* Soft glow blobs behind the graphic */
.cms-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}

.cms-glow.glow-1 {
    width: 55%;
    height: 55%;
    top: 10%;
    left: 8%;
    background: radial-gradient(circle, #6aa9ff 0%, transparent 70%);
    animation: cmsGlowDrift 9s ease-in-out infinite;
}

.cms-glow.glow-2 {
    width: 50%;
    height: 50%;
    bottom: 8%;
    right: 6%;
    background: radial-gradient(circle, #a77bff 0%, transparent 70%);
    animation: cmsGlowDrift 11s ease-in-out infinite reverse;
}

@keyframes cmsGlowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50%      { transform: translate(6%, -4%) scale(1.08); opacity: 0.75; }
}

/* Pulsing concentric rings */
.cms-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    border: 2px solid rgba(0, 73, 125, 0.25);
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.cms-ring-1 { animation: cmsRingPulse 3.6s ease-out infinite; }
.cms-ring-2 { animation: cmsRingPulse 3.6s ease-out infinite; animation-delay: 1.2s; border-color: rgba(108, 52, 131, 0.22); }
.cms-ring-3 { animation: cmsRingPulse 3.6s ease-out infinite; animation-delay: 2.4s; border-color: rgba(0, 108, 70, 0.20); }

@keyframes cmsRingPulse {
    0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(0.55); }
    70%  { opacity: 0.2; transform: translate(-50%, -50%) scale(1.7); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.1); }
}

.cms-window:hover .cms-window-img,
.cms-window:hover .cms-glow,
.cms-window:hover .cms-ring,
.cms-window:hover .cms-icon {
    animation-play-state: paused;
}

/* Scattered feature icons orbiting the center graphic */
.cms-icons {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.cms-icon {
    position: absolute;
    width: 110px;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(30, 40, 70, 0.18));
    opacity: 0;
    animation:
        cmsIconEnter 0.8s cubic-bezier(0.34, 1.3, 0.64, 1) forwards,
        cmsIconBob 5.5s ease-in-out infinite;
}

/* Scatter positions around the center */
.cms-icon-1 { top: 6%;    left: 4%;   --enter-x: -30px; --enter-y: -30px; animation-delay: 0.1s,  0.9s; }  /* Access: top-left */
.cms-icon-2 { top: 38%;   right: 3%;  --enter-x:  30px; --enter-y:   0;   animation-delay: 0.25s, 1.2s; animation-name: cmsIconEnter, cmsIconBobAlt; }  /* Data: middle-right (moved down to avoid popup) */
.cms-icon-3 { bottom: 8%; left: 6%;   --enter-x: -30px; --enter-y:  30px; animation-delay: 0.4s,  1.5s; animation-name: cmsIconEnter, cmsIconBobAlt; }  /* Engagement: bottom-left */
.cms-icon-4 { bottom: 6%; right: 4%;  --enter-x:  30px; --enter-y:  30px; animation-delay: 0.55s, 1.8s; }  /* Security: bottom-right */

@keyframes cmsIconEnter {
    0%   { opacity: 0; transform: translate(var(--enter-x, 0), var(--enter-y, 0)) scale(0.7); }
    60%  { opacity: 1; transform: translate(0, 0) scale(1.08); }
    100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes cmsIconBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes cmsIconBobAlt {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(10px) rotate(2deg); }
}

@media (max-width: 768px) {
    .cms-icon {
        width: 78px;
    }
}

@media (max-width: 480px) {
    .cms-icon {
        width: 62px;
    }
}

.cms-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid #eef0f5;
    background: #fff;
}

.cms-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #b8aee0;
    padding: 10px 18px 10px 14px;
    border-radius: 0 12px 12px 0;
    color: #fff;
    min-width: 210px;
}

.cms-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e6c27a, #a17a2b);
    flex-shrink: 0;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.15);
}

.cms-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.cms-brand-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.cms-brand-sub {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.92;
}

.cms-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e78a6f;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    margin-right: 16px;
}

.cms-user-caret {
    font-size: 10px;
}

.cms-searchbar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 14px 16px;
    background: #fff;
}

.cms-search-field {
    flex: 0 1 200px;
    font-size: 12px;
    color: #8a94a6;
    padding: 9px 14px;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cms-caret {
    font-size: 10px;
    color: #8a94a6;
    margin-left: 8px;
}

.cms-list-viewport {
    height: 360px;
    overflow: hidden;
    position: relative;
    background: #fff;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.cms-list-track {
    display: flex;
    flex-direction: column;
    animation: cmsScroll 22s linear infinite;
}

.cms-window:hover .cms-list-track {
    animation-play-state: paused;
}

@keyframes cmsScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.cms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #eef0f5;
    background: #fff;
    gap: 14px;
    flex-shrink: 0;
}

.cms-row:nth-child(even) {
    background: #f7f8fb;
}

.cms-row-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-row-btn {
    flex-shrink: 0;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-family: "Kanit", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.cms-row-btn:hover {
    background: #43a047;
}

@media (max-width: 600px) {
    .cms-list-viewport {
        height: 280px;
    }
    .cms-searchbar {
        flex-direction: column;
    }
    .cms-search-field {
        flex: 1;
    }
    .cms-row-title {
        font-size: 11px;
    }
    .cms-row-btn {
        font-size: 10px;
        padding: 6px 10px;
    }
    .cms-brand {
        min-width: 160px;
        padding: 8px 14px 8px 10px;
    }
}

/* ============================================
   PORTAL FRAME (Panel 0 – animated SVG)
   ============================================ */
.portal-frame {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(30, 40, 70, 0.18);
    overflow: hidden;
    position: relative;
}

.portal-frame-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.portal-frame-img {
    display: block;
    width: 100%;
    height: auto;
    animation: portalBreathe 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes portalBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

/* Animated pulse spotlights highlighting module icons */
.portal-spot {
    position: absolute;
    width: 12%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(71, 102, 168, 0.28) 0%, rgba(71, 102, 168, 0) 65%);
    opacity: 0;
    transform: scale(0.6);
    animation: portalSpotPulse 7s ease-in-out infinite;
}

.portal-spot.spot-1 { left: 26%;  top: 22%; animation-delay: 0s; }
.portal-spot.spot-2 { left: 52%;  top: 30%; animation-delay: 1.1s; }
.portal-spot.spot-3 { left: 78%;  top: 24%; animation-delay: 2.2s; }
.portal-spot.spot-4 { left: 30%;  top: 54%; animation-delay: 3.3s; }
.portal-spot.spot-5 { left: 56%;  top: 62%; animation-delay: 4.4s; background: radial-gradient(circle, rgba(99, 160, 232, 0.36) 0%, rgba(99, 160, 232, 0) 65%); }
.portal-spot.spot-6 { left: 74%;  top: 70%; animation-delay: 5.5s; }

@keyframes portalSpotPulse {
    0% { opacity: 0; transform: scale(0.6); }
    15% { opacity: 1; transform: scale(1); }
    30% { opacity: 0.7; transform: scale(1.15); }
    50% { opacity: 0; transform: scale(1.4); }
    100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 700px) {
    .portal-spot {
        width: 16%;
    }
}

/* ============================================
   CMS DASHBOARD (Panel 0 – SmartCMS)
   ============================================ */
.cms-dashboard {
    max-width: 720px;
}

.cms-dashboard .cms-topbar {
    padding: 0;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eef0f5;
}

.cms-menu-toggle {
    background: #e6e6e6;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-portal-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.cms-portal-title strong {
    font-weight: 600;
    margin-left: 2px;
}

.cms-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 0;
}

.cms-icon-btn {
    background: transparent;
    border: 1px solid #e4e6eb;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-dashboard .cms-user {
    margin-right: 0;
}

.cms-body {
    display: flex;
    height: 380px;
}

.cms-sidebar {
    width: 150px;
    background: #fff;
    border-right: 1px solid #eef0f5;
    overflow: hidden;
    flex-shrink: 0;
}

.cms-side-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    font-size: 11.5px;
    color: #2a3347;
}

.cms-side-menu li {
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cms-side-menu li:hover {
    background: #f5f7fb;
}

.cms-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    font-size: 12px;
    color: #4a5568;
}

.cms-main-area {
    flex: 1;
    background: #f7f8fb;
    overflow: hidden;
    position: relative;
}

.cms-grid-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}

.cms-grid-track {
    display: flex;
    flex-direction: column;
    animation: cmsGridScroll 28s linear infinite;
    padding: 12px 16px;
    gap: 12px;
}

.cms-window:hover .cms-grid-track {
    animation-play-state: paused;
}

@keyframes cmsGridScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.cms-mod-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

.cms-mod {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(30, 40, 70, 0.04);
    transition: background 0.2s, box-shadow 0.2s;
}

.cms-mod:hover {
    background: #f0f4ff;
    box-shadow: 0 3px 10px rgba(30, 40, 70, 0.08);
}

.cms-mod.active {
    background: #eaf1fe;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.cms-mod-ic {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf0fb;
    color: #4766a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cms-mod-tx {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.cms-mod-tx strong {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a2339;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-mod-tx small {
    font-size: 9.5px;
    color: #7a8499;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 700px) {
    .cms-dashboard .cms-topbar {
        grid-template-columns: auto 1fr auto;
    }
    .cms-menu-toggle {
        display: none;
    }
    .cms-portal-title {
        font-size: 12px;
    }
    .cms-sidebar {
        display: none;
    }
    .cms-mod-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .cms-body {
        height: 320px;
    }
}

/* ============================================
   CENTER ANIMATION (Panel 2)
   ============================================ */
.center-anim {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 600 / 550;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
}

.center-anim-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: centerAnimFloat 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes centerAnimFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.center-anim-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(0, 73, 125, 0.25);
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.center-anim .ring-1 {
    animation: centerAnimPulse 3.6s ease-out infinite;
}

.center-anim .ring-2 {
    animation: centerAnimPulse 3.6s ease-out infinite;
    animation-delay: 1.2s;
    border-color: rgba(0, 108, 70, 0.22);
}

.center-anim .ring-3 {
    animation: centerAnimPulse 3.6s ease-out infinite;
    animation-delay: 2.4s;
    border-color: rgba(0, 73, 125, 0.18);
}

@keyframes centerAnimPulse {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.55); }
    70% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

@media (max-width: 600px) {
    .center-anim-ring {
        width: 180px;
        height: 180px;
    }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
section.portfolio-section {
    padding: 80px 100px !important;
    background: #fff url('../images/BG-port.png') center center / cover no-repeat !important;
    text-align: center !important;
}

h2.portfolio-heading {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: #0d3b66 !important;
    letter-spacing: 1px !important;
    margin: 0 0 56px 0 !important;
    text-transform: uppercase !important;
}

.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
}

.portfolio-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    background: #fff !important;
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-align: center !important;
    width: 100% !important;
}

.portfolio-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14) !important;
}

.portfolio-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background: #f5f7fb !important;
    border-radius: 18px !important;
}

.portfolio-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.04) !important;
}

.portfolio-label {
    display: none !important;
}

.portfolio-actions {
    margin-top: 48px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.portfolio-load-more {
    background: #0d3b66 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(13, 59, 102, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    font-family: inherit !important;
}

.portfolio-load-more:hover {
    background: #0a2d4f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(13, 59, 102, 0.32) !important;
}

.portfolio-load-more:active {
    transform: translateY(0) !important;
}

.portfolio-load-more.is-disabled,
.portfolio-load-more:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.portfolio-show-less {
    background: #fff !important;
    color: #0d3b66 !important;
    border: 2px solid #0d3b66 !important;
    border-radius: 10px !important;
    padding: 14px 46px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    font-family: inherit !important;
}

.portfolio-show-less:hover {
    background: #0d3b66 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px rgba(13, 59, 102, 0.25) !important;
}

.portfolio-show-less:active {
    transform: translateY(0) !important;
}

.portfolio-load-more.is-hidden,
.portfolio-show-less.is-hidden {
    display: none !important;
}

.portfolio-card.is-hidden {
    display: none !important;
}

.portfolio-card.is-revealing {
    animation: portfolioReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

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

@media (max-width: 1024px) {
    section.portfolio-section {
        padding: 60px 40px !important;
    }
    h2.portfolio-heading {
        font-size: 44px !important;
        margin-bottom: 40px !important;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 640px) {
    section.portfolio-section {
        padding: 48px 18px !important;
    }
    h2.portfolio-heading {
        font-size: 32px !important;
        margin-bottom: 28px !important;
    }
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 420px !important;
    }
    .portfolio-label {
        font-size: 18px !important;
        margin-top: 14px !important;
    }
    .portfolio-load-more {
        padding: 14px 36px !important;
        font-size: 15px !important;
    }
    .portfolio-actions {
        margin-top: 32px !important;
    }
}

/* ============================================
   PORTFOLIO MODAL
   ============================================ */
.portfolio-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease !important;
}

.portfolio-modal.open {
    display: block !important;
    opacity: 1 !important;
}

.portfolio-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    cursor: pointer !important;
}

.portfolio-modal-dialog {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 24px 32px !important;
    box-shadow: none !important;
    animation: pmDialogIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

@keyframes pmDialogIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.portfolio-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0d3b66 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    z-index: 5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-modal-close svg {
    width: 22px !important;
    height: 22px !important;
}

.portfolio-modal-close:hover {
    background: #fff !important;
    color: #000 !important;
    transform: scale(1.05) !important;
}

.portfolio-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 76px 16px 4px !important;
    gap: 16px !important;
    flex-shrink: 0 !important;
}

.portfolio-modal-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.portfolio-modal-counter {
    font-size: 13px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.portfolio-modal-stage {
    position: relative !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

.portfolio-modal-track {
    position: relative !important;
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.portfolio-modal-slide {
    display: none !important;
    width: 100% !important;
}

.portfolio-modal-slide.active {
    display: block !important;
}

.portfolio-modal-slide img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: unset !important;
    display: block !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

.portfolio-modal-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0d3b66 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 10 !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.portfolio-modal-nav svg {
    width: 24px !important;
    height: 24px !important;
}

.portfolio-modal-nav.prev { left: 40px !important; }
.portfolio-modal-nav.next { right: 40px !important; }

.portfolio-modal-nav:hover {
    background: #0d3b66 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.portfolio-modal-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding-top: 18px !important;
    flex-shrink: 0 !important;
}

.pm-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #d1d5db !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.pm-dot.active {
    background: #0d3b66 !important;
    transform: scale(1.25) !important;
}

.pm-dot:hover { background: #1a3a5c !important; }

@media (max-width: 768px) {
    .portfolio-modal { padding: 10px !important; }
    .portfolio-modal-dialog {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    .portfolio-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .portfolio-modal-header { padding: 0 56px 12px 0 !important; }
    .portfolio-modal-title { font-size: 18px !important; }
    .portfolio-modal-counter { font-size: 12px !important; padding: 4px 10px !important; }
    .portfolio-modal-nav { width: 40px !important; height: 40px !important; }
    .portfolio-modal-nav.prev { left: 14px !important; }
    .portfolio-modal-nav.next { right: 14px !important; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    padding: 140px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: "Kanit", sans-serif;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* --- Left info card --- */
.contact-info-card {
    background: #0a2540;
    color: #ffffff;
    border-radius: 24px;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #ffffff;
}

.contact-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    margin: 22px 0 16px;
    letter-spacing: -0.01em;
}

.contact-lead {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 44px;
    max-width: 480px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 44px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.contact-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-top: 2px;
}

.contact-item__icon svg {
    width: 32px;
    height: 32px;
}

.contact-item__text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.contact-item__text p {
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.contact-item__text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item__text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-sep {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.6);
}

/* Find Us */
.contact-findus {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    align-self: flex-start;
    margin-top: auto;
    padding: 4px 8px 4px 0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.contact-findus:hover {
    transform: translateX(2px);
}

.contact-findus__thumb {
    width: 56px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf3;
    flex-shrink: 0;
    display: block;
}

.contact-findus__thumb svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-findus__label {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
}

.contact-findus__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.contact-findus__arrow svg {
    width: 18px;
    height: 18px;
}

/* --- Right column --- */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-photo {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 380px;
    background: #d9dfe8;
}

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

.contact-photo--placeholder {
    background:
        linear-gradient(135deg, #e6ecf3 0%, #ccd6e2 100%);
    position: relative;
}

.contact-photo--placeholder::after {
    content: "Office photo";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8aa3;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.contact-social-card {
    background: #0a2540;
    color: #ffffff;
    border-radius: 24px;
    padding: 32px 36px;
}

.contact-social-card__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.contact-social-card__list {
    display: flex;
    gap: 14px;
}

.contact-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2d6da8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-social-btn:hover {
    background: #3a85c9;
    transform: translateY(-2px);
}

.contact-social-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contact-page {
        padding: 120px 24px 64px;
    }
    .contact-info-card {
        padding: 44px 40px;
    }
    .contact-title {
        font-size: 44px;
    }
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-photo {
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    .contact-page {
        padding: 100px 16px 48px;
    }
    .contact-info-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    .contact-title {
        font-size: 36px;
    }
    .contact-lead {
        font-size: 15px;
        margin-bottom: 32px;
    }
    .contact-list {
        gap: 22px;
        margin-bottom: 32px;
    }
    .contact-item {
        gap: 16px;
    }
    .contact-item__icon svg {
        width: 28px;
        height: 28px;
    }
    .contact-item__text h3 {
        font-size: 18px;
    }
    .contact-item__text p {
        font-size: 15px;
    }
    .contact-social-card {
        padding: 24px 24px;
        border-radius: 20px;
    }
    .contact-photo {
        border-radius: 20px;
        min-height: 220px;
    }
}
