/* =========================================================
   EIRI Consultancy — Combined Stylesheet
   Extracted & de-duplicated from index.html + packages.html
   Structure:
     1. Shared / global rules (identical on every page)
     2. Home page (body.page-home) specific rules
     3. Packages page (body.page-packages) specific rules
   Note: rules that existed on both pages but with DIFFERENT
   values were kept page-scoped (body.page-home / body.page-packages)
   so visual output is 100% unchanged from the originals.
   ========================================================= */

/* -----------------------------------------------------------
   1. SHARED / GLOBAL STYLES
   ----------------------------------------------------------- */

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

.navbar-brand img {
  height: 70px;
}

.hero h1 span {
  color: var(--primary);
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

@media(max-width: 767px) {
.section-title h2 {
  font-size: 2rem;
}
}


/* -----------------------------------------------------------
   2. HOME PAGE STYLES  (index.php)
   ----------------------------------------------------------- */

body.page-home {
  font-family: 'Poppins', sans-serif;
  color: #222;
  overflow-x: hidden;
  background: #fff;
}

body.page-home {
  --primary: #c11212;
  --secondary: #ff5b5b;
  --dark: #121212;
  --light: #f8f9fc;
}

body.page-home .navbar {
  padding: 18px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-link {
  color: #222 !important;
  font-weight: 500;
  margin-left: 15px;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

body.page-home .btn-main {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(193,18,18,0.25);
}

body.page-home .btn-main:hover {
  transform: translateY(-3px);
  color: white;
}

body.page-home .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
        linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
        url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  padding-top: 120px;
}

.hero::before {
  content: '';
  position: absolute;
  height: 500px;
  background: rgba(193,18,18,0.06);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}

body.page-home .hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 25px;
}

body.page-home .hero p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 35px;
}

