

/* Simple Triangular Arrows - Top Positioned (Like Reference Image) */

/* Remove default Bootstrap arrow background */
#asphaltCarousel .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next-icon {
  background-image: none !important;
}

/* Position arrows at top right */
#asphaltCarousel .carousel-control-prev,
#asphaltCarousel .carousel-control-next {
  position: absolute;
  top: -60px;
  width: 40px;
  height: 40px;
  opacity: 1;
  bottom: auto;
  background: none;
}

#asphaltCarousel .carousel-control-prev {
  left: auto;
  right: 60px;
}

#asphaltCarousel .carousel-control-next {
  right: 10px;
}

/* Create simple triangular arrows using CSS borders */
#asphaltCarousel .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next-icon {
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.2s ease;
}

/* Left arrow (pointing left) */
#asphaltCarousel .carousel-control-prev-icon {
  border-width: 20px 30px 20px 0;
  border-color: transparent rgba(227, 30, 36, 1) transparent transparent;
}

/* Right arrow (pointing right) */
#asphaltCarousel .carousel-control-next-icon {
  border-width: 20px 0 20px 30px;
  border-color: transparent transparent transparent rgba(227, 30, 36, 1);
}

/* Hover effect - darker red */
#asphaltCarousel .carousel-control-prev:hover .carousel-control-prev-icon {
  border-color: transparent rgba(180, 26, 29, 1) transparent transparent;
}

#asphaltCarousel .carousel-control-next:hover .carousel-control-next-icon {
  border-color: transparent transparent transparent rgba(180, 26, 29, 1);
}

/* Optional: Add slight scale effect on hover */
#asphaltCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  /* Move to sides on tablet */
  #asphaltCarousel .carousel-control-prev,
  #asphaltCarousel .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
  }
  
  #asphaltCarousel .carousel-control-prev {
    left: -50px;
    right: auto;
  }
  
  #asphaltCarousel .carousel-control-next {
    right: -50px;
  }
}

@media (max-width: 767px) {
  /* Smaller arrows on mobile, positioned inside */
  #asphaltCarousel .carousel-control-prev {
    left: 5px;
  }
  
  #asphaltCarousel .carousel-control-next {
    right: 5px;
  }
  
  /* Smaller triangles */
  #asphaltCarousel .carousel-control-prev-icon {
    border-width: 15px 22px 15px 0;
  }
  
  #asphaltCarousel .carousel-control-next-icon {
    border-width: 15px 0 15px 22px;
  }
}

@media (max-width: 576px) {
  /* Even smaller on very small screens */
  #asphaltCarousel .carousel-control-prev-icon {
    border-width: 12px 18px 12px 0;
  }
  
  #asphaltCarousel .carousel-control-next-icon {
    border-width: 12px 0 12px 18px;
  }
}

