/* Top Tuition Core Stylesheet - Mobile First */

/* Hide default blog meta & post pagination on educational subject pages */
.single-tt_subject .entry-meta,
.single-tt_subject .post-navigation,
.single-tt_subject .comments-area {
    display: none !important;
}

.single-tt_subject .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-tt_subject .entry-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1A365D;
}

.tt-subject-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0F172A;
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

/* Chapter Navigation Chips */
.tt-chapter-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.tt-chip {
    white-space: nowrap;
    background: #EDF2F7;
    color: #1A365D;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tt-chip:hover {
    background: #1A365D;
    color: #FFFFFF;
}

/* Chapter Card */
.tt-chapter-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    padding: 1.25rem;
}

.tt-chapter-badge {
    display: inline-block;
    background: #EBF8FF;
    color: #2B6CB0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.tt-chapter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A365D;
    margin: 0 0 0.5rem 0;
}

.tt-chapter-desc {
    font-size: 0.925rem;
    color: #4A5568;
    margin-bottom: 1rem;
}

/* 6 Standard Resource Rows */
.tt-resource-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tt-resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    min-height: 48px;
    transition: background 0.15s ease;
}

.tt-resource-row.is-available:hover {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.tt-resource-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    font-weight: 500;
}

.tt-btn-action {
    display: inline-flex;
    align-items: center;
    background: #0D9488;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    min-height: 36px;
    transition: background 0.2s;
}

.tt-btn-action:hover {
    background: #0F766E;
}

.tt-badge-coming-soon {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

/* Modal Overlay */
.tt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.tt-modal-box {
    background: #FFFFFF;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.tt-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #64748B;
}

.tt-modal-close:hover {
    color: #0F172A;
}

.tt-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.tt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

