﻿/*
Theme Name: TPCL Education
Template: tpcl-base
Description: 子テーマ。マレーシア教育・親子留学サイト向けのUIコンポーネントとカスタムコンテンツを提供します。
Author: TPCL
Version: 2.0.0
Text Domain: tpcl-edu
*/

/* ==========================================================================
   HEADER - Hide sister site button (temporary)
   ========================================================================== */

.tpcl-header__ctas .tpcl-nav__link--ghost {
    display: none !important;
}

/* フロントページでは.tpcl-mainの下部パディングを削除 */
.home .tpcl-main {
    padding-bottom: 0;
}

/* ==========================================================================
   LEGACY CONTENT CLEANUP (imported from old theme)
   ========================================================================== */

/* Hide duplicate title section from legacy content */
.tpcl-page__content #title-wrapper {
    display: none !important;
}

/* Remove wrapper margins */
.tpcl-page__content #wdc-wrapper {
    margin: 0;
    padding: 0;
}

/* Hide empty paragraphs */
.tpcl-page__content > p:empty,
.tpcl-page__content #wdc-wrapper > p:empty,
.tpcl-page__content #content-wrapper > p:empty {
    display: none;
}

/* First child - minimize height and margin */
.tpcl-page__content > *:first-child {
    margin-top: 0 !important;
}

/* Paragraphs with only whitespace before #wdc-wrapper */
.tpcl-page__content > p:first-child:has(+ #wdc-wrapper),
.tpcl-page__content > p:first-child:has(+ div) {
    font-size: 0;
    line-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    height: 0;
    overflow: hidden;
}

/* Legacy content wrapper cleanup */
.tpcl-page__content #content-wrapper {
    margin: 0;
    padding: 0;
}

.tpcl-page__content #content-wrapper .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

.tpcl-page__content #content-wrapper .row {
    margin: 0;
    display: block;
}

/* Hide legacy sidebar (we have our own) */
.tpcl-page__content #sidebar-wrapper {
    display: none !important;
}

/* Main wrapper cleanup */
.tpcl-page__content #main-wrapper {
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}

/* First su-note should have no top margin */
.tpcl-page__content .post-content > .su-note:first-child {
    margin-top: 0 !important;
}

/* All h4 inside su-note should have no top margin */
.tpcl-page__content .su-note h4 {
    margin: 0 !important;
    margin-top: 0 !important;
}

/* ==========================================================================
   REASON CARDS - 6 reasons card layout (Modern Design)
   ========================================================================== */

.tpcl-reason-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
    .tpcl-reason-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tpcl-reason-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tpcl-reason-card {
    background: #ffffff;
    border: 2px solid #fbcfe8;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: all 0.25s ease;
}

.tpcl-reason-card:hover {
    border-color: #db2777;
    box-shadow: 0 8px 24px -8px rgba(219, 39, 119, 0.2);
}

.tpcl-reason-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tpcl-reason-card__number {
    min-width: 1.75rem;
    height: 1.75rem;
    background: #db2777;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.tpcl-reason-card__title,
.tpcl-page__content .tpcl-reason-card__title,
article .tpcl-page__content .tpcl-reason-card__title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.75rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tpcl-reason-card__title::before,
.tpcl-reason-card__title::after {
    display: none;
}

.tpcl-reason-card__text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    padding-left: 2.5rem;
}

/* ==========================================================================
   SERVICE GRID - Simple icon + text layout
   ========================================================================== */

.tpcl-service-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 768px) {
    .tpcl-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tpcl-service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.tpcl-service-item--highlight {
    grid-column: 1 / -1;
    padding: 1rem 1.25rem;
    background: #fdf2f8;
    border-radius: 0.5rem;
    border-left: 3px solid #db2777;
}

.tpcl-service-item__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #db2777;
    margin-top: 0.125rem; /* タイトルの1行目と揃える */
}

.tpcl-service-item__icon svg,
.tpcl-service-item__icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.tpcl-service-item__content {
    flex: 1;
}

.tpcl-service-item__title,
.tpcl-page__content .tpcl-service-item__title,
article .tpcl-page__content .tpcl-service-item__title {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 0.25rem 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    border: none !important;
    line-height: 1.5 !important;
}

.tpcl-service-item__title::before {
    display: none;
}

