/*SivaKali Tech Copyright 2026 - Enhanced CAST-inspired Design*/
:root {
  --brand: #7FC344;
  --brand-dark: #618b14;
  --dark: #162849;
  --dark-light: #2c5c84;
  --text: #333;
  --text-light: #666;
  --muted: #777;
  --border: #e6e6e6;
  --border-light: #d6d6d6;
  --bg-soft: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow: auto !Important;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

footer a {
  text-decoration: none !important;
  color: #ccc !important;
} 

/* ===== HEADER ===== */
header {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-logo {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--brand);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

nav li a {
  font-weight: 500;
  color: var(--dark);
}

nav li a:hover {
  color: var(--brand);
}

/* ===== HERO - Enhanced CAST Style ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.02) 20px
    );
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

/* ===== CONTENT ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 16px;
}

.category {
  margin-bottom: 40px;
}

.category h2 {
  color: var(--brand);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.product {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.product:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.product h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ===== FOOTER - Enhanced CAST Style ===== */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 20px 30px;
  position: relative;
}

.footer-grid {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

footer ul li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer ul li a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 768px) {
  nav ul {
    gap: 14px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }
}



/* ===== MOBILE HEADER ===== */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    display: none;
    padding: 0;
    border-top: 1px solid var(--border);
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li a {
    display: block;
    padding: 14px 16px;
  }
}
.search-field {
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: safe;
  align-items: center;
  gap: 7px;
  color: #aaa;
}


/* Root section - Enhanced CAST Style */
.cast-products {
  padding: 100px 20px;
  background: var(--bg-white);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.cast-products-head {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 60px;
}

.cast-products-head span {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.cast-products-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}

/* Grid */
.cast-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* Card - Enhanced */
.product-card {
  padding: 36px 32px;
  background: var(--card-bg);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--title-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

/* Heading - Enhanced */
.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--title-color);
  transition: color 0.2s ease;
}

/* Subheading */
.product-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Description */
.product-card p {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  transition: color 0.2s ease;
}

/* Hover — Enhanced CAST behavior */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: var(--brand);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover h3 {
  color: var(--brand);
}

.product-card:hover p {
  color: var(--text-light);
}

/* --- CARD COLORS + MATCHING TITLE COLORS --- */
/* These are muted, enterprise tones like CAST */

.c1 {
  --card-bg: #f3f6fb;
  --title-color: #2f4fa0;
}

.c2 {
  --card-bg: #f6f8f4;
  --title-color: #3f6b4f;
}

.c3 {
  --card-bg: #f7f4f8;
  --title-color: #5a3f73;
}

.c4 {
  --card-bg: #fbf4f4;
  --title-color: #8a3b3b;
}

.c5 {
  --card-bg: #f4f9fa;
  --title-color: #2f6f86;
}

.c6 {
  --card-bg: #f8f6f2;
  --title-color: #7a5c32;
}

.c7 {
  --card-bg: #f5f7f9;
  --title-color: #3f556b;
}

.c8 {
  --card-bg: #f4faf7;
  --title-color: #2f6b57;
}

