/* ==========================================================
 * Technocom Corporate Website - Modern Theme Stylesheet
 * Custom Palette:
 *   --tc-primary:    #7AAACE (Slate Steel Blue)
 *   --tc-accent:     #9CD5FF (Pastel Sky Blue)
 *   --tc-bg-light:   #F7F8F0 (Warm Ivory Off-White)
 *   --tc-text-dark:  #1E293B (Deep Slate for readability)
 * Typography: Prompt, Inter, sans-serif
 * ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --tc-primary: #7AAACE;
    --tc-primary-dark: #588eb5;
    --tc-primary-light: #eef6fc;
    --tc-accent: #9CD5FF;
    --tc-accent-light: #e0f2fe;
    --tc-bg-light: #F7F8F0;
    --tc-secondary: #0f1d2e;
    --tc-dark: #1E293B;
    --tc-muted: #64748b;
    --tc-border: #dbe7f0;
    --tc-card-bg: #ffffff;
    --tc-gradient-primary: linear-gradient(135deg, #7AAACE 0%, #9CD5FF 100%);
    --tc-gradient-dark: linear-gradient(135deg, #0f1d2e 0%, #1e293b 100%);
    --tc-shadow-sm: 0 2px 8px rgba(122, 170, 206, 0.08);
    --tc-shadow-md: 0 8px 24px rgba(122, 170, 206, 0.15);
    --tc-shadow-lg: 0 16px 36px rgba(15, 29, 46, 0.12);
    --tc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------
 * 🛡️ Universal Responsive & Anti-Overflow System (Zero Overflow Guarantee)
 * ---------------------------------------------------------- */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--tc-dark);
    background-color: var(--tc-bg-light);
    line-height: 1.65;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    margin: 0;
    padding: 0;
}

img, canvas, audio, embed, object {
    max-width: 100%;
    height: auto;
}

/* Default responsive media unless explicitly styled (e.g. hero full-bleed video or background iframe) */
video:not(.hero-media-wrapper video),
iframe:not(.hero-media-wrapper iframe) {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a, span, button, li, th, td {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

:is(section, main, article, header, footer, .tc-footer, .hero-banner-section) {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    box-sizing: border-box;
}

.container, .container-fluid {
    box-sizing: border-box;
    max-width: 100%;
}

/* ----------------------------------------------------------
 * Top Bar Styles
 * ---------------------------------------------------------- */
.tc-topbar {
    background: #0f1d2e;
    color: #94a3b8;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
}

.tc-topbar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--tc-transition);
}

.tc-topbar a:hover {
    color: var(--tc-accent);
}

/* ----------------------------------------------------------
 * Hero Banner Section Styles (Full Bleed Edge-to-Edge)
 * ---------------------------------------------------------- */
.hero-banner-section {
    position: relative;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

#heroBannerCarousel,
#heroBannerCarousel .carousel-inner,
#heroBannerCarousel .carousel-item {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    position: relative;
}

.hero-slide-wrapper {
    position: relative;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px 0;
    box-sizing: border-box;
}

.hero-media-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-media-wrapper video {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.hero-media-wrapper iframe {
    width: 300% !important;
    height: 300% !important;
    position: absolute !important;
    top: -100% !important;
    left: -100% !important;
    pointer-events: none !important;
}

.hero-media-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2;
    pointer-events: none;
}