.tpcl-service-item__text {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   EXPERIENCE BOX - Simple highlight section
   ========================================================================== */

.tpcl-experience-box {
    background: #f9fafb;
    border-left: 4px solid #db2777;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.tpcl-experience-box__content > p:first-child {
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 500;
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.tpcl-experience-box__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.tpcl-experience-box__content li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}

.tpcl-experience-box__content li::before {
    content: '✓';
    flex-shrink: 0;
    color: #db2777;
    font-weight: 700;
}

.tpcl-experience-box__content strong {
    color: #db2777;
    font-weight: 600;
}

/* Page Header & Intro */
.tpcl-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.tpcl-page__intro {
    text-align: center;
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.tpcl-section {
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .tpcl-section {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1024px) {
    .tpcl-section {
        padding: 4.5rem 0;
    }
}

.tpcl-section--featured {
    padding-top: 3.5rem;
}

.tpcl-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tpcl-section__note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* Support Page - ページ全体の下部余白を削減 */
.page-template-page-support .tpcl-page,
.page-support .tpcl-page {
    padding-bottom: 2rem;
}

/* Support CTA Section - 余白を最小化 */
.tpcl-section--support-cta {
    padding: 1rem 0 0;
}

.tpcl-section--support-cta .tpcl-support__actions {
    margin-top: 0;
}

.tpcl-section__actions,
.tpcl-support__actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tpcl-section__actions .tpcl-nav__link,
.tpcl-support__actions .tpcl-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    min-width: 250px;
    max-width: 100%;
}

.tpcl-section__actions .tpcl-nav__link--cta,
.tpcl-support__actions .tpcl-nav__link--cta {
    background-color: var(--accent-color);
    color: #ffffff;
}

.tpcl-section__actions .tpcl-nav__link--cta:hover,
.tpcl-support__actions .tpcl-nav__link--cta:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tpcl-section__actions .tpcl-nav__link i,
.tpcl-support__actions .tpcl-nav__link i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .tpcl-section__actions .tpcl-nav__link,
    .tpcl-support__actions .tpcl-nav__link {
        white-space: nowrap;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

.tpcl-featured {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tpcl-featured {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 1rem;
    }

    .tpcl-featured__media {
        min-height: 280px;
    }
}

@media (min-width: 1024px) {
    .tpcl-featured__media {
        min-height: 240px;
    }
}

.tpcl-featured__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tpcl-featured__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.tpcl-featured__sub-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.tpcl-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpcl-featured__main {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
}

.tpcl-featured__main .card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    color: #FFFFFF;
}

.tpcl-featured__sub {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
}

.tpcl-featured__sub .card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    color: #FFFFFF;
}

.tpcl-featured__placeholder {
    height: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(-45deg, rgba(219, 39, 119, 0.1), rgba(219, 39, 119, 0.1) 12px, rgba(219, 39, 119, 0.05) 12px, rgba(219, 39, 119, 0.05) 24px);
    color: var(--accent-dark);
    font-weight: 600;
}

.tpcl-featured__sidebar {
    display: grid;
    gap: 1.75rem;
    grid-template-rows: auto auto;
}

.tpcl-featured__title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tpcl-featured__subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tpcl-featured__meta,
.tpcl-featured__excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Company Introduction Card */
.tpcl-featured__company {
    display: flex;
    flex-direction: column;
}

.tpcl-featured__company .card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 1.5rem;
}

.tpcl-featured__company-text {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tpcl-featured__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.tpcl-featured__link:hover,
.tpcl-featured__link:focus {
    background-color: var(--accent-dark);
    color: #fff;
}

/* Why Choose Us Section */
.tpcl-section--about-support {
    background: linear-gradient(180deg, var(--surface-muted) 0%, var(--surface) 100%);
}

/* Why Choose Us - Pink Background Wrapper */
.tpcl-reasons-wrapper {
    background-color: var(--accent-light);
    padding: 2rem;
    margin-top: 3rem;
}

.tpcl-reasons-wrapper .tpcl-section__header--reasons {
    margin-top: 0;
}

.tpcl-reasons-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .tpcl-reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tpcl-reason {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpcl-reason:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.tpcl-reason .card-content {
    padding: 1.75rem;
}

.tpcl-reason__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.tpcl-reason__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tpcl-reason__text {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.tpcl-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .tpcl-tag-list {
        justify-content: center;
    }
}

.tpcl-area-tabs {
    display: grid;
    gap: 1.75rem;
}

.tpcl-area-tabs__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tpcl-area-tabs__panels {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    padding: 2.5rem;
}

.tpcl-map {
    border-radius: 0.85rem;
    overflow: hidden;
    margin-bottom: 1.75rem;
    min-height: 320px;
}

.tpcl-map iframe {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
}

/* Leaflet地図コンテナ */
.tpcl-school-map {
    width: 100%;
    height: 500px;
    border-radius: 0.85rem;
    z-index: 1;
}

@media (max-width: 767px) {
    .tpcl-map iframe,
    .tpcl-school-map {
        height: 350px;
    }
}

.tpcl-map__placeholder {
    display: grid;
    place-items: center;
    background: #F3F4F6;
    color: var(--text-muted);
    min-height: 260px;
    border-radius: 0.75rem;
}

/* フィルターUI */
.tpcl-school-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--surface-muted);
    border-radius: 0.75rem;
}

.tpcl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 150px;
}

.tpcl-filter-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tpcl-filter-select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tpcl-filter-select:hover,
.tpcl-filter-select:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* 学校数バッジ */
.tpcl-school-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-color);
    color: white;
    border-radius: 9999px;
}

.tpcl-school-count:empty {
    display: none;
}

/* ポップアップスタイル */
.tpcl-school-popup .leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
    padding: 0;
    overflow: hidden;
}

.tpcl-school-popup .leaflet-popup-content {
    margin: 0;
    min-width: 220px;
}

.tpcl-popup-content {
    font-family: inherit;
}

.tpcl-popup-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.tpcl-popup-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpcl-popup-info {
    padding: 0.875rem;
}

.tpcl-popup-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.tpcl-popup-curriculum,
.tpcl-popup-tuition {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin: 0 0 0.25rem;
}

