:root {
    /* Color Palette: Premium Dark Mode - Pure Black & Elegant Navy */
    --color-primary: #F8FAFC;
    /* Off-White for High Contrast Headings */
    --color-secondary: #94A3B8;
    /* Slate-Gray for Eye-Comfortable Body Text */
    --color-accent: #2563EB;
    /* Deep Blue for Highlights */
    --color-accent-hover: #3B82F6;
    --color-bg-white: #000000;
    /* Main Background: Pure Black */
    --color-bg-light: #0F172A;
    /* Section Separators: Deep Navy */
    --color-text-dark: #F1F5F9;
    --color-text-muted: #64748B;

    /* Typography */
    --font-thai: 'Prompt', 'Kanit', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --box-shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.7);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-thai);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.7;
    /* Increased for premium readability */
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

.number,
.en,
.stat-number,
.contact-text a {
    font-family: var(--font-en);
    letter-spacing: -0.02em;
}

.btn {
    font-family: var(--font-thai);
}

h1,
h2,
h3,
h4,
.text-en,
.number {
    font-weight: 600;
}

h1,
h2,
h3,
h4 {
    color: var(--color-primary);
}

p {
    color: var(--color-secondary);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.bg-light {
    position: relative;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.04), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.04), transparent 50%);
    animation: slowSpin 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.bg-light>.container {
    position: relative;
    z-index: 1;
}

@keyframes slowSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-lg {
    max-width: 700px;
}

.mt-5 {
    margin-top: 50px;
}

.mt-1 {
    margin-top: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Share the Top Bar Swoop Effect across all standard buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: none;
    color: white;
}

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

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

.btn-outline-primary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Typography Badges */
.section-badge {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    font-size: 2.8rem;
    font-weight: 700;
    border-radius: 30px;
    margin: 0 auto 24px;
    /* Centered the badge */
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.section-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.6);
}

.section-title {
    font-family: var(--font-thai);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
    /* Balanced line-height */
    letter-spacing: -0.02em;
    color: white;
}

.section-desc {
    font-size: 1.25rem;
    /* Slightly larger description */
    margin-bottom: 48px;
    color: var(--color-secondary);
    font-family: var(--font-thai);
    font-weight: 400;
    line-height: 1.8;
    /* Generous line spacing for readability */
}

/* ---  Navigation (Glassmorphism) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 16px 0;
    background: #FFFFFF;
    /* Solid white background by default */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    padding: 12px 0;
    background: #FFFFFF;
    /* Maintain solid white when scrolled */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    /* Slightly stronger shadow for better contrast */
}

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

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

.logo img {
    height: 64px;
    /* Increased from 48px for a larger Desktop presence */
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.6rem;
    /* Increased from 1.25rem */
    font-weight: 700;
    color: #1E293B;
    transition: var(--transition-smooth);
}

/* Removed previous scrolled logic for logo text as background is now always white */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: #334155;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

