/*
Theme Name: PDF Guide Professional
Theme URI: https://pdfguide.in
Author: PDF Guide Team
Version: 2.0
Text Domain: pdfguide
*/

/* ========== CSS VARIABLES ========== */
:root {
    --primary-blue: #2c3e50;
    --secondary-teal: #1abc9c;
    --accent-orange: #e67e22;
    --light-gray: #f8f9fa;
    --medium-gray: #ecf0f1;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
.site-header {
    background: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.site-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-tagline {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 3px;
    color: var(--white);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--secondary-teal);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-teal);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Search */
.header-search {
    flex-grow: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-button {
    background: var(--secondary-teal);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
}

.search-button:hover {
    background: #16a085;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), #34495e);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid var(--accent-orange);
    margin-top: 10px;
    transition: var(--transition);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-3px);
}

/* ========== CLASS GRID ========== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-teal);
    margin: 15px auto;
    border-radius: 2px;
}

.class-section {
    padding: 80px 0;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.class-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-teal);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-orange);
}

.class-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-teal), #16a085);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.class-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.class-desc {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.view-button {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--accent-orange);
    transition: var(--transition);
}

.view-button:hover {
    background: transparent;
    color: var(--accent-orange);
    transform: translateY(-2px);
}

/* ========== SUBJECTS SECTION ========== */
.subjects-section {
    padding: 80px 0;
    background: var(--white);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.subject-card {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    color: var(--primary-blue);
    transition: var(--transition);
    border: 2px solid transparent;
}

.subject-card:hover {
    background: var(--white);
    border-color: var(--secondary-teal);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.subject-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.subject-card span {
    font-weight: 600;
    font-size: 17px;
    display: block;
    margin-top: 10px;
}

/* ========== PDF GRID SECTION ========== */
.pdf-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pdf-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pdf-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pdf-thumbnail {
    height: 200px;
    background: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-teal);
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.pdf-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-thumbnail::after {
    content: 'PDF';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.pdf-content {
    padding: 25px;
}

.pdf-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue);
    line-height: 1.4;
}

.pdf-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pdf-meta span {
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--light-text);
}

.download-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--secondary-teal);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 10px;
    transition: var(--transition);
}

.download-btn:hover {
    background: #16a085;
    transform: translateY(-2px);
}

/* ========== FEATURES SECTION ========== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 50px;
    color: var(--secondary-teal);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--secondary-teal);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-teal);
    padding-left: 8px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #aaa;
    font-size: 14px;
}

.copyright p {
    margin-bottom: 10px;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-primary { background: var(--primary-blue); }
.bg-secondary { background: var(--secondary-teal); }
.bg-light { background: var(--light-gray); }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.p-20 { padding: 20px; }
.p-40 { padding: 40px; }
.p-60 { padding: 60px; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--secondary-teal);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-teal);
    font-size: 16px;
}

.btn:hover {
    background: transparent;
    color: var(--secondary-teal);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-teal);
    border-color: var(--secondary-teal);
}

.btn-outline:hover {
    background: var(--secondary-teal);
    color: white;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-search {
        max-width: 100%;
    }
    
    .class-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subjects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .class-grid {
        grid-template-columns: 1fr;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pdf-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== LOADING STATES ========== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-teal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a085;
}

/* ========== PRINT STYLES ========== */
@media print {
    .site-header,
    .site-footer,
    .cta-button,
    .view-button,
    .download-btn {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

/* ========== ALERTS & MESSAGES ========== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-blue);
    color: white;
}

.badge-secondary {
    background: var(--secondary-teal);
    color: white;
}

.badge-accent {
    background: var(--accent-orange);
    color: white;
}

.badge-light {
    background: var(--light-gray);
    color: var(--dark-text);
}

/* ========== CARD VARIANTS ========== */
.card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.card-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.card-footer {
    border-top: 2px solid var(--light-gray);
    padding-top: 20px;
    margin-top: 20px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: var(--dark-text);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--medium-gray);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--secondary-teal);
    color: white;
    border-color: var(--secondary-teal);
}

