/*
Theme Name: TejanaClasses03
Theme URI: https://tejanaclasses03.com
Author: TejanaClasses03
Author URI: https://tejanaclasses03.com
Description: Premium Study Material Theme for Competitive Exams - TejanaClasses03
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: tejanaclasses03
Tags: education, blog, responsive, custom-colors, custom-logo
*/

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

:root {
    --primary: #1a237e;
    --secondary: #283593;
    --accent: #d32f2f;
    --accent-light: #ff6659;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-light));
    --gradient-hero: linear-gradient(135deg, #0d2b66, #1a3b8a, #1e4a9c);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f8faff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.7;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 70px 0;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    min-height: 44px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
}

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

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

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
    min-height: 38px;
}

/* ====== SEARCH BUTTON ====== */
.search-btn {
    background: var(--gradient-accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* ====== HEADER ====== */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text h1 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    color: var(--accent);
}

.logo-text p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--gray);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ====== HERO SECTION ====== */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 90px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ====== TRENDING HERO ====== */
.trending-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.trending-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 10px;
}

.trending-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ====== SECTION TITLES ====== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

/* ====== CATEGORIES GRID ====== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}

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

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card:hover .category-icon {
    color: var(--accent);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    word-break: break-word;
}

.category-count {
    color: var(--gray);
    font-size: 0.85rem;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
}

/* ====== NOTES CARDS ====== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.note-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.note-card-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(211, 47, 47, 0.05));
    border-bottom: 1px solid var(--light-gray);
}

.note-card-type {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.trending-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
    }
}

.note-card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.note-card-exam {
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.note-card-body {
    padding: 15px 20px;
    flex-grow: 1;
}

.note-card-body p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--gray);
}

.note-card-footer {
    padding: 15px 20px;
    background: var(--light);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    font-size: 0.9rem;
}

.meta-info-item i {
    color: var(--accent);
}

/* ====== FEATURED SECTION ====== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.featured-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.featured-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.featured-title a {
    color: var(--primary);
}

.featured-title a:hover {
    color: var(--accent);
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-meta i {
    color: var(--accent);
    margin-right: 4px;
}

.featured-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 10px;
}

.view-post-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.featured-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray);
}

.featured-stats i {
    color: var(--accent);
}

/* ====== TRENDING SECTION ====== */
.trending-section {
    background: linear-gradient(145deg, #fff1f0, #ffe9e8);
    border-radius: var(--radius);
    padding: 40px;
    margin: 30px 0;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trending-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.trending-header h2 {
    margin-bottom: 5px;
    color: var(--primary);
}

.trending-header p {
    margin-bottom: 0;
    color: var(--gray);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trending-item {
    background: white;
    border-radius: var(--radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.trending-item:hover {
    transform: translateX(5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.trending-rank {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trending-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
}

.trending-info p {
    font-size: 0.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    flex-wrap: wrap;
}

.trending-info i {
    color: var(--accent);
}

/* ====== LATEST UPDATES SECTION ====== */
.home-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.home-update-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.home-update-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.home-update-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.home-update-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-update-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.home-update-meta i {
    color: var(--accent);
    margin-right: 4px;
}

.home-update-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.home-update-title a {
    color: var(--primary);
}

.home-update-title a:hover {
    color: var(--accent);
}

.home-update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 10px;
}

.read-btn {
    background: transparent;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--primary);
    transition: var(--transition);
}

.read-btn:hover {
    background: var(--primary);
    color: white;
    gap: 8px;
}

.home-update-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--gray);
}

.home-update-stats i {
    color: var(--accent);
    margin-right: 3px;
}

/* ====== NEWSLETTER SECTION ====== */
.newsletter-section {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    padding: 50px;
    color: white;
    text-align: center;
    margin-top: 30px;
}

.newsletter-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ====== VIEW ALL BOTTOM ====== */
.section-footer-btn {
    text-align: center;
    margin-top: 35px;
}

/* ====== SEARCH MODULE ====== */
.search-module-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-module-overlay.active {
    display: flex;
    opacity: 1;
}

.search-module-card {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.search-module-overlay.active .search-module-card {
    transform: scale(1);
}

.search-module-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-module-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-search {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.search-module-body {
    padding: 30px 25px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 5px 5px 5px 20px;
}

.search-input-group i {
    color: var(--accent);
    font-size: 1.2rem;
}

.search-input-group input {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-input-group button {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-input-group button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.popular-searches {
    margin-top: 25px;
}

.popular-searches p {
    margin-bottom: 10px;
    font-weight: 500;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tag {
    background: var(--light-gray);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
    cursor: pointer;
}

.search-tag:hover {
    background: var(--primary);
    color: white;
}

/* ====== FOOTER ====== */
footer {
    background: var(--dark);
    color: #dee2e6;
    padding: 60px 0 20px;
    margin-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.footer-section p {
    color: #adb5bd;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

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

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ====== RESPONSIVE FIXES ====== */

/* Tablet Landscape (992px and below) */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        gap: 5px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 15px 15px;
        font-size: 1.1rem;
        border-radius: 8px;
        white-space: normal;
        word-break: break-word;
    }

    .nav-links a:hover {
        background: var(--light-gray);
    }

    .nav-links a.active::after {
        display: none;
    }

    .nav-links a.active {
        color: var(--accent);
        background: rgba(211, 47, 47, 0.05);
    }

    .nav-links .search-btn {
        margin-top: 10px;
        width: 100%;
        border-radius: 50px;
    }

    .nav-links::before {
        content: '\f00d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        color: var(--accent);
        cursor: pointer;
        width: 40px;
        height: 40px;
        background: rgba(211, 47, 47, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-grid,
    .home-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-text p {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 2.2rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .featured-grid,
    .home-updates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trending-section {
        padding: 25px;
    }

    .trending-header {
        justify-content: center;
        text-align: center;
    }

    .newsletter-section {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .btn {
        width: 100%;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .header-content {
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text p {
        font-size: 0.65rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .categories-grid {
        gap: 12px;
    }

    .category-card {
        padding: 18px 10px;
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 0.95rem;
    }

    .category-count {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .notes-grid {
        gap: 15px;
    }

    .note-card-header {
        padding: 15px;
    }

    .note-card-body {
        padding: 12px 15px;
    }

    .note-card-footer {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .note-card-footer .btn {
        width: 100%;
    }

    .featured-meta {
        flex-direction: column;
        gap: 5px;
    }

    .featured-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-post-btn {
        width: 100%;
        justify-content: center;
    }

    .featured-stats {
        width: 100%;
        justify-content: space-between;
    }

    .trending-item {
        padding: 12px;
    }

    .home-update-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .home-update-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-btn {
        width: 100%;
        justify-content: center;
    }

    .home-update-stats {
        width: 100%;
        justify-content: space-between;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-links a {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-text p {
        font-size: 0.6rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        padding: 15px 8px;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .search-input-group {
        flex-wrap: wrap;
        background: transparent;
        border: none;
        padding: 0;
    }

    .search-input-group i {
        display: none;
    }

    .search-input-group input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 60px;
        padding: 15px 20px;
        background: white;
        margin-bottom: 10px;
    }

    .search-input-group button {
        width: 100%;
    }

    .trending-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .trending-rank {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Very Small Devices (320px and below) */
@media (max-width: 320px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        text-align: center;
    }

    .trending-header {
        flex-direction: column;
        text-align: center;
    }
}