/* Scrolled/Default logic consolidated for white background */

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links .btn-nav-contact {
    background-color: #E62E2D;
    color: white !important;
    border: 2px solid transparent;
    box-shadow: none;
    font-weight: 600;
    padding: 10px 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.nav-links .btn-nav-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.nav-links .btn-nav-contact:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.nav-links .btn-nav-contact:hover::after {
    left: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1E293B;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #000000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    /* Slightly wider for better centered balance */
    margin: 0 auto;
    text-align: center;
    padding-top: 80px;
}

.hero-title {
    font-family: var(--font-thai);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
    animation: fadeUp 1s ease-out;
    letter-spacing: -0.03em;
}

.hero-title .highlight {
    color: var(--color-bg-white);
    background: linear-gradient(120deg, #60A5FA, #3B82F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 1s ease-out 0.4s both;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Fade In Scroll Effect */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- About Us Section --- */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.about-text {
    max-width: 900px;
    /* Optimal reading width */
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns for features even when centered */
    gap: 40px;
    margin-top: 20px;
    text-align: left;
    /* Keep feature text left-aligned for clarity */
}

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

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* Changed from center to align headings horizontally */
}

.feature-icon {
    width: 66px;
    height: 66px;
    min-width: 66px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #60A5FA;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--color-accent);
    color: white;
}

.feature-item h3 {
    font-size: 1.25rem !important;
    /* 犧･犹・ｸｭ犧≒ｸもｸ吭ｸｲ犧扉ｹ・ｸｫ犹霞ｹ犧伶ｹ謂ｸｲ犧≒ｸｱ犧吭ｸ伶ｸｱ犹霞ｸ・Desktop 犹≒ｸ･犧ｰ Mobile */
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 6px;
    /* 犧扉ｸｱ犧吭ｸ･犧・ｸ｡犧ｲ犧吭ｸｴ犧扉ｸ吭ｸｶ犧・ｹ・ｸｫ犹霞ｸ樅ｸｭ犧扉ｸｵ犧≒ｸｱ犧壟ｸもｸｭ犧壟ｸ壟ｸ吭ｸもｸｭ犧・ｹ・ｸｭ犧・ｸｭ犧・*/
    line-height: 1.4;
}

.feature-item p {
    font-size: 0.95rem !important;
    /* 犧･犹・ｸｭ犧≒ｸもｸ吭ｸｲ犧・p 犹・ｸｫ犹霞ｹ犧伶ｹ謂ｸｲ犧≒ｸｱ犧・*/
    line-height: 1.6;
}

.about-images {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    height: auto;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-img,
.sub-img {
    position: static !important;
    transform: none !important;
}

.about-images:hover .sub-img {
    transform: translateY(-5px) scale(1.05);
}


/* --- Products Section --- */
.products {
    background: linear-gradient(180deg, #000000 0%, #0f172a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    /* Further reduced from 60px to 30px as requested by user */
    padding-bottom: 80px;
}

.products::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.product-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Locked to 3 columns on desktop for premium balance */
    gap: 30px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.product-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
    pointer-events: none;
}

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

.product-card:hover::after {
    left: 150%;
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: var(--font-thai);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
}

.product-info p {
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
    font-family: var(--font-thai);
    line-height: 1.6;
    color: var(--color-secondary);
    word-break: keep-all;
}

/* --- Footer & Contact --- */
.footer {
    background: linear-gradient(180deg, #000000 0%, #080c14 100%);
    color: var(--color-bg-light);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separation line */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 80px;
    margin-bottom: 80px;
}

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

.footer-logo-wrapper {
    display: inline-block;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.footer-logo-wrapper:hover {
    opacity: 0.8;
}

.footer-logo-wrapper img {
    height: 64px;
    /* 犹犧伶ｹ謂ｸｲ犧≒ｸｱ犧・Top Bar 犹犧巵ｹ癌ｸｰ犹・(64px) */
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.brand-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    /* 犧巵ｸ｣犧ｱ犧壟ｸもｸ吭ｸｲ犧扉ｸ≒ｸ･犧ｱ犧壟ｸ｡犧ｲ犹・ｸｫ犹霞ｸｭ犹謂ｸｲ犧吭ｸ・ｹ謂ｸｲ犧｢犹≒ｸ･犧ｰ犧樅ｸｭ犧扉ｸｵ犧≒ｸｱ犧壟ｸ癌ｹ謂ｸｭ犧・ｸｧ犹謂ｸｲ犧・*/
    line-height: 1.8;
    /* 犹犧樅ｸｴ犹謂ｸ｡犧癌ｹ謂ｸｭ犧・ｹ・ｸ游ｸ壟ｸ｣犧｣犧伶ｸｱ犧扉ｹ・ｸｫ犹霞ｹもｸ巵ｸ｣犹謂ｸ・ｸｪ犧壟ｸｲ犧｢犧歩ｸｲ */
    margin-bottom: 0px;
}

.footer-contact h3,
.footer-map h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px; /* Reduced from 30px to align the list with the left column text */
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    width: max-content;
}

.footer-contact h3::after,
.footer-map h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #E62E2D;
    border-radius: 2px;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    /* 犧謂ｸｱ犧扉ｹ・ｸｫ犹霞ｸ癌ｸｴ犧扉ｸ金ｹ霞ｸｲ犧｢ 犹犧樅ｸｷ犹謂ｸｭ犹・ｸｫ犹霞ｹ犧ｪ犹霞ｸ吭ｸもｸｭ犧壟ｸ歩ｸ｣犧・ｸ≒ｸｱ犧壟ｸもｹ霞ｸｭ犧・ｸｧ犧ｲ犧｡犧扉ｹ霞ｸｲ犧吭ｸ壟ｸ吭ｸｭ犧｢犹謂ｸｲ犧・ｹ犧巵ｹ・ｸ吭ｸ｣犧ｰ犹犧壟ｸｵ犧｢犧・(Grid Alignment) */
    gap: 18px;
    /* 犧･犧扉ｸ｣犧ｰ犧｢犧ｰ犧ｫ犹謂ｸｲ犧・ｸ･犧・ｹ犧･犹・ｸ≒ｸ吭ｹ霞ｸｭ犧｢犹・ｸｫ犹霞ｸ≒ｸ･犧ｸ犹謂ｸ｡犹・ｸｭ犧・ｸｭ犧吭ｹ犧≒ｸｲ犧ｰ犧≒ｸ･犧ｸ犹謂ｸ｡犧≒ｸｱ犧吭ｸｪ犧ｧ犧｢犧・ｸｲ犧｡ */
    margin-top: 35px;
    /* 犧もｸ｢犧ｱ犧壟ｸ･犧・ｸ｡犧ｲ 5px 犧歩ｸｲ犧｡犧・ｸｧ犧ｲ犧｡犧歩ｹ霞ｸｭ犧・ｸ≒ｸｲ犧｣犹・ｸｫ犹霞ｸ≒ｸｶ犹謂ｸ・ｸ≒ｸ･犧ｲ犧・ｸ歩ｸ｣犧・ｹ≒ｸ≒ｸ吭ｹ犧巵ｹ癌ｸｰ犧伶ｸｵ犹謂ｸｪ犧ｸ犧・*/
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    /* 犹犧ｭ犧ｲ犹犧ｪ犹霞ｸ吭ｸもｸｭ犧壟ｸｭ犧ｭ犧≒ｸ伶ｸｱ犹霞ｸ・ｸｫ犧｡犧・*/
    overflow: hidden;
    /* 犧壟ｸｱ犧・ｸ・ｸｱ犧壟ｹ・ｸｫ犹霞ｸ｣犧ｹ犧巵ｸ伶ｸｵ犹謂ｸもｸ｢犧ｲ犧｢犹犧歩ｹ・ｸ｡犧≒ｸ｣犧ｭ犧壟ｸ籾ｸｹ犧≒ｸ･犧壟ｹ犧ｫ犧･犧ｵ犹謂ｸ｢犧｡犧｡犧ｸ犧｡犧歩ｸｲ犧｡犧≒ｸ｣犧ｭ犧壟ｸ吭ｸｭ犧≒ｹ犧巵ｹ癌ｸｰ犹・*/
}

/* Brand Specific Hovers (Shadow only, no borders) */
.social-icon[data-title="KEX Express"]:hover {
    box-shadow: 0 0 25px rgba(237, 108, 0, 0.8), 0 0 10px rgba(237, 108, 0, 0.6);
}

.social-icon[data-title="Flash Express"]:hover {
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.8), 0 0 10px rgba(255, 184, 0, 0.6);
}

.social-icon[data-title="Thailand Post"]:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
}

