/* ========================================= */
/* MAGAZINE / BLOG PAGE STYLES               */
/* ========================================= */

/* --- 1. THE NEWSSTAND (Hero) --- */
.newsstand-section {
    background-color: #0a0a0a; /* Dark Premium BG */
    padding: 100px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
}

.newsstand-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    gap: 50px;
}

/* Text Side */
.newsstand-text {
    flex: 1;
    min-width: 300px;
    color: white;
}

.tag {
    background: #d32f2f;
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 20px;
}

.newsstand-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 20px 0;
    line-height: 1;
}

.serif-font {
    font-family: 'Merriweather', serif; /* Elegant font for "Vol 1" */
    font-style: italic;
    font-weight: 300;
    color: #ccc;
}

.issue-desc {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.newsstand-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 12px 30px;
    background: white;
    color: black;
    border: none;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
}

.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}
.btn-secondary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* --- CSS 3D BOOK MOCKUP --- */
.book-container {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Essential for 3D */
    min-width: 300px;
}

.book {
    width: 300px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(10deg); /* The Angle */
    transition: transform 0.5s ease;
    cursor: pointer;
}

.book:hover {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05); /* Interactive Hover */
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111; /* Fallback */
    border-radius: 5px 15px 15px 5px;
    overflow: hidden;
    z-index: 2;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The "Pages" thickness */
.book-spine {
    position: absolute;
    top: 5px;
    right: 0;
    width: 40px;
    height: 98%;
    background: #fff; /* Paper color */
    transform: rotateY(90deg) translateZ(-280px) translateX(20px);
    z-index: 1;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.book-shadow {
    position: absolute;
    bottom: -30px;
    width: 90%;
    height: 30px;
    background: rgba(0,0,0,0.5);
    filter: blur(20px);
    transform: rotateX(90deg) translateZ(-50px);
}


/* --- 2. ARTICLE GRID STYLES --- */
.articles-section {
    padding: 80px 5%;
    background: #f9f9f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #051937;
    margin: 0;
}
.section-header .highlight { color: #d32f2f; }

.categories {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cat-btn {
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s;
}
.cat-btn:hover, .cat-btn.active {
    color: #051937;
    text-decoration: underline;
}

/* THE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* THE CARD */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-img-holder {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.article-card:hover .card-img-holder img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d32f2f;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}
.category-tag.color-blue { background: #00b4d8; }
.category-tag.color-green { background: #1dd1a1; }

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1; /* Fills height */
}

.article-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
}
.article-title a {
    text-decoration: none;
    color: #051937;
    font-family: 'Merriweather', serif; /* Professional reading font */
    font-weight: 700;
    transition: 0.2s;
}
.article-title a:hover { color: #d32f2f; }

.excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes author info to bottom */
}

.author-info {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.author-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}
.post-date {
    display: block;
    font-size: 0.75rem;
    color: #999;
}
/* ========================================= */
/* FILTERING LOGIC STYLES                    */
/* ========================================= */

/* The class used by JS to hide items */
.article-card.hidden {
    display: none;
}

/* Simple Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================================= */
/* SUBMIT BUTTON IN STUDENT VOICES           */
/* ========================================= */

/* 1. Organize the Left Side (Title + Button) */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between Title and Button */
    flex-wrap: wrap;
}

/* 2. The New Button Style */
.btn-submit-article {
    background-color: #d32f2f; /* Red Theme */
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-submit-article:hover {
    background-color: #b71c1c; /* Darker Red on Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

/* MOBILE FIXES */
@media (max-width: 768px) {
    .newsstand-container { flex-direction: column; text-align: center; }
    .newsstand-btns { justify-content: center; }
    .book { margin: 0 auto; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .categories { overflow-x: auto; width: 100%; white-space: nowrap; padding-bottom: 5px; }
    .header-left {
        width: 100%;
        justify-content: space-between; /* Spreads title and button */
        margin-bottom: 15px;
    }
    
    /* Make button slightly smaller on phone */
    .btn-submit-article {
        padding: 6px 15px;
        font-size: 0.75rem;
    }
}