/*
 Theme Name:   Academica Child
 Theme URI:    https://trainingteamthai.com
 Description:  Child theme for Academica
 Author:       Training Team Thai
 Author URI:   https://trainingteamthai.com
 Template:     academica
 Version:      1.0.0
 Text Domain:  academica-child
*/

/* ========================================
   Google Fonts - Kanit
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

/* ========================================
   Global Font Settings
   ======================================== */
body,
html,
p,
span,
div,
a,
li,
td,
th,
label,
input,
textarea,
select,
button {
    font-family: 'Kanit', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget-title,
.site-title {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 600;
}

/* Body text */
body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Paragraphs */
p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1em;
}

/* Headings */
h1 { font-size: 2.2em; font-weight: 600; margin-bottom: 0.5em; }
h2 { font-size: 1.8em; font-weight: 600; margin-bottom: 0.5em; }
h3 { font-size: 1.5em; font-weight: 500; margin-bottom: 0.5em; }
h4 { font-size: 1.3em; font-weight: 500; margin-bottom: 0.5em; }
h5 { font-size: 1.1em; font-weight: 500; margin-bottom: 0.5em; }
h6 { font-size: 1em; font-weight: 500; margin-bottom: 0.5em; }

/* Links */
a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ========================================
   Site Header - Smaller
   ======================================== */
.site-header,
#masthead {
    padding: 10px 0 !important;
}

.site-title,
.site-title a {
    font-size: 1.2em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.site-description {
    font-size: 0.85em !important;
    margin: 0 !important;
}

.site-branding {
    padding: 5px 0 !important;
}

/* Header top bar */
.header-top,
.top-bar {
    padding: 5px 0 !important;
}

/* ========================================
   Navigation Menu
   ======================================== */
.main-navigation,
.main-navigation a,
.menu-item a,
#primary-menu a,
.nav-menu a {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 400;
    font-size: 14px;
}

.main-navigation {
    padding: 5px 0 !important;
}

.main-navigation ul li {
    padding: 5px 10px !important;
}

/* ========================================
   Sidebar & Widgets
   ======================================== */
.widget,
.widget a,
.widget p,
.sidebar,
.sidebar a {
    font-family: 'Kanit', sans-serif !important;
}

.widget-title {
    font-size: 1.2em;
    font-weight: 600;
}

/* ========================================
   Social Icons Widget (Vertical Layout)
   ======================================== */
.social-icons-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
}

