/* ===================================
   かめりえ TOEIC対策専門サイト
   style.css
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1B2A4A;
    --navy-light: #2A3F6A;
    --navy-dark: #111D35;
    --gold: #C8A964;
    --gold-light: #D4BC7E;
    --gold-dark: #B89A50;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F0F2F5;
    --gray-200: #E2E5EA;
    --gray-300: #CDD1D9;
    --gray-400: #9BA3B0;
    --gray-600: #6B7280;
    --gray-700: #4A5264;
    --gray-800: #333A47;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1.5;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--navy);
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--gray-600);
    letter-spacing: 0.05em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
}

.main-nav a:hover {
    color: var(--navy);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-dark) !important;
    color: var(--white) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,169,100,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
}

.hero h1 .highlight {
    color: var(--gold);
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Section Common --- */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 0;
}

/* --- Results Section --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-before {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-400);
}

.score-arrow {
    font-size: 1.2rem;
    color: var(--gold);
}

.score-after {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
}

.result-up {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.result-period {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* --- Article Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-card a {
    display: block;
    color: inherit;
}

.article-card a:hover {
    color: inherit;
}

.article-card .card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.section-more {
    text-align: center;
    margin-top: 36px;
}

/* --- Categories Section --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: block;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-card .cat-count {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-400);
    margin-top: 4px;
}

/* --- Profile Section --- */
.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.profile-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: 900;
}

.profile-content h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 8px;
}

.profile-content .profile-title {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-content p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.profile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.profile-highlights span {
    background: var(--gray-100);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 28px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer-cta {
    background: var(--gray-50);
    padding: 60px 0;
    text-align: center;
}

.footer-cta h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px;
}

.footer-cta p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.footer-main {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-main {
    color: var(--white);
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-about p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-links h3 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* --- Articles List Page --- */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
}

.page-header p {
    opacity: 0.8;
    margin-top: 8px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 24px 0;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.articles-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.pagination .current {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* --- Article Detail Page --- */
.article-page {
    padding: 40px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.article-main {
    min-width: 0;
}

.article-breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.article-breadcrumb a {
    color: var(--gray-400);
}

.article-breadcrumb a:hover {
    color: var(--navy);
}

.article-main h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.article-meta .meta-category {
    background: var(--navy);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.article-content {
    line-height: 2;
    font-size: 1rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 36px 0 16px;
    padding-left: 16px;
    border-left: 4px solid var(--gold);
}

.article-cta-box {
    background: var(--gray-50);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.article-cta-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.article-cta-box p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.related-articles {
    margin-top: 48px;
}

.related-articles h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- Sidebar --- */
.sidebar > div {
    margin-bottom: 24px;
}

.sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.sidebar-cta {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.sidebar-trial {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}

.sidebar-trial h3 {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.sidebar-trial p {
    color: rgba(255,255,255,0.8);
}

.sidebar-popular ul li {
    margin-bottom: 12px;
}

.sidebar-popular a {
    display: flex;
    gap: 12px;
    align-items: start;
}

.sidebar-popular img {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-popular span {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-categories ul li {
    margin-bottom: 4px;
}

.sidebar-categories a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.sidebar-categories a:hover {
    background: var(--gray-100);
}

/* --- Profile Page --- */
.profile-page {
    padding: 60px 0;
}

.profile-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    font-weight: 900;
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 4px;
}

.profile-info .role {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
    display: block;
}

.profile-info p {
    color: var(--gray-700);
    margin-bottom: 16px;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.credentials span {
    background: var(--navy);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.timeline-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* --- Contact Page --- */
.contact-page {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--navy);
}

.contact-form label .required {
    color: #E53E3E;
    font-size: 0.8rem;
    margin-left: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.form-success {
    background: #F0FFF4;
    border: 2px solid #48BB78;
    color: #276749;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.form-error {
    background: #FFF5F5;
    border: 2px solid #FC8181;
    color: #9B2C2C;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.contact-info-box {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-md);
    height: fit-content;
}

.contact-info-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.contact-info-box p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.contact-info-box .info-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.contact-info-box .info-item:last-child {
    border-bottom: none;
}

.contact-info-box .info-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .articles-grid,
    .articles-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .profile-detail {
        grid-template-columns: 200px 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 12px 20px;
    }

    .main-nav a::after {
        display: none;
    }

    .nav-cta {
        margin: 8px 20px !important;
        text-align: center !important;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat .stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid,
    .articles-list-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .profile-highlights {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        max-width: 200px;
        margin: 0 auto;
    }

    .credentials {
        justify-content: center;
    }

    .timeline {
        padding-left: 28px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
