/*
Theme Name: ClassJi Educational Platform
Theme URI: https://classji.com
Author: ClassJi Team
Author URI: https://classji.com
Description: A modern WordPress theme for educational content platform where faculty members can upload and share lectures, notes, and study materials.
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: classji
Tags: education, faculty, learning, responsive, custom-menu
*/

/* ==========================================
   CSS Variables
   ========================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0891b2;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-sans);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ==========================================
   Container
   ========================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn .dashicons {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: #0e7490;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==========================================
   Header Styles
   ========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo .logo-icon {
    font-size: 1.75rem;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.search-toggle button:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: 0.875rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-submit:hover {
    background-color: var(--primary-dark);
}

.search-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    padding: 2rem;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-navigation.active {
    transform: translateX(0);
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero-buttons .btn-secondary:hover {
    background-color: var(--bg-secondary);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    background-color: var(--bg-primary);
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.stats-section .container {
    max-width: 1000px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   Section Styles
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==========================================
   Featured Content Section
   ========================================== */
.featured-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.content-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 200px;
    background-color: var(--bg-tertiary);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
}

.placeholder-image .dashicons {
    font-size: 4rem;
    width: 4rem;
    height: 4rem;
    color: var(--text-light);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.card-content h3 a {
    color: var(--text-primary);
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta .dashicons {
    font-size: 0.875rem;
    width: 0.875rem;
    height: 0.875rem;
}

.view-all-btn {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================
   Faculty Section
   ========================================== */
.faculty-section {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.faculty-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-avatar {
    margin-bottom: 1rem;
}

.faculty-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.faculty-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.faculty-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.faculty-content-count {
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================
   Students Section
   ========================================== */
.students-section {
    padding: 5rem 0;
    background-color: var(--bg-tertiary);
}

.students-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.student-stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.student-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.student-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--radius-lg);
}

.student-stat-card .stat-icon .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    color: white;
}

.student-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.student-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.student-stat-card .stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.students-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-xl);
    color: white;
}

.students-cta h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.75rem;
}

.students-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

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

.students-cta .btn-primary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* ==========================================
   Categories Section
   ========================================== */
.categories-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: white;
}

.category-icon .dashicons {
    font-size: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
}

.category-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-buttons .btn-primary:hover {
    background-color: var(--bg-secondary);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ==========================================
   Updates Section
   ========================================== */
.updates-section {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.updates-list {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.update-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.update-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.update-date .month {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.update-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.update-content h4 a {
    color: var(--text-primary);
}

.update-content h4 a:hover {
    color: var(--primary-color);
}

.update-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 4rem;
}

.footer-top {
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links .dashicons {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    color: var(--text-light);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-menu li a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.contact-info .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    color: var(--primary-light);
}

.contact-info a {
    color: var(--text-light);
}

.contact-info a:hover {
    color: white;
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.copyright {
    color: var(--text-light);
    margin: 0;
}

.powered-by {
    color: var(--text-muted);
    margin: 0;
}

.powered-by a {
    color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top .dashicons {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-navigation {
        display: block;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .students-stats {
        grid-template-columns: 1fr;
    }
    
    .student-stat-card {
        padding: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .update-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .update-date {
        flex-direction: row;
        gap: 0.5rem;
        width: fit-content;
        padding: 0.5rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================
   Archive/Category Styles
   ========================================== */
.archive-container {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    min-height: 60vh;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.archive-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.archive-title .dashicons {
    color: var(--primary-color);
}

.archive-description {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.archive-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.archive-main {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.pagination .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.current-cat a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Archive */
@media (max-width: 1024px) {
    .archive-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-container {
        padding: 2rem 0;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-sidebar {
        grid-template-columns: 1fr;
    }
    
    .archive-main {
        padding: 1.5rem;
    }
}

/* ==========================================
   Single Post Styles
   ========================================== */
.single-post-container {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    min-height: 60vh;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.post-main {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.single-post {
    padding: 2rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.post-meta-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-meta-top span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta-top .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.post-category a {
    color: var(--primary-color);
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author .author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.post-author .author-info {
    display: flex;
    flex-direction: column;
}

.post-author .author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.post-author .author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-style: italic;
}

.post-content code {
    background-color: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
}

.post-content pre {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-resources {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.post-resources h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags .tags-label {
    font-weight: 500;
    margin-right: 0.5rem;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.share-section {
    margin-top: 1rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-weight: 500;
    margin-right: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.share-btn .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Post Navigation */
.post-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background-color: var(--bg-secondary);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.post-navigation a:hover .nav-title {
    color: var(--primary-color);
}

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

.widget {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.author-widget {
    text-align: center;
}

.author-widget .author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin: 0 auto 1rem;
}

.author-widget h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.author-widget p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.author-posts-count {
    color: var(--primary-color);
    font-weight: 500;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.related-post:hover {
    background-color: var(--bg-secondary);
}

.related-post h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.related-post a:hover h4 {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.sidebar-categories a:hover {
    color: var(--primary-color);
}

.sidebar-categories .count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Single Post */
@media (max-width: 1024px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-container {
        padding: 2rem 0;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .site-header,
    .search-overlay,
    .mobile-navigation,
    .back-to-top,
    .cta-section {
        display: none !important;
    }
    
    .hero-section {
        background: none;
        color: var(--text-primary);
        padding: 2rem 0;
    }
    
    .hero-section h1,
    .hero-section p {
        color: var(--text-primary);
    }
    
    body {
        font-size: 12pt;
    }
}