/* ==========================================================================
   Agri Infotech - Custom Enhancements & Pure Static Overrides
   ========================================================================== */

/* Topbar Enhancements */
.topbar {
  background-color: #111c55;
  color: #c7cbe2;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar a {
  color: #c7cbe2;
}
.topbar a:hover {
  color: #f8e510;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}
.topbar-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-info-item i {
  color: #2685f9;
}
.topbar-right-block {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.topbar-search-form {
  position: relative;
  max-width: 220px;
}
.topbar-search-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 30px 4px 15px;
  color: #fff;
  font-size: 12px;
  width: 100%;
}
.topbar-search-form input::placeholder {
  color: #a0a6c7;
}
.topbar-search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0a6c7;
  cursor: pointer;
  padding: 0;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 999;
  transition: all 0.3s ease;
}
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.35s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.header-main {
  padding: 15px 0;
}
.site-logo img {
  max-height: 70px;
  width: auto;
  display: block;
}

/* Menu styling */
.primary-nav .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav .menu > li {
  position: relative;
  margin-left: 24px;
}
.primary-nav .menu > li > a {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #222222;
  padding: 10px 0;
  text-transform: capitalize;
  transition: color 0.25s ease;
}
.primary-nav .menu > li:hover > a,
.primary-nav .menu > li.current-menu-item > a {
  color: #2685f9;
}
.primary-nav .menu > li.menu-item-has-children > a::after {
  content: "\f107";
  font-family: 'FontAwesome';
  margin-left: 6px;
  font-size: 12px;
}

/* Dropdowns */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1000;
  border-top: 3px solid #2685f9;
}
.primary-nav .menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 400;
  color: #444444;
  transition: all 0.2s ease;
}
.primary-nav .sub-menu li a:hover {
  color: #2685f9;
  background: #f7faff;
  padding-left: 24px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #111c55;
  cursor: pointer;
  padding: 5px;
  display: none;
}
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: inline-block;
  }
}

/* Off-Canvas Panel
   Scoped to #menu-sidebar-panel so it wins over the theme's
   .delaware-off-canvas-panel rules in style.css (white header, 475px width). */
#menu-sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #111c55;
  color: #ffffff;
  z-index: 100000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 30px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1), visibility 0.35s;
}
#menu-sidebar-panel.active {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}
.delaware-off-canvas-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
}
body.off-canvas-open {
  overflow: hidden;
}
#menu-sidebar-panel .widget-panel-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 15px;
  margin: 0;
  background: #111c55;
  z-index: 2;
}
#menu-sidebar-panel .close-canvas-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 28px;
  text-decoration: none;
  line-height: 1;
}
#menu-sidebar-panel .close-canvas-panel:hover {
  color: #f8e510;
}
#menu-sidebar-panel .widget-panel-content {
  padding: 0 22px;
}
#menu-sidebar-panel .widget-panel-content img {
  max-width: 100%;
  height: auto;
}
#menu-sidebar-panel .menu,
#menu-sidebar-panel .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#menu-sidebar-panel .menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  margin: 0;
}
#menu-sidebar-panel .menu li a {
  display: block;
  padding: 13px 0;
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
#menu-sidebar-panel .menu li a:hover,
#menu-sidebar-panel .menu li.open > a {
  color: #f8e510;
}
#menu-sidebar-panel .menu li a .fa {
  float: right;
  font-size: 18px;
  transition: transform 0.25s ease;
}
#menu-sidebar-panel .menu li.open > a .fa {
  transform: rotate(180deg);
}
#menu-sidebar-panel .sub-menu {
  display: none;
  padding: 4px 0 8px 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}
#menu-sidebar-panel .sub-menu li a {
  font-size: 14px;
  font-weight: 400;
  padding: 9px 10px;
  color: #d3d9ef;
}
#menu-sidebar-panel .widget-panel-content p {
  color: #c7cbe2;
  word-break: break-word;
}

