/* DECHAKORN Investment Website - Main Stylesheet */
/* Gold & White Premium Theme */

/* ============ CSS VARIABLES ============ */
:root {
    /* Primary Colors */
    --gold-primary: #D4AF37;
    --gold-light: #F5E6C8;
    --gold-dark: #B8960C;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F5E6C8 50%, #D4AF37 100%);
    
    /* Background Colors */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    /* Text Colors */
    --text-dark: #2C3E50;
    --text-body: #5A6C7D;
    --text-light: #8A9BAC;
    
    /* Status Colors */
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kanit', 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: white;
}

/* ============ PRICE TICKER ============ */
.price-ticker {
    background: linear-gradient(90deg, var(--text-dark) 0%, #3D4F5F 100%);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    white-space: nowrap;
    color: white;
    font-size: 0.9rem;
}

.ticker-item .symbol {
    font-weight: 600;
    color: var(--gold-primary);
}

.ticker-item .price {
    font-weight: 500;
}

.ticker-item .change {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ticker-item .change.up {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
}

.ticker-item .change.down {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ HEADER ============ */
.header {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-normal);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--gold-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: var(--gold-gradient);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-body);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: -10%;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============ LIVE PRICES SECTION ============ */
.live-prices {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.price-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.price-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-card-header .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.price-card-header .icon.gold {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: white;
}

.price-card-header .icon.btc {
    background: linear-gradient(135deg, #F7931A, #E87E04);
    color: white;
}

.price-card-header .icon.stock {
    background: linear-gradient(135deg, #27AE60, #1E8449);
    color: white;
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.price-card .price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.price-card .price-change {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-change.up {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.price-change.down {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.price-chart {
    height: 150px;
    margin-top: 20px;
}

/* ============ ARTICLES SECTION ============ */
.articles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--gold-light) 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold-gradient);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h3:hover {
    color: var(--gold-primary);
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta .author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.view-all-btn {
    text-align: center;
}

/* ============ COURSES SECTION ============ */
.courses-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: var(--transition-normal);
}

.course-card:hover .play-btn {
    opacity: 1;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.course-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.course-price {
    display: flex;
    flex-direction: column;
}

.course-price .original {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.course-price .current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* ============ VIDEO SECTION ============ */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, #3D4F5F 100%);
    color: white;
}

.video-section .section-header h2 {
    color: white;
}

.video-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.main-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.main-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-video .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.main-video .play-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.main-video .play-icon:hover {
    transform: scale(1.1);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-item {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-item img {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.video-item-info h4 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
}

.video-item-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--gold-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    padding-top: 30px;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-body);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 100px 0;
    background: var(--gold-gradient);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: var(--text-dark);
    color: white;
}

.cta-section .btn:hover {
    background: #1A252F;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--gold-primary);
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--gold-primary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--gold-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ---- แถบเตือนสิทธิ ท้ายหน้า ใช้ร่วมทุกหน้า ---- */
.footer-legal-note {
    margin-top: 12px;
    color: rgba(239, 237, 227, 0.85);
}

.footer-legal-note a {
    color: #C2B48C;
    text-decoration: underline;
}

.footer-legal-note a:hover {
    color: #D4D2C6;
}

/* ============ ARTICLES PAGE ============ */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ============ COURSES PAGE ============ */
.courses-page {
    padding: 60px 0;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.course-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.course-info .description {
    color: var(--text-body);
    margin-bottom: 30px;
}

.curriculum-list {
    margin-top: 30px;
}

.curriculum-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.curriculum-item h4 {
    font-size: 1rem;
}

.curriculum-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.course-purchase-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.course-purchase-card .price-display {
    margin-bottom: 20px;
}

.course-purchase-card .original-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.course-purchase-card .sale-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .prices-grid,
    .articles-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .prices-grid,
    .articles-grid,
    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .course-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .floating-card {
        display: none;
    }
}

/* ============================================================
   CORPORATE RESKIN — Phase 1 static rebuild (2026-07-03)
   Palette: charcoal-navy #2B3A44 / taupe #B0A68A,#C2B48C /
   maroon accent #631317 / off-white #D4D2C6 (light theme)
   ============================================================ */
:root {
    --gold-primary: #631317;
    --gold-light: #f3ebe6;
    --gold-dark: #4a0e11;
    --gold-gradient: linear-gradient(135deg, #2B3A44 0%, #34414E 100%);
    --bg-primary: #D4D2C6;
    --bg-secondary: #FFFFFF;
    --text-dark: #2B3A44;
    --text-body: #4B4F52;
    --text-light: #6F7274;
    --shadow-gold: 0 4px 20px rgba(99, 19, 23, 0.25);
}

/* Dark-gradient elements now need light text */
.btn-primary,
.btn-primary:hover {
    color: #FFFFFF;
}

.logo-icon {
    color: #C2B48C;
}

.article-category {
    color: #FFFFFF;
}

/* CTA section: navy background, light text, taupe button */
.cta-section h2 {
    color: #FFFFFF;
}

.cta-section p {
    color: #D4D2C6;
    opacity: 1;
}

.cta-section .btn {
    background: #C2B48C;
    color: #2B3A44;
}

.cta-section .btn:hover {
    background: #B0A68A;
}

/* Footer: taupe logo text on dark background */
.footer .logo-text {
    background: linear-gradient(135deg, #C2B48C 0%, #D4D2C6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer LINE button (replaces newsletter form) */
.footer-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C2B48C;
    color: #2B3A44;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.footer-line-btn:hover {
    background: #B0A68A;
    color: #2B3A44;
}

/* ============================================================
   HERO SPLIT — two-path landing (Phase 1.5, 2026-07-04)
   ============================================================ */

.hero-split {
    position: relative;
    min-height: 88vh;
    background: linear-gradient(90deg, #3D5060 0%, #3D5060 50%, #B0A68A 50%, #B0A68A 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hs-inner {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px) 1fr;
    align-items: center;
    gap: 20px;
}

/* ---- left (navy side) ---- */
.hs-headline {
    font-size: clamp(1.9rem, 2.4vw, 2.6rem);
    font-weight: 700;
    color: #C2B48C;
    margin-bottom: 28px;
    line-height: 1.25;
}

.hs-copy {
    font-size: 1.7rem;
    font-weight: 400;
    color: #EFEDE3;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hs-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hs-btn-primary {
    background: #C2B48C;
    color: #2B3A44;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hs-btn-primary:hover {
    background: #D4D2C6;
    color: #2B3A44;
    transform: translateY(-2px);
}

.hs-btn-secondary {
    background: transparent;
    color: #EFEDE3;
    border: 2px solid rgba(239, 237, 227, 0.7);
}

.hs-btn-secondary:hover {
    background: rgba(239, 237, 227, 0.12);
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.hs-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hs-stat-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: #C2B48C;
    line-height: 1.2;
}

.hs-stat-label {
    font-size: 0.9rem;
    color: rgba(239, 237, 227, 0.85);
}

/* ---- แถบเตือนสิทธิ · ข้อกำหนดการใช้งาน (ถาวร ไม่มีเงื่อนไข ไม่ใช่แบนเนอร์ตามเวอร์ชัน)
       วางนอก .hero-split เพราะ hero ตั้ง overflow hidden ไว้ครอบรูปคน ถ้าวางในนั้นจะถูกเฉือน ---- */
.home-legal-strip {
    background: var(--bg-secondary);
    padding: 12px 0 0;
}

.home-legal-strip p {
    margin: 0;
    font-size: 8px;
    line-height: 1.5;
    color: #631317;
    text-align: center;
}

.home-legal-strip a {
    color: #631317;
    text-decoration: underline;
}

.home-legal-strip a:hover {
    color: #8B1D22;
}

/* ---- center (person photo) ---- */
.hs-person {
    align-self: end;
    display: flex;
    justify-content: center;
}

.hs-person img {
    height: 76vh;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    display: block;
    margin-bottom: -60px; /* feet touch hero bottom edge */
}

/* ---- right (taupe side) ---- */
.hs-right {
    text-align: right;
    position: relative;
}

.hs-ear {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 0 10px auto;
    transform: translateX(-40%);
}

.hs-copy-dark {
    color: #2B3A44;
    margin-bottom: 0;
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
    .hs-headline { font-size: 2.1rem; }
    .hs-copy { font-size: 1.35rem; }
    .hs-person img { height: 60vh; }
}

/* ============================================================
   LOGO PHOTO + PORTRAIT/MOBILE FIX (Phase 1.6, 2026-07-10)
   moved in from index_draft override block
   ============================================================ */
/* logo header: circular photo + .com */
.logo-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 2px 8px rgba(43, 58, 68, 0.25);
}

.logo-com {
    font-size: 1.05rem;
    font-weight: 600;
}

/* desktop: hero edge-figure hidden (used for mobile portrait-fix only) */
.hs-figure { display: none; }

@media (max-width: 768px) {
    .hero-split {
        background: none;
        min-height: unset;
    }

    .hs-inner {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    /* hide full centre portrait (old card that looked NG) */
    .hs-person { display: none; }

    .hs-left,
    .hs-right {
        position: relative;
        overflow: hidden;
        min-height: 470px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }

    /* panel 1 — navy = learn-by-yourself (red-pill hand peeks right) */
    .hs-left {
        order: 1;
        background: #3D5060;
        padding: 44px 34% 44px 24px;
    }

    /* panel 2 — taupe = shortcut/listen-to-others (blue-pill hand peeks left) */
    .hs-right {
        order: 2;
        background: #B0A68A;
        padding: 44px 24px 44px 34%;
        text-align: left;
    }

    .hs-left > *:not(.hs-figure),
    .hs-right > *:not(.hs-figure) {
        position: relative;
        z-index: 2;
    }

    .hs-headline { text-align: left; font-size: 1.7rem; margin-bottom: 18px; }
    .hs-copy { text-align: left; font-size: 1.05rem; margin-bottom: 24px; }
    .hs-buttons { justify-content: flex-start; margin-bottom: 28px; }
    .hs-buttons .btn { padding: 10px 16px; font-size: 0.9rem; }
    .hs-stats { justify-content: flex-start; flex-direction: column; gap: 12px; margin-bottom: 0; }
    .hs-ear { width: 64px; margin: 0 0 10px; transform: none; }

    /* person peeks half-body from panel edge */
    .hs-figure {
        display: block;
        position: absolute;
        bottom: 0;
        height: 94%;
        max-height: 540px;
        z-index: 1;
        pointer-events: none;
    }

    .hs-figure img {
        height: 100%;
        width: auto;
        display: block;
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    }

    .hs-left .hs-figure { right: 0; transform: translateX(48%); }
    .hs-right .hs-figure { left: 0; transform: translateX(-48%); }
}

/* founder teaser: grid 220px 1fr breaks on narrow → stack vertical */
@media (max-width: 700px) {
    .founder-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .founder-grid .founder-text { text-align: center; }
    .founder-grid .founder-links { justify-content: center; }
}