.social-icon img {
    transition: all 0.3s ease;
    border-radius: 0;
    /* 犹・ｸ｡犹謂ｸ歩ｹ霞ｸｭ犧・ｸ･犧壟ｸ｡犧ｸ犧｡犧伶ｸｵ犹謂ｸ｣犧ｹ犧巵ｹ≒ｸ･犹霞ｸｧ 犹犧樅ｸ｣犧ｲ犧ｰ犧≒ｸ｣犧ｭ犧壟ｸ吭ｸｭ犧・(overflow: hidden) 犧謂ｸｰ犧伶ｸｳ犧ｫ犧吭ｹ霞ｸｲ犧伶ｸｵ犹謂ｸ歩ｸｱ犧扉ｹ・ｸｫ犹霞ｹ犧吭ｸｵ犧｢犧吭ｹ犧ｭ犧・*/
}

.social-icon[data-title="KEX Express"]:hover img {
    filter: drop-shadow(0 4px 8px rgba(237, 108, 0, 0.6));
}

.social-icon[data-title="Flash Express"]:hover img {
    filter: drop-shadow(0 4px 8px rgba(255, 184, 0, 0.6));
}

.social-icon[data-title="Thailand Post"]:hover img {
    filter: drop-shadow(0 4px 8px rgba(230, 0, 0, 0.6));
}

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

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list li.align-start {
    align-items: flex-start;
}