/* Hero Banner Slider */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background: #111c55;
}
.hero-slide {
  position: relative;
  min-height: 580px;
  display: flex !important;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(17, 28, 85, 0.85) 0%, rgba(17, 28, 85, 0.5) 60%, rgba(17, 28, 85, 0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 60px 0;
  max-width: 750px;
}
.hero-subtitle {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #f8e510;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 18px;
  color: #e0e4f5;
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-btn {
  display: inline-block;
  background: #2685f9;
  color: #ffffff;
  padding: 14px 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(38, 133, 249, 0.35);
}
.hero-btn:hover {
  background: #f8e510;
  color: #111c55;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 229, 16, 0.4);
}

/* Slick slider controls */
.hero-slider .slick-prev,
.hero-slider .slick-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s ease;
}
.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
  background: #2685f9;
}
.hero-slider .slick-prev {
  left: 30px;
}
.hero-slider .slick-next {
  right: 30px;
}
.hero-slider .slick-dots {
  bottom: 25px;
}
.hero-slider .slick-dots li button::before {
  color: #ffffff;
  font-size: 12px;
  opacity: 0.5;
}
.hero-slider .slick-dots li.slick-active button::before {
  color: #f8e510;
  opacity: 1;
}

/* 3-Box Strip under slider */
.feature-boxes-row {
  margin-top: -50px;
  position: relative;
  z-index: 20;
}
.feature-box-col {
  padding: 35px 30px;
  color: #ffffff;
  min-height: 160px;
  transition: transform 0.3s ease;
}
.feature-box-col:hover {
  transform: translateY(-5px);
}
.feature-box-col h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff;
}
.feature-box-col p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.box-blue {
  background-color: #2685f9;
}
.box-dark {
  background-color: #111c55;
}
.box-yellow {
  background-color: #f8e510;
  color: #111c55;
}
.box-yellow h4 {
  color: #111c55;
}

/* Page Header / Banner */
.page-header-banner {
  background-color: #111c55;
  background-size: cover;
  background-position: center center;
  padding: 65px 0;
  position: relative;
  color: #ffffff;
}
.page-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 28, 85, 0.78);
}
.page-header-content {
  position: relative;
  z-index: 2;
}
.page-header-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}
.page-breadcrumbs {
  font-size: 14px;
  color: #b9c1d9;
}
.page-breadcrumbs a {
  color: #f8e510;
  text-decoration: none;
}
.page-breadcrumbs span {
  margin: 0 8px;
  color: #6a7495;
}

/* Section styling */
.section-padding {
  padding: 80px 0;
}
.section-title-wrap {
  margin-bottom: 45px;
}
.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2685f9;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #111c55;
  margin: 0 0 15px;
  position: relative;
}
.section-title.underline-blue::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #2685f9;
  margin-top: 12px;
}
.section-title.text-center.underline-blue::after {
  margin-left: auto;
  margin-right: auto;
}

/* Service & Product Cards */
.item-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  border: 1px solid #edf1f7;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
}
.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.item-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.item-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.item-card:hover .item-card-image img {
  transform: scale(1.06);
}
.item-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.item-card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #111c55;
}
.item-card-title a {
  color: #111c55;
  text-decoration: none;
  transition: color 0.2s;
}
.item-card-title a:hover {
  color: #2685f9;
}
.item-card-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.item-card-link {
  font-weight: 600;
  font-size: 13px;
  color: #2685f9;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.item-card-link:hover {
  color: #111c55;
}

/* Delaware Icon Boxes */
.delaware-icon-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.delaware-icon-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.delaware-icon-box .box-icon {
  margin-bottom: 20px;
  display: inline-block;
}
.delaware-icon-box .box-icon svg {
  width: 50px;
  height: 50px;
  fill: #f8e510;
}
.delaware-icon-box h4 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
}
.delaware-icon-box p {
  color: #b9c1d9;
  font-size: 14px;
  line-height: 1.6;
}

