/*
Theme Name: NeuroDiscuss
Theme URI: https://neurodiscuss.org
Author: NeuroDiscuss Team
Author URI: https://neurodiscuss.org
Description: A professional WordPress theme for a neurology discussion and blogging platform. Verified neurologists publish scientific articles, clinical cases, journal-club reviews, opinions, and casual posts; readers can follow authors, react, bookmark, and discuss. Native role-based access control (no plugins required).
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neurodiscuss
Tags: neurology, medical, blog, community, scientific, responsive, mobile-first, dark-mode
*/

/* ========================================
   TABLE OF CONTENTS
   ========================================
   1. CSS Reset & Normalize
   2. Typography
   3. Layout & Grid
   4. Header & Navigation
   5. Homepage Components
   6. Blog & Content
   7. Doctors & Specialities
   8. Sidebar & Widgets
   9. Forms & Comments
   10. Footer
   11. Responsive Design
   12. Animations
   ======================================== */

/* ========================================
   1. CSS Reset & Normalize
   ======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   2. Typography
   ======================================== */

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1e293b;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #475569;
}

/* ========================================
   3. Layout & Grid
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* ========================================
   4. Header & Navigation
   ======================================== */

.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.site-logo span {
    color: #06b6d4;
}

.main-navigation {
    display: none;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #e2e8f0;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.mobile-menu-toggle {
    display: block;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 2rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    color: white;
    font-size: 1.5rem;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    color: #e2e8f0;
    font-size: 1.1rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}

/* ========================================
   5. Homepage Components
   ======================================== */

/* Hero Banner Slider */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    overflow: hidden;
}

.hero-slide {
    min-height: 500px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4);
}

/* Slick Slider Dots */
.slick-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 0.5rem;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    font-size: 0;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #06b6d4;
    transform: scale(1.2);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Latest Posts Section */
.latest-posts {
    background: white;
}

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

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

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

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
    line-height: 1.4;
}

.post-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

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

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

.view-all-btn {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4);
}

/* Sub Specialities Section */
.sub-specialities {
    background: #f1f5f9;
}

.speciality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.speciality-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.speciality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.speciality-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.speciality-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.speciality-description {
    color: #64748b;
    line-height: 1.6;
}

/* Doctors Section */
.doctors-section {
    background: white;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 2rem auto 1rem;
    border: 4px solid #f1f5f9;
}

.doctor-content {
    padding: 1.5rem;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.doctor-speciality {
    color: #06b6d4;
    font-weight: 500;
    margin-bottom: 1rem;
}

.doctor-experience {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-bio {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   6. Blog & Content
   ======================================== */

.content-area {
    padding: 3rem 0;
}

.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.breadcrumbs {
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #06b6d4;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.main-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.article-title a:hover {
    color: #06b6d4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.article-meta a {
    color: #06b6d4;
}

.article-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.article-content {
    line-height: 1.8;
    color: #475569;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    margin: 2rem 0 1rem 0;
    color: #1e293b;
}

.read-more {
    display: inline-block;
    color: #06b6d4;
    font-weight: 600;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: white;
    color: #64748b;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

/* Single Post */
.single-post .main-content {
    padding: 3rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.post-meta-single {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.post-content {
    line-height: 1.8;
    color: #475569;
}

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

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    margin: 2.5rem 0 1rem 0;
    color: #1e293b;
}

.post-content blockquote {
    border-left: 4px solid #06b6d4;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f1f5f9;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
}

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

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

/* Post Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

/* Author Box */
.author-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.author-bio {
    color: #64748b;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #06b6d4;
}

.nav-previous {
    text-align: left;
}

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

/* ========================================
   7. Doctors & Specialities Pages
   ======================================== */

.archive-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #64748b;
}

/* Doctors Archive */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doctor-card-archive {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.doctor-card-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.doctor-image-archive {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.doctor-content-archive {
    padding: 2rem;
}

.doctor-name-archive {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.doctor-speciality-archive {
    color: #06b6d4;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.doctor-experience-archive {
    color: #64748b;
    margin-bottom: 1rem;
}

.doctor-bio-archive {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.doctor-contact {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    border: 2px solid #06b6d4;
    color: #06b6d4;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #06b6d4;
    color: white;
}

/* Single Doctor */
.doctor-profile {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.doctor-profile-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.doctor-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 6px solid white;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.doctor-profile-info {
    text-align: center;
}

.doctor-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.doctor-profile-speciality {
    font-size: 1.3rem;
    color: #06b6d4;
    font-weight: 600;
    margin-bottom: 1rem;
}

.doctor-profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.detail-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.doctor-profile-content {
    padding: 3rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #06b6d4;
}

/* Specialities Archive */
.specialities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.speciality-card-archive {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.speciality-card-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.speciality-image-archive {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.speciality-content-archive {
    padding: 2rem;
}

.speciality-title-archive {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.speciality-description-archive {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.speciality-doctors-count {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   8. Sidebar & Widgets
   ======================================== */

.sidebar {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #06b6d4;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #0891b2;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #06b6d4;
    background: white;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #1e293b;
    line-height: 1.4;
}

.recent-post-title:hover {
    color: #06b6d4;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
}

.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

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

.widget_categories li:hover {
    padding-left: 0.5rem;
}

.widget_categories a {
    color: #475569;
    font-weight: 500;
}

.widget_categories a:hover {
    color: #06b6d4;
}

.widget_categories .count {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Custom Widget */
.custom-widget-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.custom-widget-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.custom-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.custom-widget-text {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   9. Forms & Comments
   ======================================== */

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #06b6d4;
    background: white;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.form-submit {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4);
}

/* Comments */
.comments-area {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-body {
    display: flex;
    gap: 1rem;
}

.comment-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.comment-text {
    color: #475569;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    color: #06b6d4;
    font-weight: 500;
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 3rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

/* ========================================
   10. Footer
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.footer-widget p,
.footer-widget li {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: #06b6d4;
    padding-left: 5px;
}

.footer-widget ul {
    list-style: none;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #06b6d4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #06b6d4;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.4);
}

/* ========================================
   11. Responsive Design
   ======================================== */

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .doctor-profile-header {
        grid-template-columns: 300px 1fr;
        text-align: left;
    }
    
    .doctor-profile-image {
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .speciality-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .doctor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specialities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .specialities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   12. Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    animation: spin 1s ease-in-out infinite;
}

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

/* ========================================
   13. Utility Classes
   ======================================== */

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

.text-left {
    text-align: left;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

/* ========================================
   14. WordPress Specific
   ======================================== */

.alignleft {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    padding: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================
   15. Accessibility
   ======================================== */

:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #06b6d4;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    a {
        color: #0066cc;
    }
    
    .btn-primary,
    .hero-button,
    .form-submit {
        background: #0066cc;
        color: white;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   16. Print Styles
   ======================================== */

@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .comments-area,
    .post-navigation,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .content-area {
        padding: 0;
    }
    
    .main-content {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
}