/* --- Global Reset & Colors --- */
body, html {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE HEADER: Universal Side-by-Side --- */
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
    background: #fff;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    display: block;
}

.ad-slot {
    width: 728px;
    height: 90px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* --- NAVIGATION / BREADCRUMBS --- */
.breadcrumb {
    text-align: left;
    margin: 15px 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #bdc3c7;
}

.breadcrumb a { color: inherit; text-decoration: none; }

/* --- HOMEPAGE & LANGUAGE LIST GRID --- */
.section-divider {
    text-align: left;
    font-weight: 800;
    font-size: 0.8rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
    margin: 40px 0 20px 0;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.lang-card {
    display: block;
    padding: 20px;
    border: 1px solid #eaeeef;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
    background: #fff;
}

.lang-card:hover {
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lang-card strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.lang-card span {
    color: #007bff;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- PHRASE PAGE CARD --- */
.main-card {
    border: 1px solid #eaeeef;
    padding: 50px 30px;
    border-radius: 12px;
    background: #fff;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.label-small {
    font-size: 0.7rem;
    font-weight: 700;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.btn-audio {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

/* --- TRENDING PILLS --- */
.trending-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    text-decoration: none;
    color: #34495e;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile Fix */
@media (max-width: 950px) {
    .header-top { flex-direction: column; text-align: center; }
}