/* Call to Action Banner */
.cta-banner {
  background-size: cover;
  background-position: center center;
  position: relative;
  padding: 70px 0;
  color: #ffffff;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 28, 85, 0.82);
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #dedede;
}
.cta-btn {
  display: inline-block;
  background: #f8e510;
  color: #111c55;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #2685f9;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Testimonial Cards */
.testimonial-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 15px;
  position: relative;
}
.testimonial-card::before {
  content: "\f10d";
  font-family: 'FontAwesome';
  font-size: 32px;
  color: #e5edf9;
  position: absolute;
  top: 25px;
  right: 25px;
}
.testimonial-text {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author h5 {
  font-size: 17px;
  font-weight: 600;
  color: #111c55;
  margin: 0;
}
.testimonial-author span {
  font-size: 13px;
  color: #2685f9;
}

/* Forms */
.form-group label {
  font-weight: 500;
  font-size: 14px;
  color: #333333;
  margin-bottom: 6px;
}
.form-control {
  border-radius: 4px;
  border: 1px solid #dce2ec;
  padding: 12px 16px;
  height: auto;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: #2685f9;
  box-shadow: 0 0 0 3px rgba(38, 133, 249, 0.15);
}
.btn-primary-custom {
  background: #2685f9;
  color: #ffffff;
  border: none;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  background: #111c55;
  color: #ffffff;
}

/* Sidebar Widget Styles */
.sidebar-widget {
  background: #f7faff;
  padding: 30px;
  border-radius: 6px;
  margin-bottom: 30px;
  border: 1px solid #e7edf7;
}
.sidebar-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #111c55;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: #2685f9;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-menu li {
  border-bottom: 1px solid #e1e7f2;
}
.sidebar-menu li:last-child {
  border-bottom: none;
}
.sidebar-menu li a {
  display: block;
  padding: 10px 0;
  color: #444444;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.sidebar-menu li a:hover,
.sidebar-menu li.active a {
  color: #2685f9;
  padding-left: 8px;
}

/* Download box */
.download-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-box i {
  font-size: 24px;
  color: #2685f9;
}
.download-box-text h6 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111c55;
}
.download-box-text span {
  font-size: 12px;
  color: #777777;
}

/* Accordion (FAQ) */
.accordion-item {
  border: 1px solid #e5ecf6;
  border-radius: 6px;
  margin-bottom: 15px;
  background: #ffffff;
  overflow: hidden;
}
.accordion-header {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  transition: background 0.25s ease;
}
.accordion-header:hover {
  background: #f7faff;
}
.accordion-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111c55;
}
.accordion-header i {
  font-size: 14px;
  color: #2685f9;
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 0 22px 20px;
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
  display: none;
}
.accordion-item.active .accordion-content {
  display: block;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  height: 240px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Footer */
.footer-wrapper {
  background-color: #111c55;
  background-image: url('../images/service-bg.jpg');
  background-size: cover;
  background-position: center center;
  color: #b9c1d9;
  position: relative;
}
.footer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 28, 85, 0.94);
}
.footer-widgets {
  position: relative;
  z-index: 2;
  padding: 70px 0 40px;
}
.footer-widget-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}
.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: #2685f9;
}
.footer-contact-item {
  display: flex;
  margin-bottom: 18px;
  gap: 15px;
}
.footer-contact-item i {
  color: #f8e510;
  font-size: 16px;
  margin-top: 4px;
}
.footer-contact-item h6 {
  color: #ffffff;
  font-size: 14px;
  margin: 0 0 4px;
  font-weight: 600;
}
.footer-contact-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links li a {
  color: #b9c1d9;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-links li a:hover {
  color: #f8e510;
  padding-left: 5px;
}
.footer-newsletter-form {
  position: relative;
  margin-top: 15px;
}
.footer-newsletter-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px 15px;
  color: #ffffff;
  font-size: 14px;
}
.footer-newsletter-form button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  background: #2685f9;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.footer-newsletter-form button:hover {
  background: #f8e510;
  color: #111c55;
}
.footer-social-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.25s ease;
}
.footer-social-links a:hover {
  background: #2685f9;
  transform: translateY(-2px);
}

/* Footer Copyright */
.footer-copyright-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 13px;
}
.footer-copyright-bar p {
  color: #b9c1d9;
}
.footer-copyright-bar a {
  color: #f8e510;
}
.footer-copyright-bar a:hover {
  color: #ffffff;
}
.footer-logo-center img {
  max-height: 45px;
  display: block;
  margin: 0 auto;
}

