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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #F5F5F5;
}

a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4A90A4;
}

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

/* Header Styles */
.header {
    background-color: #D6F1EB;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: #2C2C2C;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.8);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2C2C2C;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.hero-section {
    background-color: white;
    padding: 4rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2C2C2C;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 3rem 0;
}

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

/* Article Styles */
.main-article {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #D6F1EB;
}

.article-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-header time {
    color: #666;
    font-style: italic;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: #2C2C2C;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

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

.widget {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget h3 {
    margin-bottom: 1rem;
    color: #2C2C2C;
    font-size: 1.3rem;
}

/* Logic Test Styles */
#logic-test .question {
    display: none;
    margin-bottom: 1rem;
}

#logic-test .question.active {
    display: block;
}

#logic-test .options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#logic-test button {
    padding: 0.7rem 1rem;
    background-color: #D6F1EB;
    border: 1px solid #B8E6D4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#logic-test button:hover {
    background-color: #B8E6D4;
    transform: translateY(-2px);
}

#logic-test button.selected {
    background-color: #4A90A4;
    color: white;
}

.test-result {
    display: none;
    text-align: center;
    padding: 1rem;
    background-color: #D6F1EB;
    border-radius: 5px;
}

.test-result.show {
    display: block;
}

/* Article List */
.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background-color: #F9F9F9;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.article-list li:hover {
    background-color: #D6F1EB;
}

.article-list a {
    display: block;
    font-weight: 500;
}

/* Footer Styles */
.footer {
    background-color: #2C2C2C;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #D6F1EB;
}

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

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

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #D6F1EB;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C2C2C;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice button {
    background-color: #D6F1EB;
    color: #2C2C2C;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-content h3 {
    margin-bottom: 1rem;
    color: #2C2C2C;
}

.popup-content button {
    background-color: #4A90A4;
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #D6F1EB;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .content-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-header h2 {
        font-size: 1.5rem;
    }

    .cookie-notice {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-article,
    .widget {
        padding: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .article-content p {
        text-align: left;
    }
}