/* Address Item Structure (Desktop: Original Look) */
.address-item {
    display: flex;
    align-items: center;
    /* Center icon with single/multi-line text */
    gap: 20px;
}

.address-header {
    display: flex;
    align-items: center;
}

.address-header .contact-icon {
    flex-shrink: 0;
}

.address-header strong {
    display: none;
    /* Removed the '犧伶ｸｵ犹謂ｸｭ犧｢犧ｹ犹・ label on Desktop as requested */
}

.address-item .contact-text span {
    color: #ffffff;
    font-size: 1.1rem;
    /* Slightly larger for better balance with Phone number size */
    line-height: 1.5;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.contact-list li:hover .contact-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.1));
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-thai);
    /* Ensured consistent Thai font */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.6;
}

.contact-text a,
.contact-text span {
    font-size: 1.1rem;
    color: #FFFFFF !important;
    /* Standardized to pure white for all items */
    font-family: var(--font-thai);
    /* Standardized font family */
    line-height: 1.5;
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--color-accent);
}

.highlight-link {
    color: var(--color-accent) !important;
    font-weight: 600;
}

.map-container {
    height: 165px; /* Reduced to align perfectly with the contact details on the left (Phone logo) */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.pb-0 {
    padding-bottom: 0px !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* --- Advanced Enhancements --- */

/* Infinite Marquee Banner */
.marquee-container {
    width: 100%;
    background-color: var(--color-accent);
    color: white;
    padding: 15px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    animation: marquee 30s linear infinite;
    /* Smooth, luxurious pace */
}

.marquee-item {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 35px;
    /* Slightly tighter gap since more items exist */
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-item i {
    font-size: 1.2rem;
    color: #FCD34D;
    /* Elegant gold/yellow for premium feel */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Stats Counters */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    background: rgba(15, 23, 42, 0.4);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 5px;
    font-family: var(--font-en);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 500;
}

/* Bottom Contact Navigation Bar */
body {
    padding-bottom: 75px;
    /* Prevent footer from hiding behind nav */
}

.bottom-contact-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    /* Increased from 25px for even more space on mobile */
    padding: 12px 5px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    border-radius: 0;
}

.bottom-contact-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    position: relative;
    transition: var(--transition-smooth);
    color: white;
    line-height: 1;
    /* Reset line-height to ensure perfect vertical center */
}

.bottom-contact-nav .nav-item i {
    font-size: 1.4rem;
    transition: var(--transition-smooth);
}

.bottom-contact-nav .nav-item.phone i {
    color: #3B82F6;
    font-size: 1.3rem;
}

.bottom-contact-nav .nav-item.line i {
    color: #06C755;
}

.bottom-contact-nav .nav-item.facebook i {
    color: #1877F2;
}

.bottom-contact-nav .nav-item.youtube i {
    color: #FF0000;
}

.bottom-contact-nav .nav-item.map i {
    color: #FF0000;
    font-size: 1.3rem;
}

.bottom-contact-nav .nav-item img {
    height: 1.6rem;
    width: auto;
    filter: brightness(0) invert(1);
    /* Force to white if it's an image */
    transition: var(--transition-smooth);
}

/* Consolidating and brand-specific glow effects for the new square style */
.bottom-contact-nav .nav-item:hover {
    transform: translateY(-5px);
}

.bottom-contact-nav .nav-item.phone:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.bottom-contact-nav .nav-item.phone:hover i {
    color: #3B82F6;
}

.bottom-contact-nav .nav-item.line:hover {
    background: rgba(6, 199, 85, 0.15);
    border-color: #06C755;
    box-shadow: 0 0 20px rgba(6, 199, 85, 0.4);
}

.bottom-contact-nav .nav-item.line:hover i {
    color: #06C755;
}

.bottom-contact-nav .nav-item.facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
}

