/* ============================================
   modern.css — T Tech Solution design override
   ============================================ */

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

/* ── Variables ── */
:root {
    --primary:       #1e40af;
    --primary-light: #3b82f6;
    --accent:        #06b6d4;
    --dark:          #0f172a;
    --text:          #475569;
    --text-dark:     #1e293b;
    --bg-light:      #f1f5f9;
    --gradient:      linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    --radius-card:   20px;
    --shadow-card:   0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover:  0 16px 40px rgba(30,64,175,0.14);
}

/* ── Base Typography ── */
body,
input, select, textarea {
    font-family: 'Sarabun', sans-serif !important;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sarabun', sans-serif !important;
    color: var(--text-dark);
    text-transform: none !important;
    letter-spacing: -0.02em;
}

/* ══════════════════════════════════════════
   HEADER / NAVBAR
══════════════════════════════════════════ */
#header-wrapper {
    background: url('../images/header1.jpg') center center / cover no-repeat !important;
    position: relative;
    padding: 0 !important;
}

#header-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(30, 64, 175, 0.72) 100%);
    z-index: 0;
}

#header-wrapper > .container {
    position: relative;
    z-index: 2;
    padding-top: 1.75rem;
}

/* Navbar bar */
#header {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 0.6rem 1.75rem !important;
    margin-bottom: 0 !important;
}

#header .inner {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0 !important;
}

/* Logo */
#header h1 {
    position: static !important;
    margin-top: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #fff !important;
}

#header h1 a {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
#nav {
    position: static !important;
    float: none !important;
}

#nav ul {
    display: flex !important;
    gap: 0.25rem !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#nav ul li a {
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 8px !important;
    transition: background 0.2s, color 0.2s !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#nav ul li a:hover,
#nav ul li.current_page_item > a {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

/* ══════════════════════════════════════════
   HERO / BANNER
══════════════════════════════════════════ */
#banner {
    width: 100% !important;
    max-width: 820px;
    margin: 0 auto !important;
    padding: 8rem 1.5rem 7.5rem !important;
    text-align: center !important;
    overflow: visible !important;
}

#banner h2 {
    border: none !important;
    color: #fff !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

#banner h2::before,
#banner h2::after {
    display: none !important;
}

#banner h2 strong {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    color: inherit;
    display: block;
    margin-bottom: 0.15rem;
}

#banner p {
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.6 !important;
    margin-bottom: 2.5rem !important;
}

/* CTA Button */
a.button.large {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.9rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.45) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

a.button.large:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 42px rgba(30, 64, 175, 0.55) !important;
}

/* ══════════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════════ */
#main-wrapper {
    background: var(--bg-light) !important;
}

.wrapper.style1 {
    background: var(--bg-light) !important;
    background-image: none !important;
    text-shadow: none !important;
    padding: 6rem 0 !important;
}

/* ── Section Header ── */
.box.feature1 header.first {
    text-align: center;
    margin-bottom: 3rem;
}

.box.feature1 header.first h2 {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.03em !important;
}

.box.feature1 header.first p {
    color: var(--primary-light) !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 0.25rem;
}

/* ── Feature Cards ── */
.box.feature1 .col-4,
.box.feature1 .col-12-medium {
    padding: 0.75rem !important;
}

.box.feature1 .col-4 > section {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin: 0 !important;
}

.box.feature1 .col-4 > section:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Card image */
.box.feature1 .col-4 a.image.featured {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 !important;
}

.box.feature1 .col-4 a.image.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.box.feature1 .col-4 > section:hover a.image.featured img {
    transform: scale(1.06);
}

/* Card label */
.box.feature1 header.second {
    padding: 1.25rem 1.5rem 1.5rem !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.box.feature1 header.second::before {
    display: none !important;
}

.box.feature1 header.second h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    padding-left: 1.75rem;
    position: relative;
}

/* Icon chip inside h4 */
.box.feature1 header.second.icon::before {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
    color: var(--primary-light) !important;
    opacity: 1 !important;
    margin: 0 !important;
}

/* ── Article Content ── */
.box.feature1 .col-12 {
    padding: 0 0.75rem !important;
    margin-top: 3rem;
}

.box.feature1 .col-12 h4 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    margin-top: 2rem !important;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.box.feature1 .col-12 h4:first-child {
    margin-top: 0 !important;
    padding-top: 0;
    border-top: none;
}

.box.feature1 .col-12 p {
    color: var(--text) !important;
    font-size: 0.96rem !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer-wrapper {
    background: var(--dark) !important;
    background-image: none !important;
    padding: 5rem 0 3rem !important;
}

#footer h2 {
    color: #e2e8f0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    opacity: 0.5;
    margin-bottom: 0.75rem !important;
}

#footer strong {
    color: #f1f5f9 !important;
}

#footer p,
#footer dd {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
}

#footer dl.contact dt {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1rem;
}

#footer a {
    color: #60a5fa !important;
}

#footer a:hover {
    color: #93c5fd !important;
    text-decoration: none;
}

/* Footer "Learn More" button */
#footer .button.alt,
a.button.alt {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: none !important;
    color: #e2e8f0 !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.4rem !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: background 0.2s, border-color 0.2s !important;
}

#footer .button.alt:hover,
a.button.alt:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

#copyright {
    border-color: rgba(255, 255, 255, 0.07) !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

#copyright li {
    color: #475569 !important;
    font-size: 0.85rem !important;
}

#copyright li a {
    color: #475569 !important;
}

/* ══════════════════════════════════════════
   SCROLL-IN ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.box.feature1 .col-4 > section {
    animation: fadeUp 0.55s ease both;
}

.box.feature1 .col-4:nth-child(2) > section { animation-delay: 0.1s; }
.box.feature1 .col-4:nth-child(3) > section { animation-delay: 0.2s; }
.box.feature1 .col-4:nth-child(4) > section { animation-delay: 0.3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media screen and (max-width: 980px) {
    #banner h2 { font-size: 2.4rem !important; }
    #banner { padding: 6rem 1.5rem 5rem !important; }
    .box.feature1 header.first h2 { font-size: 1.9rem !important; }
}

@media screen and (max-width: 736px) {
    #banner h2 { font-size: 1.9rem !important; }
    #banner p  { font-size: 1rem !important; }
    #header h1 { font-size: 1.1rem !important; }
    #nav ul li a { padding: 0.4rem 0.65rem !important; font-size: 0.82rem !important; }
}
