/*
Theme Name: TejanaClassess
Theme URI: https://tejanaclasses.com
Author: jpkansotia
Author URI: https://tejanaclasses.com
Description: A WordPress theme for ExamNotes - Free Study Material for Competitive Exams
Version: 1.0.102
License: GPL v2 or later
Text Domain: tejanaclasses
Tags: education, study-material, competitive-exams, responsive
*/

/* ====== GLOBAL THEME STYLES ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* ====== GLOBAL THEME STYLES ====== */
:root {
    --primary: #1a237e;
    --secondary: #283593;
    --accent: #d32f2f;
    --accent-light: #ff6659;
    --success: #388e3c;
    --warning: #f57c00;
    --info: #0288d1;
    --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;
    --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, #1a237e, #303f9f, #512da8);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

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

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8faff;
    overflow-x: hidden;
    font-family: var(--font-primary);
}

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

section {
    padding: 60px 0;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

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

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

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    gap: 8px;
    min-height: 44px;
    width: auto;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
    color: white;
}

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

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-3px);
    color: white;
}

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

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

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

.btn-full {
    width: 100%;
}
/* ====== WORDPRESS DEFAULT STYLES ====== */

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 20px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 100%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
    font-family: var(--font-secondary);
}

/* WordPress Gallery */
.gallery {
    margin: 0 auto 20px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 10px;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 0;
    font-family: var(--font-secondary);
}

/* WordPress Widgets */
.widget {
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-family: var(--font-secondary);
}

.widget select {
    max-width: 100%;
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    font-family: var(--font-primary);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

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

.widget li:hover {
    transform: translateX(5px);
}

.widget a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

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

.widget_recent_entries .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 4px;
    font-family: var(--font-secondary);
}

/* WordPress Search Widget */
.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.widget_search .search-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 600;
}

.widget_search .search-submit:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
}

/* WordPress Calendar */
#wp-calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#wp-calendar caption {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    padding: 5px;
    font-family: var(--font-primary);
}

#wp-calendar th,
#wp-calendar td {
    text-align: center;
    padding: 8px;
    border: 1px solid var(--border);
    font-family: var(--font-secondary);
}

#wp-calendar th {
    background: var(--light);
    color: var(--primary);
    font-weight: 600;
}

#wp-calendar td {
    background: white;
}

#wp-calendar td a {
    font-weight: 600;
    color: var(--accent);
}

#wp-calendar .pad {
    background: transparent;
}

#wp-calendar #today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

#wp-calendar #today a {
    color: white;
}

/* WordPress Navigation Menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
    font-family: var(--font-primary);
    font-weight: 500;
}

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

.menu-item a:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateX(5px);
}

.menu-item-has-children > a::after {
    content: '›';
    font-size: 1.2rem;
    color: var(--gray);
    transition: var(--transition);
}

.menu-item-has-children > a:hover::after {
    color: var(--primary);
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--light);
    border-left: 3px solid var(--primary);
    display: none;
}

.sub-menu .menu-item a {
    padding-left: 25px;
    font-size: 0.9rem;
}

.sub-menu .sub-menu .menu-item a {
    padding-left: 35px;
}

.menu-item:hover > .sub-menu {
    display: block;
}

/* WordPress Comments Form Fields */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-secondary);
}

/* WordPress Post Navigation */
.navigation.posts-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    max-width: 100%;
    font-family: var(--font-primary);
}

.nav-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.nav-links .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.nav-links .nav-title {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark);
    font-family: var(--font-primary);
    font-weight: 500;
}

.nav-links a:hover .nav-title {
    color: white;
}

/* WordPress Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Admin Bar Fix */
.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

/* WordPress Embeds */
.wp-embedded-content {
    max-width: 100%;
    width: 100%;
}

/* WordPress Block Styles */
.wp-block-button__link {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.wp-block-button__link:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    color: white;
}

.wp-block-quote {
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    background: var(--light);
    border-radius: 8px;
    font-style: italic;
    font-family: var(--font-secondary);
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
    font-family: var(--font-secondary);
}

.wp-block-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-family: var(--font-primary);
}

