/*
Theme Name: Hannan Portfolio Pro
Theme URI: https://hannan.dev
Author: Abdul Hannan Hassan
Author URI: https://hannan.dev
Description: Professional portfolio theme with Blog, Shop, and Appointment Booking system. Built for Oracle & Software Developers.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hannan-portfolio
Tags: portfolio, dark, modern, one-page, responsive, blog, shop, appointments
*/

/* ========================================
   CSS RESET & BASE STYLES
======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-dark: #0a1628;
    --secondary-dark: #0d1b2a;
    --card-bg: rgba(26, 41, 66, 0.5);
    --card-solid: #111e33;
    --accent-green: #00ff88;
    --accent-green-dark: #00cc6a;
    --text-white: #ffffff;
    --text-light: #b0c4de;
    --border-color: rgba(0, 255, 136, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: 100px 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --sidebar-width: 320px;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body { font-family: var(--font-body); background: var(--primary-dark); color: var(--text-light); line-height: 1.6; overflow-x: clip; max-width: 100vw; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-white); line-height: 1.2; margin-bottom: 15px; }
h1 { font-size: clamp(36px, 7vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 5vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 30px); }
p { font-size: 16px; line-height: 1.7; margin-bottom: 15px; }
a { color: var(--accent-green); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-green-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding); position: relative; }
.accent { color: var(--accent-green); }
.text-center { text-align: center; }

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px; font-family: var(--font-body);
    cursor: pointer; transition: var(--transition-fast); border: none; text-decoration: none;
}
.btn-primary { background: var(--accent-green); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-green-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,255,136,0.3); color: var(--primary-dark); }
.btn-secondary { background: transparent; color: var(--text-white); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--accent-green); background: var(--accent-green); color: var(--primary-dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: #fff; }
.btn-warning:hover { background: #e67e22; }
.btn-success { background: #2ecc71; color: #fff; }
.btn-success:hover { background: #27ae60; }

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,22,40,0.97); backdrop-filter: blur(12px);
    padding: 18px 0; transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}
.site-header.scrolled { padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-logo { font-size: 22px; font-weight: 800; font-family: var(--font-heading); color: var(--text-white); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 32px; height: 32px; background: var(--accent-green); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 900; font-size: 18px; }

.main-navigation ul { display: flex; list-style: none; gap: 28px; align-items: center; flex-wrap: wrap; }
.main-navigation a { color: var(--text-light); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition-fast); }
.main-navigation a:hover, .main-navigation a.active { color: var(--accent-green); }
.main-navigation .btn { color: var(--primary-dark); font-size: 13px; padding: 10px 22px; }
.main-navigation .btn:hover { color: var(--primary-dark); }

/* Shop Nav Badge */
.nav-shop-btn { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: #e74c3c; color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.mobile-menu-toggle { display: none; background: none; border: none; color: var(--text-white); font-size: 24px; cursor: pointer; }

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2942 100%);
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
    border-radius: 50%; animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0.9; } }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-badges { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.badge { background: var(--card-bg); border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.badge-icon { color: var(--accent-green); }
.hero-title { margin-bottom: 10px; }
.hero-title .accent { display: block; }
.hero-subtitle { font-size: 18px; color: var(--accent-green); font-weight: 600; margin-bottom: 20px; }
.hero-description { font-size: 17px; max-width: 580px; margin-bottom: 35px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.hero-image-container { position: relative; z-index: 2; width: 85%; margin: 0 auto; }
.hero-image-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 3px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,255,136,0.15); transition: var(--transition-medium); }
.hero-image-wrapper:hover { transform: translateY(-8px); box-shadow: 0 30px 80px rgba(0,255,136,0.25); border-color: var(--accent-green); }
.hero-image { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 3/4; }
.hero-image-placeholder { width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg, #1a2942, #0a1628); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; }
.hero-image-placeholder i { font-size: 60px; color: var(--border-color); }
.hero-image-placeholder p { color: var(--text-light); font-size: 14px; }
.hero-image-badge { position: absolute; bottom: 20px; left: 20px; background: var(--accent-green); color: var(--primary-dark); padding: 10px 18px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }

/* ========================================
   STATS SECTION
======================================== */
.stats-section { background: var(--secondary-dark); padding: 70px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; color: var(--accent-green); font-family: var(--font-heading); display: block; }
.stat-label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* ========================================
   SERVICES SECTION
======================================== */
.services-section { background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2942 100%); }
.section-header { max-width: 800px; margin-bottom: 50px; }
.section-title { margin-bottom: 15px; }
.section-description { font-size: 16px; color: var(--text-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 35px 28px; transition: var(--transition-fast); }
.service-card:hover { transform: translateY(-8px); border-color: var(--accent-green); box-shadow: 0 20px 40px rgba(0,255,136,0.1); }
.service-icon { width: 56px; height: 56px; background: rgba(0,255,136,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--accent-green); margin-bottom: 18px; }
.service-title { font-size: 20px; margin-bottom: 12px; }
.service-description { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ========================================
   TECH SECTION
======================================== */
.tech-section { background: var(--secondary-dark); }
.tech-section .section-title { text-align: center; letter-spacing: 2px; margin-bottom: 50px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 50px; }
.tech-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; transition: var(--transition-fast); }
.tech-card:hover { transform: scale(1.05); border-color: var(--accent-green); }
.tech-icon { font-size: 42px; color: var(--accent-green); margin-bottom: 12px; }
.tech-name { font-size: 16px; font-weight: 600; color: var(--text-white); }
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.skill-category { background: var(--card-bg); padding: 28px; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.skill-category h3 { color: var(--accent-green); margin-bottom: 20px; font-size: 18px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.skill-item { margin-bottom: 18px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; color: var(--text-white); font-weight: 500; }
.skill-bar { height: 7px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.skill-progress { height: 100%; background: var(--accent-green); border-radius: 4px; transition: width 1.5s ease-out; }

/* ========================================
   PORTFOLIO SECTION (PROJECTS)
======================================== */
.portfolio-section { background: var(--primary-dark); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 25px; }
.portfolio-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-fast); }
.portfolio-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,255,136,0.12); border-color: var(--accent-green); }
.portfolio-image { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg, #1a2942 0%, #0a1628 100%); display: flex; align-items: center; justify-content: center; }
.portfolio-image-placeholder { width: 100%; height: 220px; background: linear-gradient(135deg, #1a2942, #0a1628); display: flex; align-items: center; justify-content: center; }
.portfolio-image-placeholder i { font-size: 48px; color: var(--border-color); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-content { padding: 25px; }
.portfolio-title { font-size: 20px; margin-bottom: 10px; }
.portfolio-description { color: var(--text-light); margin-bottom: 18px; font-size: 14px; }
.portfolio-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: rgba(0,255,136,0.1); color: var(--accent-green); padding: 5px 11px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.portfolio-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: 13px; font-weight: 600; color: var(--accent-green); }

/* ========================================
   TIMELINE SECTION
======================================== */
.timeline-section { background: var(--secondary-dark); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border-color); transform: translateX(-50%); }
.timeline-item { margin-bottom: 50px; position: relative; }
.timeline-item:nth-child(odd) .timeline-content { margin-right: 50%; padding-right: 40px; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 50%; padding-left: 40px; }
.timeline-dot { position: absolute; left: 50%; top: 5px; width: 18px; height: 18px; background: var(--accent-green); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 4px var(--secondary-dark), 0 0 0 6px var(--border-color); }
.timeline-date { font-size: 13px; color: var(--accent-green); font-weight: 600; margin-bottom: 8px; display: block; }
.timeline-title { font-size: 22px; margin-bottom: 5px; }
.timeline-company { color: var(--accent-green); font-size: 14px; font-weight: 600; margin-bottom: 10px; display: block; }
.timeline-description { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials-section { background: var(--primary-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); padding: 28px; border-radius: var(--radius-md); transition: var(--transition-fast); }
.testimonial-card:hover { border-color: var(--accent-green); transform: translateY(-5px); }
.testimonial-rating { color: #ffd700; margin-bottom: 15px; font-size: 14px; }
.testimonial-text { font-style: italic; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; font-size: 15px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-green); display: flex; align-items: center; justify-content: center; color: var(--primary-dark); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.author-info h4 { font-size: 15px; margin-bottom: 3px; color: var(--text-white); }
.author-info span { font-size: 12px; color: var(--accent-green); }

/* ========================================
   GALLERY SECTION
======================================== */
.gallery-section { background: var(--secondary-dark); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-item { position: relative; height: 240px; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; border: 1px solid var(--border-color); }
.gallery-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover .gallery-image { transform: scale(1.1); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(10,22,40,0.9), transparent); padding: 20px; transform: translateY(100%); transition: var(--transition-fast); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-caption { color: var(--text-white); font-size: 15px; font-weight: 600; }
.gallery-item-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a2942, #0a1628); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gallery-item-placeholder i { font-size: 36px; color: var(--border-color); }

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section { background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { color: var(--primary-dark); margin-bottom: 15px; }
.contact-info p { color: var(--primary-dark); opacity: 0.85; margin-bottom: 25px; }
.contact-details { margin-top: 20px; }
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--primary-dark); font-weight: 500; }
.contact-icon { width: 38px; height: 38px; background: rgba(10,22,40,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; color: var(--primary-dark); font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid rgba(10,22,40,0.2);
    border-radius: var(--radius-sm); background: rgba(255,255,255,0.9);
    color: var(--primary-dark); font-family: var(--font-body); font-size: 15px; transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-dark); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit { background: var(--primary-dark); color: var(--accent-green); width: 100%; padding: 15px; font-size: 16px; font-weight: 700; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast); letter-spacing: 0.5px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,22,40,0.3); }

/* ========================================
   FOOTER
======================================== */
.site-footer { background: var(--primary-dark); border-top: 1px solid var(--border-color); padding: 50px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo { display: inline-flex; margin-bottom: 15px; font-size: 20px; }
.footer-brand p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.footer-col h4 { color: var(--text-white); font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); font-size: 14px; transition: var(--transition-fast); }
.footer-col ul li a:hover { color: var(--accent-green); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-text { color: var(--text-light); font-size: 13px; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 38px; height: 38px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: var(--transition-fast); font-size: 15px; }
.social-link:hover { background: var(--accent-green); color: var(--primary-dark); border-color: var(--accent-green); transform: translateY(-3px); }

/* ========================================
   BLOG STYLES
======================================== */
.blog-page { background: var(--primary-dark); min-height: 100vh; padding-top: 100px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 60px 20px; width: 100%; }
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); padding: 36px 16px; gap: 30px; }
  .blog-header { padding: 40px 16px 20px; }
  .blog-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
}
.blog-header { padding: 60px 20px 40px; max-width: 1200px; margin: 0 auto; }
.blog-header h1 { font-size: 42px; }
.blog-header p { color: var(--text-light); font-size: 17px; }

.post-grid { display: flex; flex-direction: column; gap: 35px; }
.post-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-fast); }
.post-card:hover { border-color: var(--accent-green); transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,255,136,0.08); }
.post-card-image { width: 100%; height: 250px; object-fit: cover; background: linear-gradient(135deg, #1a2942, #0a1628); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-image-placeholder { width: 100%; height: 250px; background: linear-gradient(135deg, #1a2942, #0a1628); display: flex; align-items: center; justify-content: center; }
.post-card-image-placeholder i { font-size: 48px; color: var(--border-color); }
.post-card-body { padding: 28px; }
.post-meta { display: flex; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.post-meta span { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.post-meta .post-category a { color: var(--accent-green); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(0,255,136,0.1); padding: 3px 10px; border-radius: 30px; }
.post-title { font-size: 22px; margin-bottom: 12px; }
.post-title a { color: var(--text-white); }
.post-title a:hover { color: var(--accent-green); }
.post-excerpt { color: var(--text-light); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.read-more { color: var(--accent-green); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 10px; }

/* Single Post Layout & Readability */
.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}
.single-post { min-width: 0; max-width: 100%; }
.post-hero-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 35px; border: 1px solid rgba(255,255,255,0.08); }
.post-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 1024px) {
  .single-post-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 16px;
    gap: 30px;
  }
  .post-content {
    padding: 28px 20px;
  }
}
@media (max-width: 600px) {
  .post-content {
    padding: 20px 14px;
    border-radius: var(--radius-sm);
  }
}
.post-content h1 { font-size: clamp(2rem, 4vw, 2.8rem) !important; font-weight: 800 !important; color: #ffffff !important; line-height: 1.25 !important; margin-bottom: 20px !important; letter-spacing: -0.02em; }
/* Post title specifically (not in-content h1s) — reduced per feedback that the article title was too large. */
.post-content h1.entry-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; margin-bottom: 16px !important; }
.post-content .post-meta { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--text-light); font-size: 13px; }
.post-content .post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-content .post-meta span i { color: var(--accent-green); }

