/*
Theme Name: Edunest
Theme URI: https://example.com/edunest
Author: AI WordPress Developer
Author URI: https://example.com
Description: A clean, educational WordPress theme tailored for Edunest, targeting grades IX-XII and general learners. Features a structured layout for reading notes online and downloading PDFs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edunest
*/

:root {
    --primary-color: #1a56db;
    --primary-hover: #1e40af;
    --secondary-color: #0d9488;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Layout */
.site-main {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .site-main {
        grid-template-columns: 3fr 1fr;
    }
}

/* Content Blocks */
.archive-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #111827;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 640px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.note-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.note-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.note-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    text-decoration: none;
}

/* Single Note View */
.single-note-header {
    margin-bottom: 30px;
}

.single-note-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.note-content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.download-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.download-box p {
    color: #166534;
    font-weight: 500;
}

/* Sidebar Widget styling */
.widget-area .widget {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #4b5563;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
}