.wp-block-table tr:nth-child(even) {
    background: var(--light);
}
/* ====== GENERAL LIST STYLES ====== */
/* सामान्य बुलेट पॉइंट वाले लिस्ट्स के लिए */
ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts),
ol:not([class]) {
    margin: 20px 0 20px 30px;
    padding-left: 20px;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) {
    list-style-type: disc;
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li,
ol:not([class]) li {
    margin-bottom: 10px;
    padding-left: 5px;
    color: var(--dark);
    font-family: var(--font-secondary);
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li:last-child,
ol:not([class]) li:last-child {
    margin-bottom: 0;
}

/* नेस्टेड लिस्ट्स के लिए */
ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ul,
ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ol,
ol:not([class]) ul,
ol:not([class]) ol {
    margin-top: 10px;
    margin-bottom: 0;
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ul {
    list-style-type: circle;
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ul ul {
    list-style-type: square;
}

/* लिस्ट आइटम्स में लिंक्स के लिए */
ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li a,
ol:not([class]) li a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-family: var(--font-primary);
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li a:hover,
ol:not([class]) li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* आइकॉन वाले लिस्ट आइटम्स के लिए */
ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li,
ol:not([class]).icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li:before,
ol:not([class]).icon-list li:before {
    content: '';
    display: none;
}

ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li i,
ol:not([class]).icon-list li i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ====== LIST UTILITY CLASSES ====== */
/* चेकमार्क लिस्ट */
.list-checkmarks {
    list-style: none;
    padding: 0;
}

.list-checkmarks li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    font-family: var(--font-secondary);
}

.list-checkmarks li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-family: var(--font-primary);
}

/* नंबर वाले लिस्ट */
.list-numbers {
    list-style: none;
    counter-reset: list-counter;
    padding: 0;
}

.list-numbers li {
    counter-increment: list-counter;
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.list-numbers li:before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: var(--font-primary);
}

/* आइकॉन लिस्ट */
.list-icons {
    list-style: none;
    padding: 0;
}

.list-icons li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.list-icons li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 3px;
    background: rgba(211, 47, 47, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ====== RESPONSIVE STYLES ====== */
/* Tablet devices (768px और उससे छोटे) */
@media (max-width: 768px) {
    /* सामान्य लिस्ट्स */
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts),
    ol:not([class]) {
        margin: 15px 0 15px 20px;
        padding-left: 15px;
        line-height: 1.5;
    }
    
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li,
    ol:not([class]) li {
        margin-bottom: 8px;
        padding-left: 3px;
    }
    
    /* UTILITY CLASSES के लिए responsive */
    .list-checkmarks li {
        padding-left: 22px;
        margin-bottom: 10px;
    }
    
    .list-checkmarks li:before {
        font-size: 0.9rem;
    }
    
    .list-numbers li {
        padding-left: 30px;
        margin-bottom: 12px;
    }
    
    .list-numbers li:before {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .list-icons li {
        gap: 10px;
        margin-bottom: 12px;
        align-items: center;
    }
    
    .list-icons li i {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
        margin-top: 0;
    }
    
    /* Icon list items */
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li,
    ol:not([class]).icon-list li {
        gap: 8px;
        align-items: center;
    }
    
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li i,
    ol:not([class]).icon-list li i {
        font-size: 0.85rem;
        margin-top: 0;
    }
}

/* Mobile devices (480px और उससे छोटे) */
@media (max-width: 480px) {
    /* सामान्य लिस्ट्स */
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts),
    ol:not([class]) {
        margin: 12px 0 12px 15px;
        padding-left: 10px;
        line-height: 1.4;
    }
    
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li,
    ol:not([class]) li {
        margin-bottom: 6px;
        padding-left: 0;
        font-size: 0.95rem;
    }
    
    /* Nested lists को compact बनाने के लिए */
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ul,
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) ol,
    ol:not([class]) ul,
    ol:not([class]) ol {
        margin-top: 6px;
        margin-left: 10px;
    }
    
    /* UTILITY CLASSES के लिए responsive */
    .list-checkmarks {
        margin-left: 0;
    }
    
    .list-checkmarks li {
        padding-left: 20px;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
    
    .list-checkmarks li:before {
        font-size: 0.85rem;
    }
    
    .list-numbers {
        margin-left: 0;
    }
    
    .list-numbers li {
        padding-left: 26px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .list-numbers li:before {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .list-icons {
        margin-left: 0;
    }
    
    .list-icons li {
        gap: 8px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .list-icons li i {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    /* Icon list items */
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li,
    ol:not([class]).icon-list li {
        gap: 6px;
        font-size: 0.95rem;
    }
    
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts).icon-list li i,
    ol:not([class]).icon-list li i {
        font-size: 0.8rem;
        width: 22px;
        height: 22px;
    }
    
    /* Very small mobile devices */
    @media (max-width: 360px) {
        .list-numbers li:before {
            width: 18px;
            height: 18px;
            font-size: 0.65rem;
        }
        
        .list-icons li i {
            width: 22px;
            height: 22px;
            font-size: 0.75rem;
        }
    }
}

/* Large mobile devices (481px से 767px तक) के लिए optimization */
@media (min-width: 481px) and (max-width: 767px) {
    .list-numbers li:before {
        width: 24px;
        height: 24px;
    }
    
    .list-icons li i {
        width: 28px;
        height: 28px;
    }
}

/* Landscape orientation के लिए optimization */
@media (max-height: 500px) and (orientation: landscape) {
    ul:not([class]):not(.recent-posts):not(.pages-list):not(.comment-list):not(.footer-links):not(.category-list):not(.popular-posts) li,
    ol:not([class]) li {
        margin-bottom: 4px;
    }
    
    .list-checkmarks li,
    .list-numbers li,
    .list-icons li {
        margin-bottom: 8px;
    }
}


/* ====== CONTACT FORM 7 STYLES ====== */

/* Contact Form 7 Container */
.wpcf7 {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    margin: 40px 0;
}

/* Form Elements Styling */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wpcf7-form p {
    margin: 0;
    font-family: var(--font-secondary);
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form-control {
    width: 100% !important;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark);
    background: white;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* Text Fields */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-url,
.wpcf7-number {
    min-height: 50px;
}

/* Textarea */
.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Select Dropdown */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a237e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

/* Checkboxes and Radio Buttons */
.wpcf7-checkbox,
.wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpcf7-list-item {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf7-list-item-label {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-secondary);
}

.wpcf7-checkbox input[type="checkbox"],
.wpcf7-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* File Upload */
.wpcf7-file {
    padding: 12px !important;
    cursor: pointer;
}

.wpcf7-file::-webkit-file-upload-button {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.wpcf7-file::-webkit-file-upload-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Submit Button */
.wpcf7-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    width: 100%;
    margin-top: 10px;
    font-family: var(--font-primary);
}

.wpcf7-submit:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
}

.wpcf7-submit:active {
    transform: translateY(-1px);
}

.wpcf7-submit .ajax-loader {
    margin: 0 0 0 10px;
}

/* Loading Spinner */
.wpcf7 .ajax-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wpcf7-spin 0.8s linear infinite;
}

@keyframes wpcf7-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation Messages */
.wpcf7-response-output {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0 0 !important;
    border-width: 2px !important;
    text-align: center;
    font-weight: 500;
    font-family: var(--font-primary);
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    border-color: #c3e6cb !important;
    color: #155724;
}

.wpcf7-validation-errors {
    background: #fff3cd;
    border-color: #ffeaa7 !important;
    color: #856404;
}

.wpcf7-spam-blocked {
    background: #f8d7da;
    border-color: #f5c6cb !important;
    color: #721c24;
}

.wpcf7-not-valid-tip {
    color: var(--accent) !important;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    font-family: var(--font-secondary);
}

.wpcf7-not-valid {
    border-color: var(--accent) !important;
    background-color: rgba(211, 47, 47, 0.05);
}

.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Form Headings */
.wpcf7-form h3,
.wpcf7-form h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

/* Required Fields */
.wpcf7-form .required {
    color: var(--accent);
    font-weight: bold;
}

/* Form Layout Variations */
.wpcf7-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wpcf7-form .form-col {
    flex: 1;
    min-width: 250px;
}

/* Contact Form in Sidebar */
.sidebar .wpcf7 {
    padding: 25px;
    margin: 20px 0;
}

.sidebar .wpcf7-form {
    gap: 15px;
}

.sidebar .wpcf7-form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
}

.sidebar .wpcf7-submit {
    padding: 14px 24px;
    font-size: 0.95rem;
}

/* Contact Form in Hero Section */
.hero .wpcf7 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .wpcf7 {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .wpcf7-form-control {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .wpcf7-form label {
        color: #e2e8f0;
    }
}

/* Responsive Styles for Contact Form 7 */
@media (max-width: 992px) {
    .wpcf7 {
        padding: 35px;
    }
    
    .wpcf7-form .form-row {
        gap: 15px;
    }
    
    .wpcf7-form .form-col {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .wpcf7 {
        padding: 30px;
        margin: 30px 0;
    }
    
    .wpcf7-form {
        gap: 20px;
    }
    
    .wpcf7-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .wpcf7-form .form-col {
        min-width: 100%;
    }
    
    .wpcf7-form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .wpcf7-textarea {
        min-height: 120px;
    }
    
    .wpcf7-submit {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .sidebar .wpcf7 {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .wpcf7 {
        padding: 25px 20px;
    }
    
    .wpcf7-form {
        gap: 15px;
    }
    
    .wpcf7-form-control {
        padding: 11px 13px;
        font-size: 0.9rem;
    }
    
    .wpcf7-text,
    .wpcf7-email,
    .wpcf7-tel,
    .wpcf7-url,
    .wpcf7-number {
        min-height: 45px;
    }
    
    .wpcf7-textarea {
        min-height: 100px;
    }
    
    .wpcf7-submit {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    .wpcf7-response-output {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .wpcf7-list-item-label {
        font-size: 0.9rem;
    }
    
    .wpcf7-checkbox input[type="checkbox"],
    .wpcf7-radio input[type="radio"] {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .wpcf7 {
        padding: 20px 15px;
    }
    
    .wpcf7-form-control {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .wpcf7-submit {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    .wpcf7-file::-webkit-file-upload-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Form Field Focus Effects */
.wpcf7-form-control:focus {
    animation: wpcf7-pulse 0.5s ease-in-out;
}

@keyframes wpcf7-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 35, 126, 0.2);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(26, 35, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 35, 126, 0);
    }
}

/* Success Animation */
.wpcf7-mail-sent-ok {
    animation: wpcf7-success 0.5s ease-in-out;
}

@keyframes wpcf7-success {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Placeholder Styling */
.wpcf7-form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
    font-family: var(--font-secondary);
}

.wpcf7-form-control:focus::placeholder {
    opacity: 0.5;
}

/* Form Description Text */
.wpcf7-form-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

/* Form Group with Icons */
.wpcf7-form-group {
    position: relative;
}

.wpcf7-form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.wpcf7-form-group .wpcf7-form-control {
    padding-left: 45px;
}

/* ====== CUSTOM STYLES FOR NOTES AND BULLET POINTS ====== */

/* Notes Feature Highlights */
.feature-highlights {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius);
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--accent);
}

.feature-highlights h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.feature-highlights-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-point {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-point:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-point-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.feature-point-content h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

.feature-point-content p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

/* Bullet Point Lists Styling */
.notes-benefits-list {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.notes-benefits-list li {
    padding: 15px 15px 15px 50px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    border: 2px solid var(--border);
    position: relative;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.notes-benefits-list li:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.notes-benefits-list li:before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.notes-benefits-list li strong {
    color: var(--primary);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.notes-benefits-list li p {
    color: var(--dark);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

/* Compact Bullet List */
.compact-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.compact-list li {
    padding: 12px 12px 12px 40px;
    margin-bottom: 10px;
    background: var(--light);
    border-radius: 6px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.compact-list li:before {
    content: '→';
    position: absolute;
    left: 15px;
    color: var(--accent);
    font-weight: bold;
    font-family: var(--font-primary);
}

.compact-list li strong {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-primary);
}

/* Features Grid with Icons */
.features-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-icon-item {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-icon-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.feature-icon-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: var(--font-primary);
}

.feature-icon-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

/* Quality Assurance Section */
.quality-section {
    background: linear-gradient(135deg, rgba(56, 142, 60, 0.05), rgba(76, 175, 80, 0.05));
    padding: 40px;
    border-radius: var(--radius);
    margin: 40px 0;
    border: 2px solid var(--success);
}

.quality-header {
    text-align: center;
    margin-bottom: 30px;
}

.quality-header h3 {
    color: var(--success);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.quality-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

.quality-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quality-point {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quality-point i {
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 15px;
}

.quality-point h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.quality-point p {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-family: var(--font-secondary);
}

/* Responsive Styles for Custom Components */
@media (max-width: 992px) {
    .feature-highlights {
        padding: 25px;
    }
    
    .features-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quality-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-highlights-content {
        grid-template-columns: 1fr;
    }
    
    .feature-point {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px 20px;
    }
    
    .feature-point-icon {
        margin-bottom: 15px;
    }
    
    .notes-benefits-list li {
        padding: 15px;
        text-align: center;
    }
    
    .notes-benefits-list li:before {
        position: static;
        margin: 0 auto 10px;
        transform: none;
        display: inline-flex;
    }
    
    .features-icon-grid {
        grid-template-columns: 1fr;
    }
    
    .quality-section {
        padding: 30px;
    }
    
    .quality-points {
        grid-template-columns: 1fr;
    }
    
    .widget_search .search-form {
        flex-direction: column;
    }
    
    .widget_search .search-field,
    .widget_search .search-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .feature-highlights {
        padding: 20px;
    }
    
    .feature-point {
        padding: 20px 15px;
    }
    
    .notes-benefits-list li {
        padding: 15px 15px 15px 50px;
        text-align: left;
    }
    
    .notes-benefits-list li:before {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }
    
    .quality-section {
        padding: 25px 20px;
    }
    
    .quality-header h3 {
        font-size: 1.4rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        text-align: left;
    }
    
    .nav-next {
        order: -1;
    }
    
    .widget_search .search-form {
        flex-direction: row;
    }
    
    .widget_search .search-submit {
        width: auto;
    }
}

@media (max-width: 400px) {
    .feature-point-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .feature-point-content h4 {
        font-size: 1rem;
    }
    
    .notes-benefits-list li {
        padding-left: 45px;
    }
    
    .notes-benefits-list li:before {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .quality-point {
        padding: 15px;
    }
    
    .widget_search .search-form {
        flex-direction: column;
    }
    
    .widget_search .search-submit {
        width: 100%;
    }
}

/* WordPress Pagination Numbers */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    padding: 0 15px;
    gap: 8px;
}


/* ====== HEADER & NAVIGATION ====== */
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;
    flex-wrap: wrap;
    gap: 15px;
}

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

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

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
    font-family: var(--font-primary);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    position: relative;
    white-space: nowrap;
    font-family: var(--font-primary);
}

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

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

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--light);
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
    position: absolute;
    top: 20px;
    right: 20px;
}

.mobile-close-btn:hover {
    background: var(--light-gray);
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
    background: var(--light);
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-links a {
    color: var(--gray);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-primary);
}

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

.breadcrumb-links .separator {
    color: var(--gray);
    font-size: 0.8rem;
}

.breadcrumb-links .current {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-primary);
}

/* ====== HERO SECTION ====== */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.hero:after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: var(--font-primary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 90%;
    font-family: var(--font-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: auto;
    object-fit: cover;
}

/* ====== SECTION TITLES ====== */
.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-family: var(--font-primary);
}

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

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

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

/* ====== NOTES SECTIONS ====== */
.notes-section {
    padding: 60px 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

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

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

.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(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.note-card-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: var(--font-primary);
}

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

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

.note-card-body p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    font-family: var(--font-secondary);
}

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

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

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

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* ====== RECENT POSTS IN SIDEBAR ====== */
.recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-post-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

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

.recent-post-item:hover {
    transform: translateX(5px);
}

.recent-post-item a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.recent-post-item a:hover {
    color: var(--primary);
}

.recent-post-item i {
    color: var(--accent);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.recent-post-item span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.recent-post-item:hover span {
    color: var(--primary);
}

/* ====== FEATURES SECTION ====== */
.features {
    background: var(--light);
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-family: var(--font-primary);
}

.feature-card p {
    color: var(--gray);
    font-family: var(--font-secondary);
}
/* ====== PAGE.PHP SPECIFIC STYLES ====== */

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(211, 47, 47, 0.05));
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--font-primary);
}

.page-excerpt {
    font-size: 1.2rem;
    color: var(--gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
    font-family: var(--font-secondary);
}

/* Page Body */
.page-body {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.page-body .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-secondary);
}

.page-body .post-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    font-family: var(--font-primary);
}

.page-body .post-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 30px 0 15px;
    font-family: var(--font-primary);
}

.page-body .post-content h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 25px 0 15px;
    font-family: var(--font-primary);
}

.page-body .post-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-family: var(--font-secondary);
}

.page-body .post-content ul,
.page-body .post-content ol {
    margin: 20px 0 20px 30px;
}

.page-body .post-content li {
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.page-body .post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    background: var(--light);
    border-radius: 8px;
    font-style: italic;
    font-family: var(--font-secondary);
}

.page-body .post-content pre {
    background: var(--dark);
    color: white;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}

.page-body .post-content code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.page-body .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.page-body .post-content th,
.page-body .post-content td {
    padding: 12px 15px;
    border: 1px solid var(--border);
    text-align: left;
    font-family: var(--font-secondary);
}

.page-body .post-content th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-family: var(--font-primary);
}

.page-body .post-content tr:nth-child(even) {
    background: var(--light);
}

/* Page Links */
.page-links {
    margin: 40px 0;
    padding: 20px;
    background: var(--light);
    border-radius: var(--radius);
    text-align: center;
}

.page-links .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.page-links .post-page-numbers:hover,
.page-links .post-page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

/* Page Footer */
.page-footer {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.edit-link {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.edit-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
    color: white;
}

/* ====== IMPORTANT PAGES (SAME STYLE AS RECENT POSTS) ====== */
.pages-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

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

.page-item:hover {
    transform: translateX(5px);
}

.page-item a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.page-item a:hover {
    color: var(--primary);
}

.page-item i {
    color: var(--accent);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.page-item span {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.page-item:hover span {
    color: var(--primary);
}

/* Comments Section */
.comments-area {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 60px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    font-family: var(--font-primary);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 25px;
    margin-bottom: 20px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-metadata {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.comment-content {
    line-height: 1.6;
    font-family: var(--font-secondary);
}

.comment-reply-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.comment-reply-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-primary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-submit .submit:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

/* Responsive Design for Page Template */
@media (max-width: 768px) {
    .page-header {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-excerpt {
        font-size: 1.1rem;
    }
    
    .page-body {
        padding: 25px;
    }
    
    .page-body .post-content h2 {
        font-size: 1.6rem;
    }
    
    .page-body .post-content h3 {
        font-size: 1.3rem;
    }
    
    .comments-area {
        padding: 25px;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-excerpt {
        font-size: 1rem;
    }
    
    .page-body {
        padding: 20px;
    }
    
    .page-body .post-content {
        font-size: 1rem;
    }
    
    .page-body .post-content h2 {
        font-size: 1.4rem;
    }
    
    .comments-area {
        padding: 20px;
    }
    
    .comments-title {
        font-size: 1.3rem;
    }
    
    .comment {
        padding: 15px;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ====== CATEGORIES SECTION ====== */
.categories {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.category-card:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
}

.category-card:hover h3 {
    color: white;
}

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

.category-card:hover .category-icon {
    color: white;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.category-count {
    font-size: 0.9rem;
    color: var(--gray);
    font-family: var(--font-secondary);
}

.category-card:hover .category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== TRENDING NOTES ====== */
.trending-notes {
    background: var(--light);
    padding: 60px 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.trending-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

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

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

.trending-info {
    flex-grow: 1;
    min-width: 0;
}

.trending-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-primary);
}

.trending-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-secondary);
}

.trending-downloads {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-primary);
}

/* ====== CTA SECTION ====== */
.cta {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-family: var(--font-secondary);
}

/* ====== EMAIL INPUT ONLY ====== */
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--dark);
    background: white;
    font-family: var(--font-primary);
    margin-bottom: 15px;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}


.newsletter-form input[type="email"]::placeholder {
    color: var(--gray);
    font-family: var(--font-secondary);
}

/* ====== BLOG POST PAGE ====== */
.blog-post-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0 60px;
}

.blog-post-content {
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
}

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

.post-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.post-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: var(--font-primary);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.95rem;
    font-family: var(--font-secondary);
}

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

.post-excerpt {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary);
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-secondary);
}

.post-body {
    padding: 40px 30px;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-secondary);
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    font-family: var(--font-primary);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 30px 0 15px;
    font-family: var(--font-primary);
}

.post-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-family: var(--font-secondary);
}

.post-content ul, .post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(211, 47, 47, 0.05));
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.download-section {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    text-align: center;
    border: 2px solid var(--border);
}