/* Article Typography — Crisp High Contrast */
.post-content .entry-content { font-size: 1.05rem; line-height: 1.85; color: #f1f5f9; }
.post-content .entry-content p { color: #f1f5f9 !important; line-height: 1.85; margin-bottom: 22px; }
.post-content .entry-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important; font-weight: 800 !important; color: #ffffff !important; margin: 44px 0 18px !important; line-height: 1.35; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1) !important; letter-spacing: -0.01em; }
.post-content .entry-content h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem) !important; font-weight: 700 !important; color: #ffffff !important; margin: 34px 0 14px !important; line-height: 1.4; }
.post-content .entry-content h4 { font-size: 1.15rem !important; font-weight: 700 !important; color: #e2e8f0 !important; margin: 26px 0 12px !important; }
.post-content .entry-content ul, .post-content .entry-content ol { color: #f1f5f9 !important; padding-left: 26px; margin-bottom: 24px; }
.post-content .entry-content ul li, .post-content .entry-content ol li { margin-bottom: 10px; line-height: 1.75; color: #f1f5f9 !important; }
.post-content .entry-content strong, .post-content .entry-content b { color: #ffffff !important; font-weight: 700; }
.post-content .entry-content blockquote { border-left: 4px solid var(--accent-green); padding: 18px 24px; background: rgba(0,255,136,0.06); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0; color: #e2e8f0; font-style: italic; border-top: 1px solid rgba(0,255,136,0.12); border-right: 1px solid rgba(0,255,136,0.12); border-bottom: 1px solid rgba(0,255,136,0.12); }
.post-content .entry-content img { border-radius: var(--radius-sm); margin: 24px 0; max-width: 100%; height: auto; border: 1px solid rgba(255,255,255,0.08); }
.post-content .entry-content a { color: var(--accent-green); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.post-content .entry-content a:hover { color: #ffffff; }

/* Force High Contrast for Inline Styled Text */
.entry-content [style*="color:#334155"],
.entry-content [style*="color: #334155"],
.entry-content [style*="color:#0f172a"],
.entry-content [style*="color: #0f172a"],
.entry-content [style*="color:#78350f"],
.entry-content [style*="color: #78350f"],
.entry-content [style*="color:#92400e"],
.entry-content [style*="color: #92400e"] {
  color: #f1f5f9 !important;
}
.entry-content div[style*="background:#f1f5f9"],
.entry-content div[style*="background: #f1f5f9"],
.entry-content div[style*="background: rgb(241, 245, 249)"] {
  background: rgba(14, 31, 56, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-left: 4px solid #38bdf8 !important;
}
.entry-content div[style*="background:#f1f5f9"] h3,
.entry-content div[style*="background: #f1f5f9"] h3 {
  color: #38bdf8 !important;
}
.entry-content div[style*="background:#fffbeb"],
.entry-content div[style*="background: #fffbeb"] {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-left: 4px solid #f59e0b !important;
}
.entry-content div[style*="background:#fffbeb"] p,
.entry-content div[style*="background: #fffbeb"] p {
  color: #fef08a !important;
}

/* ── CALLOUT / RULE BOX (Image 1 Style) ── */
.callout-box, .rule-box {
  position: relative;
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-left: 4px solid var(--accent-green);
  border-radius: 4px 12px 12px 4px;
  padding: 20px 24px;
  margin: 30px 0;
  color: #f1f5f9;
}
.callout-box .callout-title, .rule-box .rule-title {
  font-weight: 800;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.callout-box.callout-warning { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.05); border-color: rgba(245, 158, 11, 0.2); }
.callout-box.callout-warning .callout-title { color: #fcd34d; }
.callout-box.callout-danger { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.2); }
.callout-box.callout-danger .callout-title { color: #fca5a5; }

/* ── CODE BLOCK CONTAINER & IDE EDITOR UI (Image 1 Style) ── */
.code-block-wrap {
  position: relative;
  margin: 30px 0;
  border-radius: 12px;
  background: #080e1a;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.code-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0c1424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.code-mac-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.code-dot.dot-red { background: #ff5f56; }
.code-dot.dot-yellow { background: #ffbd2e; }
.code-dot.dot-green { background: #27c93f; }
/* Let Prism's tokens show through our own dark card background instead of
   Prism's default gray box, so highlighted code matches the site theme. */
.code-block-wrap pre[class*="language-"],
.code-block-wrap code[class*="language-"] {
  background: transparent !important;
  text-shadow: none !important;
  margin: 0;
}
.code-block-wrap pre[class*="language-"] { padding: 18px 20px !important; }
.code-file-badge {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.code-copy-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--accent-green);
}
.code-copy-btn.copied {
  background: rgba(0, 255, 136, 0.25);
  border-color: var(--accent-green);
  color: #00ff88;
}

pre.code-block, pre code, .entry-content pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #f1f5f9;
  background: #080e1a;
  padding: 20px 22px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,0.3) rgba(255,255,255,0.05);
  white-space: pre;
}
pre::-webkit-scrollbar { height: 8px; }
pre::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
pre::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 4px; }
pre::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

/* Syntax Highlight Colors with high contrast */
.hl-kw { color: #38bdf8; font-weight: 700; } /* SQL keywords in cyan */
.hl-fn { color: #a78bfa; font-weight: 600; } /* Functions in purple */
.hl-str { color: #fde047; }                   /* Strings in amber */
.hl-cmt { color: #64748b; font-style: italic; } /* Comments in muted slate */
.hl-num { color: #f472b6; font-weight: 600; } /* Numbers in pink */
.hl-op { color: #34d399; }                   /* Operators in mint */

code:not(pre code) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 2px 7px;
  border-radius: 5px;
}

.post-tags span { color: var(--text-light); font-size: 14px; }

/* ============================================================
   RESPONSIVE DATA & COMPARISON TABLES
============================================================ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  background: #091222;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.35) rgba(255, 255, 255, 0.05);
}
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
.table-responsive::-webkit-scrollbar-thumb { background: rgba(0, 255, 136, 0.35); border-radius: 4px; }
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

.entry-content table {
  width: 100% !important;
  min-width: 580px;
  border-collapse: collapse !important;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 !important;
  background: transparent !important;
}
.entry-content table thead tr {
  background: #0d1b30 !important;
  border-bottom: 2px solid rgba(0, 255, 136, 0.35) !important;
}
.entry-content table th {
  background: #0d1b30 !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.84rem;
  padding: 14px 18px !important;
  text-align: left;
  white-space: nowrap;
  border: none !important;
  border-bottom: 2px solid rgba(0, 255, 136, 0.35) !important;
}
.entry-content table td {
  padding: 13px 18px !important;
  color: #f1f5f9 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  vertical-align: middle;
}
.entry-content table tbody tr {
  background: transparent !important;
  transition: background 0.15s ease;
}
.entry-content table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025) !important;
}
.entry-content table tbody tr:hover {
  background: rgba(0, 255, 136, 0.07) !important;
}
.entry-content table tbody tr td[style*="border-bottom"] {
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

/* ============================================================
   BUILT-IN POST ENHANCEMENTS (Charts, Diagrams, Infographics)
============================================================ */
/* 1. Interactive & SVG Charts */
.post-chart-wrap {
  background: #081120;
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 14px;
  padding: 24px;
  margin: 30px 0;
  box-shadow: 0 14px 35px rgba(0,0,0,0.5);
}
.post-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.post-chart-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-chart-title i { color: var(--accent-green); }
.post-chart-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,255,136,0.1);
  color: var(--accent-green);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,136,0.25);
}
.post-chart-canvas-box {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* 2. System Architecture & Diagram Box */
.post-diagram-wrap {
  background: #060d1a;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.post-diagram-header {
  background: #0a1426;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.post-diagram-title {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}
.post-diagram-body {
  padding: 24px;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(56,189,248,0.3) rgba(0,0,0,0.3);
}
.post-diagram-body pre {
  margin: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: #e2e8f0 !important;
}

/* 3. Infographic Metric Stat Cards Grid */
.post-infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.post-metric-card {
  background: linear-gradient(135deg, rgba(14, 27, 48, 0.9) 0%, rgba(8, 16, 30, 0.9) 100%);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.post-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), #00d4ff);
}
.post-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.45);
}
.post-metric-icon {
  font-size: 24px;
  color: var(--accent-green);
  margin-bottom: 8px;
}
.post-metric-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}
.post-metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}
.post-metric-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.4;
}

/* Sidebar */
.blog-sidebar { }
.sidebar-widget { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 25px; margin-bottom: 25px; }
.sidebar-widget h3 { font-size: 17px; color: var(--text-white); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; }
.sidebar-widget h3 i { color: var(--accent-green); }

/* Search Widget */
.search-form { display: flex; gap: 0; }
.search-form input { flex: 1; padding: 11px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--text-white); font-size: 14px; }
.search-form input::placeholder { color: var(--text-light); }
.search-form input:focus { outline: none; border-color: var(--accent-green); }
.search-form button { padding: 11px 18px; background: var(--accent-green); border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; color: var(--primary-dark); font-size: 15px; }

/* Categories Widget */
.category-list { list-style: none; }
.category-list li { border-bottom: 1px solid rgba(0,255,136,0.08); }
.category-list li:last-child { border-bottom: none; }
.category-list li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--text-light); font-size: 14px; transition: var(--transition-fast); }
.category-list li a:hover { color: var(--accent-green); padding-left: 5px; }
.category-list li a span { background: rgba(0,255,136,0.1); color: var(--accent-green); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }

/* Recent Posts Widget */
.recent-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,255,136,0.08); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: #1a2942; flex-shrink: 0; overflow: hidden; }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-info a { color: var(--text-white); font-size: 13px; font-weight: 600; line-height: 1.4; display: block; margin-bottom: 4px; }
.recent-post-info a:hover { color: var(--accent-green); }
.recent-post-date { font-size: 11px; color: var(--text-light); }

/* Tags Cloud Widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item { background: rgba(0,255,136,0.08); color: var(--text-light); padding: 5px 12px; border-radius: 30px; font-size: 12px; border: 1px solid var(--border-color); transition: var(--transition-fast); }
.tag-cloud-item:hover { background: var(--accent-green); color: var(--primary-dark); border-color: var(--accent-green); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border-color); color: var(--text-light); font-size: 14px; font-weight: 600; transition: var(--transition-fast); }
.pagination a:hover, .pagination .current { background: var(--accent-green); color: var(--primary-dark); border-color: var(--accent-green); }

/* ========================================
   SHOP STYLES
======================================== */
.shop-page { background: var(--primary-dark); min-height: 100vh; padding-top: 100px; }
.shop-header { padding: 60px 20px 40px; max-width: 1200px; margin: 0 auto; }
.shop-header h1 { font-size: 42px; }
.shop-layout { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.shop-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 35px; align-items: center; }
.shop-filter-btn { padding: 9px 22px; border-radius: 30px; border: 1px solid var(--border-color); background: transparent; color: var(--text-light); font-size: 13px; cursor: pointer; transition: var(--transition-fast); font-family: var(--font-body); }
.shop-filter-btn:hover, .shop-filter-btn.active { background: var(--accent-green); color: var(--primary-dark); border-color: var(--accent-green); font-weight: 600; }
.shop-sort { margin-left: auto; }
.shop-sort select { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-light); padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); cursor: pointer; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 25px; }
.product-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-fast); position: relative; }
.product-card:hover { transform: translateY(-8px); border-color: var(--accent-green); box-shadow: 0 20px 40px rgba(0,255,136,0.1); }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 5; }
.product-badge span { background: var(--accent-green); color: var(--primary-dark); padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-badge .badge-sale { background: #e74c3c; color: #fff; }
.product-badge .badge-new { background: #3498db; color: #fff; }
.product-image { width: 100%; height: 200px; object-fit: cover; background: linear-gradient(135deg, #1a2942, #0a1628); display: flex; align-items: center; justify-content: center; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.product-image-placeholder i { font-size: 48px; color: var(--border-color); }
.product-overlay { position: absolute; inset: 0; background: rgba(10,22,40,0.85); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: var(--transition-fast); }
.product-card:hover .product-overlay { opacity: 1; }
.product-body { padding: 22px; }
.product-category { font-size: 11px; color: var(--accent-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-title { font-size: 17px; margin-bottom: 10px; color: var(--text-white); }
.product-title a { color: var(--text-white); }
.product-title a:hover { color: var(--accent-green); }
.product-description { font-size: 13px; color: var(--text-light); margin-bottom: 18px; line-height: 1.6; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 20px; font-weight: 800; color: var(--accent-green); font-family: var(--font-heading); }
.price-original { font-size: 14px; color: var(--text-light); text-decoration: line-through; }
.price-free { font-size: 20px; font-weight: 800; color: #2ecc71; font-family: var(--font-heading); }
.add-to-cart-btn { padding: 9px 18px; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; gap: 6px; font-family: var(--font-body); }
.add-to-cart-btn:hover { background: var(--accent-green-dark); transform: translateY(-2px); }

/* Single Product */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.product-gallery-main img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.product-info h1 { font-size: 30px; margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-rating .stars { color: #ffd700; }
.product-rating span { font-size: 13px; color: var(--text-light); }
.product-price-large { font-size: 36px; font-weight: 800; color: var(--accent-green); margin-bottom: 20px; }
.product-description-full { color: var(--text-light); line-height: 1.8; margin-bottom: 25px; }
.product-meta-info { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; margin-bottom: 25px; }
.product-meta-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,255,136,0.08); font-size: 14px; }
.product-meta-row:last-child { border-bottom: none; }
.product-meta-row span:first-child { color: var(--text-light); }
.product-meta-row span:last-child { color: var(--text-white); font-weight: 600; }
.buy-btn { width: 100%; padding: 16px; font-size: 18px; font-weight: 700; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-body); }
.buy-btn:hover { background: var(--accent-green-dark); transform: translateY(-2px); }

/* Cart */
.cart-page { max-width: 1000px; margin: 100px auto 60px; padding: 60px 20px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { background: var(--card-bg); padding: 14px 18px; text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); border-bottom: 1px solid var(--border-color); }
.cart-table td { padding: 18px; border-bottom: 1px solid rgba(0,255,136,0.06); color: var(--text-light); font-size: 14px; }
.cart-product-info { display: flex; align-items: center; gap: 14px; }
.cart-product-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: #1a2942; flex-shrink: 0; }
.cart-product-name { color: var(--text-white); font-weight: 600; font-size: 15px; }
.cart-remove { color: #e74c3c; background: none; border: none; cursor: pointer; font-size: 16px; }
.cart-summary { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 25px; max-width: 360px; margin-left: auto; }
.cart-summary h3 { margin-bottom: 18px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(0,255,136,0.08); font-size: 14px; }
.cart-summary-row:last-of-type { border-bottom: 2px solid var(--accent-green); font-weight: 700; color: var(--text-white); font-size: 16px; }
.checkout-btn { width: 100%; margin-top: 20px; padding: 14px; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; cursor: pointer; font-family: var(--font-body); }
.checkout-btn:hover { background: var(--accent-green-dark); }

/* ========================================
   APPOINTMENT BOOKING STYLES
======================================== */
.appointments-page { background: var(--primary-dark); min-height: 100vh; padding-top: 100px; }
.appointment-hero { padding: 70px 20px 50px; max-width: 800px; margin: 0 auto; text-align: center; }
.appointment-hero h1 { font-size: 42px; margin-bottom: 15px; }
.appointment-hero p { font-size: 17px; color: var(--text-light); }

.booking-container { max-width: 1100px; margin: 0 auto; padding: 0 20px 80px; }
.booking-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 50px; }
.step { display: flex; align-items: center; gap: 0; }
.step-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--text-light); transition: var(--transition-fast); }
.step.active .step-circle { background: var(--accent-green); border-color: var(--accent-green); color: var(--primary-dark); }
.step.completed .step-circle { background: var(--accent-green); border-color: var(--accent-green); color: var(--primary-dark); }
.step-label { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text-light); white-space: nowrap; }
.step-connector { width: 80px; height: 2px; background: var(--border-color); }
.step-connector.active { background: var(--accent-green); }

.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: start; }
.booking-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 30px; }
.booking-panel h3 { font-size: 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.booking-panel h3 i { color: var(--accent-green); }

/* Calendar */
.calendar-widget { }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.calendar-header h4 { font-size: 17px; color: var(--text-white); }
.cal-nav { background: none; border: 1px solid var(--border-color); color: var(--text-light); width: 34px; height: 34px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; transition: var(--transition-fast); }
.cal-nav:hover { border-color: var(--accent-green); color: var(--accent-green); }
.calendar-days-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.calendar-days-header span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; padding: 6px 0; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; transition: var(--transition-fast); color: var(--text-light); border: 1px solid transparent; }
.cal-day:hover:not(.disabled):not(.empty) { background: rgba(0,255,136,0.1); border-color: var(--accent-green); color: var(--accent-green); }
.cal-day.today { background: rgba(0,255,136,0.08); color: var(--accent-green); font-weight: 700; }
.cal-day.selected { background: var(--accent-green); color: var(--primary-dark); font-weight: 700; border-color: var(--accent-green); }
.cal-day.disabled { opacity: 0.3; cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.cal-day.booked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* Time Slots */
.time-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-slot { padding: 12px 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: var(--transition-fast); font-size: 13px; color: var(--text-light); }
.time-slot:hover:not(.booked) { border-color: var(--accent-green); color: var(--accent-green); background: rgba(0,255,136,0.05); }
.time-slot.selected { background: var(--accent-green); color: var(--primary-dark); border-color: var(--accent-green); font-weight: 700; }
.time-slot.booked { opacity: 0.3; cursor: not-allowed; }

/* Service Type */
.service-options { display: flex; flex-direction: column; gap: 10px; }
.service-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast); }
.service-option:hover { border-color: var(--accent-green); }
.service-option.selected { border-color: var(--accent-green); background: rgba(0,255,136,0.06); }
.service-option input[type="radio"] { accent-color: var(--accent-green); width: 16px; height: 16px; }
.service-option-info h4 { font-size: 15px; margin-bottom: 2px; color: var(--text-white); }
.service-option-info span { font-size: 12px; color: var(--text-light); }
.service-option-price { margin-left: auto; font-weight: 700; color: var(--accent-green); font-size: 14px; }

/* Meeting Type */
.meeting-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meeting-type-btn { padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: transparent; color: var(--text-light); cursor: pointer; transition: var(--transition-fast); display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-body); }
.meeting-type-btn i { font-size: 24px; color: var(--accent-green); }
.meeting-type-btn:hover, .meeting-type-btn.selected { border-color: var(--accent-green); background: rgba(0,255,136,0.06); color: var(--accent-green); }
.meeting-type-btn span { font-size: 13px; font-weight: 600; }