.hero-card {
  background: white;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.hero-card h4 {
  font-weight: 700;
  margin-bottom: 25px;
}

.hero-card .form-control {
  height: 55px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
}

body.page-home .section-title h2 {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 15px;
}

body.page-home .section-title p {
  max-width: 700px;
  margin: auto;
  color: #666;
  line-height: 1.8;
}

.feature-box {
  padding: 40px 30px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 45px rgba(0,0,0,0.06);
  transition: 0.4s;
  height: 100%;
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(193,18,18,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 700;
}

.feature-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
}

.industries {
  background: var(--light);
}

.industry-pill {
  padding: 18px 25px;
  background: white;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.industry-pill:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.stats {
  background: linear-gradient(135deg, var(--primary), #8e0b0b);
  color: white;
}

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

.stat-box h2 {
  font-size: 3rem;
  font-weight: 800;
}

.process-box {
  position: relative;
  text-align: center;
  padding: 30px;
}

.process-number {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

.testimonial-box {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(0,0,0,0.06);
  height: 100%;
}

.testimonial-box p {
  line-height: 1.9;
  color: #555;
}

.client-name {
  margin-top: 20px;
  font-weight: 700;
  color: var(--primary);
}

.cta {
  background: linear-gradient(135deg, #111, #2c2c2c);
  color: white;
  border-radius: 40px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}

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

body.page-home footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 20px;
}

footer h5 {
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

body.page-home .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.whatsapp-float {
  position:fixed;
  width:65px;
  height:65px;
  bottom:25px;
  right:25px;
  background:#25d366;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  z-index:999;
  box-shadow:0 15px 35px rgba(0,0,0,0.2);
  text-decoration:none;
}

.call-float {
  position:fixed;
  width:65px;
  height:65px;
  bottom:100px;
  right:25px;
  background:#c11212;
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  z-index:999;
  box-shadow:0 15px 35px rgba(0,0,0,0.2);
  text-decoration:none;
}

.search-box {
  background: white;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.search-input {
  height: 65px;
  border-radius: 50px;
  border: 1px solid #ddd;
  padding-left: 25px;
}

.business-card {
  border-radius: 25px;
  overflow: hidden;
  background: white;
  box-shadow: 0 15px 45px rgba(0,0,0,0.06);
  transition: 0.4s;
  height: 100%;
}

.business-card:hover {
  transform: translateY(-10px);
}

.business-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.business-content {
  padding: 30px;
}

.business-content h4 {
  font-weight: 700;
  margin-bottom: 15px;
}

.business-content p {
  color: #666;
  line-height: 1.8;
}

.pain-section {
  background: linear-gradient(135deg,#111,#2b2b2b);
  color: white;
}

.pain-card {
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 35px;
  height: 100%;
  backdrop-filter: blur(8px);
}

.pain-card h4 {
  color: #ff6b6b;
  font-weight: 700;
}

.country-box {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.country-box:hover {
  transform: translateY(-8px);
}

.country-box span {
  font-size: 40px;
  display: block;
  margin-bottom: 15px;
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accordion-button {
  font-weight: 600;
  padding: 22px;
}

.accordion-button:not(.collapsed) {
  background: #c11212;
  color: white;
}

.accordion-body {
  padding: 25px;
  line-height: 1.9;
  color: #666;
}

.sample-box {
  background: linear-gradient(135deg,#c11212,#ff5b5b);
  color: white;
  border-radius: 35px;
  padding: 70px;
  position: relative;
  overflow: hidden;
}

.sample-box::before {
  content:'';
  position:absolute;
  width:300px;
  height:300px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
  top:-100px;
  right:-100px;
}

.sample-box .form-control {
  height: 58px;
  border-radius: 50px;
  border: none;
}

.business-content a {
  display:none;
}

@media(max-width: 991px) {
body.page-home .hero h1 {
  font-size: 2.8rem;
}

.hero {
  padding-bottom: 80px;
}

.cta {
  padding: 50px 30px;
}
}

@media(max-width: 767px) {
body.page-home .hero h1 {
  font-size: 2.2rem;
}
}

@media(max-width:768px) {
  .search-box,
  .sample-box {
    padding: 35px 25px;
  }
  .business-card img {
    height: 180px;
  }
}


/* -----------------------------------------------------------
   3. PACKAGES PAGE STYLES  (packages.php)
   ----------------------------------------------------------- */

body.page-packages {
  font-family:'Poppins',sans-serif;
  background:#f7f8fc;
  color:#111;
  overflow-x:hidden;
}

body.page-packages {
  --primary:#c11212;
  --secondary:#ff5b5b;
  --dark:#111;
  --light:#f7f8fc;
}

body.page-packages .navbar {
  background:#fff;
  padding:18px 0;
  box-shadow:0 2px 20px rgba(0,0,0,0.05);
}

body.page-packages .btn-main {
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  border:none;
  color:#fff;
  padding:16px 32px;
  border-radius:60px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  transition:0.35s;
  box-shadow:0 15px 35px rgba(193,18,18,0.2);
}

body.page-packages .btn-main:hover {
  transform:translateY(-3px);
  color:#fff;
}

body.page-packages .hero {
  padding:120px 0 80px;
  background:
      linear-gradient(rgba(255,255,255,0.92),rgba(255,255,255,0.92)),
      url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2000&auto=format&fit=crop');
  background-size:cover;
  background-position:center;
  position:relative;
}

body.page-packages .hero h1 {
  font-size:3.5rem;
  font-weight:800;
  line-height:1.2;
  margin-bottom:25px;
}

body.page-packages .hero p {
  font-size:1.08rem;
  color:#555;
  line-height:1.9;
  max-width:850px;
  margin:auto;
}

body.page-packages .section-title h2 {
  font-size:2.8rem;
  font-weight:800;
  margin-bottom:15px;
}

body.page-packages .section-title p {
  max-width:750px;
  margin:auto;
  color:#666;
  line-height:1.9;
}

body.page-packages footer {
  background:#0d0d0d;
  color:rgba(255,255,255,0.75);
  padding:50px 0 20px;
}

body.page-packages .footer-bottom {
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:20px;
  text-align:center;
  margin-top:30px;
}

.pricing-card {
  background:#fff;
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.06);
  height:100%;
  transition:0.4s;
  position:relative;
  border:1px solid rgba(0,0,0,0.04);
}

.pricing-card:hover {
  transform:translateY(-10px);
  box-shadow:0 30px 60px rgba(0,0,0,0.08);
}

.pricing-header {
  padding:40px 35px 25px;
  background:linear-gradient(135deg,#fff,#fff7f7);
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.pricing-header h3 {
  font-size:2rem;
  font-weight:800;
  margin-bottom:10px;
}

.price {
  font-size:2.8rem;
  font-weight:800;
  color:var(--primary);
  margin-bottom:10px;
}

.price small {
  font-size:16px;
  color:#777;
  font-weight:500;
}

.pricing-subtitle {
  color:#666;
  line-height:1.8;
}

.popular-badge {
  position:absolute;
  top:20px;
  right:-35px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  padding:10px 45px;
  transform:rotate(45deg);
  font-size:12px;
  font-weight:700;
  box-shadow:0 10px 25px rgba(193,18,18,0.25);
}

.pricing-body {
  padding:35px;
}

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

.feature-list li {
  padding:14px 0;
  border-bottom:1px dashed rgba(0,0,0,0.08);
  color:#444;
  display:flex;
  align-items:flex-start;
  gap:12px;
  line-height:1.7;
}

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

.feature-check {
  width:26px;
  height:26px;
  min-width:26px;
  border-radius:50%;
  background:rgba(193,18,18,0.1);
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:700;
  margin-top:2px;
}

.comparison-box {
  background:#fff;
  border-radius:30px;
  padding:40px;
  box-shadow:0 20px 50px rgba(0,0,0,0.05);
  overflow-x:auto;
}

.table {
  margin-bottom:0;
}

.table thead th {
  background:#111;
  color:#fff;
  border:none;
  padding:20px;
  font-size:15px;
  font-weight:600;
  text-align:center;
}

.table tbody td {
  padding:18px 20px;
  vertical-align:middle;
  text-align:center;
  border-color:rgba(0,0,0,0.06);
  font-size:14px;
}

.table tbody td:first-child {
  text-align:left;
  font-weight:600;
  color:#111;
}

.yes {
  color:#16a34a;
  font-weight:700;
  font-size:18px;
}

.no {
  color:#c11212;
  font-weight:700;
  font-size:18px;
}

.cta-section {
  padding:100px 0;
}

.cta-box {
  background:linear-gradient(135deg,#111,#2b2b2b);
  border-radius:40px;
  padding:80px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
}

.cta-box::before {
  content:'';
  position:absolute;
  width:320px;
  height:320px;
  background:rgba(255,255,255,0.04);
  border-radius:50%;
  top:-120px;
  right:-120px;
}

.cta-box h2 {
  font-size:3rem;
  font-weight:800;
  margin-bottom:20px;
  position:relative;
  z-index:1;
}

.cta-box p {
  color:rgba(255,255,255,0.75);
  font-size:1.1rem;
  line-height:1.9;
  margin-bottom:40px;
  position:relative;
  z-index:1;
}

@media(max-width:991px) {
body.page-packages .hero h1 {
  font-size:2.6rem;
}

.cta-box {
  padding:50px 30px;
}

.cta-box h2 {
  font-size:2.2rem;
}
}

@media(max-width:767px) {
body.page-packages .hero h1 {
  font-size:2rem;
}

.hero {
  padding:90px 0 70px;
}

.pricing-header {
  padding:35px 25px 20px;
}

.pricing-body {
  padding:25px;
}

.comparison-box {
  padding:20px;
}
}

/* -----------------------------------------------------------
   4. CATALOG STYLES
   (detailed-project-report.php, category.php, product.php)
   Reuses the body.page-packages theme variables:
   --primary / --secondary / --dark / --light
   ----------------------------------------------------------- */

.catalog-section {
  padding-top: 60px;
}

/* Compact hero variant used on category.php so the title doesn't
   need a full-height marketing hero */
body.page-packages .hero.hero-compact {
  padding: 150px 0 50px;
}

body.page-packages .hero.hero-compact h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.category-description {
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  line-height: 1.9;
}

/* Breadcrumb */
.catalog-breadcrumb {
  margin-bottom: 35px;
}

.catalog-breadcrumb .breadcrumb {
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.catalog-breadcrumb .breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: 0.25s;
}

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

.catalog-breadcrumb .breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

.catalog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "\f105"; /* fa-chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: #bbb;
  padding-right: 0.6rem;
}

.catalog-empty {
  text-align: center;
  color: #777;
  padding: 60px 0;
  font-size: 1.05rem;
}

/* Subcategory cards (Detailed Project Report hub page) */
.subcategory-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  transition: 0.35s;
  position: relative;
  color: inherit;
}

.subcategory-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.09);
  border-color: rgba(193,18,18,0.15);
}

.subcategory-card-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subcategory-card-icon i {
  color: #fff;
  font-size: 1.5rem;
}

.subcategory-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-card-body {
  flex: 1;
  min-width: 0;
}

.subcategory-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.subcategory-card-body p {
  font-size: 0.92rem;
  color: #777;
  line-height: 1.7;
  margin-bottom: 10px;
}

.subcategory-card-count {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(193,18,18,0.08);
  padding: 4px 12px;
  border-radius: 30px;
}

.subcategory-card-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  color: #ccc;
  transition: 0.3s;
}

.subcategory-card:hover .subcategory-card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Product cards (category listing + related products) */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.35s;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.09);
  border-color: rgba(193,18,18,0.15);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--light);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 16px;
}

.product-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

/* Pagination, restyled to match theme */
.pagination .page-link {
  color: var(--dark);
  border: none;
  margin: 0 4px;
  border-radius: 10px !important;
  font-weight: 600;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: #ccc;
  background: transparent;
}

.pagination .page-item.disabled .page-link:hover {
  cursor: default;
}

/* Product detail page */
.product-detail-section {
  padding-top: 60px;
}

.product-gallery-main {
  border-radius: 22px;
  overflow: hidden;
  background: var(--light);
  aspect-ratio: 1 / 1;
  margin-bottom: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--light);
  cursor: pointer;
  transition: 0.25s;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--primary);
}

.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.product-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.product-detail-description {
  color: #555;
  line-height: 1.9;
  margin-bottom: 30px;
}

.product-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.related-products {
  margin-top: 90px;
}

/* Product banner layout (image as full-width hero-style banner) */
.product-hero-price {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.product-banner {
  border-radius: 22px;
  overflow: hidden;
  background: var(--light);
  max-height: 480px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.product-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.product-gallery-thumbs-center {
  justify-content: center;
  margin-bottom: 40px;
}

.product-detail-info-full {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* -----------------------------------------------------------
   5. BLOG / KNOWLEDGE BASE STYLES
   (knowledge-base.php, blog-post.php, homepage blog section)
   ----------------------------------------------------------- */

.blog-detail-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  color: #777;
  font-size: 0.92rem;
  font-weight: 500;
}

.blog-detail-meta i {
  color: var(--primary);
  margin-right: 4px;
}

.blog-detail-banner {
  margin-bottom: 30px;
}

.blog-detail-content {
  color: #444;
  line-height: 1.95;
  font-size: 1.02rem;
}

.blog-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--light);
  padding: 5px 14px;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Blog list cards (knowledge-base.php) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card {
  display: flex;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.35s;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  border-color: rgba(193,18,18,0.15);
}

.blog-list .blog-card {
  flex-direction: row;
}

.blog-list .blog-card-image {
  flex: 0 0 260px;
  aspect-ratio: 4 / 3;
}

/* Grid variant (homepage) stacks image on top */
.row .blog-card {
  flex-direction: column;
  height: 100%;
}

.row .blog-card .blog-card-image {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.blog-card-image {
  background: var(--light);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #999;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-meta i {
  color: var(--primary);
  margin-right: 3px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: #777;
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}

.blog-card-readmore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.blog-card-readmore i {
  margin-left: 4px;
  transition: 0.3s;
}

.blog-card:hover .blog-card-readmore i {
  transform: translateX(4px);
}

/* Sidebar widgets */
.blog-sidebar-widget {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  margin-bottom: 30px;
}

.blog-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
}

.blog-sidebar-item {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.blog-sidebar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-sidebar-item-image {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
}

.blog-sidebar-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-sidebar-item-body {
  min-width: 0;
}

.blog-sidebar-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: 0.25s;
}

.blog-sidebar-item:hover .blog-sidebar-item-title {
  color: var(--primary);
}

.blog-sidebar-item-meta {
  font-size: 0.75rem;
  color: #999;
}

.blog-sidebar-item-meta i {
  color: var(--primary);
  margin-right: 3px;
}

@media(max-width: 767px) {
  .blog-list .blog-card {
    flex-direction: column;
  }

  .blog-list .blog-card-image {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

.related-products .section-title {
  text-align: left;
  margin-bottom: 35px;
}

.related-products .section-title h2 {
  font-size: 2rem;
}

@media(max-width: 767px) {
  .subcategory-card {
    padding: 22px;
  }

  .product-detail-info h1 {
    font-size: 1.6rem;
  }

  body.page-packages .hero.hero-compact {
    padding: 130px 0 40px;
  }
}