.hero-content-layer {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-banner-section h1 {
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-banner-section .lead {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


.tc-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.tc-topbar-social a:hover {
    background: var(--tc-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
 * Navbar Styles (ควบคุมและปรับแต่งสีผ่านระบบหลังบ้าน 100%)
 * ---------------------------------------------------------- */
.tc-navbar {
    background-color: var(--tc-nav-bg, #ffffff);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(122, 170, 206, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
}

.tc-navbar.scrolled {
    background-color: var(--tc-nav-scrolled-bg, rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 30px rgba(122, 170, 206, 0.18);
    padding: 10px 0;
}

.tc-brand-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--tc-transition);
}

.tc-brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--tc-nav-custom-text, #ffffff);
    transition: color 0.3s ease;
}

.tc-brand-text span {
    color: var(--tc-nav-custom-hover, #9cd5ff);
}

.tc-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tc-nav-custom-text, #ffffff);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.tc-nav-link:hover {
    color: var(--tc-nav-custom-hover, #9cd5ff) !important;
    background-color: var(--tc-nav-custom-active-bg, rgba(122, 170, 206, 0.25)) !important;
}

.tc-nav-link.active {
    color: var(--tc-nav-custom-hover, #9cd5ff) !important;
    font-weight: 600;
    background-color: var(--tc-nav-custom-active-bg, rgba(122, 170, 206, 0.35)) !important;
}

.tc-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--tc-nav-custom-hover, #9cd5ff) !important;
    border-radius: 3px;
}

.tc-nav-link.dropdown-toggle::after {
    display: none !important;
}

.tc-dropdown-arrow {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
    display: inline-block;
    margin-top: 1px;
}

.tc-dropdown:hover .tc-dropdown-arrow,
.tc-dropdown.show .tc-dropdown-arrow,
.tc-dropdown .dropdown-toggle[aria-expanded="true"] .tc-dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Collapse */
@media (max-width: 991.98px) {
    .tc-navbar .navbar-collapse {
        background: var(--tc-nav-bg, #ffffff);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(122, 170, 206, 0.2);
        border-radius: 14px;
        padding: 16px 20px;
        margin-top: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
}

.tc-dropdown:hover .tc-dropdown-arrow,
.tc-dropdown.show .tc-dropdown-arrow,
.tc-dropdown .dropdown-toggle[aria-expanded="true"] .tc-dropdown-arrow {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------
 * Navigation Dropdown Menu (Sub-menu)
 * ---------------------------------------------------------- */
.tc-dropdown-menu {
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.12) !important;
    border: 1px solid rgba(122, 170, 206, 0.18) !important;
    margin-top: 8px;
    animation: tcDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.tc-dropdown-item {
    font-size: 0.92rem;
    font-weight: 500;
    color: #475569;
    padding: 9px 14px;
    border-radius: 8px;
    transition: var(--tc-transition);
}

.tc-dropdown-item:hover {
    background-color: var(--tc-primary-light);
    color: var(--tc-primary-dark);
    transform: translateX(4px);
}

.tc-dropdown-item.active {
    background-color: var(--tc-primary-light);
    color: var(--tc-primary-dark);
    font-weight: 600;
}

/* Desktop Hover for Dropdown */
@media (min-width: 992px) {
    .tc-dropdown:hover .tc-dropdown-menu {
        display: block;
    }
}

/* ----------------------------------------------------------
 * Buttons & CTA
 * ---------------------------------------------------------- */
.tc-btn-primary {
    background: var(--tc-gradient-primary);
    color: #0f1d2e;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(122, 170, 206, 0.35);
    transition: var(--tc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tc-btn-primary:hover {
    background: linear-gradient(135deg, #6b9ec7 0%, #89cbfa 100%);
    color: #0f1d2e;
    box-shadow: 0 6px 20px rgba(122, 170, 206, 0.5);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
 * Footer Wave Animation Styles
 * ---------------------------------------------------------- */
.tc-footer {
    position: relative;
    background: #0f1d2e;
    color: #94a3b8;
    padding-top: 80px;
    padding-bottom: 30px;
    margin-top: 120px !important;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 110px;
    transform: translateY(-99%);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.footer-wave .wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200% !important;
    min-width: 200% !important;
    max-width: none !important;
    height: 100% !important;
    display: block;
    will-change: transform;
}

.wave-back {
    opacity: .45;
    animation: waveScrollReverse 26s linear infinite;
}

.wave-mid {
    opacity: .75;
    animation: waveScroll 17s linear infinite;
}

.wave-front {
    opacity: 1;
    animation: waveScroll 11s linear infinite;
}

.wave-crest {
    fill: none !important;
    stroke-width: 3.5;
    opacity: .9;
    filter: drop-shadow(0 0 6px rgba(156, 213, 255, .8));
    animation: crestGlow 3.4s ease-in-out infinite;
}

.wave-bubble {
    position: absolute;
    bottom: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tc-accent);
    opacity: 0;
    box-shadow: 0 0 6px rgba(156, 213, 255, .9);
    animation: bubbleRise 6.5s ease-in infinite;
}

.wave-bubble.b1 { left: 8%;  width: 5px; height: 5px; animation-delay: 0s; }
.wave-bubble.b2 { left: 27%; width: 7px; height: 7px; background: var(--tc-primary); box-shadow: 0 0 6px rgba(122, 170, 206, .9); animation-delay: 1.3s; }
.wave-bubble.b3 { left: 49%; width: 4px; height: 4px; animation-delay: 2.6s; }
.wave-bubble.b4 { left: 68%; width: 6px; height: 6px; background: var(--tc-primary); box-shadow: 0 0 6px rgba(122, 170, 206, .9); animation-delay: 3.7s; }
.wave-bubble.b5 { left: 88%; width: 5px; height: 5px; animation-delay: 4.9s; }

@keyframes waveScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes waveScrollReverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

@keyframes crestGlow {
    0%, 100% { opacity: .5; }
    50%      { opacity: 1; }
}

@keyframes bubbleRise {
    0%   { transform: translateY(0) scale(.5); opacity: 0; }
    12%  { opacity: .8; }
    80%  { opacity: .35; }
    100% { transform: translateY(-95px) scale(1.1); opacity: 0; }
}

/* ----------------------------------------------------------
 * Footer Content Styles & Social Channel Buttons
 * ---------------------------------------------------------- */
.tc-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tc-social-btn.tc-social-fb {
    background: #1877F2 !important;
}

.tc-social-btn.tc-social-line {
    background: #06C755 !important;
}

.tc-social-btn.tc-social-gmail {
    background: #EA4335 !important;
}

.tc-social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ----------------------------------------------------------
 * LINE QR Code Card in Footer (1:1 Symmetrical Square)
 * ---------------------------------------------------------- */
.tc-footer-qr-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 135px;
}

.tc-footer-qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 135px;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    overflow: hidden;
    flex-shrink: 0;
}

.tc-footer-qr-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.4);
}

.tc-footer-qr-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.tc-footer-qr-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 135px;
    background: #06C755 !important;
    color: #ffffff !important;
    border: none;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
    white-space: nowrap;
}

.tc-footer-qr-badge i {
    font-size: 1rem;
    color: #ffffff !important;
}

.tc-footer-qr-badge:hover {
    background: #05b04b !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.5);
}

.tc-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.tc-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--tc-primary);
    border-radius: 2px;
}

.tc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tc-footer-links li {
    margin-bottom: 10px;
}

.tc-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--tc-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tc-footer-links a:hover {
    color: var(--tc-accent);
    transform: translateX(4px);
}

.tc-footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

/* ----------------------------------------------------------
 * Back to Top Button (Shifted above floating contact widget)
 * ---------------------------------------------------------- */
.tc-back-to-top {
    position: fixed;
    bottom: 92px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tc-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tc-shadow-md);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--tc-transition);
    z-index: 999;
}

.tc-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.tc-back-to-top:hover {
    background: var(--tc-primary-dark);
    color: #ffffff;
    transform: translateY(-4px);
}

/* ----------------------------------------------------------
 * Floating Contact Widget & Modal
 * ---------------------------------------------------------- */
.tc-floating-contact-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
}

.tc-contact-fab {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b7ea2 0%, #689ec4 50%, #8bc2eb 100%);
    color: #ffffff;
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(75, 126, 162, 0.38), 0 2px 8px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
    padding: 0;
}

.tc-contact-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(75, 126, 162, 0.48), 0 4px 12px rgba(15, 23, 42, 0.12);
    color: #ffffff;
}