.c9 {
  --card-bg: #f6f6f6;
  --title-color: #444444;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Responsive - Enhanced */
@media (max-width: 1200px) {
  .topbar {
    padding: 16px 20px;
  }
  
  .headerSearchWrap {
    width: 300px;
  }
  
  .cast-products {
    padding: 80px 20px;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 42px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .cast-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .cast-products-head {
    margin-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .headerSearchWrap {
    width: 100%;
    max-width: 400px;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 15px;
  }
  
  .cast-products {
    padding: 60px 20px;
  }
  
  .cast-products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 40px 16px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .product-card {
    padding: 24px 20px;
  }
  
  .cast-products-head h2 {
    font-size: 16px;
    letter-spacing: 1.5px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/*
===============================
   UPCOMING EVENTS (Refined)
=============================== 
*/
.upcoming-events {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  margin-top: 4.5rem;
}

.upcoming-events h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #111;
}

/* Grid */
.events-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Card */
.event-card {
  padding: 36px 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover — same behavior as product cards */
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Header */
.event-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* Logo */
.event-logo {
  width: 38px;
  height: 38px;
  fill: #2f4fa0; /* enterprise blue */
}

.event-logo text {
  fill: #ffffff;
  font-size: 40px;
  font-weight: 700;
}

/* Company name */
.company-name {
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

/* Info */
.event-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #2b2b2b;
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  fill: #6b7280;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .events-wrapper {
    grid-template-columns: 1fr;
  }

  .upcoming-events {
    margin-top: 80px;
  }
}

.last-cast-products-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.last-cast-products-head span {
  flex: 1;
  height: 1px;
  background: #d6d6d6;
}

.last-cast-products-head h2 {
  font-size: 20px;
  font-weight: 700;            /* CAST uses lighter weights */
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #111;
}

.latest-container {
  background-color: #fff;
  padding: 15px 90px;
}

.latest-update {
    text-align: center;
    margin-bottom: 85px;
}

.latest-update p {
    font-size: 1rem;
    color: #666;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.card-date {
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 1000px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .card-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .latest-container {
	padding: 60px 20px !important;
    }
}

/* ===============================
   IP CTA SECTION – Binary Trend
   =============================== */

.ipcta-block-root {
  position: relative;
  padding: 130px 20px;
  text-align: center;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background-color: #f6f8fb;
  overflow: hidden;
}

/* Binary background */
.ipcta-block-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(22, 40, 69, 0.04) 0px,
      rgba(22, 40, 69, 0.04) 1px,
      transparent 1px,
      transparent 14px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(127, 178, 0, 0.03) 0px,
      rgba(127, 178, 0, 0.03) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
}

/* Binary 0/1 overlay */
.ipcta-block-root::after {
  content: "0101010010101100101001011010010100101101001010";
  position: absolute;
  inset: 0;
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 10px;
  line-height: 34px;
  color: rgba(0, 0, 0, 0.045);
  white-space: pre-wrap;
  padding: 40px;
  pointer-events: none;
}

/* Foreground content */
.ipcta-block-root > * {
  position: relative;
  z-index: 1;
}

/* Text */
.ipcta-block-text {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Button wrapper */
.ipcta-block-action {
  display: flex;
  justify-content: center;
}

/* Gradient button - Enhanced */
.ipcta-block-button {
  background: linear-gradient(135deg, var(--dark) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-soft);
}

/* Hover */
.ipcta-block-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--brand) 100%);
}

/* Focus */
.ipcta-block-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 195, 68, 0.3);
}

/* Focus */
.ipcta-block-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 178, 0, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .ipcta-block-text {
    font-size: 18px;
  }
}

/* ===============================
   Blog / Press Links Alignment
   =============================== */

.blog-links-align blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.blog-links-align p {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #2b2b2b;
  margin: 24px 0;
  position: relative;
  top: 20px;
}

.blog-links-align a {
  color: #2f4fa0;
  text-decoration: none;
  font-weight: 600;
}


.blog-links-separator {
  margin: 0 10px;
  color: #999;
}

/* ===============================
    NAVBAR - Enhanced CAST Style
=============================== */
.navbar {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  position: relative;
}

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

.dropdown {
  position: relative;
  display: inline-block;
}

/* Main Menu Button */
.dropbtn {
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--dark);
  display: inline-block;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.dropbtn:hover {
  color: var(--brand);
  background: rgba(127, 195, 68, 0.05);
}

/* Hover Buffer (Prevents Vanishing Gap Issue) */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 15px;
  width: 100%;
}


/* ===============================
   DROPDOWN PANEL - Enhanced CAST Style
================================ */

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 380px;
  background: var(--bg-white);
  padding: 20px;
  border-radius: 0;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  border-top: 3px solid var(--brand);
  overflow: auto;
  max-height: 50vh;
}

/* Show Dropdown */
.dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
}

/* ===============================
   ACCORDION HEADINGS
================================ */