/* Booking Summary */
.booking-summary { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 25px; position: sticky; top: 100px; }
.booking-summary h3 { margin-bottom: 20px; }
.summary-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,255,136,0.08); }
.summary-item:last-of-type { border-bottom: none; }
.summary-item i { color: var(--accent-green); width: 18px; flex-shrink: 0; margin-top: 2px; }
.summary-item-info span:first-child { display: block; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.summary-item-info strong { color: var(--text-white); font-size: 14px; }
.book-now-btn { width: 100%; margin-top: 20px; padding: 15px; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; cursor: pointer; font-family: var(--font-body); transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; gap: 8px; }
.book-now-btn:hover { background: var(--accent-green-dark); transform: translateY(-2px); }

/* Booking Form */
.booking-form-section { margin-top: 35px; }
.booking-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.booking-form-grid .full-width { grid-column: 1 / -1; }
.booking-form-input { width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-white); font-family: var(--font-body); font-size: 15px; transition: var(--transition-fast); }
.booking-form-input::placeholder { color: rgba(176,196,222,0.5); }
.booking-form-input:focus { outline: none; border-color: var(--accent-green); background: rgba(0,255,136,0.04); }
.booking-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Success State */
.booking-success { text-align: center; padding: 60px 30px; }
.booking-success .success-icon { font-size: 72px; color: var(--accent-green); margin-bottom: 25px; animation: scaleIn 0.5s ease-out; }
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.booking-success h2 { font-size: 30px; margin-bottom: 15px; }
.booking-success p { color: var(--text-light); font-size: 16px; max-width: 500px; margin: 0 auto 25px; }
.booking-ref { background: rgba(0,255,136,0.08); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 15px 25px; display: inline-block; font-size: 20px; font-weight: 800; color: var(--accent-green); font-family: var(--font-heading); margin-bottom: 30px; }