.bottom-contact-nav .nav-item.facebook:hover i {
    color: #1877F2;
}

.bottom-contact-nav .nav-item.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #FF0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.bottom-contact-nav .nav-item.youtube:hover i {
    color: #FF0000;
}

.bottom-contact-nav .nav-item.map:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #FF0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.bottom-contact-nav .nav-item.map:hover i {
    color: #FF0000;
}

/* Tooltip Styling */
.bottom-contact-nav .nav-item .nav-tooltip {
    position: absolute;
    bottom: 120%;
    /* Position above the icon */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-contact-nav .nav-item .nav-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.bottom-contact-nav .nav-item:hover .nav-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Normal state: No special glow, just the original image */

.bottom-contact-nav .nav-item:hover {
    transform: translateY(-5px);
}

/* Hover Glowing Effects - Soft Brand Colors */
.bottom-contact-nav .nav-item.phone:hover .nav-icon-img {
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.7));
    /* Soft Blue */
}

.bottom-contact-nav .nav-item.line:hover .nav-icon-img {
    filter: drop-shadow(0 4px 8px rgba(6, 199, 85, 0.7));
    /* Soft Green */
}

.bottom-contact-nav .nav-item.facebook:hover .nav-icon-img {
    filter: drop-shadow(0 4px 8px rgba(24, 119, 242, 0.7));
    /* Soft FB Blue */
}

.bottom-contact-nav .nav-item.youtube:hover .nav-icon-img {
    filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.7));
    /* Soft YouTube Red */
}

.bottom-contact-nav .nav-item.map:hover .nav-icon-img {
    filter: drop-shadow(0 4px 8px rgba(255, 0, 0, 0.7));
    /* Soft Map Red */
}

/* Tablet & Desktop Spacing Adjustment */
@media (min-width: 768px) {
    .bottom-contact-nav {
        gap: 50px;
        /* Increased from 30px for Desktop */
    }

    .bottom-contact-nav .nav-item {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .bottom-contact-nav .nav-item i {
        font-size: 1.8rem;
    }

    .bottom-contact-nav .nav-item.phone i {
        font-size: 1.65rem;
    }

    .bottom-contact-nav .nav-item.map i {
        font-size: 1.65rem;
    }

    .bottom-contact-nav .nav-item img {
        height: 2.2rem;
    }

    /* Make social delivery logos match contact-icon size for symmetry */
    .social-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .social-icon img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
    }
}


/* --- Carousel Gallery Section --- */
.gallery-header {
    margin-bottom: 48px;
    /* Adjusted to balance the spacing with the new title */
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    background: #0a0e17;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-smooth);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
}

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