/* Back to Top */
.backtotop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #2685f9;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.backtotop.show-scroll {
  opacity: 1;
  visibility: visible;
}
.backtotop:hover {
  background: #f8e510;
  color: #111c55;
  transform: translateY(-3px);
}

/* Responsive adjustments */
body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, h5, h6, p, a, li, span, strong {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* style.css zeroes .container padding, so Bootstrap rows (-15px margins)
   spill past the screen on tablets/phones. Restore the gutter. */
@media (max-width: 1199px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .container .container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 991px) {
  .container {
    width: 100%;
  }
  .hero-slide {
    min-height: 480px;
  }
  .hero-title {
    font-size: 34px;
  }
  .feature-boxes-row {
    margin-top: 20px;
  }
  .feature-box-col {
    margin-bottom: 15px;
  }
  .site-menu {
    display: none;
  }
  .page-header-title {
    font-size: 30px;
  }
  .section-title {
    font-size: 30px;
  }
  .footer-copyright-bar .row > div,
  .footer-copyright-bar .text-right {
    text-align: center;
  }
  .footer-copyright-bar p {
    margin: 6px 0 !important;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  /* Topbar: stack the contact lines and keep them readable */
  .topbar {
    font-size: 12px;
    padding: 8px 0;
  }
  .topbar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .topbar-info-item {
    align-items: flex-start;
    line-height: 1.5;
  }
  .topbar-info-item i {
    margin-top: 3px;
  }

  /* Header */
  .header-main {
    padding: 10px 0;
  }
  .site-logo img {
    max-height: 48px;
    max-width: 100%;
  }
  .mobile-nav-toggle {
    font-size: 26px;
  }

  /* Hero */
  .hero-slide {
    min-height: 420px;
  }
  .hero-content {
    padding: 50px 0 60px;
  }
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-text {
    font-size: 15px;
  }
  .hero-btn {
    padding: 12px 22px;
    font-size: 13px;
  }
  .hero-slider .slick-prev,
  .hero-slider .slick-next {
    display: none !important;
  }
  .hero-slide::before {
    background: rgba(17, 28, 85, 0.75);
  }

  /* Page banner */
  .page-header-banner {
    padding: 40px 0;
  }
  .page-header-title {
    font-size: 26px;
    line-height: 1.3;
  }
  .page-breadcrumbs {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Sections & headings */
  .section-padding {
    padding: 50px 0;
  }
  .section-title-wrap {
    margin-bottom: 30px;
  }
  .section-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .section-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .cta-banner {
    padding: 50px 0;
  }
  .cta-title {
    font-size: 22px;
    line-height: 1.4;
  }
  h3[style*="font-size: 38px"] {
    font-size: 30px !important;
  }

  /* Justified text leaves big gaps on narrow screens */
  [style*="text-align: justify"] {
    text-align: left !important;
  }

  /* Cards & boxes */
  .item-card {
    height: auto;
  }
  .item-card-image {
    height: 200px;
  }
  .item-card-body,
  .feature-box-col {
    padding: 22px 20px;
  }
  .feature-box-col {
    min-height: 0;
  }
  [style*="padding: 40px 35px"] {
    padding: 28px 20px !important;
  }
  .testimonial-card {
    margin: 10px 0;
    padding: 28px 20px;
  }
  .sidebar-widget {
    padding: 22px 18px;
  }
  .download-box {
    flex-wrap: wrap;
    gap: 10px;
  }
  .accordion-header {
    padding: 15px 16px;
    gap: 12px;
  }
  .accordion-header h5 {
    font-size: 15px;
    line-height: 1.4;
  }
  .accordion-content {
    padding: 0 16px 16px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item {
    height: 220px;
  }
  .btn-primary-custom,
  .cta-btn {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
  }

  /* Footer */
  .footer-widgets {
    padding: 50px 0 20px;
  }
  .footer-widgets [class*="col-"] {
    margin-bottom: 25px;
  }
  .footer-newsletter-form button {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
  }
  .footer-logo-center {
    margin: 15px 0;
  }

  .backtotop {
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 23px;
  }
  .page-header-title {
    font-size: 23px;
  }
  .section-title {
    font-size: 22px;
  }
}