/* ========================================
   PAGE TEMPLATES (About, etc.)
======================================== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2942 100%); padding: 140px 20px 80px; text-align: center; }
.page-hero h1 { margin-bottom: 15px; }
.page-hero p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--accent-green); }
.breadcrumb span { margin: 0 8px; }

/* ========================================
   NOTIFICATION / ALERTS
======================================== */
.notification { position: fixed; bottom: 30px; right: 30px; padding: 15px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; z-index: 9999; transform: translateX(120%); transition: transform 0.4s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); max-width: 350px; display: flex; align-items: center; gap: 10px; }
.notification.show { transform: translateX(0); }
.notification.success { background: #2ecc71; color: #fff; }
.notification.error { background: #e74c3c; color: #fff; }
.notification.info { background: #3498db; color: #fff; }

/* ========================================
   ADMIN CUSTOMIZER NOTICE
======================================== */
.admin-bar-notice { background: rgba(0,255,136,0.1); border: 1px solid var(--border-color); padding: 12px 20px; text-align: center; font-size: 13px; }
.admin-bar-notice a { color: var(--accent-green); font-weight: 600; }

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-25px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(25px); } to { opacity: 1; transform: translateX(0); } }
.animate-fade-up { animation: fadeInUp 0.7s ease-out both; }
.animate-fade-left { animation: fadeInLeft 0.7s ease-out both; }
.animate-fade-right { animation: fadeInRight 0.7s ease-out both; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-layout, .single-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .main-navigation { display: none; }
    .main-navigation.active { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
    .main-navigation ul { flex-direction: column; gap: 15px; }
    .mobile-menu-toggle { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-container { order: -1; }
    .contact-container { grid-template-columns: 1fr; }
    .booking-grid { grid-template-columns: 1fr; }
    .single-product-layout { grid-template-columns: 1fr; }
    .timeline::before { left: 0; }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { margin: 0; padding-left: 30px; text-align: left; }
    .timeline-dot { left: 0; transform: translateX(0); }
    .footer-grid { grid-template-columns: 1fr; }
    .blog-sidebar { display: block; }
    .booking-form-grid { grid-template-columns: 1fr; }
    .time-slots-grid { grid-template-columns: repeat(2, 1fr); }
    .meeting-type-options { grid-template-columns: 1fr; }
    .cart-table { font-size: 13px; }
    .section { padding: 60px 20px; }
}
@media (max-width: 480px) {
    h1 { font-size: 32px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .stat-number { font-size: 38px; }
    .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECT MODAL
============================================================ */
.project-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.project-modal-box {
    background: #0e1f38;
    border: 1px solid rgba(0,255,136,0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,0.3) transparent;
}
.project-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,255,136,0.1);
    position: sticky;
    top: 0;
    background: #0e1f38;
    z-index: 2;
    border-radius: 16px 16px 0 0;
}
.project-modal-cat {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0,255,136,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-full-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.25);
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}
.modal-full-btn:hover {
    background: rgba(0,255,136,0.2);
    color: #fff;
    text-decoration: none;
}
.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close-btn:hover { background: rgba(231,76,60,0.2); color: #e74c3c; border-color: rgba(231,76,60,0.3); }
.project-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0;
}
.project-modal-image-wrap {
    padding: 24px 16px 24px 24px;
}
#modal-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(0,255,136,0.2);
}
.project-modal-info {
    padding: 24px 24px 24px 16px;
    border-left: 1px solid rgba(0,255,136,0.08);
}
.project-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}
.project-modal-content {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.project-modal-content p { margin-bottom: 10px; }
.project-modal-tech h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-modal-tech { margin-bottom: 18px; }
#modal-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-modal-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,255,136,0.08);
}
.project-modal-meta span { display: flex; align-items: center; gap: 5px; }
.project-modal-meta i { color: var(--accent-green); }
.project-modal-footer { padding-top: 6px; }
.project-modal-loader {
    position: absolute;
    inset: 0;
    background: rgba(14,31,56,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent-green);
    border-radius: 16px;
}