.social-icons-widget a {
    display: block;
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.social-icons-widget a:hover {
    transform: scale(1.15);
}

.social-icons-widget img {
    display: block;
    max-width: 80%;
    height: auto;
}

/* ========================================
   Post Content
   ======================================== */
.entry-content,
.entry-content p,
.entry-content span,
.entry-content li,
.entry-content td,
.post-content,
article p,
article span {
    font-family: 'Kanit', sans-serif !important;
    font-size: 16px;
    line-height: 1.8;
}

.entry-title {
    font-size: 1.8em;
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
footer,
.site-footer,
.footer-widgets,
#footer,
footer a,
footer p {
    font-family: 'Kanit', sans-serif !important;
}

/* ========================================
   Buttons
   ======================================== */
button,
input[type="button"],
input[type="submit"],
.button,
.btn {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500;
}

/* ========================================
   Hide post date and archives
   ======================================== */
.entry-date, .posted-on, time.entry-date, .post-date,
.widget_archive, .widget_recent_entries .post-date,
aside .widget_archive, .sidebar .widget_archive,
.entry-meta {
    display: none !important;
}

/* ========================================
   Archive/Category Card Layout
   ======================================== */

/* Card container */
.archive-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.archive-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* Featured image */
.archive-thumbnail {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.archive-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.archive-card:hover .archive-featured-image {
    transform: scale(1.05);
}

/* Content area */
.archive-content {
    padding: 20px;
}

/* Title */
.archive-title {
    font-size: 1.3em;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.archive-title a {
    color: #333;
    text-decoration: none;
}

.archive-title a:hover {
    color: #0073aa;
}

/* Excerpt/Summary */
.archive-card .entry-summary {
    color: #555;
    font-size: 0.95em;
    line-height: 1.7;
}

.archive-card .entry-summary p {
    margin: 0 0 15px 0;
}

/* Read more button */
.read-more-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #005a87;
    text-decoration: none;
}

/* ========================================
   Posts by Category Widget
   ======================================== */

.posts-by-cat .cat-title {
    background: #0073aa;
    color: #fff;
    padding: 8px 12px;
    margin: 15px 0 5px 0;
    font-size: 14px;
    border-radius: 3px;
}
.posts-by-cat .cat-title:first-child {
    margin-top: 0;
}
.posts-by-cat .cat-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.posts-by-cat .cat-posts li {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}
.posts-by-cat .cat-posts li:last-child {
    border-bottom: none;
}
.posts-by-cat .cat-posts a {
    color: #333;
    text-decoration: none;
}
.posts-by-cat .cat-posts a:hover {
    color: #0073aa;
}

/* ========================================
   YouTube 2-Column Grid
   ======================================== */

.youtube-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.youtube-grid-2col .yt-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.youtube-grid-2col .yt-item strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

/* ========================================
   Image 2-Column Grid
   ======================================== */

.image-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.image-grid-2col p {
    margin: 0;
}

.image-grid-2col img {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-grid-2col .shop-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.image-grid-2col .shop-item p {
    margin-top: 10px;
}

.image-grid-2col .shop-item a {
    color: #0073aa;
    font-weight: 500;
}

/* ========================================
   Contact Page Styles
   ======================================== */

.contact-page {
    font-family: 'Kanit', sans-serif;
}

.contact-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-section h3 {
    color: #1a5276;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.4em;
}

.contact-section h3 .icon {
    margin-right: 10px;
}

.location-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fff9e6 100%);
    border-left: 5px solid #f39c12;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.location-card .label {
    font-weight: 600;
    color: #d35400;
    display: block;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.location-card .address {
    color: #333;
    font-size: 1.05em;
    line-height: 1.6;
}

.contact-person {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-person .avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.contact-person .info {
    flex: 1;
}

.contact-person .name {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-person .phone {
    color: #27ae60;
    font-size: 1.2em;
    font-weight: 500;
}

.contact-person .phone a {
    color: #27ae60;
    text-decoration: none;
}

.contact-person .phone a:hover {
    text-decoration: underline;
}

.payment-section {
    background: linear-gradient(135deg, #e8f6f3 0%, #d5f5e3 100%);
    border-radius: 12px;
    padding: 25px;
}

.payment-section h4 {
    color: #1e8449;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section .dbd-logo {
    height: 40px;
    vertical-align: middle;
    margin-left: 15px;
}

.bank-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bank-card .bank-logo {
    width: 50px;
    height: 50px;
    background: #7b1fa2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

/* KBank - Green color */
.bank-card .bank-logo.kbank {
    background: #138f2d;
}

.bank-card .bank-info {
    flex: 1;
}

.bank-card .bank-name {
    font-weight: 600;
    color: #7b1fa2;
    margin-bottom: 3px;
}

/* KBank text - Green color */
.bank-card .bank-name.kbank-text {
    color: #138f2d;
}

/* Google Maps button */
.google-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285f4;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.google-maps-btn:hover {
    background: #3367d6;
    text-decoration: none;
}

/* Map link in location card */
.location-card .map-link {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-size: 0.9em;
    text-decoration: none;
}

.location-card .map-link:hover {
    text-decoration: underline;
}

/* Coordinates box */
.coordinates-box {
    background: #f0f4f8;
    border: 1px dashed #3498db;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.coordinates-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.coord-label {
    font-weight: 500;
    color: #2c3e50;
}

.coord-value,
.coord-value-large {
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 6px;
    padding: 8px 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.1em;
    color: #2980b9;
    cursor: pointer;
    transition: all 0.3s;
    user-select: all;
}

.coord-value:hover,
.coord-value-large:hover {
    background: #3498db;
    color: #fff;
}

.coord-value.copied,
.coord-value-large.copied {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}

.coord-value.copied::after,
.coord-value-large.copied::after {
    content: ' Copied!';
}

.coord-value-large {
    font-size: 1.3em;
    padding: 10px 20px;
}

.copy-hint {
    font-size: 0.85em;
    color: #7f8c8d;
    font-style: italic;
}

/* Map info box */
.map-info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.bank-card .account-number {
    font-size: 1.15em;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bank-card .account-name {
    font-size: 0.9em;
    color: #666;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.job-section {
    background: linear-gradient(135deg, #ebf5fb 0%, #d4e6f1 100%);
    border-left: 5px solid #3498db;
}

.job-section h3 {
    color: #2874a6;
    border-bottom-color: #3498db;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.email-link:hover {
    background: #2980b9;
    text-decoration: none;
}

/* ========================================
   LINE Section Styles
   ======================================== */

.line-section {
    background: linear-gradient(135deg, #e8f8e8 0%, #d4f1d4 100%);
    border-left: 5px solid #06c755;
}

.line-section h3 {
    color: #06c755;
    border-bottom-color: #06c755;
}

.line-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.line-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.line-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-color: #06c755;
}

.line-card .line-icon {
    width: 50px;
    height: 50px;
    background: #06c755;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.line-card .line-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.line-card .line-info {
    flex: 1;
}

.line-card .line-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.line-card .line-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.line-card .line-id {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f0f9f0;
    color: #06c755;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #06c755;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.line-btn:hover {
    background: #05a347;
    text-decoration: none;
    transform: scale(1.05);
}

.line-btn-green {
    background: #06c755;
}

.line-btn-green:hover {
    background: #05a347;
}

/* LINE OpenChat - Special styling */
.line-openchat {
    background: linear-gradient(135deg, #f0fff0 0%, #e8f8e8 100%);
}

.line-openchat .line-icon {
    background: linear-gradient(135deg, #06c755, #04a648);
}

/* LINE Shop - Special styling */
.line-shop-main {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 2px solid #f1c40f;
}

.line-shop-main .line-icon {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

/* ========================================
   LINE Vertical List
   ======================================== */

.line-title-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}

.line-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.line-link:hover {
    border-color: #06c755;
    background: #f0fff0;
    text-decoration: none;
}

.line-link-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.line-link-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #2c3e50;
    min-width: 120px;
}

.line-link-desc {
    font-size: 0.85em;
    color: #666;
}

.line-link-id {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #e8f8e8;
    color: #06c755;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Main shop highlight */
.line-link.line-link-main {
    background: linear-gradient(135deg, #fffbe6 0%, #fff9d6 100%);
    border-color: #f1c40f;
}

.line-link.line-link-main:hover {
    border-color: #e67e22;
    background: linear-gradient(135deg, #fff5cc 0%, #ffefb0 100%);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .youtube-grid-2col,
    .image-grid-2col,
    .line-cards {
        grid-template-columns: 1fr;
    }
    body {
        font-size: 15px;
    }

    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }

    .archive-featured-image {
        height: 150px;
    }

    .archive-content {
        padding: 15px;
    }

    .archive-title {
        font-size: 1.1em;
    }

    /* Contact page responsive */
    .contact-person {
        flex-direction: column;
        text-align: center;
    }

    .contact-section {
        padding: 20px;
    }

    .line-card {
        padding: 15px;
    }
}