/* ========== SEPARATORS ========== */
.separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--medium-gray), transparent);
    margin: 40px 0;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-teal);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #16a085;
    transform: translateY(-5px);
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-teal);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ========== PAGE TEMPLATE STYLES ========== */

/* Default Page Template */
.page-container {
    padding: 60px 20px;
    min-height: 70vh;
}

.page-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-teal);
}

.page-thumbnail {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-text);
}

.page-body p {
    margin-bottom: 20px;
}

.page-body h2 {
    color: var(--primary-blue);
    margin: 40px 0 20px;
    font-size: 28px;
}

.page-body h3 {
    color: var(--primary-blue);
    margin: 30px 0 15px;
    font-size: 24px;
}

.page-body ul, .page-body ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-body li {
    margin-bottom: 10px;
}

.page-links {
    margin-top: 40px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

/* Single Post Template */
.single-container {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--secondary-teal);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 40px;
    color: var(--primary-blue);
    line-height: 1.3;
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    gap: 20px;
    color: var(--light-text);
    font-size: 14px;
}

.entry-meta i {
    margin-right: 5px;
}

.post-thumbnail {
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    margin: 40px 0;
}

.download-section {
    background: linear-gradient(135deg, var(--secondary-teal), #16a085);
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
    color: white;
    text-align: center;
}

.download-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

.download-btn {
    display: inline-block;
    background: white;
    color: var(--secondary-teal);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--medium-gray);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Archive Template */
.archive-container {
    padding: 60px 20px;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-blue), #34495e);
    color: white;
    border-radius: var(--radius);
}

.archive-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.archive-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.archive-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--medium-gray);
}

.archive-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.archive-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.archive-thumbnail:hover img {
    transform: scale(1.05);
}

.archive-item-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.archive-item-title a:hover {
    color: var(--secondary-teal);
}

.archive-excerpt {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.archive-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-text);
    font-size: 14px;
}

.archive-readmore a {
    color: var(--secondary-teal);
    font-weight: 600;
}

.archive-readmore a:hover {
    text-decoration: underline;
}

.archive-pagination {
    margin-top: 60px;
    text-align: center;
}

.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Search Template */
.search-container {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 50px;
}

.search-title {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-results {
    margin-top: 40px;
}

.search-count {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    text-align: center;
}

.search-grid {
    display: grid;
    gap: 30px;
}

.search-result {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-result:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.search-result-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.search-result-title a:hover {
    color: var(--secondary-teal);
}

.search-result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

.result-type {
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 15px;
}

.search-result-excerpt {
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.search-result-link a {
    color: var(--secondary-teal);
    font-weight: 600;
}

.search-result-link a:hover {
    text-decoration: underline;
}

.search-pagination {
    margin-top: 50px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.search-suggestions {
    margin-top: 40px;
    text-align: left;
    max-width: 500px;
    margin: 40px auto 0;
}

.search-suggestions ul {
    list-style: none;
    padding-left: 0;
}

.search-suggestions li {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.search-suggestions li:last-child {
    border-bottom: none;
}

/* 404 Error Page */
.error-404-container {
    padding: 80px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    font-size: 80px;
    color: #f39c12;
    margin-bottom: 30px;
}

.error-title {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.search-404 {
    margin: 40px 0;
}

.search-404 h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.popular-links {
    margin-top: 40px;
}

.popular-links h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.popular-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
}

.popular-links li {
    background: var(--light-gray);
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.popular-links li:hover {
    background: var(--secondary-teal);
}

.popular-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
}

.popular-links li:hover a {
    color: white;
}

/* Responsive for Pages */
@media (max-width: 992px) {
    .page-title, .entry-title, .archive-title {
        font-size: 32px;
    }
    
    .archive-item {
        grid-template-columns: 1fr;
    }
    
    .archive-thumbnail {
        height: 250px;
    }
    
    .archive-thumbnail img {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .page-container, .single-container, .archive-container, .search-container {
        padding: 40px 15px;
    }
    
    .page-title, .entry-title, .archive-title {
        font-size: 28px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .popular-links ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title, .entry-title, .archive-title {
        font-size: 24px;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .archive-header {
        padding: 30px 20px;
    }
}
/* ========== END OF STYLES ========== */