:root {
    --primary: #356e7f;
    --primary-dark: #2a5866;
    --primary-glow: rgba(53, 110, 127, 0.1);
    --secondary: #1e293b;
    --secondary-light: #334155;
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --border-light: rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Sarabun', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(53, 110, 127, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(53, 110, 127, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(30, 41, 59, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(30, 41, 59, 0.05) 0%, transparent 40%);
}

.blob-glow {
    position: absolute;
    width: 50vmax;
    height: 50vmax;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

/* Navbar System */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 0;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.logo-img-wrapper {
    position: relative;
    height: 42px;
    width: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
}

.logo-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper:hover .logo-img {
    transform: scale(1.15) rotate(-5deg);
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    background: rgba(255, 255, 255, 0.4);
    padding: 0.65rem 2.2rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 20px rgba(53, 110, 127, 0.15);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(53, 110, 127, 0.3);
}

.menu-toggle {
    display: none;
    background: white;
    border: 1px solid var(--border-light);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(53, 110, 127, 0.05) 0%, transparent 50%);
}


.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5.5rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: white;
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    color: var(--secondary);
    letter-spacing: -2px;
}

.hero-content .highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(53, 110, 127, 0.1));
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 4rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(53, 110, 127, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(53, 110, 127, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2.75rem;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.hero-visual {
    position: relative;
    padding-left: 2rem;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -15%;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    from {
        transform: scale(1) translate(0, 0);
        opacity: 0.4;
    }

    to {
        transform: scale(1.1) translate(-5%, -5%);
        opacity: 0.7;
    }
}

.hero-img-box {
    position: relative;
    z-index: 10;
    border-radius: 32px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

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

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

.hero-img-box:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.12);
}

.hero-img-box img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-head span {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Impact CTA */
.impact-cta {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.impact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    z-index: -1;
}

.impact-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* Footer Section */
footer {
    padding: 6rem 2rem 3rem;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 320px;
}

.footer-links h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Responsive Redesign */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

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

    .section-head h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 0.8rem 0;
        background: transparent;
    }

    #navbar.scrolled {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
    }

    /* Hide Desktop CTA on Mobile Navbar */
    #navbar>.nav-container>.btn-nav-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 800;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.3s;
    }

    /* Mobile CTA inside menu */
    .nav-links::after {
        content: 'เริ่มต้นคุยงาน';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 1.2rem 2.5rem;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        border-radius: 100px;
        font-weight: 800;
        font-size: 1.1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(53, 110, 127, 0.2);
        cursor: pointer;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease 0.35s;
    }

    .nav-links.active::after {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero-content p {
        margin: 0 auto 3rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        padding-left: 0;
    }

    /* Features Responsive Fix */
    .section-head h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2.5rem 2rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Password Validation Requirements */
.password-requirements {
    margin-top: 1rem;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.requirement {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 0.6rem;
    opacity: 0.5;
}

.requirement.met {
    color: #059669;
    font-weight: 600;
}

.requirement.met i {
    color: #059669;
    opacity: 1;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .password-requirements {
        grid-template-columns: 1fr;
    }
}

.password-match-indicator {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: #ef4444;
    /* Default mismatch color */
    padding: 0.2rem 0.5rem;
    transition: all 0.3s ease;
}

.password-match-indicator.visible {
    display: flex;
}

.password-match-indicator.met {
    color: #059669;
}

.password-match-indicator i {
    font-size: 0.75rem;
}

/* Floating Messenger Button */
.floating-messenger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: #0084ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.4);
    z-index: 1001;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-messenger::before,
.floating-messenger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #0084ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.6;
}

.floating-messenger::before {
    animation: pulsate-ring 3s infinite;
}

.floating-messenger::after {
    animation: pulsate-ring 3s infinite 1.5s;
}

@keyframes pulsate-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.floating-messenger:hover {
    transform: scale(1.15) rotate(15deg) translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 132, 255, 0.5);
    background: #0073e6;
}

.floating-messenger i {
    animation: messenger-float 3s ease-in-out infinite;
}

@keyframes messenger-float {

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

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

/* Premium Article Loading State (Skeleton) */
.skeleton-box {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.5) 20%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    background: white;
    border-radius: 2.5rem;
    padding: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.skeleton-image {
    aspect-ratio: 1;
    border-radius: 2rem;
    width: 100%;
}

.skeleton-title {
    height: 1.8rem;
    width: 85%;
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-meta {
    height: 1.2rem;
    width: 40%;
    margin-top: auto;
    border-radius: 6px;
}

/* Unified Premium Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.modal-icon-success {
    background: #ecfdf5;
    color: #10b981;
}

/* Global Typography & Content Classes */
.article-content {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #1e293b;
    /* Darker slate for better contrast */
    font-weight: 400;
}

.article-content p {
    margin-bottom: 2.25rem;
}

.article-content strong {
    color: var(--secondary);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(53, 110, 127, 0.1) 0%, rgba(53, 110, 127, 0.1) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    padding: 0 0.2em;
}

.article-content em {
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: 'Inter', 'Sarabun', sans-serif;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 2.5rem;
}

.article-content h2 {
    font-size: 2rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content blockquote {
    margin: 3.5rem 0;
    padding: 2.5rem 3.5rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--primary);
    border-radius: 0 32px 32px 0;
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
    position: relative;
    font-size: 1.35rem;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    opacity: 0.1;
    font-family: serif;
}

.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.8rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.article-content img {
    border-radius: 32px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* Sidebar & Layout Enhancements */
.sidebar-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
}

.sidebar-sticky {
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
}

.latest-article-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
    text-decoration: none;
}

.latest-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-article-item:hover .item-title {
    color: var(--primary);
}

.item-thumb {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: var(--bg-alt);
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Glass Meta Badge */
.meta-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .article-content {
        font-size: 1.15rem;
    }

    .sidebar-card {
        position: static;
        margin-top: 4rem;
    }
}

/* Premium TTS Player Styling */
.tts-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(53, 110, 127, 0.1);
    box-shadow: 0 4px 20px -5px rgba(53, 110, 127, 0.15);
}

.tts-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #49889a 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tts-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tts-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(53, 110, 127, 0.5);
}

.tts-btn:hover::after {
    opacity: 1;
}

.tts-btn.playing {
    animation: tts-pulse 2s infinite;
}

@keyframes tts-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 110, 127, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(53, 110, 127, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(53, 110, 127, 0);
    }
}

.wave-bar {
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 10px;
    animation: wave 1s ease-in-out infinite;
    opacity: 0.3;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
    height: 18px;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
    height: 14px;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
    height: 20px;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
    height: 12px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.playing .wave-bar {
    opacity: 1;
    background: var(--primary);
}

.modal-icon-error {
    background: #fef2f2;
    color: #ef4444;
}

.modal-icon-info {
    background: var(--primary-glow);
    color: var(--primary);
}

.modal-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    flex: 1;
    font-family: inherit;
}

.modal-btn-confirm {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Hide old Toast System as we transition to Modal */
.toast-container {
    display: none;
}

/* Logo Box for Auth Pages (Login/Register) */
.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem auto;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-box:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 35px rgba(53, 110, 127, 0.15);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}