/* ============================================
   TechMag - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 200px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    padding: 80px 48px;
    color: white;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 a {
    color: white;
}

.hero h1 a:hover {
    color: var(--accent-color);
}

.hero .excerpt {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 600px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.meta .separator {
    opacity: 0.5;
}

/* ============================================
   Content Layout
   ============================================ */

.content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

/* Categories Sidebar */
.categories-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.categories-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.category-icon {
    font-size: 20px;
}

.category-name {
    font-weight: 500;
}

/* Articles Section */
.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

/* Article Card */
.articles-grid {
    display: grid;
    gap: 32px;
}

.article-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-image {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
}

.date {
    color: var(--text-light);
    font-size: 13px;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Article Detail Page
   ============================================ */

.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail {
    padding: 48px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb .separator {
    opacity: 0.5;
}

.article-detail .article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-detail .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.publish-date {
    font-size: 13px;
    color: var(--text-light);
}

.article-stats {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.article-detail .featured-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-detail .featured-image img {
    width: 100%;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body h2 {
    font-size: 28px;
}

.article-body h3 {
    font-size: 22px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-body img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tags-label {
    font-weight: 500;
    color: var(--text-light);
}

.tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 13px;
    border-radius: 20px;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-buttons span {
    color: var(--text-light);
}

.share-buttons a {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 14px;
    border-radius: var(--radius-md);
}

.share-buttons a:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   Category Page
   ============================================ */

.page-header {
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-description {
    color: var(--text-light);
    font-size: 18px;
}

.articles-info {
    margin-bottom: 24px;
    color: var(--text-light);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-item {
    padding: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.article-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.article-item .article-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.article-item .article-excerpt {
    margin-bottom: 16px;
}

.article-item .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Search Page
   ============================================ */

.search-info {
    color: var(--text-light);
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.page-link {
    padding: 10px 18px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.prev,
.page-link.next {
    padding: 10px 24px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: #94a3b8;
}

.footer-section ul a:hover {
    color: white;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 16px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: var(--radius-md);
    color: white;
}

.subscribe-form input::placeholder {
    color: #64748b;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form button {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   Empty States
   ============================================ */

.no-articles {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.no-articles p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.no-articles a {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
}

.no-articles a:hover {
    background: var(--primary-dark);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .categories-sidebar {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
        margin-top: 16px;
    }

    .search-box {
        order: 2;
    }

    .search-box input {
        width: 150px;
    }

    .hero-content {
        padding: 48px 24px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-detail .article-title {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* ============================================
   Database Warning Banner
   ============================================ */

.database-warning {
    background: linear-gradient(90deg, #FFF3CD 0%, #FFE69C 100%);
    border-bottom: 1px solid #FFC107;
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.database-warning .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.database-warning .warning-icon {
    font-size: 18px;
}

.database-warning .warning-text {
    font-size: 14px;
    color: #856404;
    font-weight: 500;
}

.database-warning .refresh-btn {
    padding: 4px 12px;
    background: #FFC107;
    color: #333;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.database-warning .refresh-btn:hover {
    background: #FFB300;
    color: #000;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 64px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-state .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ============================================
   Fallback Hero Content
   ============================================ */

.fallback-hero .hero-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 48px;
    border-radius: var(--radius-lg);
}

.fallback-hero .hero-content h1 {
    color: white;
}

.fallback-hero .hero-content .excerpt {
    color: rgba(255, 255, 255, 0.9);
}

.fallback-hero .hero-content .meta {
    color: rgba(255, 255, 255, 0.8);
}

.fallback-hero .badge {
    background: var(--primary-color);
}

/* ============================================
   About Page
   ============================================ */

.about-page {
    padding: 48px 0;
}

.about-page .page-header {
    text-align: center;
    margin-bottom: 48px;
}

.about-page .page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.about-page .page-description {
    font-size: 18px;
    color: var(--text-light);
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-section .contact-info {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.about-section .contact-info p {
    margin-bottom: 8px;
}

/* ============================================
   Contact Page - Clean & Minimal
   ============================================ */

.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* Contact Grid */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.contact-item:last-child {
    cursor: default;
}

.contact-item:last-child:hover {
    transform: none;
    background: var(--bg-secondary);
}

.item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 10px;
    color: var(--text-color);
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.item-content p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.item-arrow {
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-item:hover .item-arrow {
    opacity: 1;
}

.contact-item:last-child .item-arrow {
    display: none;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.info-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.info-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.info-card > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.social-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-item:hover {
    background: var(--primary-color);
    color: white;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.time-badge svg {
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 48px;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    margin-left: auto;
    color: var(--text-light);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: var(--border-color);
}

.faq-item p {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

.faq-item strong {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 640px) {
    .contact-page {
        padding: 40px 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 16px;
    }

    .item-arrow {
        display: none;
    }
}


/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb-nav {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
    font-size: 12px;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item a svg {
    flex-shrink: 0;
}

.breadcrumb-item.active span {
    color: var(--text-color);
    font-weight: 500;
}

/* ============================================
   Page Size Selector
   ============================================ */

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-size-selector label {
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.page-size-selector .filter-select {
    padding: 6px 12px;
    font-size: 14px;
}

/* ============================================
   Resizable Table Columns
   ============================================ */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

table col[data-column] {
    transition: width 0.1s ease;
}

table th {
    position: relative;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    user-select: none;
}

table th input[type="checkbox"] {
    cursor: pointer;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s ease;
    z-index: 10;
}

.resize-handle:hover,
.resize-handle:active {
    background: var(--primary-color);
}

.resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background: var(--border-color);
    border-radius: 1px;
    transition: background 0.2s ease;
}

.resize-handle:hover::after,
.resize-handle:active::after {
    background: white;
}

/* Last th doesn't need a handle */
table th:last-child .resize-handle {
    display: none;
}
