/* common.css - Base styles and layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f4f7fc;
    overflow-x: hidden;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 8px;
    width: 100%;
}

/* Main Grid Layout */
.main-grid {
    display: flex;
    gap: 32px;
    margin: 24px 0 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.content-area-new {
    flex: 4;        /* Increase from 2.2 to 3 (or higher) */
    min-width: 280px;
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    width: 100%;
}

/* Breadcrumb */
.breadcrumbs {
    font-size: 0.85rem;
    color: #4b5b6b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf4;
    overflow-wrap: break-word;
}

.breadcrumbs a {
    color: #1e5b9c;
    text-decoration: none;
}

.breadcrumbs span {
    color: #0f1a2b;
    font-weight: 500;
}

/* Title & Summary */
.title-summary-block {
    margin-bottom: 20px;
}

.topic-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1f30;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(145deg, #0b2b4a 0%, #1e5b9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.summary-card {
    background: linear-gradient(105deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 20px 22px;
    box-shadow: 0 8px 20px -8px rgba(30, 91, 156, 0.10);
    border: 1px solid rgba(30, 91, 156, 0.06);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
}

.summary-icon {
    font-size: 2rem;
    background: #e1ecfe;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e5b9c;
    flex-shrink: 0;
}

.summary-text {
    flex: 1;
    min-width: 160px;
}

.summary-text p {
    font-size: 1.05rem;
    font-weight: 450;
    color: #1a334b;
    line-height: 1.5;
    margin: 0;
}

.summary-text .highlight {
    background: linear-gradient(120deg, #f5e9b0 0%, #f5e9b0 40%, transparent 80%);
    padding: 0 6px 0 2px;
    font-weight: 500;
    color: #0b2b4a;
}

.summary-badge {
    background: #1e5b9c;
    color: white;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(30, 91, 156, 0.20);
    flex-shrink: 0;
    white-space: nowrap;
}

.summary-badge span { margin-right: 4px; }

/* Topic Image */
.topic-image-container {
    margin: 0 0 20px 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #eef2ff;
    line-height: 0;
}

.topic-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

/* Action Bar */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 12px;
    background: #f8faff;
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 24px;
}

.social-share-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 500;
    color: #1b2b3e;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.social-btn {
    background: #eef3fa;
    padding: 4px 12px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a2b3f;
    transition: 0.1s;
    cursor: pointer;
}

.social-btn.fb { background: #dce6f5; }
.social-btn.insta { background: #f0e4f0; }
.social-btn.pin { background: #f5e1e1; }
.social-btn.wa { background: #dff0df; }

.rating-section-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 2px 12px 2px 8px;
    border-radius: 40px;
}

.big-score {
    font-weight: 700;
    font-size: 1.4rem;
    color: #1d3e62;
}

.stars-display { color: #f5b342; letter-spacing: 1px; }

.total-votes { font-size: 0.75rem; color: #5a6f82; }

.click-stars {
    display: inline-flex;
    gap: 2px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #a0b8cf;
}

.click-stars span:hover { color: #f5b342; }

.download-badge {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.download-badge a.btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1e5b9c;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.1s;
}

.download-badge a.btn-dl.png { background: #2f4a6a; }
.download-badge a.btn-dl:hover { opacity: 0.85; }

/* Written Content */
.topic-written-content {
    background: #f9fcff;
    padding: 20px 22px;
    border-radius: 20px;
    border-left: 5px solid #1e5b9c;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.topic-written-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0b1f30;
    margin-bottom: 4px;
}

.topic-slogan {
    font-size: 1rem;
    color: #36648b;
    margin-bottom: 16px;
}

.topic-written-content p {
    line-height: 1.6;
    color: #1b2b3e;
    margin-bottom: 14px;
}

.topic-written-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b2b4a;
    margin: 20px 0 10px;
}

.topic-written-content ul {
    margin: 10px 0 16px 20px;
    color: #1b2b3e;
    line-height: 1.6;
}

.topic-written-content ul li { margin-bottom: 6px; }

.topic-written-content .highlight-box {
    background: #e9eff8;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 16px 0;
    border-left: 4px solid #1e5b9c;
}

.topic-written-content .highlight-box strong { color: #0b2b4a; }

/* Key Facts */
.keyfacts-section {
    background: #e9eff8;
    padding: 20px 22px;
    border-radius: 20px;
    margin: 28px 0 30px;
}

.keyfacts-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b2b4a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyfacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: 14px;
}

.keyfact-item {
    background: white;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    border-left: 4px solid #1e5b9c;
}

.keyfact-item strong {
    display: block;
    font-size: 0.8rem;
    color: #1e5b9c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.keyfact-item span { font-weight: 500; color: #0f1f30; font-size: 0.95rem; }

/* FAQS */
.faqs-section { margin: 30px 0 10px; }
.faqs-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0b2b4a;
    margin-bottom: 14px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: #f4f9ff;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #e2ebf6;
}

.faq-item strong {
    display: block;
    font-size: 0.95rem;
    color: #103a5e;
    margin-bottom: 4px;
}

.faq-item p { color: #1d3247; margin: 0; line-height: 1.5; font-size: 0.95rem; }

/* Responsive - Tablet & Mobile */
@media (max-width: 880px) {
    .main-grid {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 700px) {
    .container { padding: 0 12px; }
    .content-area-new { padding: 16px 14px; }
    .topic-title-large { font-size: 1.8rem; }
    
    .summary-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }
    .summary-icon { width: 48px; height: 48px; font-size: 1.6rem; }
    .summary-text p { font-size: 0.95rem; }
    .summary-badge { align-self: flex-start; font-size: 0.8rem; padding: 4px 14px; }
    
    .action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    .social-share-section { justify-content: center; }
    .social-buttons { justify-content: center; }
    .rating-section-compact { justify-content: center; }
    .download-badge { justify-content: center; }
    
    .topic-written-content { padding: 16px 16px; }
    .topic-written-content h1 { font-size: 1.4rem; }
    .keyfacts-section { padding: 16px 16px; }
    .keyfacts-grid { grid-template-columns: 1fr 1fr; }
    .faq-item { padding: 14px 16px; }
}

@media (max-width: 400px) {
    .topic-title-large { font-size: 1.5rem; }
    .keyfacts-grid { grid-template-columns: 1fr; }
}
/* ========================================================== */
/* ===== MOBILE MENU STYLES (NEW) ===== */
/* ========================================================== */

/* On mobile, we hide the right sidebar and show its content inside the hamburger menu */
@media (max-width: 700px) {
    /* Hide the right sidebar entirely on mobile */
    #sidebar-container {
        display: none;
    }
    
    /* Style the links inside the mobile menu */
    #mobileNavLinks h4 {
        color: #0b2b4a;
        font-size: 1.1rem;
        font-weight: 600;
        margin: 16px 0 10px 0;
    }
    
    #mobileNavLinks ul {
        list-style: none;
        padding: 0;
        margin: 0 0 14px 0;
    }
    
    #mobileNavLinks ul li {
        margin-bottom: 6px;
    }
    
    #mobileNavLinks ul li a {
        color: #1e5b9c;
        text-decoration: none;
        font-size: 0.95rem;
        display: block;
        padding: 4px 0;
    }
    
    #mobileNavLinks ul li a:hover {
        text-decoration: underline;
    }
    
    /* Hide the newsletter form in mobile menu so it doesn't clutter */
    #mobileNavLinks form {
        display: none;
    }
    
    #mobileNavLinks hr {
        margin: 12px 0;
        border: 0;
        border-top: 1px solid #dce3ed;
    }
    
    #mobileNavLinks .sidebar-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
    }
    
    #mobileNavLinks .sidebar-tags span {
        background: #eef3fa;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        color: #1f2a3a;
    }
}