.contacts-section {
  position: relative;
  padding: 0;
  background-image: url('https://gilmera.aiva9001.com/shop_CI3/data/img/Section.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Dark overlay layer */
.contacts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1;
}

/* Ensure content appears above overlay */
.contacts-section .container {
  position: relative;
  z-index: 2;
}

.contacts-section .row {
  position: relative;
  z-index: 2;
}

/* Semi-transparent backgrounds for content boxes */
.contacts-section .col-md-6:first-child {
  background-color: rgba(0, 0, 0, 0.6);
}

.contacts-section .col-md-6.bg-light {
  background-color: rgba(234, 234, 234, 0.95) !important;
}

.bg-black .carousel-item {
  height: 100%;
  min-height: auto !important;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.wrapper, .main-content {
  flex: 1 0 auto;
	margin-top:50px !important;
}

footer {
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE HOMEPAGE STYLES
   ======================================== */

/* Base Styles */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.wrapper, .main-content {
  flex: 1 0 auto;
  margin-top: 50px !important;
}

footer {
  flex-shrink: 0;
}

/* ========================================
   CAROUSEL / HERO SECTION
   ======================================== */

.carousel-item {
  min-height: 400px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ========================================
   CONTACT INFO SECTION (Top)
   ======================================== */

.container .row .col-12 b {
  font-size: 1.1rem;
}

.col-6 .mt-3,
.col-6 .mt-2 {
  display: flex;
  align-items: flex-start;
}

.red-icon {
  color: rgba(227, 30, 36, 1);
  min-width: 20px;
}

/* ========================================
   ASPHALT CAROUSEL SECTION
   ======================================== */

.bg-black {
  background-color: #000000;
}

.bg-black .carousel-item {
  height: 100%;
  min-height: auto !important;
}

.bg-black h2 {
  font-size: 2rem;
  font-weight: bold;
}

/* Ensure carousel has positioning context for absolute arrows */
#asphaltCarousel {
  position: relative;
  padding-top: 0;
}

/* Product Cards */
.bg-black .col-lg-3 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.buy-button {
  display: inline-block;
  background-color: rgba(227, 30, 36, 1);
  color: white;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.buy-button:hover {
  background-color: rgba(180, 26, 29, 1);
  color: white;
  text-decoration: none;
}

/* Carousel Controls - Desktop (Top Right) */
#asphaltCarousel .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next-icon {
  background-image: none !important;
}

#asphaltCarousel .carousel-control-prev,
#asphaltCarousel .carousel-control-next {
  position: absolute;
  top: -60px;
  width: 40px;
  height: 40px;
  opacity: 1;
  bottom: auto;
  background: none;
}

#asphaltCarousel .carousel-control-prev {
  left: auto;
  right: 60px;
}

#asphaltCarousel .carousel-control-next {
  right: 10px;
}

/* Triangular Arrows */
#asphaltCarousel .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next-icon {
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.2s ease;
}

#asphaltCarousel .carousel-control-prev-icon {
  border-width: 20px 30px 20px 0;
  border-color: transparent rgba(227, 30, 36, 1) transparent transparent;
}

#asphaltCarousel .carousel-control-next-icon {
  border-width: 20px 0 20px 30px;
  border-color: transparent transparent transparent rgba(227, 30, 36, 1);
}

#asphaltCarousel .carousel-control-prev:hover .carousel-control-prev-icon {
  border-color: transparent rgba(180, 26, 29, 1) transparent transparent;
}

#asphaltCarousel .carousel-control-next:hover .carousel-control-next-icon {
  border-color: transparent transparent transparent rgba(180, 26, 29, 1);
}

#asphaltCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#asphaltCarousel .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1);
}

/* ========================================
   CONTACTS SECTION
   ======================================== */

.contacts-section {
  position: relative;
  padding: 0;
  background-image: url('https://gilmera.aiva9001.com/shop_CI3/data/img/Section.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.contacts-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.contacts-section .container {
  position: relative;
  z-index: 2;
}

.contacts-section .row {
  position: relative;
  z-index: 2;
  margin-left: 0;
  margin-right: 0;
}

.contacts-section .col-md-6:first-child {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3rem;
}

.contacts-section .col-md-6.bg-light {
  background-color: rgba(234, 234, 234, 0.95) !important;
  padding: 3rem;
}

.send-button {
  display: inline-block;
  background-color: rgba(227, 30, 36, 1);
  color: white;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.send-button:hover {
  background-color: rgba(180, 26, 29, 1);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large Tablets and Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
  .bg-black h2 {
    font-size: 1.75rem;
  }
  
  .carousel-item {
    min-height: 350px;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  /* Carousel Controls - Keep at Top */
  #asphaltCarousel .carousel-control-prev,
  #asphaltCarousel .carousel-control-next {
    top: -60px;
    transform: none;
  }
  
  #asphaltCarousel .carousel-control-prev {
    left: auto;
    right: 60px;
  }
  
  #asphaltCarousel .carousel-control-next {
    right: 10px;
  }
  
  /* Hero Carousel */
  .carousel-item {
    min-height: 300px;
  }
  
  /* Contact Info Section */
  .container .row .col-12 b {
    font-size: 1rem;
  }
  
  /* Product Cards - 2 per row on tablet */
  .bg-black .col-lg-3 {
    margin-bottom: 2rem !important;
  }
  
  /* Contacts Section */
  .contacts-section h3 {
    font-size: 1.5rem;
  }
  
  .contacts-section .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 2.5rem !important;
  }
  
  .contacts-section .col-md-6:first-child {
    padding-bottom: 2.5rem !important;
  }
  
  .contacts-section .col-md-6.bg-light {
    padding-top: 2.5rem !important;
  }

}