.download-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

/* ====== SIDEBAR ====== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
}

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

.sidebar-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-primary);
}

.sidebar-content {
    padding: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

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

.author-bio {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

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

.related-posts {
    list-style: none;
}

.related-post-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.related-post-item a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

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

.related-post-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ====== RELATED POSTS SECTION ====== */
.related-posts-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

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

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

.post-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
    font-family: var(--font-primary);
}

.post-card-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: var(--font-primary);
}

.post-card-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    font-family: var(--font-secondary);
}

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

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

/* ====== PRIVACY POLICY CONTENT ====== */
.privacy-container {
    max-width: 900px;
    margin: 40px auto 80px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
}

.privacy-header {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.05), rgba(211, 47, 47, 0.05));
    padding: 40px 30px;
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
}

.privacy-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.last-updated {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.privacy-content {
    padding: 40px 30px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    font-family: var(--font-primary);
}

.privacy-section h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 25px 0 15px;
    font-family: var(--font-primary);
}

.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-family: var(--font-secondary);
}

.privacy-section ul, .privacy-section ol {
    margin: 15px 0 20px 25px;
}

.privacy-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

.contact-info {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 30px;
    border: 1px solid var(--border);
}

.contact-info h3 {
    margin-top: 0 !important;
    color: var(--primary);
}