.tpcl-popup-link,
.tpcl-popup-link:link,
.tpcl-popup-link:visited {
    display: inline-flex;
    align-items: center;
    margin-top: 0.625rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff !important;
    background: var(--accent-color);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.tpcl-popup-link:hover,
.tpcl-popup-link:active {
    background: var(--accent-dark);
    color: #ffffff !important;
}

/* ポップアップのモバイル対応 */
@media (max-width: 767px) {
    .tpcl-school-popup .leaflet-popup-content {
        min-width: 180px;
        max-width: 240px;
    }

    .tpcl-popup-thumbnail {
        height: 100px;
    }

    .tpcl-popup-info {
        padding: 0.75rem;
    }

    .tpcl-popup-title {
        font-size: 0.875rem;
    }

    .tpcl-popup-curriculum,
    .tpcl-popup-tuition {
        font-size: 0.75rem;
    }

    .tpcl-popup-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
}

/* 学校カード（動的生成） */
.tpcl-area-school__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tpcl-area-school__media {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
    background: var(--surface-muted);
}

.tpcl-area-school__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpcl-area-school:hover .tpcl-area-school__media img {
    transform: scale(1.05);
}

.tpcl-area-school__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.tpcl-area-school__content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpcl-area-school__curriculum,
.tpcl-area-school__tuition {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin: 0.25rem 0;
}

.tpcl-no-schools {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.tpcl-area-school-grid {
    display: block;
    width: 100%;
}

.tpcl-area-school__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tpcl-area-school__excerpt {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.tpcl-area-school__link {
    margin-top: auto;
    padding-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* ==========================================================================
   学校テーブル（リスト形式）
   ========================================================================== */

.tpcl-school-table-wrapper {
    width: 100%;
}

.tpcl-school-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    table-layout: auto;
}

.tpcl-school-table thead {
    background: var(--surface-muted);
}

.tpcl-school-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.tpcl-school-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.tpcl-school-table__row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tpcl-school-table__row:hover {
    background-color: var(--surface-muted);
}

.tpcl-school-table__row:last-child td {
    border-bottom: none;
}

/* 学校名カラム */
.tpcl-school-table__th--name {
    min-width: 200px;
}

.tpcl-school-table__name-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tpcl-school-table__thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.tpcl-school-table__title {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* 地図ジャンプボタン */
.tpcl-school-table__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 0.5rem;
    padding: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.tpcl-school-table__map-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.tpcl-school-table__map-btn svg {
    width: 14px;
    height: 14px;
}

/* カリキュラム・学費 */
.tpcl-school-table__td--curriculum,
.tpcl-school-table__td--tuition {
    color: var(--text-gray);
}

/* 施設バッジ */
.tpcl-school-table__td--facilities {
    white-space: nowrap;
}

.tpcl-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.tpcl-badge--dormitory {
    background: #e0f2fe;
    color: #0369a1;
}

.tpcl-badge--english {
    background: #dcfce7;
    color: #166534;
}

.tpcl-badge--none {
    color: var(--text-muted);
    background: transparent;
    padding: 0;
}

/* おすすめバッジ */
.tpcl-badge--featured {
    background-color: #f59e0b;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    font-weight: 600;
}

/* おすすめ行のハイライト */
.tpcl-school-table__row--featured {
    background-color: #fffbeb;
}

.tpcl-school-table__row--featured:hover {
    background-color: #fef3c7;
}

/* 詳細リンク */
.tpcl-school-table__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.tpcl-school-table__link:hover {
    background: var(--accent-dark);
    color: white;
}

/* エリアカラム */
.tpcl-school-table__td--area {
    color: var(--text-gray);
    white-space: nowrap;
}

/* モバイル対応 */
.tpcl-area-school-grid {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tpcl-school-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* スマホ：カード形式に変換 */
@media (max-width: 767px) {
    .tpcl-school-table-wrapper {
        overflow-x: visible;
    }

    .tpcl-school-table {
        display: block;
        min-width: 0;
    }

    .tpcl-school-table thead {
        display: none;
    }

    .tpcl-school-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .tpcl-school-table__row {
        display: flex;
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--border-color);
        border-radius: 0.75rem;
        padding: 1rem;
        gap: 0.5rem;
    }

    .tpcl-school-table__row:hover {
        background: var(--surface);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .tpcl-school-table td {
        display: flex;
        padding: 0;
        border-bottom: none;
    }

    /* 学校名 - フル幅、上部 */
    .tpcl-school-table__td--name {
        order: 1;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 0.25rem;
    }

    .tpcl-school-table__name-wrap {
        width: 100%;
    }

    .tpcl-school-table__thumb {
        width: 56px;
        height: 56px;
    }

    .tpcl-school-table__title {
        font-size: 1rem;
        flex: 1;
    }

    .tpcl-school-table__map-btn {
        width: 32px;
        height: 32px;
    }

    /* エリア */
    .tpcl-school-table__td--area {
        order: 2;
    }

    .tpcl-school-table__td--area::before {
        content: 'エリア：';
        font-weight: 500;
        color: var(--text-gray);
        margin-right: 0.5rem;
        min-width: 5rem;
    }

    /* カリキュラム */
    .tpcl-school-table__td--curriculum {
        order: 3;
    }

    .tpcl-school-table__td--curriculum::before {
        content: 'カリキュラム：';
        font-weight: 500;
        color: var(--text-gray);
        margin-right: 0.5rem;
        min-width: 5rem;
    }

    /* 学費 */
    .tpcl-school-table__td--tuition {
        order: 4;
    }

    .tpcl-school-table__td--tuition::before {
        content: '年間学費：';
        font-weight: 500;
        color: var(--text-gray);
        margin-right: 0.5rem;
        min-width: 5rem;
    }

    /* 施設バッジ */
    .tpcl-school-table__td--facilities {
        order: 5;
        flex-wrap: wrap;
    }

    .tpcl-school-table__td--facilities::before {
        content: '施設：';
        font-weight: 500;
        color: var(--text-gray);
        margin-right: 0.5rem;
        min-width: 5rem;
    }

    /* 詳細ボタン */
    .tpcl-school-table__td--action {
        order: 6;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .tpcl-school-table__link {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }
}

/* ==========================================================================
   End 学校テーブル
   ========================================================================== */

.tpcl-area-tabs__cta {
    margin-top: 1.75rem;
    text-align: center;
}

.tpcl-area-tabs__cta .tpcl-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    min-width: 200px;
    max-width: 100%;
}

.tpcl-area-tabs__cta .tpcl-nav__link:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tpcl-area-tabs__cta .tpcl-nav__link i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .tpcl-area-tabs__cta .tpcl-nav__link {
        white-space: nowrap;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

.tpcl-support-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tpcl-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tpcl-support-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tpcl-support-grid--secondary {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .tpcl-support-grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tpcl-support-grid--secondary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tpcl-support {
    text-align: center;
    height: 100%;
}

.tpcl-support .card-content {
    height: 100%;
}

.tpcl-support .card-content {
    text-align: center;
}

.tpcl-support__icon {
    display: grid;
    place-items: center;
}

.tpcl-support__icon i {
    width: 44px;
    height: 44px;
    color: var(--accent-color);
}

.tpcl-support__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tpcl-support__excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.tpcl-support__badge {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
}

.tpcl-support__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tpcl-support__link:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tpcl-support__link:hover i {
    color: #ffffff !important;
}

.tpcl-support__link i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.tpcl-case-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tpcl-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tpcl-case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tpcl-case__icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-color);
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.tpcl-case__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tpcl-case__excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.tpcl-case__link {
    margin-top: auto;
    padding-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    font-weight: 600;
}

.tpcl-video-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tpcl-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .tpcl-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tpcl-video__media {
    position: relative;
    padding-bottom: 56.25%;
    background: #111827;
}

.tpcl-video__media iframe,
.tpcl-video__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.75rem 0.75rem 0 0;
}

.tpcl-video__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 600;
}

.tpcl-video__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.tpcl-video__excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .tpcl-area-tabs__panels {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .tpcl-area-tabs__buttons {
        gap: 0.5rem;
    }

    .map-tab-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .tpcl-map {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }

    /* フィルターをスタック */
    .tpcl-school-filters {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .tpcl-filter-group {
        width: 100%;
    }

    .tpcl-filter-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }

    .tpcl-filter-select {
        width: 100%;
        padding: 0.625rem 0.75rem;
    }

    /* エリアタブCTA */
    .tpcl-area-tabs__cta {
        margin-top: 1rem;
    }

    .tpcl-area-tabs__cta .tpcl-nav__link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 1023px) {
    .tpcl-featured__sidebar {
        grid-template-rows: auto;
    }
}

/* ========================================
   Malaysia Study Guide Template
   ======================================== */

/* Page Container */
.malaysia-study-page {
    padding: 3rem 0 6rem;
}

/* Hero Section */
.malaysia-hero {
    text-align: center;
    padding: 2.5rem 2rem 3.5rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, #FFF 100%);
    border-radius: 1.25rem;
    margin-bottom: 3rem;
}

.malaysia-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.malaysia-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    background: var(--surface);
    border-radius: 999px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15);
}

.malaysia-hero__tag i {
    width: 16px;
    height: 16px;
}

.malaysia-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.malaysia-hero__excerpt {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Article Container */
.malaysia-study-article {
    background: var(--surface);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* Content Section */
.malaysia-content {
    padding: 3rem 2.5rem;
}

@media (min-width: 768px) {
    .malaysia-content {
        padding: 4rem 4.5rem;
    }
}

/* Enhanced Content Styling */
.malaysia-content__inner {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

/* Headings */
.malaysia-content__inner h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.malaysia-content__inner h2:first-child {
    margin-top: 0 !important;
}

.malaysia-content__inner h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    padding-left: 1.25rem;
}

.malaysia-content__inner h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 4px;
    height: calc(100% - 0.7rem);
    background: var(--accent-color);
    border-radius: 2px;
}

/* Lists */
.malaysia-content__inner ul,
.malaysia-content__inner ol {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.malaysia-content__inner ul {
    list-style-type: none;
}

.malaysia-content__inner ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.malaysia-content__inner ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.malaysia-content__inner ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.malaysia-content__inner ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.malaysia-content__inner li strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Tables */
.malaysia-content__inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.malaysia-content__inner th,
.malaysia-content__inner td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.malaysia-content__inner th {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.malaysia-content__inner tbody tr:hover {
    background-color: var(--surface-muted);
}

.malaysia-content__inner tbody tr:last-child td {
    border-bottom: none;
}

/* Paragraphs */
.malaysia-content__inner p {
    margin-bottom: 1.25rem;
}

.malaysia-content__inner p strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* Responsive Tables */
@media (max-width: 767px) {
    .malaysia-content__inner table {
        font-size: 0.85rem;
    }

    .malaysia-content__inner th,
    .malaysia-content__inner td {
        padding: 0.75rem 0.85rem;
    }
}

/* CTA Section */
.malaysia-cta {
    background: linear-gradient(135deg, var(--accent-light) 0%, #FFF 100%);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
}

@media (min-width: 768px) {
    .malaysia-cta {
        padding: 4rem 4.5rem;
    }
}

.malaysia-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.malaysia-cta__content {
    margin-bottom: 2rem;
}

.malaysia-cta__content i {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin: 0 auto 1rem;
}

.malaysia-cta__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.malaysia-cta__text {
    font-size: 1.05rem;
    color: var(--text-gray);
}

.malaysia-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Comments Section */
.malaysia-comments {
    padding: 3rem 2.5rem;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .malaysia-comments {
        padding: 4rem 4.5rem;
    }
}

/* ========================================
   Article Template
   ======================================== */

.article-page {
    padding: 3rem 0 6rem;
}

/* Hero Section */
.article-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-light) 0%, #FFF 100%);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-hero__category {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface);
    border-radius: 999px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.article-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.article-hero__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.article-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta__item i {
    width: 16px;
    height: 16px;
}

/* Support Service Hero Variant */
.article-hero--service {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.article-hero__icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.article-hero__icon-large i {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.article-hero__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.article-hero__lead {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image__img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 1rem;
}

/* Article Layout */
.article-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar */
.article-sidebar {
    display: grid;
    gap: 2rem;
    align-content: start;
}

@media (min-width: 1024px) {
    .article-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Table of Contents */
.article-toc {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.article-toc__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-toc__title i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc__item {
    margin-bottom: 0.5rem;
}

.article-toc__item--level-3 {
    margin-left: 1rem;
    font-size: 0.9rem;
}

.article-toc__link {
    color: var(--text-gray);
    display: block;
    padding: 0.35rem 0;
    transition: color 0.2s;
}

.article-toc__link:hover {
    color: var(--accent-color);
}

/* Social Share */
.article-share {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.article-share__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-share__title i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.article-share__buttons {
    display: flex;
    gap: 0.75rem;
}

.article-share__button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    transition: transform 0.2s;
}

.article-share__button i {
    width: 20px;
    height: 20px;
}

.article-share__button:hover {
    transform: translateY(-2px);
}

.article-share__button--twitter {
    background: #1DA1F2;
    color: #fff;
}

.article-share__button--facebook {
    background: #1877F2;
    color: #fff;
}

.article-share__button--line {
    background: #00B900;
    color: #fff;
}

/* Article Content */
.article-main {
    min-width: 0;
}

.article-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .article-content {
        padding: 3rem 3.5rem;
    }
}

.article-content h2,
.article-content h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

/* Author Box */
.article-author {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.article-author__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.article-author__info {
    flex: 1;
}

.article-author__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.article-author__bio {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.article-author__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Related Posts - 3 Column Layout */
.tpcl-related {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .tpcl-related {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.tpcl-related__main {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.75rem;
}

@media (min-width: 768px) {
    .tpcl-related__main {
        min-height: 100%;
    }
}

.tpcl-related__main .tpcl-featured__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.tpcl-related__main .tpcl-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpcl-related__main .card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: #FFFFFF;
    padding: 1rem;
}

.tpcl-related__title {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tpcl-related__main .tpcl-featured__meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.tpcl-related__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tpcl-related__sub {
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.tpcl-related__sub .tpcl-featured__sub-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.tpcl-related__sub .tpcl-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpcl-related__sub .card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: #FFFFFF;
    padding: 0.75rem;
}

.tpcl-related__sub-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tpcl-related__sub .tpcl-featured__meta {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* Related Posts - Legacy */
.article-related {
    margin-top: 2rem;
}

.article-related__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.article-related__title i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.article-related__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .article-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-related__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.article-related__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-related__item-title a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.article-related__date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.article-related__date i {
    width: 14px;
    height: 14px;
}

/* ========================================
   Blog Grid Template
   ======================================== */

.blog-grid-page {
    padding: 3rem 0 6rem;
}

/* Blog Grid Header */
.blog-grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-grid-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-grid-header__description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-grid-filters {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.blog-grid-filters__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.blog-filter-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.blog-filter-label i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.blog-filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--surface);
    cursor: pointer;
}

.blog-filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.blog-grid-results {
    margin-top: auto;
    padding-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-grid-results__count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 600;
}

.blog-grid-results__count i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
}

.blog-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card__category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.blog-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-card__date,
.blog-card__comments {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card__date i,
.blog-card__comments i {
    width: 14px;
    height: 14px;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: var(--text-dark);
}

.blog-card__excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-card__tag {
    font-size: 0.8rem;
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    background: var(--accent-light);
    border-radius: 0.35rem;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
}

.blog-card__link i {
    width: 16px;
    height: 16px;
}

/* Blog Grid Empty */
.blog-grid-empty {
    padding: 4rem 2rem;
}

.blog-grid-empty__inner {
    background: var(--surface);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.blog-grid-empty__icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto 1rem;
}

.blog-grid-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.blog-grid-empty__text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* ========================================
   Profile Template
   ======================================== */

.profile-page {
    padding: 3rem 0 6rem;
}

/* Profile Hero */
.profile-hero {
    background: linear-gradient(135deg, var(--accent-light) 0%, #FFF 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .profile-hero {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.profile-hero__image {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .profile-hero__image {
        width: 280px;
    }
}

.profile-hero__img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .profile-hero__img {
        margin-bottom: 0;
    }
}

.profile-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface);
    border-radius: 999px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.profile-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.profile-hero__excerpt {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Profile Layout */
.profile-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* Profile Main Content */
.profile-main {
    min-width: 0;
}

.profile-content {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: var(--text-gray);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .profile-content {
        padding: 3rem 3.5rem;
    }
}

.profile-content h2,
.profile-content h3 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Profile Gallery */
.profile-gallery {
    margin-top: 2rem;
}

.profile-gallery__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.profile-gallery__title i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.profile-gallery__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.profile-gallery__item {
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
}

.profile-gallery__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-gallery__item:hover .profile-gallery__image {
    transform: scale(1.05);
}

/* Profile Features */
.profile-features {
    margin-top: 2rem;
}

.profile-features__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-features__title i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.profile-features__list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile-features__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 0.5rem;
}

.profile-features__item i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Profile Sidebar */
.profile-sidebar {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

@media (min-width: 1024px) {
    .profile-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Profile Info Box */
.profile-info-box {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.profile-info-box__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-info-box__title i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.profile-info-box__list {
    display: grid;
    gap: 1rem;
}

.profile-info-box__item {
    display: grid;
    gap: 0.25rem;
}

.profile-info-box__label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.profile-info-box__label i {
    width: 14px;
    height: 14px;
}

.profile-info-box__value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Profile Contact */
.profile-contact {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.profile-contact__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-contact__title i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.profile-contact__list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile-contact__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-contact__item i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.profile-contact__item a {
    color: var(--text-dark);
}

/* Profile Map */
.profile-map {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.profile-map__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-map__title i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.profile-map__embed {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Profile CTA */
.profile-cta {
    display: grid;
    gap: 0.75rem;
}

/* ========================================
   Search Template
   ======================================== */

.search-page {
    padding: 3rem 0 6rem;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.search-header__title i {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.search-header__query {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Search Form */
.search-form__inner {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form__input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-form__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form__button:hover {
    background: var(--accent-dark);
}

.search-form__button i {
    width: 18px;
    height: 18px;
}

/* Search Filters */
.search-filters {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.search-filters__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.search-filter-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.search-filter-label i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.search-filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--surface);
    cursor: pointer;
}

.search-filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-results-count {
    margin-top: auto;
    padding-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.search-results-count__text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 600;
}

.search-results-count__text i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

/* Search Results */
.search-results {
    display: grid;
    gap: 1.5rem;
}

.search-result-item {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .search-result-item {
        flex-direction: column-reverse;
    }
}

.search-result-item__content {
    flex: 1;
}

.search-result-item__type {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.search-result-item__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-result-item__title a {
    color: var(--text-dark);
}

.search-result-item__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-result-item__date,
.search-result-item__category {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.search-result-item__date i,
.search-result-item__category i {
    width: 14px;
    height: 14px;
}

.search-result-item__excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.search-result-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    font-weight: 600;
}

.search-result-item__link i {
    width: 16px;
    height: 16px;
}

.search-result-item__thumb {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .search-result-item__thumb {
        width: 200px;
    }
}

.search-result-item__image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Search Empty */
.search-empty {
    padding: 4rem 2rem;
}

.search-empty__inner {
    background: var(--surface);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.search-empty__icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto 1rem;
}

.search-empty__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.search-empty__text {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.search-empty__suggestions {
    max-width: 500px;
    margin: 0 auto;
}

.search-empty__suggestions-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.search-empty__suggestions-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.search-empty__suggestions-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface-muted);
    border-radius: 0.5rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.search-empty__suggestions-list li a:hover {
    background: var(--accent-light);
    color: var(--accent-color);
}

.search-empty__suggestions-list li i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/* Support link styles - Fix for arrow alignment */
.tpcl-support__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tpcl-support__link:hover {
    color: var(--accent-dark);
}

.tpcl-support__link i {
    width: 18px;
    height: 18px;
}

/* ========================================
   Malaysia Study Page Styles
   ======================================== */

.tpcl-page--malaysia-study {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* School Tile Grid */
.area-schools-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.area-schools-title .school-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
}

.tpcl-school-tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .tpcl-school-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tpcl-school-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tpcl-school-tile.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tpcl-school-tile__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tpcl-school-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpcl-school-tile:hover .tpcl-school-tile__image {
    transform: scale(1.05);
}

.tpcl-school-tile .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.tpcl-school-tile__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tpcl-school-tile__excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-gray);
    flex: 1;
}

.tpcl-school-tile__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.tpcl-school-tile__link:hover {
    color: var(--accent-dark);
}

.tpcl-school-tile__link i {
    width: 16px;
    height: 16px;
}

/* CTA Section */
.cta-section--simple {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================================================
   FOOTER BACKGROUND OVERRIDE (Pink & Blue Gradient Theme)
   ========================================================================== */

.tpcl-footer {
    background: transparent;
    border-top: none;
    padding: 0;
    margin-top: 0;
}

/* 会社名セクション（白背景） */
.tpcl-footer__companies-wrapper {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 0;
}

/* 事務所情報セクション（明るいピンク・ブルーグラデーション） */
.tpcl-footer__offices-wrapper {
    background: linear-gradient(135deg, #fce7f3 0%, #f5d0fe 25%, #e9d5ff 50%, #ddd6fe 75%, #e0e7ff 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.tpcl-footer__offices-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(244, 114, 182, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.tpcl-footer__offices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .tpcl-footer__offices {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .tpcl-footer__offices {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.tpcl-footer__office {
    color: #4b5563;
}

.tpcl-footer__office-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tpcl-footer__office-address,
.tpcl-footer__office-phone,
.tpcl-footer__office-email {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
}

.tpcl-footer__office-address i,
.tpcl-footer__office-phone i,
.tpcl-footer__office-email i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #9333ea;
    opacity: 0.8;
}

.tpcl-footer__office-phone a,
.tpcl-footer__office-email a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
}

.tpcl-footer__office-phone a:hover,
.tpcl-footer__office-email a:hover {
    color: #ec4899;
}

/* ========================================
   School Archive - Filter Form
   ======================================== */

.tpcl-school-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: flex-end;
}

.tpcl-school-filter__item {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tpcl-school-filter__item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tpcl-school-filter select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.tpcl-school-filter select:hover {
    border-color: var(--accent-color);
}

.tpcl-school-filter select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.tpcl-school-filter__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tpcl-school-filter__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.tpcl-school-filter__submit:hover {
    background: var(--accent-dark);
}

.tpcl-school-filter__submit:active {
    transform: scale(0.98);
}

.tpcl-school-filter__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tpcl-school-filter__reset:hover {
    background: var(--surface-muted);
    color: var(--text-dark);
    border-color: var(--text-gray);
}

/* Filter responsive */
@media (max-width: 767px) {
    .tpcl-school-filter {
        flex-direction: column;
        gap: 1rem;
    }

    .tpcl-school-filter__item {
        min-width: 100%;
    }

    .tpcl-school-filter__actions {
        width: 100%;
        justify-content: stretch;
    }

    .tpcl-school-filter__submit {
        flex: 1;
        justify-content: center;
    }

    .tpcl-school-filter__reset {
        flex: 0 0 auto;
    }
}

/* ========================================
   School Archive - View Toggle
   ======================================== */

.tpcl-view-toggle {
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tpcl-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tpcl-view-toggle__btn:hover {
    background: var(--surface-muted);
    color: var(--text-dark);
}

.tpcl-view-toggle__btn.active {
    background: var(--accent-color);
    color: #ffffff;
}

.tpcl-view-toggle__btn i {
    flex-shrink: 0;
}

/* ========================================
   School Archive - Card Styles
   ======================================== */

.tpcl-school-card {
    background: var(--surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpcl-school-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* Image Wrapper */
.tpcl-school-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.tpcl-school-card__image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpcl-school-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
}

.tpcl-school-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpcl-school-card:hover .tpcl-school-card__image img {
    transform: scale(1.05);
}

/* Area Badge */
.tpcl-school-card__area-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Content Section */
.tpcl-school-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.tpcl-school-card__header {
    margin-bottom: 0.5rem;
}

.tpcl-school-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.tpcl-school-card__title a {
    color: inherit;
    text-decoration: none;
}

.tpcl-school-card__title a:hover {
    color: var(--accent-color);
}

.tpcl-school-card__excerpt {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Details Grid */
.tpcl-school-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.tpcl-school-card__detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tpcl-school-card__detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tpcl-school-card__detail-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tpcl-school-card__detail-item--tuition .tpcl-school-card__detail-value {
    color: var(--accent-color);
}

/* Footer */
.tpcl-school-card__footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.tpcl-school-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.tpcl-school-card__link:hover {
    color: var(--accent-dark);
    gap: 0.75rem;
}

/* ========================================
   School Archive - List View (Default)
   ======================================== */

.tpcl-school-list--list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tpcl-school-list--list .tpcl-school-card {
    display: flex;
    flex-direction: row;
}

.tpcl-school-list--list .tpcl-school-card__image-wrapper {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    min-height: 200px;
}

.tpcl-school-list--list .tpcl-school-card__image {
    height: 100%;
}

.tpcl-school-list--list .tpcl-school-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.tpcl-school-list--list .tpcl-school-card__title {
    font-size: 1.25rem;
}

.tpcl-school-list--list .tpcl-school-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpcl-school-list--list .tpcl-school-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem 1.5rem;
}

/* List view responsive - Mobile */
@media (max-width: 767px) {
    .tpcl-school-list--list .tpcl-school-card {
        flex-direction: column;
    }

    .tpcl-school-list--list .tpcl-school-card__image-wrapper {
        width: 100%;
        height: 200px;
        min-height: auto;
    }

    .tpcl-school-list--list .tpcl-school-card__content {
        padding: 1.25rem;
    }

    .tpcl-school-list--list .tpcl-school-card__details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* List view - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .tpcl-school-list--list .tpcl-school-card__image-wrapper {
        width: 240px;
    }
}

/* List view - Desktop */
@media (min-width: 1024px) {
    .tpcl-school-list--list .tpcl-school-card__image-wrapper {
        width: 320px;
    }

    .tpcl-school-list--list .tpcl-school-card__title {
        font-size: 1.375rem;
    }

    .tpcl-school-list--list .tpcl-school-card__details {
        grid-template-columns: repeat(5, auto);
        justify-content: start;
    }
}

/* ========================================
   School Archive - Tile View
   ======================================== */

.tpcl-school-list--tile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .tpcl-school-list--tile {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tpcl-school-list--tile {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tpcl-school-list--tile .tpcl-school-card {
    display: flex;
    flex-direction: column;
}

.tpcl-school-list--tile .tpcl-school-card__image-wrapper {
    width: 100%;
    height: 200px;
}

.tpcl-school-list--tile .tpcl-school-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpcl-school-list--tile .tpcl-school-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpcl-school-list--tile .tpcl-school-card__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
}

.tpcl-school-list--tile .tpcl-school-card__footer {
    margin-top: auto;
}

/* ========================================
   School Single - Gallery Slider
   ======================================== */

.tpcl-gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.tpcl-gallery-slider {
    position: relative;
    margin: 1.5rem 0 2.5rem;
    background: var(--surface-muted);
    border-radius: 0.75rem;
    overflow: hidden;
}

.tpcl-gallery-slider .splide__track {
    overflow: hidden;
}

.tpcl-gallery-slider .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 3.5rem;
    min-height: 350px;
}

.tpcl-gallery-slider .splide__slide figure {
    margin: 0;
    text-align: center;
}

.tpcl-gallery-slider .splide__slide img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tpcl-gallery-slider .splide__slide figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Splide Navigation Arrows - Fixed positioning */
.tpcl-gallery-slider .splide__arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tpcl-gallery-slider .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 10;
}

.tpcl-gallery-slider .splide__arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.tpcl-gallery-slider .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tpcl-gallery-slider .splide__arrow svg {
    fill: var(--text-dark);
    width: 1.25rem;
    height: 1.25rem;
}

.tpcl-gallery-slider .splide__arrow--prev {
    left: 1rem;
}

.tpcl-gallery-slider .splide__arrow--next {
    right: 1rem;
}

/* Splide Pagination */
.tpcl-gallery-slider .splide__pagination {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    padding: 0.5rem 0;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
}

.tpcl-gallery-slider .splide__pagination__page {
    width: 0.625rem;
    height: 0.625rem;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.tpcl-gallery-slider .splide__pagination__page.is-active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 767px) {
    .tpcl-gallery-slider .splide__slide {
        min-height: 250px;
        padding: 1rem;
    }

    .tpcl-gallery-slider .splide__slide img {
        max-height: 220px;
    }

    .tpcl-gallery-slider .splide__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .tpcl-gallery-slider .splide__arrow--prev {
        left: 0.5rem;
    }

    .tpcl-gallery-slider .splide__arrow--next {
        right: 0.5rem;
    }
}

/* ========================================
   School Single - Images, Video & Map Full Width
   ======================================== */

/* Images - Full column width */
.tpcl-page__content img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.tpcl-page__content figure {
    width: 100%;
    margin: 1.5rem 0;
}

.tpcl-page__content figure img {
    margin: 0;
}

.tpcl-page__content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Videos - Full column width */
.tpcl-page__content iframe {
    width: 100%;
    min-height: 400px;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.tpcl-page__content iframe[src*="youtube"],
.tpcl-page__content iframe[src*="youtu.be"] {
    aspect-ratio: 16 / 9;
    min-height: auto;
    height: auto;
}

/* Maps - Full column width */
.tpcl-page__content iframe[src*="maps.google"],
.tpcl-page__content iframe[src*="google.com/maps"] {
    min-height: 400px;
}

/* ==========================================================================
   HERO SPLIT SECTION (左3/4 + 右1/4)
   ========================================================================== */

.tpcl-edu-hero-split {
    padding: 0;
    margin-bottom: 0;
}

.tpcl-edu-hero-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 340px;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__grid {
        grid-template-columns: 3fr 1fr;
        min-height: 320px;
    }
}

@media (min-width: 1024px) {
    .tpcl-edu-hero-split__grid {
        min-height: 360px;
    }
}

/* ヒーローセクション直後のセクションは上部パディングを調整 */
.tpcl-edu-hero-split + .tpcl-section {
    padding-top: 2.5rem;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split + .tpcl-section {
        padding-top: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .tpcl-edu-hero-split + .tpcl-section {
        padding-top: 4rem;
    }
}

/* 左側: メイン写真+テキスト */
.tpcl-edu-hero-split__main {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 340px;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__main {
        min-height: 100%;
    }
}

.tpcl-edu-hero-split__main:hover .tpcl-edu-hero-split__image {
    transform: scale(1.03);
}

.tpcl-edu-hero-split__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tpcl-edu-hero-split__image--placeholder {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 50%, var(--accent-light) 100%);
}

.tpcl-edu-hero-split__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.tpcl-edu-hero-split__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    color: #FFFFFF;
    z-index: 1;
    text-align: center;
    width: 90%;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__content {
        max-width: 800px;
    }
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__content {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .tpcl-edu-hero-split__content {
        padding: 2.5rem;
    }
}

.tpcl-edu-hero-split__title {
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tpcl-edu-hero-split__subtitle {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    text-align: left;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__subtitle {
        -webkit-line-clamp: 6;
    }
}

/* 右側: 最新情報 */
.tpcl-edu-hero-split__news {
    background: #FDF2F8;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__news {
        padding: 1rem 1.25rem;
        border-left: 1px solid #FBCFE8;
    }
}

.tpcl-edu-hero-split__news-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid var(--accent-color);
}

.tpcl-edu-hero-split__news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tpcl-edu-hero-split__news-item {
    border-bottom: 1px solid #FBCFE8;
}

.tpcl-edu-hero-split__news-item:last-child {
    border-bottom: none;
}

.tpcl-edu-hero-split__news-item a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tpcl-edu-hero-split__news-item a:hover {
    background: rgba(219, 39, 119, 0.05);
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
}

.tpcl-edu-hero-split__news-date {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.tpcl-edu-hero-split__news-title-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1F2937;
    line-height: 1.5;
}

.tpcl-edu-hero-split__news-item a:hover .tpcl-edu-hero-split__news-title-text {
    color: var(--accent-dark);
}

.tpcl-edu-hero-split__news-empty {
    color: #64748B;
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem 0;
}

.tpcl-edu-hero-split__news-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: auto;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tpcl-edu-hero-split__news-more:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* ==========================================================================
   HERO CTA BUTTON
   ========================================================================== */

.tpcl-edu-hero-split__cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: #FFFFFF;
    color: var(--accent-dark);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tpcl-edu-hero-split__cta:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .tpcl-edu-hero-split__cta {
        margin-top: 1.5rem;
        padding: 0.875rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */

.tpcl-edu-intro {
    padding: 2.5rem 0 3rem;
    background: var(--accent-light);
}

@media (min-width: 768px) {
    .tpcl-edu-intro {
        padding: 3.5rem 0 4rem;
    }
}

@media (min-width: 1024px) {
    .tpcl-edu-intro {
        padding: 4rem 0 5rem;
    }
}

.tpcl-edu-intro__inner {
    text-align: left;
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    .tpcl-edu-intro__inner {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .tpcl-edu-intro__inner {
        padding: 2.5rem;
    }
}

.tpcl-edu-intro__desc {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.9;
    color: var(--text-gray);
    margin: 0;
}

/* ==========================================================================
   STUDY FAIR SECTION (留学フェア)
   ========================================================================== */

.tpcl-section--fair {
    background: var(--accent-light);
}

.tpcl-fair-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tpcl-fair-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tpcl-fair {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tpcl-fair:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.tpcl-fair .card-content {
    padding: 2rem 1.5rem;
}

.tpcl-fair__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tpcl-fair__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpcl-fair:hover .tpcl-fair__image img {
    transform: scale(1.05);
}

.tpcl-fair__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.tpcl-fair__description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