/* Mobile Landscape and Small Tablets (576px - 767px) */
@media (max-width: 767px) {
  /* General Spacing */
  .pt-4, .pb-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .pt-5, .pb-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Hero Carousel */
  .carousel-item {
    min-height: 250px;
  }
  
  /* Top Contact Section - Stack Columns */
  .container .row .col-6 {
    
    max-width: 100%;
  }
  
  .container .row .col-6:first-of-type {
    margin-bottom: 1rem;
  }
  
  /* Asphalt Section */
  .bg-black h2 {
    font-size: 1.5rem;
  }
  
  /* Carousel Controls - Keep at Top, Adjust Position */
  #asphaltCarousel .carousel-control-prev,
  #asphaltCarousel .carousel-control-next {
    top: -50px;
  }
  
  #asphaltCarousel .carousel-control-prev {
    left: auto;
    right: 50px;
  }
  
  #asphaltCarousel .carousel-control-next {
    right: 5px;
  }
  
  #asphaltCarousel .carousel-control-prev-icon {
    border-width: 15px 22px 15px 0;
  }
  
  #asphaltCarousel .carousel-control-next-icon {
    border-width: 15px 0 15px 22px;
  }
  
  /* Product Cards */
  .bg-black .col-lg-3 {
    margin-bottom: 2rem !important;
  }
  
  .bg-black .col-lg-3 b {
    font-size: 0.95rem;
  }
  
  .bg-black .col-lg-3 p {
    font-size: 0.9rem;
  }
  
  /* Contacts Section */
  .contacts-section .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 2rem !important;
  }
  
  .contacts-section .col-md-6:first-child {
    min-height: auto;
  }
  
  .contacts-section h3 {
    font-size: 1.3rem;
  }
  
  .contacts-section .mb-3 {
    font-size: 0.9rem;
  }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 576px) {
  /* General Spacing */
  .wrapper, .main-content {
    margin-top: 30px !important;
  }
  
  .pt-4, .pb-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .pt-5, .pb-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Hero Carousel */
  .carousel-item {
    min-height: 200px;
  }
  
  /* Top Contact Info */
  .container .row .col-12 b {
    font-size: 0.95rem;
  }
  
  .col-6 .mt-3,
  .col-6 .mt-2 {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .red-icon {
    margin-bottom: 0.25rem;
  }
  
  /* Asphalt Section */
  .bg-black h2 {
    font-size: 1.25rem;
  }
  
  /* Carousel Controls - Extra Small, Keep at Top */
  #asphaltCarousel .carousel-control-prev,
  #asphaltCarousel .carousel-control-next {
    top: -45px;
    width: 35px;
    height: 35px;
  }
  
  #asphaltCarousel .carousel-control-prev {
    right: 45px;
  }
  
  #asphaltCarousel .carousel-control-next {
    right: 5px;
  }
  
  #asphaltCarousel .carousel-control-prev-icon {
    border-width: 12px 18px 12px 0;
  }
  
  #asphaltCarousel .carousel-control-next-icon {
    border-width: 12px 0 12px 18px;
  }
  
  /* Product Cards */
  .bg-black .col-lg-3 img {
    margin-bottom: 0.75rem;
  }
  
  .bg-black .col-lg-3 b {
    font-size: 0.9rem;
  }
  
  .bg-black .col-lg-3 p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .buy-button {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  
  /* Contacts Section */
  .contacts-section .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 1.5rem !important;
  }
  
  .contacts-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
  }
  
  .contacts-section p,
  .contacts-section .mb-3 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem !important;
  }
  
  .contacts-section .d-flex .mb-3 {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Form Elements */
  .contacts-section .form-control {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .send-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
  .carousel-item {
    min-height: 180px;
  }
  
  .bg-black h2 {
    font-size: 1.1rem;
  }
  
  .contacts-section h3 {
    font-size: 1rem;
  }
  
  .col-6 .mt-3,
  .col-6 .mt-2 {
    font-size: 0.8rem;
  }
}

/* ========================================
   HEADER NAVIGATION - RESPONSIVE STYLES
   Gilmera Design - Black Background
   ======================================== */

/* Base Header Styles */
.h2-nav {
  position: relative;
  z-index: 1000;
  background-color: rgb(0, 0, 0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.h2-nav .navbar-brand img {
  transition: height 0.3s ease;
  height: 50px;
}

/* Ensure proper spacing for collapsed menu */
.h2-nav .navbar-collapse {
  transition: all 0.3s ease;
}

/* Main Navigation Items */
.h2-nav .navbar-nav .nav-item {
  position: relative;
  margin: 0 20px;
}

.h2-nav .navbar-nav .nav-link {
  padding: 12px 0px;
  position: relative;
  transition: color 0.3s ease;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9em;
}

.h2-nav .navbar-nav .nav-link:hover {
  color: #cccccc;
  border: none;
}

.h2-nav .navbar-nav .nav-link:active {
  color: #cccccc;
  border: none;
}

/* Underline animation for desktop */
.h2-nav .underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: rgb(227, 30, 36);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.h2-nav .nav-link:hover .underline {
  width: 80%;
}

/* Dropdown Menus - Desktop */
.h2-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.175);
  border-radius: 0;
  margin-top: -25px;
  background-color: #ffffff;
}

.h2-nav .dropdown-item {
  padding: 8px 1rem;
  color: #353535;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.h2-nav .dropdown-item:hover {
  background-color: #ebebeb;
  color: #353535;
  padding-left: 1.5rem;
}

.h2-nav .dropdown-item:active {
  background-color: #ebebeb;
}

/* Right Side Menu Items */
.h2-nav .ml-auto .nav-item {
  display: flex;
  align-items: center;
}

.h2-nav .ml-auto .nav-link {
  font-size: 1.2rem;
  padding: 0.5rem 0.75rem;
  color: #ffffff;
}

.h2-nav .ml-auto .nav-link i {
  transition: transform 0.3s ease;
  color: #ffffff;
}

.h2-nav .ml-auto .nav-link:hover i {
  transform: scale(1.2);
}

/* Language Switcher Styles */
.h2-nav .dropdown-menu-right {
  right: 0;
  left: auto;
}

.h2-nav .dropdown-item.active {
  background-color: rgb(227, 30, 36);
  color: white;
}

.h2-nav .dropdown-item img {
  vertical-align: middle;
}

/* ========================================
   IMPROVED NAVBAR TOGGLER (HAMBURGER BUTTON)
   ======================================== */
.h2-nav .navbar-toggler {
  border: none;
  padding: 0.5rem;
  background-color: transparent;
  position: relative;
  width: 45px;
  height: 40px;
  transition: all 0.3s ease;
}

.h2-nav .navbar-toggler:hover {
  background-color: rgba(227, 30, 36, 0.1);
}

.h2-nav .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Hide the default icon */
.h2-nav .navbar-toggler i {
  display: none;
}

/* Create custom hamburger bars */
.h2-nav .navbar-toggler::before,
.h2-nav .navbar-toggler::after,
.h2-nav .navbar-toggler span {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background-color: rgb(227, 30, 36);
  margin: 5px auto;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.h2-nav .navbar-toggler span {
  opacity: 1;
}

/* Animated hamburger when menu is open */
.h2-nav .navbar-toggler[aria-expanded="true"]::before {
  transform: translateY(8px) rotate(45deg);
}

.h2-nav .navbar-toggler[aria-expanded="true"] span {
  opacity: 0;
}

.h2-nav .navbar-toggler[aria-expanded="true"]::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Add the middle bar as a span element (needs to be added to HTML or done via JS) */
.h2-nav .navbar-toggler-icon {
  display: none;
}

/* ========================================
   DESKTOP LARGE (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .h2-nav .navbar-nav .nav-link {
    padding: 12px 0px;
  }
  
  .h2-nav .navbar-brand img {
    height: 55px;
  }
}

/* ========================================
   LAPTOP/DESKTOP (992px - 1199px)
   ======================================== */
@media (max-width: 1199px) {
  .h2-nav .navbar-nav .nav-item {
    margin: 0 15px;
  }
  
  .h2-nav .navbar-nav .nav-link {
    padding: 12px 0px;
    font-size: 0.85rem;
  }
  
  .h2-nav .navbar-brand img {
    height: 50px;
  }
}

/* ========================================
   TABLET (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
  /* Stack navigation items */
  .h2-nav .navbar-collapse {
    background-color: rgb(0, 0, 0);
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 2px solid rgb(227, 30, 36);
  }
  
  /* Full width navigation items */
  .h2-nav .navbar-nav {
    width: 100%;
  }
  
  .h2-nav .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid #333;
    margin: 0;
  }
  
  .h2-nav .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
  }
  
  /* Hide desktop underline animation on mobile */
  .h2-nav .underline {
    display: none;
  }
  
  /* Dropdown menus on mobile */
  .h2-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    background-color: #1a1a1a;
    display: none;
  }
  
  .h2-nav .dropdown.show .dropdown-menu {
    display: block;
  }
  
  .h2-nav .dropdown-item {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    color: #cccccc;
    background-color: #1a1a1a;
  }
  
  .h2-nav .dropdown-item:hover {
    background-color: #2a2a2a;
    color: #ffffff;
  }
  
  /* Right side menu - keep inline on tablet */
  .h2-nav .ml-auto {
    flex-direction: row !important;
    width: auto;
    border-top: 2px solid rgb(227, 30, 36);
    margin-top: 1rem;
    padding-top: 1rem;
    justify-content: center;
  }
  
  .h2-nav .ml-auto .nav-item {
    border-bottom: none;
    width: auto;
  }
  
  .h2-nav .ml-auto .nav-link {
    padding: 0.5rem 1rem;
  }
  
  /* Language dropdown - FIXED to work inside mobile menu */
  .h2-nav .ml-auto .dropdown {
    position: static;
  }
  
  .h2-nav .ml-auto .dropdown-menu {
    position: absolute !important;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    left: auto !important;
    right: 0 !important;
    top: 100% !important;
    transform: none !important;
  }
  
  .h2-nav .ml-auto .dropdown-item {
    color: #353535;
    background-color: #ffffff;
  }
  
  .h2-nav .ml-auto .dropdown-item:hover {
    background-color: #ebebeb;
    color: #353535;
  }
  
  /* Logo adjustment */
  .h2-nav .navbar-brand img {
    height: 45px;
  }
  
  /* Hamburger button size */
  .h2-nav .navbar-toggler {
    width: 40px;
    height: 36px;
  }
  
  .h2-nav .navbar-toggler::before,
  .h2-nav .navbar-toggler::after,
  .h2-nav .navbar-toggler span {
    width: 26px;
  }
}