.accordion-title {
  width: 100%;
  background: none;
  border: none;
  text-align: left;

  font-size: 14px;
  font-weight: 600;

  /* Dark Navy Text */
  color: #162849;

  padding: 12px;
  cursor: pointer;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: 8px;
  transition: 0.2s ease;
}

/* Heading Hover (Soft Green Highlight) */
.accordion-title:hover {
  background: linear-gradient(135deg, #162845, #7fb200);
  color: #FFFFFF;
}

/* Arrow Icon */
.arrow {
  font-size: 13px;
  color: #162849;
  transition: transform 0.25s ease;
}

/* Hover Arrow */
.accordion-title:hover .arrow {
  color: #FFFFFF;
}

/* ===============================
   SUBMENU LINKS
================================ */

.accordion-content {
  list-style: none;
  padding-left: 20px;
  margin: 0;
  display: none;
}

.accordion-content li a {
  display: block;
  padding: 8px 12px;

  font-size: 14px;

  /* Navy Text */
  color: #162849;

  text-decoration: none;
  border-radius: 8px;

  transition: 0.2s ease;
}

/* Submenu Hover */
.accordion-content li a:hover {
  background: linear-gradient(135deg, #162845, #7fb200);
  color: #FFFFFF;
}

/* ===============================
   ACTIVE SECTION OPEN
================================ */

.accordion-item.active .accordion-content {
  display: block;
}

/* Rotate Arrow When Open */
.accordion-item.active .arrow {
  transform: rotate(180deg);
}

/* ===============================
   SIMPLE LINK DROPDOWNS (NO HEADINGS)
================================ */

.simple-links {
  list-style: none;
  margin: 0;
}

.simple-links li {
  margin: 6px 0; /* Space between links */
}

.simple-links li a {
  display: block;
  padding: 10px 12px; /* Extra spacing */

  font-size: 14px;
  font-weight: 500;

  color: #162849;
  text-decoration: none;

  border-radius: 8px;
  transition: 0.2s ease;
}

/* Hover Effect */
.simple-links li a:hover {
  background: linear-gradient(135deg, #162845, #7fb200);
  color: #FFFFFF;
}

/*
========================================
Slider
========================================
*/

.carousel-indicators [data-bs-target] {
  background-color: #0000004f;
}

.carousel-item {
  height: 467.5px; /* or whatever height you want */
}

/* Center image perfectly */
.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;      /* keeps aspect ratio */
  object-position: center; /* centers image */
}
.carousel-indicators [data-bs-target] {
  background-color: #0000004f;
}
.carousel-item {
  height: 70vh;
  min-height: 400px;
  position: relative;
}

.carousel-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(22, 40, 73, 0.3) 100%
  );
  pointer-events: none;
}

/* Search Box Design - Enhanced CAST Style */

/* Whole Search Box Container */
.headerSearchWrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 25px;
  height: 44px;
  width: 360px;
  padding: 0 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
}

.headerSearchWrap:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(127, 195, 68, 0.15);
}

/* Input Field */
.headerSearchInput {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: transparent;
}

/* Placeholder Style */
.headerSearchInput::placeholder {
  color: var(--text-light);
  font-size: 14px;
}

.headerSearchInput:focus::placeholder {
  color: var(--muted);
}

/* Search Icon Button */
.headerSearchIconBtn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

/* Hover Effect */
.headerSearchIconBtn:hover {
  color: var(--brand);
  background: rgba(127, 195, 68, 0.1);
}

.seach-input-container {
  display: flex;
  gap: 10px;
}



/* ===============================
   RESPONSIVE FIXES ONLY
   =============================== */