@media (min-width: 769px) {
    .carousel-slide img {
        object-fit: contain;
        background-color: rgba(0, 0, 0, 0.4);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    padding: 0;
}

.indicator-dot.active {
    width: 30px;
    border-radius: 10px;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 50px;
    }

    .about-images {
        height: auto;
        order: 0;
        /* Let them flow in HTML order: Text first, then Images */
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr 1fr;
        /* tablet */
        padding: 20px;
        gap: 15px;
    }

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

    /* Hide Extra Products on Mobile */
    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-mobile.show-on-mobile {
        display: flex !important;
        animation: fadeUp 0.5s ease-out forwards;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        position: relative;
        padding: 10px 15px;
    }

    .gallery-header {
        margin-bottom: 90px;
        /* Increased further from 60px as requested by user */
    }

    .logo img {
        height: 55px;
        /* Increased from 45px for better visibility on mobile */
    }

    .logo-text {
        font-size: 1.4rem;
        /* Increased from 1.2rem */
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0e17;
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a:not(.btn) {
        color: var(--color-primary) !important;
        text-shadow: none !important;
    }

    /* mobile-menu-toggle style already handled by absolute positioning above */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        /* Limits the width so it's not aggressively huge but easy to tap */
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Global Typography Fixes */
    .hero-title { font-size: 2.35rem !important; line-height: 1.25 !important; letter-spacing: -0.02em !important; }
    .section-title { font-size: 2rem !important; } /* Adjusted for mobile readability */
    .section-desc { font-size: 1rem !important; line-height: 1.6 !important; padding: 0 10px !important; }
    .section-badge { 
        font-size: 1.1rem !important; /* Adjusted to normal badge size */
        padding: 6px 16px !important;
    }
    .hero-subtitle { font-size: 0.95rem !important; }
    .hero-content { padding: 80px 20px 0 !important; text-align: center !important; }
    .hero-actions { 
        justify-content: center !important; 
        margin-top: 24px !important; 
        width: 100% !important; 
        gap: 12px !important; /* Space between the two buttons */
    }
    .hero-actions .btn { 
        width: auto !important; /* Changed from 100% to fit text */
        padding: 10px 20px !important; /* More compact padding for mobile */
        font-size: 0.9rem !important; /* Balanced font size */
        border-radius: 30px !important;
        white-space: nowrap !important; /* Keep text on one line */
    }

    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .main-img {
        width: 90%;
    }

    .sub-img {
        width: 70%;
        height: auto;
    }

    /* Stats Mobile Fix */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
    }

    /* --- FINAL COUTURE MOBILE FOOTER (AUTHENTIC COLORS) --- */
    /* Remove redundant manual overrides since base .footer is now "Couture" */
    .footer {
        padding: 60px 0 40px !important;
        background: #0a0e17 !important;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        padding: 0 24px !important;
    }

    /* Keep mobile-specific layout logic */
    .footer-brand {
        display: contents !important;
    }

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

    .footer-logo-wrapper {
        margin-bottom: 0px !important;
        text-align: center !important;
        width: 100% !important;
        order: 1 !important;
    }

    .footer-logo-wrapper img {
        height: 55px !important;
        width: auto !important;
        margin: 0 auto !important;
        /* Force center alignment for block element */
    }

    /* Social Links (Repositioned for flow) */
    .social-links {
        justify-content: center !important;
        gap: 25px !important;
        margin-top: 35px !important;
        padding-top: 25px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        width: 100% !important;
        order: 3 !important;
        /* Must be an INT, positions below Contact */
    }

    .social-icon {
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Specific Brand Colors for Socials */
    .social-links a[title="Facebook"] i {
        color: #1877F2 !important;
    }

    .social-links a[title="LINE Official"] i {
        color: #06C755 !important;
    }

    .social-links a[title="YouTube"] i {
        color: #FF0000 !important;
    }

    /* Contact Details (Middle Section) */
    .footer-contact {
        width: 100% !important;
        order: 2 !important;
    }

    .footer-contact h3 {
        display: none !important;
    }

    .contact-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* Phone & LINE Pills */
    .contact-list li:nth-child(1),
    .contact-list li:nth-child(2) {
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 50px !important;
        padding: 12px !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .contact-list li:nth-child(1) .contact-icon,
    .contact-list li:nth-child(2) .contact-icon {
        background: transparent !important;
        border: none !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .contact-list li .contact-text strong {
        display: none !important;
    }

    .contact-list li a {
        font-size: 0.85rem !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    /* Address Block Refined for Mobile */
    .contact-list .address-item {
        grid-column: span 2 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 24px !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 5px !important;
    }

    .address-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .address-header .contact-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .address-header strong {
        display: block !important;
        font-size: 1rem !important;
        color: #ffffff !important;
        margin-bottom: 0 !important;
        letter-spacing: 0.5px !important;
    }

    .contact-list .address-item .contact-text {
        text-align: center !important;
        width: 100% !important;
    }

    .contact-list .address-item .contact-text span {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* Map Integration */
    .footer-map {
        width: 100% !important;
        order: 4 !important;
        margin-top: 0px !important;
    }

    .footer-map h3 {
        display: block !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        opacity: 0.3 !important;
        max-width: 450px !important;
        /* Cleaner width for single column mobile */
    }

    .footer-map h3::after,
    .footer-contact h3::after {
        display: none !important;
    }

    .about-img {
        width: 100% !important;
        height: 280px !important;
        /* Uniform height for both images */
        border-radius: 20px !important;
        object-fit: cover !important;
    }

    /* Target specific product image shift on mobile */
    .mobile-shift-up {
        object-fit: cover !important; /* Stretch background to edges */
        object-position: center center !important; 
    }
    
    /* Increase product image height on mobile so square photos don't get cropped as heavily */
    .product-image {
        height: 320px !important;
    }
}

/* --- Toggle Visibility Utilities (Used for 'View More' feature) --- */
.hide-on-mobile {
    display: none !important;
}

.show-on-mobile {
    display: flex !important;
    /* Maintain original product card layout */
}

/* --- Additional Section Fixes --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    opacity: 1;
    /* Changed from 0.3 to 1 so the red stroke is bright */
}

/* --- Copyright Text --- */
.footer-copyright {
    font-family: var(--font-thai);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    /* 犧ｪ犧ｵ犹犧伶ｸｲ犧ｪ犧ｧ犹謂ｸｲ犧・(犹もｸ巵ｸ｣犹謂ｸ・ｹ≒ｸｪ犧・50%) 犹・ｸｫ犹霞ｸ扉ｸｹ犧樅ｸ｣犧ｵ犹犧｡犧ｵ犧｢犧｡犹≒ｸ･犧ｰ犧ｭ犹謂ｸｲ犧吭ｸｪ犧壟ｸｲ犧｢犧歩ｸｲ犧壟ｸ吭ｸ樅ｸｷ犹霞ｸ吭ｸｫ犧･犧ｱ犧・ｸｪ犧ｵ犧扉ｸｳ */
    letter-spacing: 0.5px;
    margin: 0;
}

/* Mobile specific styling for copyright */
@media (max-width: 768px) {
    .footer-copyright {
        font-size: 0.75rem !important;
        padding: 0 20px;
        line-height: 1.5;
    }
}

/* Tooltip for Social Icons */
.social-icon {
    position: relative;
}

.social-icon .nav-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.social-icon .nav-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.social-icon:hover .nav-tooltip,
.map-container:hover .nav-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip for Map Container */
.map-container .nav-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.map-container .nav-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

/* Tooltip for Social Icons Override */
.social-icon {
    position: relative !important;
    overflow: visible !important;
}

.social-icon img {
    border-radius: inherit !important;
}

/* Force footer grid bottom alignment on Desktop */
@media (min-width: 993px) {

    .footer-brand,
    .footer-contact,
    .footer-map {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .footer-brand .social-links {
        margin-top: auto;
        justify-content: center;
        transform: translateX(-20px);
    }

    .footer-contact .contact-list,
    .footer-map .map-container {
        margin-top: 30px;
        flex-grow: 1;
    }

    .footer-contact .contact-list {
        justify-content: space-between;
    }

    .footer-map .map-container {
        height: auto;
    }
}