/* ====== QUICK NAV ====== */
.quick-nav {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 20px;
    margin-bottom: 30px;
}

.quick-nav h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    font-family: var(--font-primary);
}

.quick-nav ul {
    list-style: none;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 10px;
}

.quick-nav a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 5px 0;
    font-family: var(--font-primary);
}

.quick-nav a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.quick-nav i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ====== CATEGORY HERO ====== */
.category-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 50px 0;
    border-radius: var(--radius);
    margin: 30px 0;
    text-align: center;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
    font-family: var(--font-primary);
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: var(--font-secondary);
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: var(--font-secondary);
}

/* ====== FILTERS SECTION ====== */
.filters-section {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    border: 2px solid var(--border);
}

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

.filters-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-primary);
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    font-family: var(--font-primary);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--dark);
    min-width: 150px;
    cursor: pointer;
    font-family: var(--font-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.filter-tag {
    background: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
}

.filter-tag .remove {
    color: var(--accent);
    cursor: pointer;
    font-size: 0.8rem;
}

/* ====== POSTS GRID ====== */
.posts-section {
    margin: 40px 0 60px;
}

.posts-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.post-card-image-extended {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.post-card-extended:hover .post-card-image-extended {
    transform: scale(1.05);
}

.post-card-content-extended {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-header-extended {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card-category-extended {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.post-card-date {
    color: var(--gray);
    font-size: 0.85rem;
    font-family: var(--font-secondary);
}

.post-card-title-extended {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    font-family: var(--font-primary);
}

.post-card-excerpt-extended {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-family: var(--font-secondary);
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.post-card-footer-extended {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card-stats {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 0.85rem;
    font-family: var(--font-secondary);
}

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0 30px;
    flex-wrap: wrap;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: var(--transition);
    font-family: var(--font-primary);
}

.pagination-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-item.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    border-color: var(--border);
    color: var(--dark);
}

/* ====== CONTENT LAYOUT ====== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 40px 0;
}

/* ====== SIDEBAR EXTENDED ====== */
.category-list {
    list-style: none;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-item a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.category-item a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.category-count {
    background: var(--light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.popular-posts {
    list-style: none;
}

.popular-post-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.popular-post-item a {
    color: var(--dark);
    text-decoration: none;
    display: flex;
    gap: 15px;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.popular-post-item a:hover {
    color: var(--primary);
}

.popular-post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    font-family: var(--font-primary);
}

.popular-post-date {
    color: var(--gray);
    font-size: 0.8rem;
    font-family: var(--font-secondary);
}

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

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

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

.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);
    text-decoration: none;
    font-family: var(--font-primary);
}

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

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

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

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

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #495057;
    font-size: 0.85rem;
    color: #adb5bd;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

/* ====== UTILITY CLASSES ====== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

/* Text overflow handling */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.empty-state p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 25px;
    font-family: var(--font-secondary);
}

/* ====== LOADING STATE ====== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .note-card-title {
        font-size: 1.1rem;
    }
    
    .feature-card, .category-card, .trending-card {
        padding: 20px;
    }
    
    .blog-post-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .privacy-header h1 {
        font-size: 2rem;
    }
    
    .privacy-content {
        padding: 30px 20px;
    }
    
    .quick-nav {
        position: static;
        margin-bottom: 20px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .posts-grid-extended {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-actions {
        width: auto;
        justify-content: flex-end;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        white-space: normal;
        width: auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 300px;
    }
    
    .privacy-header {
        padding: 30px 20px;
    }
    
    .privacy-header h1 {
        font-size: 1.8rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.2rem;
    }
    
    .posts-grid-extended {
        grid-template-columns: 1fr;
    }
    
    .category-hero {
        padding: 40px 0;
    }
    
    .category-hero h1 {
        font-size: 1.8rem;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-card-image-extended {
        height: 180px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        width: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .features, .trending-notes, .cta {
        padding: 50px 0;
    }
    
    .note-card-header, .note-card-body, .note-card-footer {
        padding: 15px;
    }
    
    .note-card-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .section-title:after {
        width: 60px;
        bottom: -10px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .note-card-body p {
        font-size: 0.9rem;
    }
    
    .post-header,
    .post-body {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-card-content {
        padding: 15px;
    }
    
    .privacy-header,
    .privacy-content {
        padding: 20px 15px;
    }
    
    .privacy-header h1 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .category-hero h1 {
        font-size: 1.5rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-card-content-extended {
        padding: 20px;
    }
    
    .post-card-footer-extended {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-item {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .trending-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-info h4 {
        font-size: 1rem;
    }
    
    .features-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
}


/* ====== COMMENTS STYLES ====== */
.comments-section {
    margin: 60px 0;
    padding: 0;
}

.comments-wrapper {
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 40px;
}

/* Comments Header */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.comments-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-primary);
}

.comments-title span {
    color: var(--accent);
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-weight: 600;
    font-family: var(--font-secondary);
}

.comments-count i {
    color: var(--primary);
}

/* Comments Navigation */
.comments-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-previous,
.nav-next {
    flex: 1;
}

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

.comments-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.comments-navigation a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Comments List */
.comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-item {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8faff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-wrapper {
    display: flex;
    gap: 20px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 15px;
}

.comment-author {
    margin-bottom: 8px;
}

.author-name {
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
}

.author-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
}

.author-badge i {
    color: #333;
}

.comment-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray);
    font-family: var(--font-secondary);
}

.comment-details i {
    margin-right: 5px;
    color: var(--primary);
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: var(--font-secondary);
}

.comment-text p {
    margin-bottom: 15px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-awaiting-moderation {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
}

.comment-awaiting-moderation i {
    color: #856404;
}

.comment-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}


}