/* ---------- Large tablets & small laptops ---------- */
@media (max-width: 1200px) {
  .topbar {
    margin: 0 3rem;
  }

  .latest-container {
    padding: 20px 40px;
  }

  .cast-products {
    padding: 60px 40px;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 992px) {
  .topbar {
    margin: 0 1.5rem;
    justify-content: space-between;
  }

  .seach-input-container {
    gap: 8px;
  }

  .headerSearchWrap {
    width: 260px;
  }

  .navbar {
    padding: 12px 20px !important;
  }

  .carousel-item {
    height: 40vh;
  }
}

/* ---------- Small tablets ---------- */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 14px;
    margin: 0 1rem;
  }

  .seach-input-container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .headerSearchWrap {
    width: 100%;
    max-width: 380px;
  }

  .ipcta-block-button {
    padding: 12px 28px;
    font-size: 13px;
  }

  .container {
    max-width: 100%;
  }

  .carousel-item {
    height: 35vh;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 576px) {
  .navbar-logo {
    height: 42px;
  }

  .headerSearchWrap {
    height: 42px;
  }

  .headerSearchInput {
    font-size: 13px;
  }

  .ipcta-block-button {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  .carousel-item {
    height: 260px;
  }

  .latest-container {
    padding: 40px 16px !important;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 400px) {
  .headerSearchWrap {
    padding: 0 10px;
  }

  .headerSearchIconBtn svg {
    width: 18px;
    height: 18px;
  }

  .carousel-item {
    height: 220px;
  }
}

/* ===== MOBILE RESPONSIVE NAVBAR ===== */

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #162849;
  padding: 8px;
}

/* Mobile Mode */
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }

  .seach-input-container {
    width: 100%;
    order: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .headerSearchWrap {
    flex: 1;
    width: auto;
    margin: 0;
  }

  .navbar {
    display: block !important;
    padding: 0 !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid var(--brand);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  .navbar.active {
    max-height: 85vh;
    overflow-y: auto;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .logo {
    order: 1;
  }

  .ipcta-block-action {
    display: none; /* Hide on mobile to save space, or move to menu */
  }

  /* Hide Menu Initially */
  .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
  }

  /* Dropdown Items Full Width */
  .dropdown {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .dropbtn {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: none;
    text-align: left;
  }

  .dropbtn svg {
    transition: transform 0.3s;
  }

  .dropdown.active .dropbtn svg {
    transform: rotate(180deg);
  }

  /* Dropdown Panel Full Width */
  .dropdown-panel {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    display: none;
    border: none;
    background: #f9f9f9;
  }

  .dropdown.active .dropdown-panel {
    display: block;
  }

  .accordion-title {
    padding: 14px 30px;
    border-radius: 0;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
  }

  .accordion-content li a {
    padding: 12px 45px;
    border-radius: 0;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 36px;
  }
  
  .headerSearchWrap {
    height: 40px;
  }
}

footer ul li a:hover {
  color: #fff !important;
}

.dropbtn.active svg, .dropbtn:hover svg {
  fill: var(--brand);
}

.accordion-title:hover svg {
 fill: #FFFFFF;
}

/* Global animations and enhancements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  transition: background-color 0.3s ease;
  overflow: hidden;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}
/* 1. Hide the panel by default */
.cls-acc-panel {
    display: none;
    overflow: hidden;
}

/* 2. Show the panel ONLY when the parent item is active */
.cls-acc-item.active .cls-acc-panel {
    display: block;
}

/* 3. Optional: Rotate an icon if you have one */
.cls-acc-item.active .cls-acc-icon {
    transform: rotate(180deg);
}
.cls-acc-panel {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    display: block; /* Keep block but use height to hide */
    overflow: hidden;
}

.cls-acc-item.active .cls-acc-panel {
    max-height: 500px; /* Set to a value larger than your list */
    overflow: scroll;
}
/* Target the Home link and Main Tabs */
.active-li > a, 
.active-main > .dropbtn,
.active-main-text {
    color: #7fc344 !important;
}

/* Force dropdowns to stay open when active */
.active-main .dropdown-panel,
.active-main .simple-links {
    display: block !important;
}

/* Ensure sub-links in Company/Automotive are green */
.active-li a, .active-link {
    color: #7fc344 !important;
}
/* Ensure the SVG arrows in active tabs turn green */
.active-li svg path,
.active-main-text svg path {
    fill: #7fc344 !important;
}

/* Specifically for the Company dropdown sub-links */
.simple-links li.active-li a {
    color: #7fc344 !important;
}
