/* Home Page Styles - Cognitive Science of Yoga */

main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    width: 100%;
    background: linear-gradient(135deg, #2a6b5e, #61c4db, #7ec8a0);
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.hero-content h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1rem, 2.8vw, 1.3rem);
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid white;
    opacity: 0.7;
    transition: opacity 0.3s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
    width: 100%;
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #7ec8a0;
    padding-bottom: 0.5rem;
}

/* Mission / About block */
.mission-block {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.mission-text {
    flex: 2;
}

.mission-text p {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.8;
}

.mission-aside {
    flex: 1;
    background: #f0f8f5;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a6b5e;
}

.mission-aside h3 {
    color: #2a6b5e;
    margin-bottom: 0.5rem;
}

.mission-aside ul {
    list-style: none;
    padding: 0;
}

.mission-aside li {
    padding: 0.4rem 0;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.mission-aside li:last-child {
    border-bottom: none;
}

/* Latest Content Cards */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.latest-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.latest-card .card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
}

.card-tag.blog { background-color: #2a6b5e; }
.card-tag.research { background-color: #3a7bd5; }
.card-tag.announcement { background-color: #e67e22; }

.latest-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.latest-card p {
    color: #666;
    font-size: 0.95rem;
}

.latest-card small {
    color: #999;
    display: block;
    margin-top: 0.8rem;
}

@media (max-width: 1024px) {
    .hero {
        min-height: 65vh;
        min-height: 65svh;
    }

    .mission-block {
        gap: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 55vh;
        min-height: 55svh;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .mission-block {
        flex-direction: column;
    }

    .mission-aside {
        width: 100%;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        letter-spacing: 0.04em;
    }

    .scroll-arrow {
        bottom: 20px;
    }

    .arrow-down {
        border-left-width: 15px;
        border-right-width: 15px;
        border-top-width: 15px;
    }
}

/* Night Mode */
body.night-mode .hero {
    background: linear-gradient(135deg, #213d33, #182244, #214035);
}

body.night-mode .content-section h2 {
    color: #e0e0e0;
    border-color: #3a7a5a;
}

body.night-mode .mission-text p {
    color: #c0c0c0;
}

body.night-mode .mission-aside {
    background: #1a2a20;
    border-color: #3a7a5a;
}

body.night-mode .mission-aside h3 {
    color: #7ec8a0;
}

body.night-mode .mission-aside li {
    color: #b0b0b0;
    border-color: #333;
}

body.night-mode .latest-card {
    background: #252525;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.night-mode .latest-card h3 {
    color: #e0e0e0;
}

body.night-mode .latest-card p {
    color: #aaa;
}