.reply-link a,
.edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.reply-link a:hover,
.edit-link a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.reply-link i,
.edit-link i {
    font-size: 0.8rem;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.comment-notes {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px !important;
    font-family: var(--font-secondary);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-field {
    position: relative;
}

.comment-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.required {
    color: var(--accent);
    font-weight: bold;
}

.comment-form-field input,
.comment-form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--dark);
    background: white;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.comment-form-field input:focus,
.comment-form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.comment-form-field input::placeholder,
.comment-form-field textarea::placeholder {
    color: var(--gray);
    opacity: 0.7;
    font-family: var(--font-secondary);
}

.comment-form-comment {
    order: -1;
}

.comment-form-submit {
    margin-top: 20px;
}

/* Nested Comments */
.children {
    list-style: none;
    margin: 20px 0 0 60px;
    padding: 0;
    border-left: 2px solid var(--light-gray);
    padding-left: 30px;
}

.children .comment-item {
    background: white;
    border: 1px solid var(--light-gray);
}

/* Comments Closed */
.comments-closed {
    text-align: center;
    padding: 40px;
    background: #f8faff;
    border-radius: var(--radius);
    margin: 30px 0;
}

.no-comments {
    font-size: 1.1rem;
    color: var(--gray);
    margin: 0;
    font-family: var(--font-secondary);
}

/* Responsive Comments */
@media (max-width: 768px) {
    .comments-wrapper {
        padding: 25px;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
    
    .comment-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-avatar {
        display: flex;
        justify-content: center;
    }
    
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .children {
        margin-left: 30px;
        padding-left: 20px;
    }
    
    .comment-details {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .comments-wrapper {
        padding: 20px;
    }
    
    .comment-item {
        padding: 20px;
    }
    
    .children {
        margin-left: 15px;
        padding-left: 15px;
    }
    
    .comments-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
}


/* ====== SINGLE.PHP SPECIFIC STYLES ====== */

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post-tags {
    width: 100%;
}

.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.share-text {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    font-family: var(--font-primary);
}

.share-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.facebook-btn:hover { background: #1877F2; border-color: #1877F2; }
.twitter-btn:hover { background: #1DA1F2; border-color: #1DA1F2; }
.whatsapp-btn:hover { background: #25D366; border-color: #25D366; }
.linkedin-btn:hover { background: #0077B5; border-color: #0077B5; }

/* Author Bio Section */
.author-bio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
    margin: 40px 0;
    border: 1px solid var(--border);
}

.author-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.author-info-large {
    width: 100%;
}

.author-info-large h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: var(--font-primary);
}

.author-info-large p {
    text-align: center;
    color: var(--gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-secondary);
}

/* Download Section Styling */
.download-section {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 40px 0;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.download-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
    font-family: var(--font-primary);
}

.download-description {
    color: var(--gray);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-family: var(--font-secondary);
}

/* PDF Info Card */
.pdf-info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pdf-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pdf-icon {
    color: var(--accent);
    font-size: 42px;
    flex-shrink: 0;
}

.pdf-header-content {
    flex: 1;
    min-width: 0;
}

.pdf-header-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1.3;
    font-family: var(--font-primary);
}

.pdf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--gray);
    font-size: 0.95rem;
    font-family: var(--font-secondary);
}

.pdf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pdf-meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.pdf-description {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-family: var(--font-secondary);
}

.pdf-description p {
    margin: 0;
    text-align: left;
    color: var(--dark);
    font-size: 1rem;
    font-family: var(--font-secondary);
}

/* Download Buttons Grid */
.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    min-height: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.download-btn i {
    font-size: 1.1rem;
}

.download-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PDF Preview */
.pdf-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.pdf-preview-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-family: var(--font-secondary);
}

.pdf-preview-info i {
    color: var(--info);
}

.pdf-preview-link-container {
    display: flex;
}

.pdf-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    flex: 1;
    justify-content: center;
    font-family: var(--font-primary);
}

