:root {
  /* Corporate Palette (Rcube Inspired) */
  --primary-color: #0b3d91; /* Deep Corporate Blue */
  --secondary-color: #e51b24; /* Corporate Red for CTAs */
  --bg-light: #ffffff;
  --bg-gray: #f4f5f7;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #dddddd;
  
  --font-family: 'Arial', 'Helvetica', sans-serif;
  --transition: all 0.2s ease-in-out;
  --max-width: 1200px;
  
  /* Resetting everything to the light theme rigidly */
  --bg-color: var(--bg-light);
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-muted);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-gray);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 2px solid var(--secondary-color); padding-bottom: 0.5rem; display: inline-block; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 3rem 0;
  background-color: var(--bg-light);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* Top Bar (Contact Info) */
.top-bar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #fff;
  margin-left: 15px;
}

/* Header & Nav */
.site-header {
  background: var(--bg-light);
  border-bottom: 3px solid var(--secondary-color);
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 10px 15px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 3px;
}

/* Dropdown Menu */
.nav-links li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-light);
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--secondary-color);
  z-index: 1000;
  list-style: none;
  padding: 0;
}

.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

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

.nav-links .dropdown-menu a {
  display: block;
  font-weight: 500;
  text-transform: capitalize;
  color: var(--text-dark);
  padding: 12px 15px;
}

.nav-links .dropdown-menu a:hover {
  background-color: var(--bg-gray);
  color: var(--primary-color);
  border-radius: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--primary-color);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 3px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  border-radius: 3px;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #c4151e;
  color: #fff;
}

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

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

/* Corporate Cards */
.corp-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 15px;
  transition: var(--transition);
  position: relative;
}

.corp-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

/* Banner / Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 2rem;
  background-color: var(--primary-color);
  padding: 0;
  border: none;
  border-bottom: 5px solid var(--secondary-color);
  border-radius: 0;
}

.carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.carousel-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.carousel-content h1 {
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
  color: #f0f0f0;
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-control:hover {
  background: var(--secondary-color);
}

.carousel-control.prev { left: 0; }
.carousel-control.next { right: 0; }

/* Hero Enquire Button */
.hero-enquire-wrap {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-enquire-btn {
  padding: 12px 35px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  text-transform: uppercase;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active, .indicator:hover {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.corporate-banner {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 5px solid var(--secondary-color);
  border-radius: 0;
}

.corporate-banner h1 {
  color: #fff;
  margin-bottom: 10px;
}

.corporate-banner p {
  color: #e0e0e0;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
  border-top: 5px solid var(--secondary-color);
}

.site-footer h4 {
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }

/* Grid System */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Product Listing Specifics */
.product-item {
  border: 1px solid var(--border-color);
  padding: 10px;
  text-align: center;
  background: #fff;
  transition: var(--transition);
}

.product-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.product-img-box {
  width: 100%;
  height: 200px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.product-img-box i {
  font-size: 4rem;
  color: #ccc;
}

.product-item h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  height: 2.4em;
  overflow: hidden;
}

.product-item .specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 15px;
  height: 80px;
  overflow: hidden;
}

.product-item .specs span {
  display: block;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  nav {
    display: contents; /* No visual impact on desktop */
  }

  .nav-links {
    /* Off-canvas drawer: fixed, always on top, slides in from left */
    display: flex !important;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  /* Drawer close overlay backdrop — only covers area OUTSIDE the drawer */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: min(80%, 320px); /* starts right where drawer ends */
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    cursor: pointer;
  }
  .nav-overlay.active {
    display: block;
  }

  /* Drawer header bar */
  .nav-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 18px 20px;
    border-bottom: 3px solid var(--secondary-color);
    flex-shrink: 0;
  }

  .nav-drawer-header span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .nav-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }

  .nav-close-btn:hover {
    background: rgba(255,255,255,0.3);
  }

  .nav-links li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav-links > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid #ebebeb;
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-dark);
  }

  .nav-links > li > a.active {
    background-color: var(--secondary-color);
    color: #ffffff;
  }

  .nav-links > li > a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
  }

  .nav-links > li > a.active:hover {
    background-color: #c4151e;
    color: #ffffff;
  }

  /* Dropdown arrow */
  .nav-links .dropdown > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: #aaa;
    transition: transform 0.2s;
  }
  .nav-links .dropdown.open > a::after {
    transform: rotate(90deg);
  }

  .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-top: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f9f9f9;
  }

  .nav-links .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu a {
    padding: 13px 20px 13px 38px;
    border-bottom: 1px solid #ebebeb;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    background-color: transparent;
  }

  .nav-links .dropdown-menu a:hover {
    background-color: rgba(229, 27, 36, 0.06);
    color: var(--secondary-color);
  }

  .nav-container {
    flex-wrap: nowrap;
  }

  /* ---- PREMIUM MOBILE HEADER ---- */

  /* Hide the top info bar completely on mobile - too cluttered */
  .top-bar {
    display: none;
  }

  /* Make header sticky on mobile so menu is always reachable */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    border-bottom: 3px solid var(--secondary-color);
  }

  /* Logo: scale up slightly for presence */
  .logo img {
    height: 42px !important;
  }

  /* Menu button: modern pill with icon */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(11,61,145,0.25);
    transition: background 0.2s, transform 0.15s;
  }
  .mobile-menu-btn:active {
    background: #092e70;
    transform: scale(0.96);
  }
  .mobile-menu-btn i {
    font-size: 1rem;
  }
  
  /* Make all grids stack to 1 column on mobile */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Reduce padding on mobile */
  section {
    padding: 2rem 0;
  }
  
  .corporate-banner {
    padding: 2rem 0;
  }
  
  .hero-carousel {
    height: auto;
    aspect-ratio: 16/9; /* Scales proportionally to screen width to prevent cropping */
    min-height: 240px; /* Safe minimum for the text to fit */
  }
  
  .carousel-content h1 {
    font-size: 1.75rem;
  }
  
  .carousel-content p {
    font-size: 1rem;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  
  /* Scale down carousel controls and buttons on mobile */
  .carousel-control {
    font-size: 1.2rem;
    padding: 8px 12px;
  }
  
  .hero-enquire-wrap {
    bottom: 30px;
  }
  
  .hero-enquire-btn {
    padding: 8px 24px;
    font-size: 0.85rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Make search tool inputs stack on mobile */
  .search-tool {
    flex-direction: column;
    width: 100%;
  }
  
  .search-tool input {
    min-width: 100% !important;
  }
  
  .search-tool .btn {
    width: 100%;
  }

} /* end @media (max-width: 768px) */


/* WhatsApp Floating Button */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe56;
  color: #FFF;
  transform: translateY(-5px);
  box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
}