/* Portfolio card hover */
.portfolio-card { transition: transform 0.3s, box-shadow 0.3s; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,255,136,0.12); }
.portfolio-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,255,136,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px 10px 0 0;
}
.portfolio-image { position: relative; overflow: hidden; }
.portfolio-card:hover .portfolio-hover-overlay { opacity: 1; }
.portfolio-hover-overlay span {
    background: var(--accent-green);
    color: var(--primary-dark);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
}
.portfolio-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-green);
    margin-bottom: 6px;
}

/* ============================================================
   PROJECTS PAGE
============================================================ */
.projects-page-hero {
    background: var(--secondary-dark);
    padding: 70px 20px 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.projects-page-hero h1 { font-size: 40px; margin-bottom: 12px; }
.projects-search-bar {
    max-width: 480px;
    margin: 20px auto 0;
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 6px 6px 6px 20px;
    align-items: center;
}
.projects-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 15px;
    font-family: var(--font-body);
}
.projects-search-bar input::placeholder { color: var(--text-light); }
.projects-search-bar button {
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}
.projects-search-bar button:hover { opacity: 0.85; }

.projects-categories-bar {
    background: var(--primary-dark);
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 74px;
    z-index: 100;
}
.projects-categories-bar::-webkit-scrollbar { display: none; }
.proj-cat-btn {
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.proj-cat-btn:hover { color: var(--text-white); }
.proj-cat-btn.active { color: var(--accent-green); border-bottom-color: var(--accent-green); }
.projects-count-bar {
    padding: 16px 40px;
    color: var(--text-light);
    font-size: 14px;
}
.projects-count-bar span { color: var(--accent-green); font-weight: 700; }
.projects-page-grid {
    padding: 10px 40px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.no-projects-msg {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.no-projects-msg i { font-size: 48px; display: block; margin-bottom: 15px; opacity: 0.3; }

/* Single Project Page */
.project-single-layout {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 30px;
}
.project-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: color 0.2s;
}
.project-single-back:hover { color: var(--accent-green); }
.project-single-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 32px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.project-single-image img { width: 100%; height: 100%; object-fit: cover; }
.project-single-title { font-size: 34px; font-weight: 800; margin-bottom: 16px; }
.project-single-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-light); font-size: 14px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.project-single-meta span { display: flex; align-items: center; gap: 6px; }
.project-single-meta i { color: var(--accent-green); }
.project-single-body { color: var(--text-light); line-height: 1.9; font-size: 16px; }
.project-single-body p { margin-bottom: 18px; }
.project-single-body h2, .project-single-body h3 { color: var(--text-white); margin: 28px 0 12px; }
.project-single-tech { margin: 32px 0; padding: 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; }
.project-single-tech h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 14px; }
.project-single-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .project-single-layout { padding: 0 16px; margin: 40px auto; }
    .project-single-title { font-size: 26px; }
}