.pdf-preview-link:hover {
    background: var(--primary);
    color: white;
}

.pdf-preview-link i {
    font-size: 0.9rem;
}

/* Newsletter Form in Sidebar */
.newsletter-text {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Read More Button */
.read-more-btn {
    white-space: nowrap;
    min-width: 100px;
}

/* Responsive Styles for Single.php */
@media (max-width: 992px) {
    .blog-post-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 40px;
    }
    
    .pdf-header-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-icons {
        justify-content: flex-start;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-section h3 {
        font-size: 1.3rem;
    }
    
    .pdf-info-card {
        padding: 20px;
    }
    
    .pdf-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .pdf-icon {
        font-size: 36px;
        margin: 0 auto 15px;
    }
    
    .pdf-header-content {
        text-align: center;
    }
    
    .pdf-meta {
        justify-content: center;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .download-btn {
        white-space: normal;
        padding: 14px 18px;
        min-height: 48px;
        font-size: 0.95rem;
    }
    
    .pdf-description {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .author-bio-section {
        padding: 25px;
    }
    
    .author-avatar-large img {
        width: 70px;
        height: 70px;
    }
    
    .newsletter-input {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .download-section {
        padding: 15px;
        margin: 30px 0;
    }
    
    .download-section h3 {
        font-size: 1.2rem;
    }
    
    .download-description {
        font-size: 1rem;
    }
    
    .pdf-info-card {
        padding: 15px;
    }
    
    .pdf-icon {
        font-size: 32px;
    }
    
    .pdf-header-content h4 {
        font-size: 1.1rem;
    }
    
    .pdf-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .download-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
        min-height: 45px;
    }
    
    .pdf-description {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .pdf-preview-link {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
    }
    
    .author-bio-section {
        padding: 20px;
    }
    
    .author-info-large h4 {
        font-size: 1.2rem;
    }
    
    .author-info-large p {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .download-buttons .download-btn {
        font-size: 0.85rem;
        min-height: 42px;
        padding: 10px 12px;
    }
    
    .pdf-header-content h4 {
        font-size: 1rem;
    }
    
    .pdf-meta-item {
        font-size: 0.85rem;
    }
    
    .download-btn i {
        font-size: 0.9rem;
    }
    
    .share-icons {
        gap: 8px;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
    }
}

/* ====== RESPONSIVE HEADING FIX ====== */
h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

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

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .page-title,
    .entry-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    h2 {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
    }
}
