/* ========================================
   BLOG WEBSITE TEMPLATE - STYLE.CSS
   Developed by AymanInfotech
   Email: aymaninfotechs@gmail.com
   ======================================== */

/* ========================================
   1. GOOGLE FONTS & ROOT VARIABLES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #ff6b35;
  --primary-dark: #e55a24;
  --primary-light: #fff3ee;
  --secondary: #1a1a2e;
  --dark: #111111;
  --dark-2: #222222;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* ========================================
   2. BASE RESET & GLOBAL STYLES
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  color: #444;
  line-height: 1.8;
}

.lead {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }

.section-header {
  margin-bottom: 50px;
}

.section-header .subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.section-header h2 {
  margin-bottom: 15px;
}

.section-header p {
  max-width: 550px;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 15px 0;
  border-radius: 2px;
}

.divider.center {
  margin: 15px auto;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.btn-dark-custom:hover {
  background: transparent;
  color: var(--dark);
  transform: translateY(-2px);
}

/* ========================================
   6. NAVBAR
   ======================================== */
.main-navbar {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  z-index: 1050;
}

.main-navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.navbar-brand .brand-logo .brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

.navbar-brand .brand-logo .brand-name span {
  color: var(--primary);
}

.main-navbar .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  padding: 8px 16px !important;
  border-radius: 6px;
  position: relative;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.navbar-search .search-input {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.875rem;
  width: 200px;
  transition: var(--transition);
  outline: none;
}

.navbar-search .search-input:focus {
  border-color: var(--primary);
  width: 240px;
}

.navbar-search .search-btn {
  background: none;
  border: none;
  color: var(--gray);
  margin-left: -36px;
  cursor: pointer;
  transition: var(--transition);
}

.navbar-search .search-btn:hover { color: var(--primary); }

.navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
  padding: 6px 10px;
}

.navbar-toggler:focus { box-shadow: none; }

/* ========================================
   7. HERO SECTION
   ======================================== */
.hero-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 40%, #16213e 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.hero-tag i { font-size: 0.75rem; }

.hero-section h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-section h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-section .lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 40px;
}

.hero-stat .stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Featured Card */
.hero-featured-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}

.hero-featured-card .card-image {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.hero-featured-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-featured-card:hover .card-image img {
  transform: scale(1.05);
}

.hero-featured-card .card-image .cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.hero-featured-card .card-body-custom {
  padding: 24px;
}

.hero-featured-card .card-body-custom h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.hero-featured-card .card-body-custom h4:hover {
  color: var(--primary);
}

.hero-featured-card .meta-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--gray);
}

.hero-featured-card .meta-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* Small horizontal cards on the right */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-mini-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}

.hero-mini-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,107,53,0.4);
}

.hero-mini-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-mini-card .mini-content .cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-mini-card .mini-content h6 {
  color: var(--white);
  font-size: 0.9rem;
  margin: 4px 0;
  line-height: 1.4;
}

.hero-mini-card .mini-content span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ========================================
   8. BLOG CARDS
   ======================================== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.blog-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.blog-card .card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .card-body-custom {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .meta-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card .meta-info .author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.blog-card .meta-info .author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card .meta-info i {
  font-size: 0.75rem;
  color: var(--primary);
}

.blog-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: var(--transition);
  line-height: 1.4;
}

.blog-card h4 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 18px;
  flex: 1;
}

.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  align-self: flex-start;
}

.blog-card .read-more:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Featured / Large card */
.blog-card-featured {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card-featured:hover {
  box-shadow: var(--shadow-hover);
}

.blog-card-featured .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 380px;
}

.blog-card-featured .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-featured:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.blog-card-featured .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 28px 28px;
}

.blog-card-featured .overlay .card-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.blog-card-featured .overlay h3 {
  color: white;
  margin-bottom: 10px;
}

.blog-card-featured .overlay .meta-info {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ========================================
   9. TRENDING & SIDEBAR SECTIONS
   ======================================== */
.trending-item {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.trending-item:last-child { border-bottom: none; }

.trending-item:hover .trending-title { color: var(--primary); }

.trending-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-medium);
  line-height: 1;
  font-family: var(--font-heading);
  min-width: 36px;
}

.trending-content .trending-cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trending-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 4px 0;
  font-family: var(--font-heading);
  transition: var(--transition);
}

.trending-date {
  font-size: 0.75rem;
  color: var(--gray);
}

/* ========================================
   10. CATEGORY SECTION
   ======================================== */
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card .cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.category-card:hover .cat-icon {
  transform: scale(1.1);
}

.category-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.category-card .post-count {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ========================================
   11. NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0f0f23 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-section h2 { color: var(--white); }
.newsletter-section p { color: rgba(255,255,255,0.65); }

.newsletter-form .input-group {
  max-width: 480px;
}

.newsletter-form .form-control {
  border-radius: 50px 0 0 50px;
  padding: 14px 22px;
  border: none;
  font-size: 0.9rem;
  outline: none;
  box-shadow: none;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0 28px;
  transition: var(--transition);
}

.newsletter-form .btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ========================================
   12. SIDEBAR
   ======================================== */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}

.sidebar-widget .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget .widget-title i {
  color: var(--primary);
}

/* Popular Posts Widget */
.popular-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-medium);
  transition: var(--transition);
}

.popular-post-item:last-child { border-bottom: none; }