/* ========================================
   MOBILE LANDSCAPE (576px - 767px)
   ======================================== */
@media (max-width: 767px) {
  .h2-nav .navbar-brand img {
    height: 42px;
  }
  
  .h2-nav .navbar-nav .nav-link {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  
  .h2-nav .dropdown-item {
    padding: 0.65rem 1.75rem;
    font-size: 0.85rem;
  }
  
  .h2-nav .ml-auto .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
  }
  
  /* Adjust container padding */
  .h2-nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hamburger button */
  .h2-nav .navbar-toggler {
    width: 38px;
    height: 34px;
  }
  
  .h2-nav .navbar-toggler::before,
  .h2-nav .navbar-toggler::after,
  .h2-nav .navbar-toggler span {
    width: 24px;
  }
}

/* ========================================
   MOBILE PORTRAIT (up to 575px)
   ======================================== */
@media (max-width: 575px) {
  /* Tighter spacing for mobile */
  .h2-nav .navbar-brand {
    padding-right: 0.5rem;
  }
  
  .h2-nav .navbar-brand img {
    height: 38px;
  }
  
  .h2-nav .navbar-collapse {
    padding: 0.75rem 0;
    margin-top: 0.75rem;
  }
  
  .h2-nav .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .h2-nav .dropdown-item {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
  
  /* Right side menu adjustments */
  .h2-nav .ml-auto {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .h2-nav .ml-auto .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }
  
  .h2-nav .ml-auto .nav-link i {
    font-size: 1rem;
  }
  
  /* Language flag sizing */
  .h2-nav .ml-auto .nav-link img {
    height: 18px;
  }
  
  .h2-nav .dropdown-item img {
    height: 16px;
  }
  
  /* Hamburger button */
  .h2-nav .navbar-toggler {
    width: 36px;
    height: 32px;
  }
  
  .h2-nav .navbar-toggler::before,
  .h2-nav .navbar-toggler::after,
  .h2-nav .navbar-toggler span {
    width: 22px;
    height: 2.5px;
  }
  
  .h2-nav .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (up to 400px)
   ======================================== */
@media (max-width: 400px) {
  .h2-nav .navbar-brand img {
    height: 35px;
  }
  
  .h2-nav .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .h2-nav .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
  }
  
  .h2-nav .ml-auto .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .h2-nav .ml-auto .nav-link i {
    font-size: 0.9rem;
  }
  
  .h2-nav .navbar-toggler {
    width: 34px;
    height: 30px;
  }
  
  .h2-nav .navbar-toggler::before,
  .h2-nav .navbar-toggler::after,
  .h2-nav .navbar-toggler span {
    width: 20px;
  }
}

/* ========================================
   MOBILE DROPDOWN TOGGLE ENHANCEMENT
   ======================================== */
@media (max-width: 991px) {
  /* Add toggle icon for mobile dropdowns (not for language dropdown) */
  .h2-nav .navbar-nav:not(.ml-auto) .dropdown > .nav-link::after {
    content: '\f107'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #ffffff;
  }
  
  .h2-nav .navbar-nav:not(.ml-auto) .dropdown.show > .nav-link::after {
    transform: rotate(180deg);
  }
  
  /* Mobile dropdown activation */
  .h2-nav .navbar-nav:not(.ml-auto) .dropdown > .nav-link {
    cursor: pointer;
  }
}

/* ========================================
   ACCESSIBILITY & INTERACTIONS
   ======================================== */

/* Focus states */
.h2-nav .nav-link:focus,
.h2-nav .dropdown-item:focus {
  outline: 2px solid rgba(227, 30, 36, 0.5);
  outline-offset: 2px;
}

/* Active states */
.h2-nav .nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* Smooth scrolling for jump links */
html {
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* ========================================
   OPTIONAL ENHANCEMENTS
   ======================================== */

/* Sticky Header (Optional) */
.h2-nav.sticky {
  position: sticky;
  top: 0;
}

/* Shrink on Scroll (Optional) */
.h2-nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.h2-nav.scrolled .navbar-brand img {
  height: 40px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .h2-nav {
    display: none;
  }
}

/* ========================================
   DESKTOP HOVER DROPDOWN POSITIONING
   ======================================== */
@media (min-width: 992px) {
  .h2-nav .navbar-nav .dropdown-menu {
    position: absolute;
    margin-top: 0px;
  }
}
/* ========================================
   CATEGORY PAGE - COMPLETE RESPONSIVE STYLES
   Includes Grid + Description Section
   Gilmera Product Categories
   ======================================== */

/* ========================================
   BASE STYLES - CONTAINER & LAYOUT
   ======================================== */

/* Container Spacing */
.mt-150 {
  margin-top: 150px;
}

/* Blog Home Section */
.blog-home3 {
  padding: 3rem 0;
}

/* ========================================
   GRID SECTION - CATEGORIES & PRODUCTS
   ======================================== */

/* Title Styling */
.blog-home3 .pavad {
  font-size: 2.5rem;
  font-weight: 600;
  color: #3e4555;
  margin-bottom: 3rem;
  line-height: 1.2;
}

/* Grid Card Styling */
.blog-home3 .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-home3 .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Image Container */
.apribota_nuotrauka {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.blog-home3 .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-home3 .card:hover .card-img-top {
  transform: scale(1.1);
}

/* Category/Product Title Bar */
.blog-home3 .bg-success-gradiant {
  background-color: #3F4C5B;
  color: #fff;
  padding: 1.2rem 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
}

.blog-home3 .date-pos {
  font-size: 1rem;
  font-weight: 500;
}

.blog-home3 .date-pos a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.blog-home3 .date-pos a:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Card Title in Grid */
.card-title-grid {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.stronger {
  font-weight: 600;
}

/* Ensure Equal Height Cards */
.blog-home3 .row {
  display: flex;
  flex-wrap: wrap;
}

.blog-home3 .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

/* Center incomplete rows on desktop for better visual balance */
@media (min-width: 992px) {
  .blog-home3 .col-lg-12 > .row {
    justify-content: center;
  }
  
  /* Ensure proper Bootstrap grid sizing */
  .blog-home3 .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    display: flex;
    margin-bottom: 30px;
  }
  
  .blog-home3 .col-lg-4 > .card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
  }
}

/* ========================================
   DESCRIPTION SECTION - RESPONSIVE STYLES
   ======================================== */

/* Remove all fixed widths from description content */
.blog-home3 .subtitle h6,
.blog-home3 .subtitle .elementor-element,
.blog-home3 .subtitle .elementor-widget-container,
.blog-home3 .subtitle .elementor-icon-box-wrapper,
.blog-home3 .subtitle .elementor-icon-box-content,
.blog-home3 .subtitle .elementor-icon-list-items,
.blog-home3 .subtitle .elementor-icon-list-item,
.blog-home3 .subtitle .elementor-icon-list-item a {
  width: 100% !important;
  max-width: 100% !important;
}

/* Reset margins and padding */
.blog-home3 .subtitle .elementor-element {
  margin-bottom: 2rem !important;
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
}

/* Clean up the wrapper */
.blog-home3 .subtitle {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  color: #8d97ad;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* Main question heading */
.blog-home3 .subtitle .elementor-icon-box-title,
.blog-home3 .subtitle h2 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #3e4555 !important;
  line-height: 1.4 !important;
  margin: 0 0 1.5rem 0 !important;
  text-align: left !important;
  font-family: 'montserrat', sans-serif !important;
}

/* Contact list container */
.blog-home3 .subtitle .elementor-icon-list-items {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual contact items */
.blog-home3 .subtitle .elementor-icon-list-item {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.blog-home3 .subtitle .elementor-icon-list-item a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #3e4555 !important;
  transition: all 0.3s ease;
  padding: 0.75rem 0 !important;
}

.blog-home3 .subtitle .elementor-icon-list-item a:hover {
  color: #FF3729 !important;
  transform: translateX(5px);
}

/* Icon styling */
.blog-home3 .subtitle .elementor-icon-list-icon {
  display: flex !important;
  align-items: center !important;
  margin-right: 0.75rem !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.blog-home3 .subtitle .elementor-icon-list-icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block;
}

/* Text styling */
.blog-home3 .subtitle .elementor-icon-list-text {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: inherit !important;
}

/* Paragraph styling */
.blog-home3 .subtitle p,
.blog-home3 .subtitle .elementor-icon-box-description {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #3e4555 !important;
  margin: 0 0 1.5rem 0 !important;
  text-align: left !important;
  font-family: 'montserrat', sans-serif !important;
}

/* ========================================
   DESKTOP LARGE (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .mt-150 {
    margin-top: 150px;
  }
  
  .blog-home3 .pavad {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .apribota_nuotrauka {
    height: 280px;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 1.5rem;
    min-height: 90px;
  }
  
  .card-title-grid {
    font-size: 1.15rem;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 2rem;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 2rem !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 1.1rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-text {
    font-size: 1.1rem !important;
  }
}

/* ========================================
   LAPTOP/DESKTOP (992px - 1199px)
   ======================================== */
@media (max-width: 1199px) and (min-width: 992px) {
  .mt-150 {
    margin-top: 120px;
  }
  
  .blog-home3 {
    padding: 2.5rem 0;
  }
  
  .blog-home3 .pavad {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
  
  .apribota_nuotrauka {
    height: 240px;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 1.2rem;
    min-height: 85px;
  }
  
  .card-title-grid {
    font-size: 1.05rem;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 1.5rem;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 1.85rem !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 1.05rem !important;
  }
}

/* ========================================
   TABLET (768px - 991px)
   ======================================== */
@media (max-width: 991px) {
  .mt-150 {
    margin-top: 100px;
  }
  
  .blog-home3 {
    padding: 2rem 0;
  }
  
  .blog-home3 .pavad {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Two columns on tablet */
  .blog-home3 .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .apribota_nuotrauka {
    height: 220px;
  }
  
  .blog-home3 .card {
    margin-bottom: 2rem;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 1rem 1.2rem;
    min-height: 75px;
  }
  
  .card-title-grid {
    font-size: 1rem;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 1rem;
    font-size: 1rem;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-text {
    font-size: 0.95rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-items {
    gap: 0.75rem;
  }
}

/* ========================================
   MOBILE LANDSCAPE (576px - 767px)
   ======================================== */
@media (max-width: 767px) {
  .mt-150 {
    margin-top: 80px;
  }
  
  .blog-home3 {
    padding: 1.5rem 0;
  }
  
  .blog-home3 .pavad {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  /* Two columns on mobile landscape */
  .blog-home3 .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .apribota_nuotrauka {
    height: 200px;
  }
  
  .blog-home3 .card {
    margin-bottom: 1.5rem;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 0.9rem 1rem;
    min-height: 70px;
  }
  
  .card-title-grid {
    font-size: 0.95rem;
  }
  
  /* Text Center Column Width */
  .blog-home3 .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-items {
    gap: 0.5rem;
    margin-bottom: 1.5rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-item a {
    padding: 0.5rem 0 !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-icon {
    margin-right: 0.5rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-text {
    font-size: 0.9rem !important;
  }
}

/* ========================================
   MOBILE PORTRAIT (up to 575px)
   ======================================== */
@media (max-width: 575px) {
  .mt-150 {
    margin-top: 60px;
  }
  
  .blog-home3 {
    padding: 1rem 0;
  }
  
  .blog-home3 .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .blog-home3 .pavad {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Single column on mobile portrait */
  .blog-home3 .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .apribota_nuotrauka {
    height: 250px;
  }
  
  .blog-home3 .card {
    margin-bottom: 1.5rem;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 1rem;
    min-height: 65px;
  }
  
  .card-title-grid {
    font-size: 1rem;
  }
  
  /* Text Center Column */
  .blog-home3 .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  /* Row Spacing */
  .blog-home3 .mt-5 {
    margin-top: 2rem !important;
  }
  
  .blog-home3 .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-items {
    gap: 0.5rem;
    margin-bottom: 1.25rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-item a {
    padding: 0.5rem 0 !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-text {
    font-size: 0.85rem !important;
  }
  
  /* Allow phone numbers to wrap if needed */
  .blog-home3 .subtitle .elementor-icon-list-text b {
    word-break: break-all;
  }
}

/* ========================================
   EXTRA SMALL MOBILE (up to 400px)
   ======================================== */
@media (max-width: 400px) {
  .mt-150 {
    margin-top: 50px;
  }
  
  .blog-home3 .pavad {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  
  .apribota_nuotrauka {
    height: 220px;
  }
  
  .blog-home3 .bg-success-gradiant {
    padding: 0.8rem;
    min-height: 60px;
  }
  
  .card-title-grid {
    font-size: 0.9rem;
  }
  
  /* Description section */
  .blog-home3 .subtitle {
    padding: 0 0.5rem;
    font-size: 0.85rem;
  }
  
  .blog-home3 .subtitle .elementor-icon-box-title,
  .blog-home3 .subtitle h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0.85rem !important;
  }
  
  .blog-home3 .subtitle p,
  .blog-home3 .subtitle .elementor-icon-box-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.9rem !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-text {
    font-size: 0.8rem !important;
  }
}

/* ========================================
   UTILITIES & ACCESSIBILITY
   ======================================== */

/* Focus states */
.blog-home3 a:focus,
.blog-home3 .subtitle .elementor-icon-list-item a:focus {
  outline: 2px solid #3F4C5B;
  outline-offset: 2px;
}

/* Force text to wrap properly */
.blog-home3 .subtitle * {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Better touch targets on mobile */
@media (max-width: 767px) {
  .blog-home3 .subtitle .elementor-icon-list-item a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .mt-150 {
    margin-top: 0;
  }
  
  .blog-home3 .card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .blog-home3 .subtitle .elementor-icon-list-icon svg path {
    fill: #000000 !important;
  }
}