/* =================================================================== */
/* PYQ PAGE STYLES
/* =================================================================== */

/* --- Header & Hero Section --- */
.pyq-header {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
}

.pyq-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.pyq-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Tabbed Interface (Yearly vs Chapter-wise) --- */
.pyq-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn.active {
    background: #00796b;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.3);
    transform: translateY(-2px);
}

/* --- Content Containers --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Accordion/Card Styles for Years/Chapters --- */
.pyq-group {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eee;
}

.pyq-group-header {
    padding: 1.2rem;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
}

.pyq-group-header:hover {
    background: #f9f9f9;
}

.pyq-group-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.pyq-list {
    display: none; /* Hidden by default */
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #eee;
}

.pyq-group.open .pyq-list {
    display: block;
}

.pyq-group.open .fa-chevron-down {
    transform: rotate(180deg);
}

.pyq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.pyq-item:last-child {
    border-bottom: none;
}

.pyq-item:hover {
    background: #f0f9f8;
}

.item-title {
    font-weight: 500;
    color: #444;
}

.item-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.download-btn {
    padding: 8px 16px;
    background: #e0f2f1;
    color: #00796b;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: #00796b;
    color: white;
}

/* --- Dark Mode Overrides --- */
body.dark-mode .pyq-header {
    background: linear-gradient(135deg, #1a1a1d 0%, #2c2f33 100%);
    border-bottom: 1px solid #444;
}

body.dark-mode .tab-btn {
    background: #2c2f33;
    color: #ccc;
}

body.dark-mode .tab-btn.active {
    background: #00796b;
    color: #fff;
}

body.dark-mode .pyq-group {
    background: #2c2f33;
    border-color: #444;
}

body.dark-mode .pyq-group-header {
    background: #2c2f33;
    color: #eee;
}

body.dark-mode .pyq-group-header:hover {
    background: #3a3f44;
}

body.dark-mode .pyq-list {
    border-top-color: #444;
}

body.dark-mode .pyq-item {
    border-bottom-color: #444;
}

body.dark-mode .pyq-item:hover {
    background: #3a3f44;
}

body.dark-mode .item-title {
    color: #ddd;
}

body.dark-mode .download-btn {
    background: #3a3f44;
    color: #80cbc4;
}

body.dark-mode .download-btn:hover {
    background: #00796b;
    color: white;
}