.popular-post-item img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post-item .post-info h6 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
  transition: var(--transition);
}

.popular-post-item:hover .post-info h6 { color: var(--primary); }

.popular-post-item .post-info span {
  font-size: 0.75rem;
  color: var(--gray);
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  background: var(--gray-light);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.tag-badge:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   13. PAGINATION
   ======================================== */
.pagination-custom .page-link {
  color: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px;
  margin: 0 3px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination-custom .page-link:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   14. SINGLE POST PAGE
   ======================================== */
.post-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
}

.post-hero .post-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: white;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2, .post-content h3, .post-content h4 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.post-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.post-content img {
  border-radius: var(--radius);
  margin: 25px 0;
  width: 100%;
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 20px 25px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark-2);
  font-family: var(--font-heading);
}

.post-author-box {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 22px;
  margin-top: 45px;
  border: 1px solid var(--border);
}

.post-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-box h5 { margin-bottom: 5px; }

.post-author-box p {
  font-size: 0.9rem;
  margin: 0;
}

/* Social Share */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn:hover { transform: translateY(-2px); }
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter  { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0a66c2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }

/* ========================================
   15. CATEGORIES PAGE
   ======================================== */
.category-hero {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  padding: 80px 0 60px;
  text-align: center;
  color: white;
}

.category-hero h1 { color: white; }
.category-hero p { color: rgba(255,255,255,0.65); }

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   16. ABOUT PAGE
   ======================================== */
.about-hero {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  padding: 90px 0 70px;
  color: white;
}

.about-hero h1 { color: white; }

.about-author-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  text-align: center;
}

.about-author-card .author-cover {
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.about-author-card .author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  margin: -55px auto 16px;
  display: block;
  position: relative;
  z-index: 2;
}

.about-author-card .author-info { padding: 0 24px 28px; }

.about-author-card h4 { margin-bottom: 4px; }

.about-author-card .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.about-stat-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.about-stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.about-stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.about-stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 5px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.team-card .team-info {
  padding: 20px;
}

.team-card h5 { margin-bottom: 4px; }

.team-card .role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   17. CONTACT PAGE
   ======================================== */
.contact-hero {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  padding: 90px 0 70px;
  text-align: center;
  color: white;
}

.contact-hero h1 { color: white; }
.contact-hero p { color: rgba(255,255,255,0.65); }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-info-card .icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.contact-info-card:hover .icon-box {
  background: var(--primary);
  color: white;
}

.contact-info-card h5 { font-size: 1rem; margin-bottom: 6px; }
.contact-info-card p { font-size: 0.88rem; color: var(--gray); margin: 0; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form-card .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  box-shadow: none;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

/* ========================================
   18. FOOTER
   ======================================== */
.main-footer {
  background: var(--secondary);
  padding-top: 70px;
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: white;
  font-weight: 700;
}

.footer-brand .brand-name span { color: var(--primary); }

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-right: 8px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-links li a i {
  font-size: 0.65rem;
  color: var(--primary);
}

.footer-recent-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-recent-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-recent-post img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-recent-post h6 {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.4;
  transition: var(--transition);
}

.footer-recent-post h6:hover { color: var(--primary); }

.footer-recent-post span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 50px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--primary);
}

/* ========================================
   19. BACK TO TOP
   ======================================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  transition: var(--transition);
}

#backToTop:hover {
  transform: translateY(-4px);
  background: var(--primary-dark);
}

#backToTop.show { display: flex; }

/* ========================================
   20. BREADCRUMB
   ======================================== */
.breadcrumb-section {
  background: var(--gray-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--gray);
}

.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray); }
.breadcrumb { margin: 0; font-size: 0.85rem; }

/* ========================================
   21. BLOG LIST PAGE SPECIFICS
   ======================================== */
.blog-list-hero {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e);
  padding: 70px 0 50px;
  text-align: center;
  color: white;
}

.blog-list-hero h1 { color: white; }
.blog-list-hero p { color: rgba(255,255,255,0.65); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

/* ========================================
   22. LOADING ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========================================
   23. PRELOADER
   ======================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-inner .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--gray-medium);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.preloader-inner p {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* ========================================
   24. MEDIA QUERIES
   ======================================== */
@media (max-width: 1199px) {
  .hero-section { min-height: auto; padding: 80px 0 60px; }
}

@media (max-width: 991px) {
  .section-padding { padding: 60px 0; }
  .hero-stats { gap: 20px; }
  .hero-side-cards { display: none; }
  .post-hero { height: 340px; }
  .navbar-collapse { background: white; padding: 10px 0; border-top: 1px solid var(--border); margin-top: 10px; }
  .navbar-search .search-input { width: 100%; margin-top: 10px; }
  .navbar-search { width: 100%; }
}

@media (max-width: 767px) {
  .hero-section { padding: 70px 0 50px; }
  .hero-section h1 { font-size: 2rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .blog-card-featured .card-img-wrapper { height: 260px; }
  .post-hero { height: 260px; }
  .post-hero .post-hero-content { padding: 20px; }
  .about-author-card { margin-bottom: 30px; }
  .contact-form-card { padding: 22px; }
  .footer-bottom { text-align: center; }
  .share-buttons { justify-content: center; }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.8rem; }
  .newsletter-form .form-control,
  .newsletter-form .btn { border-radius: 50px; }
  .newsletter-form .input-group { flex-direction: column; gap: 10px; }
}