/* ============================================================
   PEOPLE REVIEWS — HORIZONTAL SLIDER
============================================================ */
.reviews-section { background: var(--primary-dark); }

/* Slider wrapper — clips overflowing slides */
.reviews-slider-wrap {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
}

/* The moving track */
.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Individual slide */
.review-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .review-slide { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 1024px) {
    .review-slide { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* Card inside each slide */
.review-slide-inner {
    background: rgba(26,41,66,0.55);
    border: 1px solid rgba(0,255,136,0.14);
    border-radius: var(--radius-md);
    padding: 32px 28px 28px;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
}
.review-slide-inner:hover {
    border-color: rgba(0,255,136,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,255,136,0.1);
}

/* Big quote icon */
.review-quote-icon {
    font-size: 28px;
    color: var(--accent-green);
    opacity: 0.55;
    margin-bottom: 16px;
    line-height: 1;
}

/* Review message — prominent, solid, no blur */
.review-message {
    font-size: 15px;
    color: #d8e8f5;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 24px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author row at bottom */
.review-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

/* Avatar */
.review-avatar-wrap { flex-shrink: 0; }
.review-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}
.review-avatar-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 18px;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

/* Author name & profession */
.review-author-info { flex-grow: 1; min-width: 0; }
.review-author-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
}
a.review-author-name:hover { color: var(--accent-green); }
.review-author-prof {
    display: block;
    font-size: 12px;
    color: rgba(176,196,222,0.75);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LinkedIn icon button */
.review-linkedin-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(10,102,194,0.15);
    border: 1px solid rgba(10,102,194,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a66c2;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.review-linkedin-btn:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
    transform: scale(1.1);
}

/* Controls row — arrows + dots */
.reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.review-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(26,41,66,0.8);
    border: 1px solid rgba(0,255,136,0.25);
    color: var(--text-white);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}
.review-nav-btn:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--primary-dark);
    transform: scale(1.08);
}
.review-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

