/* ========================================
   ADDITIONAL STYLES FOR IMPROVEMENTS
   เพิ่มไฟล์นี้ใน style.css หรือ import แยก
   ======================================== */

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton-post {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--korean-red);
}

.skeleton-date,
.skeleton-title,
.skeleton-excerpt {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-date {
    height: 20px;
    width: 120px;
    border-radius: 20px;
}

.skeleton-title {
    height: 28px;
    width: 80%;
}

.skeleton-excerpt {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-excerpt:last-of-type {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Hide skeleton when content loads */
.blog-grid.loaded .skeleton-post {
    display: none;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast::before {
    content: '';
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px 0 0 10px;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-success::before {
    background: #4CAF50;
}

.toast-error {
    border-left: 4px solid #CD2E3A;
}

.toast-error::before {
    background: #CD2E3A;
}

.toast-info {
    border-left: 4px solid #003478;
}

.toast-info::before {
    background: #003478;
}

/* ========================================
   IMPROVED HERO SECTION
   ======================================== */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========================================
   SECTION SUBTITLE STYLES
   ======================================== */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    margin-top: -1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle-korean {
    text-align: center;
    font-size: 1rem;
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
}

/* ========================================
   ABOUT SECTION IMPROVEMENTS
   ======================================== */
.about-english {
    margin-bottom: 2rem;
}

.about-korean {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--korean-blue);
    margin-bottom: 1.5rem;
}

.about-korean p {
    color: #555;
    line-height: 1.8;
}

/* ========================================
   CONTACT SECTION IMPROVEMENTS
   ======================================== */
.korean-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* ========================================
   NEWSLETTER STYLES (from component)
   ======================================== */
.newsletter {
    background: linear-gradient(135deg, #003478 0%, #CD2E3A 100%);
    padding: 80px 0;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
}

.newsletter-benefits li {
    padding: 10px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-form .form-row {
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #003478;
    box-shadow: 0 0 0 3px rgba(0, 52, 120, 0.1);
}

.newsletter-form input.error {
    border-color: #CD2E3A;
}

.btn-subscribe {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #003478 0%, #CD2E3A 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.btn-subscribe:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 52, 120, 0.3);
}

.btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-subscribe .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.btn-subscribe.loading .spinner {
    display: block;
}

.btn-subscribe.loading .text {
    display: none;
}

.newsletter-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

.newsletter-success,
.newsletter-error {
    display: none;
    text-align: center;
    padding: 30px;
}

.newsletter-success.show,
.newsletter-error.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.newsletter-success h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-success p,
.newsletter-error p {
    color: #666;
    font-size: 1rem;
}

.newsletter-error p {
    color: #CD2E3A;
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */
.contact {
    background: #f8f9fa;
    padding: 80px 0;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h4 {
    color: #003478;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-form label .required {
    color: #CD2E3A;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #003478;
    box-shadow: 0 0 0 3px rgba(0, 52, 120, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #CD2E3A;
}

.error-msg {
    color: #CD2E3A;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-msg.show {
    display: block;
}

.general-error {
    margin-bottom: 15px;
    padding: 10px;
    background: #ffebee;
    border-radius: 5px;
}

.btn-submit-contact {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #003478 0%, #CD2E3A 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit-contact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 52, 120, 0.3);
}

.btn-submit-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-contact .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.btn-submit-contact.loading .spinner {
    display: block;
}

.btn-submit-contact.loading .text {
    display: none;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.contact-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-success h3 {
    color: #4CAF50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-success p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */
@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }

    .newsletter-form-container {
        padding: 30px 20px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-side {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        min-width: 200px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form .form-row-double {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-info-side {
        flex-direction: column;
    }

    .info-card {
        min-width: auto;
    }
}