.tc-contact-card {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 350px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 22px 18px 20px 18px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tc-contact-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tc-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 14px;
}

.tc-contact-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-contact-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e2ebd8;
    color: #3b662d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.tc-contact-header-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.tc-contact-header-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin: 3px 0 0 0;
    line-height: 1.25;
}

.tc-contact-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-contact-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

/* Contact Item Rows */
.tc-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid #e8edf3;
    background: #ffffff;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-contact-item:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
    color: #0f172a;
}

.tc-contact-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-contact-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.tc-contact-icon-phone-primary {
    background: #009668;
    background: linear-gradient(135deg, #059669 0%, #009668 100%);
}

.tc-contact-icon-phone-secondary {
    background: #0284c7;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.tc-contact-icon-line {
    background: #06c755;
}

.tc-contact-icon-messenger {
    background: #0084ff;
    background: linear-gradient(135deg, #0084ff 0%, #a033ff 100%);
}

.tc-contact-icon-facebook {
    background: #1877f2;
}

.tc-contact-icon-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

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

.tc-contact-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.tc-contact-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

.tc-contact-arrow {
    color: #94a3b8;
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.tc-contact-item:hover .tc-contact-arrow {
    transform: translateX(3px);
    color: #0284c7;
}

/* ----------------------------------------------------------
 * 📱 Master Multi-Screen Responsive Suite (All Breakpoints)
 * ---------------------------------------------------------- */

/* 1. Large Desktops & Laptops (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tc-navbar .navbar-nav {
        gap: 2px !important;
    }
    .tc-navbar .tc-nav-link {
        font-size: 0.84rem !important;
        padding: 5px 6px !important;
    }
    .tc-navbar .tc-btn-primary {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
    .tc-brand-logo {
        max-height: 38px !important;
    }
}

/* 2. Tablets & Mobile (< 992px) */
@media (max-width: 991.98px) {
    /* Section Spacing & Containers */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Headings & Typography */
    .hero-title,
    .section-heading-title,
    .showcase-title,
    .story-heading {
        font-size: clamp(1.75rem, 5vw, 2.3rem) !important;
        line-height: 1.25 !important;
    }

    /* Hero Banners */
    .hero-slide-wrapper {
        min-height: 85svh !important;
        padding: 90px 16px 60px 16px !important;
    }

    .hero-carousel-control {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    .hero-carousel-control.carousel-control-prev { left: 8px !important; }
    .hero-carousel-control.carousel-control-next { right: 8px !important; }

    /* Interactive News Carousel */
    .news-carousel-slide {
        width: 50% !important;
        padding: 0 8px !important;
    }

    .carousel-card-box {
        height: 360px !important;
    }

    /* About & Origin Story Mockups */
    .story-mockup-wrapper,
    .why-mockup-wrapper {
        margin: 20px auto 0 auto !important;
        justify-content: center !important;
    }

    .story-mockup-img,
    .why-mockup-img {
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        transform: none !important;
        display: block !important;
    }

    /* Product Device Mockups */
    .mockup-laptop {
        max-width: 100% !important;
    }
    .mockup-laptop-base {
        margin: 0 !important;
        width: 100% !important;
    }
    .mockup-phone {
        width: 105px !important;
        height: 200px !important;
        right: 4px !important;
        bottom: -10px !important;
    }

    /* Career and CTA Cards */
    .futuristic-cta-card {
        padding: 32px 24px !important;
        border-radius: 24px !important;
    }

    .career-invite-box {
        padding: 24px 20px !important;
        margin-top: 16px;
    }

    /* Stats Ribbon */
    .stats-ribbon-container {
        padding: 30px 0 10px 0 !important;
    }

    .stat-glass-card {
        padding: 16px 14px !important;
        margin-bottom: 12px;
    }

    /* Footer & Floating Widgets */
    .tc-footer {
        padding-top: 60px !important;
        margin-top: 70px !important;
    }

    .tc-footer-qr-wrapper {
        margin-top: 12px;
    }
}

/* 3. Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
    /* Responsive Grids & Stacking */
    .news-carousel-slide {
        width: 100% !important;
        padding: 0 4px !important;
    }

    .carousel-card-box {
        height: 330px !important;
    }

    /* Client Logo Marquee */
    .client-brand-card {
        width: 160px !important;
        min-width: 160px !important;
        height: 85px !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
    }

    .client-brand-card img {
        max-height: 45px !important;
        max-width: 120px !important;
    }

    /* Filter Tabs Horizontal Swipe */
    .filter-nav-wrap,
    .portfolio-filter-wrap,
    .category-filter-wrap,
    .nav-pills-custom {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none;
    }

    .filter-nav-wrap::-webkit-scrollbar,
    .portfolio-filter-wrap::-webkit-scrollbar,
    .category-filter-wrap::-webkit-scrollbar {
        display: none;
    }

    .filter-tab-btn,
    .portfolio-filter-btn {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.85rem !important;
        padding: 6px 14px !important;
    }

    /* About Company Profile Card */
    .profile-main-card {
        margin-top: -24px !important;
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }

    .logo-showcase-box {
        min-height: auto !important;
        padding: 14px !important;
    }

    .logo-image-wrapper {
        min-height: 180px !important;
    }

    .logo-display-img {
        min-height: 180px !important;
    }

    /* Modals & Dialogs */
    .modal-dialog {
        max-width: calc(100vw - 20px) !important;
        margin: 10px auto !important;
    }

    .modal-content {
        border-radius: 20px !important;
    }

    .modal-body {
        padding: 16px !important;
    }

    /* Flatpickr Thai Calendar */
    .flatpickr-calendar {
        max-width: calc(100vw - 24px) !important;
        width: 100% !important;
    }

    /* Form Controls: prevent iOS Safari auto-zoom by keeping font-size >= 16px on inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 4. Small Phones & Narrow Screens (< 480px) */
@media (max-width: 480px) {
    .tc-navbar .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .tc-brand-logo {
        max-height: 36px !important;
        max-width: 160px !important;
    }

    .tc-brand-text {
        font-size: 1.12rem !important;
    }

    .hero-banner-section h1 span {
        font-size: clamp(1.4rem, 6.5vw, 1.9rem) !important;
    }

    .hero-banner-section .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .tc-contact-card {
        bottom: 84px !important;
        right: 14px !important;
        width: calc(100vw - 28px) !important;
        border-radius: 20px !important;
        padding: 14px !important;
    }

    .tc-floating-contact-wrapper {
        bottom: 16px !important;
        right: 16px !important;
    }

    .tc-back-to-top {
        bottom: 78px !important;
        right: 18px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .tc-footer-social {
        justify-content: flex-start;
    }

    .footer-wave {
        height: 70px !important;
    }

    .footer-wave .wave {
        width: 200% !important;
        min-width: 200% !important;
        max-width: none !important;
    }
}

/* 5. Ultra Narrow Phones (<= 360px) */
@media (max-width: 360px) {
    .tc-brand-logo {
        max-height: 30px !important;
        max-width: 130px !important;
    }

    .hero-slide-wrapper {
        padding: 75px 12px 50px 12px !important;
    }

    .section-heading-title {
        font-size: 1.45rem !important;
    }

    .stat-number {
        font-size: 1.65rem !important;
    }

    .breadcrumb-custom {
        font-size: 0.78rem !important;
        padding: 4px 12px !important;
    }
}