/* Indicator dots */
.reviews-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}
.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}
.reviews-dot.active {
    background: var(--accent-green);
    width: 22px;
    border-radius: 4px;
}

/* ============================================================
   ALL REVIEWS MODAL / DIALOG
============================================================ */
.all-reviews-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.all-reviews-box {
    background: #0c1a30;
    border: 1px solid rgba(0,255,136,0.18);
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    animation: slideUp 0.3s cubic-bezier(0.34,1.56,.64,1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,0.3) transparent;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.all-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(0,255,136,0.1);
    position: sticky;
    top: 0;
    background: #0c1a30;
    z-index: 2;
    border-radius: 20px 20px 0 0;
}
.all-reviews-header h2 {
    font-size: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.all-reviews-header h2 i { color: var(--accent-green); }
.all-reviews-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.all-reviews-close:hover { background: rgba(231,76,60,0.2); color: #e74c3c; border-color: rgba(231,76,60,0.3); }

/* Review cards grid inside dialog */
.all-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px 28px;
}
.all-review-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,255,136,0.1);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.all-review-card:hover {
    border-color: rgba(0,255,136,0.3);
    transform: translateY(-3px);
}
.all-review-quote {
    font-size: 22px;
    color: var(--accent-green);
    opacity: 0.5;
    margin-bottom: 12px;
}
.all-review-msg {
    font-size: 14px;
    color: #c8ddf0;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 20px;
    font-style: italic;
}
.all-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}
.all-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-green-dark), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 15px;
    border: 2px solid rgba(0,255,136,0.4);
}
.all-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.all-review-info { flex-grow: 1; min-width: 0; }
.all-review-info strong {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.all-review-info small {
    font-size: 11px;
    color: rgba(176,196,222,0.7);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.all-review-li {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(10,102,194,0.15);
    border: 1px solid rgba(10,102,194,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a66c2;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.all-review-li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }

/* Responsive dialog */
@media (max-width: 600px) {
    .all-reviews-grid { grid-template-columns: 1fr; padding: 16px; }
    .all-reviews-header { padding: 16px 18px; }
    .all-reviews-header h2 { font-size: 17px; }
}



/* ============================================================
   HANNAN 4.0 — RESPONSIVE FOUNDATION
   Theme owns article presentation; author inline styles cannot
   create fixed-width mobile layouts.
   ============================================================ */
html { box-sizing:border-box; max-width:100%; overflow-x:hidden; }
*,*:before,*:after { box-sizing:inherit; }
body { width:100%; max-width:100%; overflow-x:hidden; }
main,article,section,aside,header,footer,div { min-width:0; }
svg,video,iframe,embed,object { max-width:100%; }
iframe { width:100%; border:0; }
table { width:100%; max-width:100%; border-collapse:collapse; }
.wp-block-table { overflow-x:auto; max-width:100%; }
.wp-block-table table { min-width:0; }
pre { max-width:100%; overflow-x:auto; white-space:pre; -webkit-overflow-scrolling:touch; }
code { overflow-wrap:anywhere; }
figure { max-width:100%; margin-left:0; margin-right:0; }
figure img { max-width:100%; height:auto; }
.wp-block-image { max-width:100%; }
.wp-block-image img { height:auto!important; max-width:100%!important; }
.wp-block-embed, .wp-block-video, .wp-block-audio { max-width:100%; }
.wp-block-columns { max-width:100%; }
.wp-block-group,.wp-block-cover,.wp-block-media-text { max-width:100%; }
.wp-block-cover { overflow:hidden; }
.alignwide,.alignfull { max-width:100%; }
.entry-content > * { max-width:100%; }
.entry-content > *:not(.alignfull) { overflow-wrap:anywhere; }
.entry-content .wp-block-html { overflow-x:auto; }
.entry-content p a,.entry-content li a { overflow-wrap:anywhere; }

/* Prevent pasted editor styles / fixed widths from winning visually. */
.hannan-article .entry-content [style] { max-width:100%!important; }
.hannan-article .entry-content img[width],
.hannan-article .entry-content video[width],
.hannan-article .entry-content iframe[width] { width:auto!important; max-width:100%!important; }
.hannan-article .entry-content img[height] { height:auto!important; }

/* Header — one reliable mobile system */
.site-header { width:100%; }
.header-container { width:100%; max-width:1320px; }
.header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; flex-shrink:0; }
.mobile-menu-toggle { flex:0 0 44px; width:44px; height:44px; align-items:center; justify-content:center; gap:5px; }
.mobile-menu-toggle:focus-visible { outline:2px solid var(--accent-green); outline-offset:2px; }
@media(max-width:860px){
  .header-container { min-height:68px; }
  .main-navigation { display:none!important; }
  .main-navigation.active { display:block!important; }
  .main-navigation ul { width:100%; }
  .main-navigation a,.main-navigation button { max-width:100%; }
  .header-book-btn { display:none!important; }
}
@media(max-width:600px){
  .header-container { padding-left:12px!important; padding-right:12px!important; gap:6px!important; }
  .logo-text { min-width:0; }
  .logo-name { white-space:nowrap; }
  .header-actions { gap:5px; }
  .header-signin-btn { padding:8px!important; min-width:40px; }
  .header-user-wrap { flex-shrink:0; }
  .mobile-menu-toggle { width:42px;height:42px;flex-basis:42px; }
  .site-logo { gap:7px; }
  .logo-icon { width:36px;height:36px;flex:0 0 36px; }
}

/* Blog/archive */
.blog-header { width:100%; }
.blog-layout,.single-post-layout { min-width:0; }
.post-grid { min-width:0; }
.post-card,.post-card-body,.post-title,.post-excerpt { min-width:0; max-width:100%; }
.post-title a,.read-more { overflow-wrap:anywhere; }

/* Single article: desktop card, clean mobile reading surface */
.single-post { width:100%; min-width:0; }
.post-content { width:100%; }
.post-content .entry-content { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.post-content .entry-content h1,
.post-content .entry-content h2,
.post-content .entry-content h3,
.post-content .entry-content h4,
.post-content .entry-content h5,
.post-content .entry-content h6 { max-width:100%; overflow-wrap:anywhere; }
.post-content .entry-content ul,
.post-content .entry-content ol { max-width:100%; }
.post-content .entry-content blockquote { max-width:100%; overflow-wrap:anywhere; }
.post-content .entry-content table { display:block; overflow-x:auto; white-space:normal; -webkit-overflow-scrolling:touch; }
.post-content .entry-content .wp-block-table table { display:table; overflow:visible; }
.post-content .entry-content pre { font-size:.88rem; line-height:1.55; padding:16px; border-radius:10px; }
.post-content .entry-content .wp-block-code { max-width:100%; overflow-x:auto; }
.post-content .post-meta { row-gap:9px; }

@media(max-width:768px){
  .blog-layout,.single-post-layout { width:100%; padding-left:12px!important; padding-right:12px!important; }
  .single-post-layout { margin-top:0; }
  .post-content { padding:22px 16px!important; border-radius:12px; }
  .post-hero-image { width:100%; margin-bottom:22px; border-radius:10px; }
  .post-content h1 { font-size:clamp(1.85rem,7.5vw,2.35rem)!important; line-height:1.15!important; }
  .post-content h1.entry-title { font-size:clamp(1.3rem,5.5vw,1.6rem)!important; line-height:1.2!important; }
  .post-content .entry-content { font-size:1rem; line-height:1.78; }
  .post-content .entry-content p { line-height:1.78; margin-bottom:18px; }
  .post-content .entry-content h2 { font-size:1.45rem!important; margin-top:34px!important; }
  .post-content .entry-content h3 { font-size:1.2rem!important; margin-top:28px!important; }
  .post-content .entry-content img { margin:18px 0; }
  .post-content .post-meta { gap:8px 13px; font-size:12px; }
  .post-content .post-meta span { max-width:100%; }
  .post-content > div:last-child { gap:10px!important; }
  .post-content > div:last-child .btn { max-width:48%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}
@media(max-width:480px){
  .blog-layout,.single-post-layout { padding-left:10px!important; padding-right:10px!important; }
  .post-content { padding:18px 13px!important; }
  .post-content .entry-content { font-size:.98rem; }
  .post-content .entry-content pre { margin-left:0; margin-right:0; font-size:.78rem; }
  .post-content .entry-content blockquote { padding:14px 15px; margin:22px 0; }
  .post-content .entry-content ul,.post-content .entry-content ol { padding-left:21px; }
}

/* Layout variants */
.hannan-layout-news .post-content { border-top:3px solid var(--accent-green); }
.hannan-layout-review .post-content { }
.hannan-layout-tutorial .post-content .entry-content h2 { counter-increment:tutorial-section; }
.hannan-layout-comparison .post-content { }
.hannan-layout-infographic .post-content { padding-top:32px; }

/* ============================================================
   BLOG CATEGORY SCROLLER — horizontal scroll with fixed arrows
   (buttons on PC/laptop, native touch-swipe + drag on all devices)
============================================================ */
.cat-chips-scroller {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
}
.cat-chips-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    cursor: grab;
    flex: 1;
    min-width: 0;
}
.cat-chips-wrap.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.cat-chips-wrap::-webkit-scrollbar { display: none; }

.cat-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: var(--card-solid);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    user-select: none;
}
.cat-chip .cnt { opacity: .65; font-weight: 500; font-size: 12px; }
.cat-chip:hover { border-color: rgba(0, 255, 136, 0.4); color: #fff; }
.cat-chip.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #06210f;
}
.cat-chip.active .cnt { opacity: .8; color: #06210f; }

.cat-scroll-arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
    z-index: 2;
}
.cat-scroll-arrow:hover { background: var(--accent-green); color: #06210f; }
.cat-scroll-arrow[hidden],
.cat-scroll-arrow.is-disabled { opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
    .cat-scroll-arrow { width: 28px; height: 28px; }
    .cat-chip { padding: 8px 13px; font-size: 12.5px; }
}

mark.hannan-search-hl {
    background: rgba(0, 255, 136, 0.28);
    color: #fff;
    padding: 0 2px;
    border-radius: 3px;
}
