/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --secondary-blue: #2d5aa0;
    --light-gray: #f5f7fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --white: #ffffff;
    --accent-blue: #4285f4;
    --border-gray: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

/* Header and Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.nav-menu li a:hover {
    opacity: 0.8;
    border-bottom: 2px solid var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.content-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.content-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-article {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.main-article h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h3 {
    font-size: 1.4rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-block p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.content-block ul {
    margin: 1rem 0 1rem 2rem;
}

.content-block li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.content-block strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.sidebar-widget h3,
.sidebar-widget h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.page-links {
    list-style: none;
}

.page-links li {
    margin-bottom: 0.5rem;
}

.page-links li a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.page-links li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.stats-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border-gray);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-blue);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-align: right;
    max-width: 60%;
}

/* Reviews Section */
.reviews-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow);
    border-left: 4px solid var(--secondary-blue);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-blue);
}

.review-rating {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.review-text {
    color: var(--dark-gray);
    font-style: italic;
    line-height: 1.6;
}

.review-date {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-align: right;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 3px 10px var(--shadow);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--border-gray);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-gray);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    display: block;
    opacity: 1;
    max-height: 500px;
    padding: 1.25rem;
}

.faq-answer p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .content-section .container {
        grid-template-columns: 1fr;
    }
    
    .main-article {
        padding: 1.5rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-article {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .stat-desc {
        max-width: 100%;
        text-align: center;
    }
}

/* Loading and Animation States */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--light-gray);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-nav {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.breadcrumb-nav a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Internal Links Boxes */
.internal-links-box,
.internal-links-footer {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border: 2px solid var(--secondary-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.internal-links-box h3,
.internal-links-footer h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.internal-links-box ul,
.internal-links-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.internal-links-box li,
.internal-links-footer li {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: 4px;
    border-left: 3px solid var(--secondary-blue);
}

.internal-links-box a,
.internal-links-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.internal-links-box a:hover,
.internal-links-footer a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Warning and Solution Boxes */
.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h4 {
    color: #d35400;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.solution-box {
    background: linear-gradient(135deg, #d1f2eb 0%, #a9dfbf 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.solution-box h4 {
    color: #1e8449;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.solution-widget {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-blue);
}

.solution-widget h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.solution-widget ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.solution-widget li {
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Method Analysis */
.method-analysis {
    margin: 1.5rem 0;
}

.method-analysis h4 {
    color: #c0392b;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.method-analysis p {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #fdf2f2;
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
}

/* Case Study */
.case-study {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--medium-gray);
    margin: 1.5rem 0;
}

.case-study h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.case-study p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Final Recommendations */
.final-recommendations {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.final-recommendations h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.final-recommendations ul {
    margin: 0;
}

.final-recommendations li {
    margin-bottom: 0.5rem;
    color: var(--white);
}

/* Enhanced Sidebar */
.sidebar .page-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Print Styles */
@media print {
    .navbar,
    .reviews-section,
    footer {
        display: none;
    }
    
    .content-section .container {
        grid-template-columns: 1fr;
    }
    
    .main-article {
        box-shadow: none;
        border: 1px solid var(--border-gray);
    }
}