/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --highlight-color: #f39c12;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --medium-gray: #ddd;
    --dark-gray: #888;
    --white: #fff;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-bottom: 5px;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 500;
}

.primary-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid var(--white);
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Featured Articles */
.featured-articles {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* CTA Section */
.cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
}

.cta-btn {
    background-color: var(--highlight-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
}

.cta-btn:hover {
    background-color: #e67e22;
    color: var(--white);
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-links h3,
.footer-disclaimer h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--medium-gray);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-disclaimer p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Content Page Styles */
.page-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.content-section {
    padding: 60px 0;
    background-color: var(--white);
}

.content-section .container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.article h2 {
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.article p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.info-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box ol, .info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
}

.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nutrient-card {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.nutrient-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.tips-list {
    padding-left: 20px;
    margin: 20px 0;
}

.tips-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.warning-box {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.related-links {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.related-links h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.related-links ul {
    list-style: none;
}

.related-links li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.related-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Age Groups Section */
.age-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.age-group {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.age-group h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.age-group ul {
    padding-left: 20px;
}

.age-group li {
    margin-bottom: 8px;
}

.warning-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.warning-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.warning-list li:before {
    content: '⚠️';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.info-card {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Safety Page Styles */
.danger-box {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.danger-box h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.danger-box ul {
    padding-left: 20px;
}

.danger-box li {
    margin-bottom: 10px;
}

.health-risks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.risk-item {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-top: 3px solid var(--accent-color);
}

.risk-item h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.safety-guidelines {
    padding-left: 25px;
    margin: 25px 0;
    counter-reset: item;
}

.safety-guidelines li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 5px;
}

.safety-guidelines strong {
    color: var(--secondary-color);
}

.checklist {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.checklist li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.emergency-info {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent-color);
}

.emergency-info h3 {
    color: var(--accent-color);
}

/* About Page Styles */
.about-content {
    line-height: 1.8;
}

.mission-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.mission-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.goals-list {
    padding-left: 20px;
    margin: 20px 0;
}

.goals-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.principle {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.principle h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: inline-block;
}

/* Health Resources Section */
.health-resources {
    padding: 70px 0;
    background-color: var(--white);
}

.health-resources h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 2rem;
}

.health-resources > .container > p {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark-gray);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.resource-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.resource-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.resource-link:hover {
    border-bottom-color: var(--primary-color);
}

.highlight-card {
    background-color: var(--secondary-color);
    color: var(--white);
}

.highlight-card h3 {
    color: var(--white);
}

.highlight-card p {
    color: var(--medium-gray);
}

.highlight-card .resource-link {
    color: var(--highlight-color);
}

.highlight-card .resource-link:hover {
    border-bottom-color: var(--highlight-color);
}

/* Example Warning Box Styles */
.example-warning-box {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-radius: 4px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.example-warning-box h3 {
    color: #8a6d3b;
    margin-bottom: 15px;
}

.example-site {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.example-site-header {
    background-color: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.site-url {
    font-family: monospace;
    font-size: 1.1rem;
    color: #333;
}

.warning-label {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.example-site-content {
    padding: 20px;
}

.example-site-content p {
    margin-bottom: 15px;
}

.example-site-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.example-site-content li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.example-link {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.example-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.small-note {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-top: 10px;
}

/* Side Banner */
.side-banner {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-top: 30px;
    border-left: 3px solid var(--highlight-color);
}

.side-banner h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.side-banner p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.banner-link {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.banner-link:hover {
    background-color: #e67e22;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 25px;
        right: 30px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-articles {
        padding: 50px 0;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nutrient-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .cta h2 {
        font-size: 1.7rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
}

/* Common Health Issues Box */
.common-issues-box {
    background-color: var(--light-gray);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.common-issues-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.common-issues-box p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.issue-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.issue-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.issue-item p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.highlight-issue {
    border-left: 3px solid var(--highlight-color);
}

.issue-link {
    color: var(--highlight-color);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.issue-link:hover {
    color: var(--accent-color);
}

/* Resource Banner */
.resource-banner {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.resource-banner h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.resource-banner p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    margin-bottom: 10px;
}

.resource-list li a {
    color: var(--primary-color);
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.resource-list li a:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.resource-list li a:hover:before {
    transform: translateX(3px);
}

.highlight-link {
    color: var(--highlight-color) !important;
    font-weight: 500;
}

.highlight-link:before {
    color: var(--highlight-color) !important;
}

/* Highlight Effect for Example Site links */
.highlight-effect {
    position: relative;
    z-index: 2;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* Animation for Warning Example Box */
.highlight-box {
    animation: highlightBg 1.5s ease;
}

@keyframes highlightBg {
    0% {
        background-color: #fcf8e3;
    }
    50% {
        background-color: #ffe7a0;
    }
    100% {
        background-color: #fcf8e3;
    }
} 