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

:root {
    --primary-color: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fb923c;
    --secondary-color: #f97316;
    --accent-color: #ff6b35;
    --orange-light: #fff7ed;
    --orange-lighter: #fff4e6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #fff7ed;
    --bg-white: #ffffff;
    --border-color: #fed7aa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(234, 88, 12, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(234, 88, 12, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(234, 88, 12, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(234, 88, 12, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Global List Styles */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    list-style-position: outside;
}

ul li {
    list-style-type: disc;
}

ol li {
    list-style-type: decimal;
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 3px solid var(--orange-light);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
}

.nav-menu li {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px 2px 0 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--orange-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-number.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    font-weight: 400;
}

/* Articles Highlight Section */
.articles-highlight-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.articles-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article-highlight-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.article-highlight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left-color: var(--primary-color);
    transform: translateY(-2px);
}

.article-highlight-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.articles-highlight-button {
    text-align: center;
    margin-top: 2rem;
}

.articles-highlight-button .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .articles-highlight-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-highlight-card {
        padding: 1.5rem;
    }
}

/* Educational Guides Section */
.articles-section {
    background: var(--orange-light);
    padding: 5rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.article-card:hover::after {
    width: calc(100% - 4px);
    opacity: 0.04;
}

.article-card:not(:hover)::after {
    transition: opacity 0.15s ease, width 0.3s ease 0.2s;
}

.article-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    background: var(--orange-light);
    border-radius: 0.75rem;
    position: relative;
    z-index: 1;
}

.article-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.article-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.article-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
}

/* Visual Guides Section */
.visual-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

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

.visual-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.visual-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.visual-card:hover::after {
    left: 100%;
}

.visual-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.visual-preview {
    margin-bottom: 1.5rem;
}

.visual-icon {
    font-size: 4rem;
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.visual-card p {
    opacity: 0.95;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Tools Section */
.tools-section {
    background: var(--orange-light);
    padding: 5rem 0;
}

.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.evaluation-tool,
.red-flags-tool {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
}

.evaluation-tool h3,
.red-flags-tool h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.checklist {
    margin-bottom: 2rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--orange-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.checklist-item:hover {
    background: var(--orange-lighter);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.checklist-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checklist-item label {
    cursor: pointer;
    flex: 1;
    color: var(--text-dark);
    line-height: 1.6;
}

.red-flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.flag-item {
    background: var(--orange-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.flag-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--orange-lighter);
}

.flag-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.flag-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.flag-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-points {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.mission-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--orange-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mission-point:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    background: var(--orange-lighter);
}

.mission-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.mission-point h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.mission-point p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.footer a {
    color: white;
    text-decoration: underline;
}

.footer a:hover,
.footer a:visited,
.footer a:active {
    color: white;
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 3% auto;
    padding: 3rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--primary-color);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

#articleContent,
#visualContent {
    margin-top: 1rem;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 3px solid var(--orange-light);
    padding-bottom: 0.75rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}

.modal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content ul,
.modal-content ol {
    margin-left: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    list-style-position: outside;
}

.modal-content li {
    margin-bottom: 0.5rem;
    padding-left: 0;
    list-style-position: outside;
    padding-right: 0.5rem;
    text-indent: 0;
}

.modal-content ul li {
    list-style-type: disc;
    display: list-item;
}

.modal-content ol li {
    list-style-type: decimal;
    display: list-item;
}

.visual-guide-content {
    text-align: left;
}

.visual-guide-content h2,
.visual-guide-content > h3:first-of-type {
    text-align: center;
}

.visual-guide-content ul,
.visual-guide-content ol {
    text-align: left;
    margin-left: 0;
}

.visual-guide-content div[style*="text-align: center"] {
    text-align: center !important;
}

.visual-guide-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* Articles Page Styles */
.articles-page-section {
    padding: 4rem 0 6rem;
    background: var(--bg-white);
    min-height: 70vh;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.article-preview-card {
    background: var(--bg-white);
    padding: 3rem 3.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-dark);
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.article-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-left-color: var(--primary-color);
}

.article-preview-content {
    width: 100%;
    position: relative;
}

.article-preview-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.article-preview-text {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.article-read-btn:hover {
    color: var(--primary-dark);
    gap: 0.625rem;
}

@media (max-width: 768px) {
    .articles-page-section {
        padding: 3rem 0 4rem;
    }
    
    .articles-list {
        gap: 2rem;
    }
    
    .article-preview-card {
        padding: 2.5rem 2rem;
    }
    
    .article-preview-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .article-preview-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .tool-container {
        grid-template-columns: 1fr;
    }

    .red-flags-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 5% auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 3rem 0;
    }
}