/* =============================================
   BLOG PAGE — LAYOUT GRID (Desktop)
   ============================================= */
.blog-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* Mobile bar: hidden on desktop */
.blog-mobile-bar {
  display: none;
}

/* Filter notice */
.blog-filter-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--secondary-color);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  gap: 10px;
}
.blog-clear-btn {
  white-space: nowrap;
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.blog-clear-btn:hover { color: #c4151e; }

/* DESKTOP blog-article-card (old structure kept for desktop) */
.blog-article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.blog-article-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  border-color: var(--primary-color);
}
.blog-article-card .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f4f5f7;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.blog-article-card .card-image img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.blog-article-card:hover .card-image img { transform: scale(1.04); }
.blog-article-card .card-body { padding: 24px; }
.blog-meta {
  display: flex; gap: 14px; margin-bottom: 12px;
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.4px; flex-wrap: wrap;
}
.blog-meta .meta-cat {
  background: var(--secondary-color); color: #fff;
  padding: 2px 10px; border-radius: 20px;
  font-weight: 600; font-size: 0.75rem; text-decoration: none; transition: background 0.2s;
}
.blog-meta .meta-cat:hover { background: #c4151e; color:#fff; }
.blog-article-card h2 {
  font-size: 1.5rem; border: none; padding: 0;
  margin-bottom: 12px; color: var(--primary-color); line-height: 1.3;
}
.blog-article-card .excerpt {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px;
}
.blog-read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; background: transparent;
  border: 2px solid var(--primary-color); color: var(--primary-color);
  font-size: 0.85rem; font-weight: 700; border-radius: 3px;
  transition: all 0.2s; text-decoration: none;
}
.blog-read-btn:hover { background: var(--primary-color); color: #fff; }

/* Hero / Compact cards: hidden on desktop (mobile-only design) */
.blog-hero-card,
.blog-compact-card { display: none; }

/* Empty & error states */
.blog-empty {
  text-align: center; padding: 50px 20px;
  color: var(--text-muted);
}
.blog-empty i { font-size: 3rem; margin-bottom: 12px; display: block; color: #ccc; }
.blog-db-error {
  padding: 16px; background: #f8d7da; color: #721c24;
  border-radius: 4px; border: 1px solid #f5c6cb; font-size: 0.9rem;
}

/* =============================================
   BLOG PAGE — MOBILE STYLES (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Stack 2-col grid to 1 col */
  .blog-content .grid,
  .blog-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Move sidebar ABOVE posts, hide categories & contribute widgets */
  .blog-sidebar { order: -1; }
  .blog-sidebar .corp-card:not(:first-child) { display: none; }

  /* Sidebar first card = search bar: make it sticky */
  .blog-sidebar .corp-card:first-child {
    position: sticky;
    top: 56px; /* below sticky header */
    z-index: 400;
    border-radius: 0;
    border-left: none; border-right: none; border-top: none;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }
  .blog-sidebar form {
    display: flex; gap: 0;
  }
  .blog-sidebar form input {
    flex: 1; padding: 11px 14px; font-size: 1rem;
    border: 1px solid var(--border-color);
    border-right: none; border-radius: 4px 0 0 4px; outline: none;
  }
  .blog-sidebar form button {
    padding: 11px 18px; border-radius: 0 4px 4px 0; font-size: 1rem;
  }
  .blog-sidebar h3 { display: none; } /* hide "Search Topics" label */

  /* Posts area padding */
  .blog-posts { padding: 14px 12px 0; }
  .blog-content { padding-top: 0 !important; }

  /* ── Article Cards ── */
  .blog-article-card {
    display: block !important; /* ensure visible */
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.10) !important;
    overflow: hidden;
  }

  /* Image ratio */
  .blog-article-card .card-image {
    aspect-ratio: 16/8;
    border-bottom: none;
  }

  /* Body padding tighter on mobile */
  .blog-article-card .card-body {
    padding: 16px !important;
  }

  /* Title: smaller but punchy */
  .blog-article-card h2 {
    font-size: 1.1rem !important;
    margin-bottom: 8px;
    display: block;
    line-height: 1.35;
  }

  /* Excerpt: clamp to 3 lines */
  .blog-article-card .excerpt {
    font-size: 0.875rem !important;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Read button: full-width solid */
  .blog-read-btn {
    display: flex !important;
    justify-content: center;
    width: 100%;
    padding: 12px !important;
    font-size: 0.9rem !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
    border-radius: 8px !important;
  }

  /* Empty / error states */
  .blog-empty { padding: 40px 20px; }
}
.blog-article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.blog-article-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  border-color: var(--primary-color);
}
.blog-article-card .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.blog-article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-article-card:hover .card-image img {
  transform: scale(1.04);
}
.blog-article-card .card-body {
  padding: 24px;
}
.blog-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-wrap: wrap;
}
.blog-meta .meta-cat {
  background: var(--secondary-color);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-meta .meta-cat:hover {
  background: #c4151e;
  color: #fff;
}
.blog-article-card h2 {
  font-size: 1.5rem;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  color: var(--primary-color);
  display: inline;
  line-height: 1.3;
}
.blog-article-card .excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 3px;
  transition: all 0.2s;
  text-decoration: none;
}
.blog-read-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* =============================================
   BLOG PAGE — MOBILE STYLES (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Make 2fr/1fr grid stack vertically */
  .blog-content .grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Move sidebar above the posts on mobile */
  .blog-sidebar {
    order: -1;
    margin-bottom: 20px;
  }

  /* Sticky search bar on mobile */
  .blog-sidebar .corp-card:first-child {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }

  /* Hide categories & contribute on mobile — keep it clean */
  .blog-sidebar .corp-card:not(:first-child) {
    display: none;
  }

  /* Search bar stretch */
  .blog-sidebar form {
    display: flex;
    gap: 0;
  }
  .blog-sidebar form input {
    flex: 1;
    padding: 11px 14px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
  }
  .blog-sidebar form button {
    padding: 11px 18px;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
  }

  /* ---- Article Cards on Mobile ---- */
  .blog-article-card {
    margin-bottom: 16px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  }

  /* Image: taller and with gradient overlay */
  .blog-article-card .card-image {
    aspect-ratio: 16/8;
    position: relative;
    border-bottom: none;
  }

  .blog-article-card .card-body {
    padding: 18px 16px 20px;
  }

  /* Meta row: category pill + date */
  .blog-meta {
    font-size: 0.75rem;
    gap: 10px;
    margin-bottom: 10px;
  }

  /* Title: smaller but punchy */
  .blog-article-card h2 {
    font-size: 1.15rem;
    display: block;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  /* Excerpt: shorter on mobile */
  .blog-article-card .excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
    /* Show only 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Read button: full-width on mobile */
  .blog-read-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.9rem;
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    border-radius: 6px;
  }

  /* Banner: compact on mobile */
  .corporate-banner h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  .corporate-banner p {
    font-size: 0.9rem;
  }

  /* Section padding */
  .blog-content {
    padding-top: 0 !important;
  }
  .blog-content .container {
    padding: 0 12px;
  }

  /* Posts wrapper: slight padding */
  .blog-posts {
    padding-top: 16px;
  }

  /* "No results" fallback card */
  .blog-posts .corp-card {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: none;
  }
}
