/* ============================================
   COMPREHENSIVE RESPONSIVE STYLES
   For Mobile Phones and Tablets
   ============================================ */

/* ===== HERO SLIDER WRAPPER BASE STYLES (desktop: auto height, no 100vh) ===== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 587px; /* match .hero-section height from main style */
  overflow: hidden;
  margin: 0;
}

/* ===== FOOTER – left alignment (all screens) ===== */
.wpo-upper-footer .container .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.wpo-site-footer .wpo-upper-footer .link-widget,
.wpo-upper-footer .link-widget,
.wpo-upper-footer .about-widget,
.wpo-upper-footer .contact-widget {
  text-align: left;
}

.wpo-upper-footer .link-widget ul,
.wpo-upper-footer .contact-widget ul {
  display: block;
  text-align: left;
  padding-left: 0;
  list-style: none;
  list-style-position: outside;
}

.wpo-upper-footer .link-widget ul li,
.wpo-upper-footer .contact-widget ul.contact-info li {
  text-align: left;
  display: block;
}

.wpo-upper-footer .about-widget .logo {
  display: flex;
  justify-content: flex-start;
}

.wpo-upper-footer .about-widget .logo a {
  display: inline-block;
}

.wpo-upper-footer .about-widget .social-icons {
  justify-content: flex-start;
}

.wpo-upper-footer .widget-title,
.wpo-upper-footer .widget-title h3 {
  text-align: left;
}

/* ===== TABLET STYLES (max-width: 991px) - Mobile/tablet view from 0 up to 990px ===== */
@media (max-width: 991px) {
  /* Hero Slider - 100vh minus navbar */
  .hero-slider-wrapper {
    height: calc(100vh - var(--header-height, 70px));
    height: calc(100dvh - var(--header-height, 70px));
    min-height: calc(100vh - var(--header-height, 70px));
    min-height: calc(100dvh - var(--header-height, 70px));
    max-height: none;
  }

  .hero-section {
    height: calc(100vh - var(--header-height, 70px)) !important;
    height: calc(100dvh - var(--header-height, 70px)) !important;
    min-height: calc(100vh - var(--header-height, 70px)) !important;
    min-height: calc(100dvh - var(--header-height, 70px)) !important;
    max-height: none;
  }

  .wpo-hero-section-text {
    padding: 20px;
  }

  .wpo-hero-title h2 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .arrow {
    font-size: 30px;
    padding: 5px 10px;
  }

  .arrow.left {
    left: 10px;
  }

  .arrow.right {
    right: 10px;
  }

  /* Services Carousel */
  .services-carousel-section {
    padding: 40px 0;
  }

  .services-header {
    margin-bottom: 30px !important;
  }

  .services-header h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .services-header p {
    margin-bottom: 15px !important;
  }

  .services-slider {
    margin-top: 20px;
  }

  .service-slide img {
    height: 450px;
  }

  /* Keep gradient overlay at bottom of image (tablet image is 450px, not 600px) */
  .slide-gradient {
    top: auto !important;
    height: 120px;
    bottom: 0;
  }

  /* About Section */
  .wpo-about-section {
    padding: 40px 0;
  }

  .wpo-about-content-inner p {
    font-size: 16px;
  }

  /* Why Choose Us - stack title, subtitle, image and content one after another on tablet */
  .why-choose-us {
    padding: 40px 0;
    height: auto !important;
    min-height: auto !important;
    display: block;
  }

  .why-choose-us .row.align-items-center {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  /* Title and subtitle take full width so they sit on their own row */
  .why-choose-us .why-title {
    font-size: 32px;
    line-height: 40px;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  .why-choose-us .why-subtitle {
    font-size: 18px;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }

  /* Image and content columns stack full width one after another */
  .why-choose-us .col-lg-4,
  .why-choose-us .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .why-choose-us .col-lg-4 {
    margin-bottom: 20px;
  }

  .feature-box {
    margin-bottom: 25px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Fixed icon size so all icons align vertically in a centered column */
  .icon-circle {
    width: 67px;
    min-width: 67px;
    flex-shrink: 0;
  }

  /* Certification Section */
  .certification-section {
    padding: 40px 0;
  }

  .certification-content h2 {
    font-size: 32px;
  }

  .certification-content h4 {
    font-size: 22px;
  }

  .certification-grid {
    gap: 20px;
  }

  /* Testimonial Section */
  .testimonial-section {
    padding: 40px 0;
  }

  .testimonial-left h2 {
    font-size: 32px;
  }

  .testimonial-left h4 {
    font-size: 18px;
  }

  /* Footer */
  .wpo-upper-footer {
    padding: 50px 0 30px;
  }

  .wpo-upper-footer .col-lg-2,
  .wpo-upper-footer .col-lg-3 {
    margin-bottom: 30px;
  }

  /* Center footer row layout on tablet (centers the last row’s single column and block alignment) */
  .wpo-upper-footer .container .row {
    display: contents;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Left-align all footer widget blocks on tablet */
  .wpo-upper-footer .link-widget,
  .wpo-upper-footer .about-widget,
  .wpo-upper-footer .contact-widget {
    text-align: left;
  }

  .wpo-upper-footer .link-widget ul,
  .wpo-upper-footer .contact-widget ul {
    display: block;
    text-align: left;
  }

  .wpo-upper-footer .about-widget .social-icons {
    justify-content: flex-start;
  }

  /* Fun Fact Section */
  .wpo-fun-fact-section {
    padding: 40px 0;
  }

  .wpo-fun-fact-grids .grid {
    margin-bottom: 30px;
  }

  /* ===== All services pages – mobile: image at top, text in white box below ===== */
  .bussiness-section,
  .technical-section,
  .security-section,
  .production-section,
  .ifm-section {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .bussiness-section .container,
  .technical-section .container,
  .security-section .container,
  .production-section .container,
  .ifm-section .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .bussiness-section .ifm-top,
  .technical-section .ifm-top,
  .security-section .ifm-top,
  .production-section .ifm-top,
  .ifm-section .ifm-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 0;
  }

  .bussiness-section .ifm-content,
  .technical-section .ifm-content,
  .security-section .ifm-content,
  .production-section .ifm-content,
  .ifm-section .ifm-content {
    max-width: 100%;
    width: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
    background: #ffffff;
    margin-bottom: 0px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }

  .bussiness-section .ifm-content h2,
  .bussiness-section .ifm-content p,
  .technical-section .ifm-content h2,
  .technical-section .ifm-content p,
  .security-section .ifm-content h2,
  .security-section .ifm-content p,
  .production-section .ifm-content h2,
  .production-section .ifm-content p,
  .ifm-section .ifm-content h2,
  .ifm-section .ifm-content p {
    color: #1a1a1a;
  }

  .ifm {
    padding-top: 30px;
    padding-bottom: 40px;
    display: block;
  }

  .ifm .ifm-middle {
    margin: 0 auto 40px !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .ifm .ifm-services1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .ifm .ifm-services1 .service-box {
    width: 100%;
    min-width: 0;
    padding: 15px 10px;
    box-sizing: border-box;
  }

  .ifm .ifm-services1 .service-box img {
    max-width: 100%;
    height: auto;
  }

  .clr-benefits-section {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
    display: block;
  }

  .clr-benefits-section .section-title,
  .clr-benefits-section .delivery-sub,
  .clr-benefits-section .benefits-grid,
  .clr-benefits-section .delivery-footer {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .clr-benefits-section .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
  }

  .clr-benefits-section .benefit-box {
    min-width: 0;
    padding: 16px 12px;
  }

  .clr-benefits-section .benefit-box h4 {
    width: 100% !important;
    max-width: 100%;
  }

  .section-divider {
    margin: 0;
    padding: 0;
  }

  .why-standout {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    display: block;
  }

  .why-standout .section-title {
    width: 100% !important;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .why-standout .standout-grid.five-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .why-standout .standout-item {
    min-width: 0;
    padding: 0 5px;
  }

  .cta-innovation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    min-height: auto;
    overflow: visible;
  }

  .cta-innovation .cta-content {
    margin-left: 0 !important;
    margin-top: 0 !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 3;
  }

  .cta-innovation .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
  }

  .cta-innovation .cta-content h2 {
    text-align: center !important;
  }

  .cta-innovation .cta-content p {
    text-align: center !important;
  }

  .cta-innovation .btns {
    text-align: center;
    margin-top: 20px;
  }
}

/* ===== MOBILE STYLES (max-width: 767px) ===== */
@media (max-width: 767px) {
  /* Navbar height for banner calc - slightly reduced so banner fills screen (increase if navbar is taller) */
  body {
    --header-height: 55px;
  }

  /* General Container Padding */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Slider - viewport height minus navbar on mobile (100dvh = visible area, no address-bar gap) */
  .hero-slider-wrapper {
    height: calc(100vh - var(--header-height, 65px));
    height: calc(100dvh - var(--header-height, 65px));
    min-height: calc(100vh - var(--header-height, 65px));
    min-height: calc(100dvh - var(--header-height, 65px));
    max-height: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .hero-track {
    height: 100%;
    width: 100%;
  }

  .hero-section {
    height: calc(100vh - var(--header-height, 65px)) !important;
    height: calc(100dvh - var(--header-height, 65px)) !important;
    min-height: calc(100vh - var(--header-height, 65px)) !important;
    min-height: calc(100dvh - var(--header-height, 65px)) !important;
    max-height: none;
    width: 100%;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    padding: 20px 15px;
    box-sizing: border-box;
  }

  /* Fix text positioning for mobile */
  .hero-section .col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .wpo-hero-section-text {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    text-align: center !important;
    z-index: 5 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 0 auto;
  }

  .banner-parallax {
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
  }

  .wpo-hero-title {
    width: 100%;
    margin-bottom: 15px;
  }

  .wpo-hero-title h2 {
    font-size: 20px !important;
    line-height: 26px !important;
    margin-bottom: 15px !important;
    color: #fff !important;
    text-align: center !important;
    font-weight: 600 !important;
    padding: 0 10px;
  }

  .btns {
    text-align: center;
    margin-top: 15px;
  }

  .btns .theme-btn {
    padding: 12px 25px !important;
    font-size: 14px !important;
    display: inline-block;
    margin: 0 auto;
    white-space: nowrap;
  }

  .arrow {
    font-size: 28px !important;
    padding: 8px 12px !important;
    top: 50% !important;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 4px;
    z-index: 15 !important;
  }

  .arrow.left {
    left: 10px !important;
  }

  .arrow.right {
    right: 10px !important;
  }

  /* Ensure banner link covers entire section */
  .banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  /* Override any conflicting styles from main CSS */
  .hero-section.hero-1,
  .hero-section.hero-2,
  .hero-section.hero-3,
  .hero-section.hero-4,
  .hero-section.hero-5 {
    background-attachment: scroll !important;
  }

  /* Ensure text is always visible */
  .wpo-hero-section-text * {
    color: #fff !important;
  }

  /* Fix any column issues */
  .hero-section .col-xs-5,
  .hero-section .col-lg-5,
  .hero-section .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* No gap below banner - section below must not push or create space */
  .wpo-about-section.section-padding1 {
    padding-top: 10 !important;
    margin-top: 0 !important;
  }

  /* Business page – mobile: single column, no overlap */
  .ifm .ifm-services1 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .clr-benefits-section .benefits-grid {
    grid-template-columns: 1fr;
  }

  .why-standout .standout-grid.five-col {
    grid-template-columns: 1fr;
  }

  /* Services Carousel */
  .services-carousel-section {
    padding: 30px 0;
  }

  .services-header {
    margin-bottom: 30px !important;
  }

  .services-header h2 {
    font-size: 24px !important;
    line-height: 30px !important;
    margin-bottom: 10px;
  }

  .services-header p {
    font-size: 14px;
    margin-bottom: 15px !important;
  }

  .services-slider {
    margin-top: 15px;
  }

  /* .service-slide img {
    height: 250px;
  } */

  .slide-gradient {
    top: auto !important;
    height: 100px;
    bottom: 0;
  }

  .slide-gradient h3 {
    font-size: 18px;
    padding: 10px;
  }

  .services-dots {
    margin-top: 15px;
  }

  .services-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  /* About Section */
  .wpo-about-section {
    padding: 30px 0;
  }

  .section-padding1 {
    padding: 30px 0;
  }

  .wpo-section-title-s4 h2 {
    font-size: 24px !important;
    line-height: 30px !important;
    text-align: center !important;
    margin-bottom: 15px;
  }

  .why-subtitle2 p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  .wpo-about-content-inner {
    text-align: center;
  }

  .wpo-about-content-inner p {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 20px;
  }

  .btns .theme-btn1 {
    padding: 12px auto;
    font-size: 14px;
    text-align: center;
  }

  /* Why Choose Us - ensure stacked layout, no overlap */
  .why-choose-us {
    padding: 0px 0;
    padding-top: 30px;
    height: auto !important;
    min-height: auto !important;
    display: block;
  }

  .why-choose-us .row.align-items-center {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .why-choose-us .why-title {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    flex: 0 0 100%;
    order: 1;
  }

  .why-choose-us .why-subtitle {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    flex: 0 0 100%;
    order: 2;
  }

  .why-choose-us .col-lg-4 {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .why-choose-us .col-lg-8 {
    order: 4;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .why-img {
    width: 80% !important;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0px !important;
    margin-top: 20px;
    display: block;
  }

  .feature-box {
    margin-bottom: 20px;
    align-items: flex-start;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Fixed icon size so all icons align vertically in a centered column */
  .icon-circle {
    width: 67px;
    min-width: 67px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .feature-box-text h4 {
    font-size: 16px;
    line-height: 22px;
  }

  /* Fun Fact Section */
  .wpo-fun-fact-section {
    padding: 30px 0;
  }

  .wpo-fun-fact-grids {
    flex-direction: column;
    align-items: center;
  }

  .wpo-fun-fact-grids .grid {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
  }

  .wpo-fun-fact-grids .grid .info h3 {
    font-size: 36px;
  }

  .wpo-fun-fact-grids .grid .info p {
    font-size: 16px;
  }

  /* Certification Section */
  .certification-section {
    padding: 30px 0;
  }

  .certification-content {
    text-align: center;
    margin-bottom: 25px;
  }

  .certification-content h2 {
    font-size: 24px !important;
    margin-bottom: 10px;
  }

  .certification-content h4 {
    font-size: 18px !important;
    margin-bottom: 15px;
  }

  .certification-content p {
    font-size: 15px;
    line-height: 22px;
  }

  .certification-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .cert-card {
    width: 100%;
    padding: 20px;
  }

  .cert-card h3 {
    font-size: 20px;
  }

  .cert-card span {
    font-size: 14px;
  }

  /* Testimonial Section */
  .testimonial-section {
    padding: 30px 0;
  }

  .testimonial-wrapper {
    flex-direction: column;
  }

  .testimonial-left {
    width: 100%;
    text-align: center;
  }

  .testimonial-left h2 {
    font-size: 24px !important;
    line-height: 30px !important;
    margin-bottom: 10px;
  }

  .testimonial-left h4 {
    font-size: 16px !important;
    margin-bottom: 20px;
  }

  .testimonial-left hr {
    margin: 20px auto;
    width: 80%;
  }

  .testimonial-slider {
    min-height: 200px;
  }

  .testimonial-item {
    font-size: 15px !important;
    line-height: 22px;
    padding: 15px;
  }

  .testimonial-item p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 15px;
  }

  .testimonial-item span {
    font-size: 13px;
  }

  .testimonial-dots {
    margin-top: 20px;
    justify-content: center;
  }

  .testimonial-dots .dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
  }

  /* Footer */
  .wpo-site-footer {
    padding: 30px 0 0;
  }

  .wpo-upper-footer {
    padding: 30px 0 20px;
  }

  .wpo-upper-footer .col-lg-2,
  .wpo-upper-footer .col-lg-3 {
    margin-bottom: 25px;
    text-align: left;
  }

  .about-widget .logo img {
    width: 80% !important;
    max-width: 200px;
  }

  .social-icons {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .widget-title h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .widget ul li {
    margin-bottom: 8px;
  }

  .widget ul li a {
    font-size: 14px;
  }

  .contact-info li {
    margin-bottom: 15px;
    text-align: left;
  }

  .contact-info li strong {
    font-size: 16px;
  }

  .contact-info li a {
    font-size: 14px;
  }

  .wpo-lower-footer {
    padding: 20px 0;
  }

  .disclaimer {
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 15px;
  }

  .credit1 {
    font-size: 12px;
    line-height: 18px;
  }

  /* WhatsApp Float Button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 15px;
  }

  /* Header/Navigation */
  .wpo-site-header {
    padding: 0px 0;
  }

  .wpo-site-header .navbar-header .navbar-brand img {
    width: 60% !important;
    max-width: 150px;
  }

  .header-right .theme-btn {
    display: none;
  }

  .navigation .navbar-nav {
    text-align: center;
  }

  .navigation .navbar-nav > li {
    margin: 8px 0;
  }

  .navigation .navbar-nav > li > a {
    padding: 12px 15px;
    font-size: 14px;
    letter-spacing: 0.02em;
    display: block;
    line-height: 1.4;
  }

  .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
  }

  .sub-menu li {
    margin: 4px 0;
  }

  .sub-menu li a {
    font-size: 13px;
    padding: 10px 15px;
    letter-spacing: 0.02em;
    line-height: 1.4;
  }

  /* Section Padding Adjustments */
  .section-padding {
    padding: 30px 0;
  }

  .section-padding1 {
    padding: 30px 0;
  }

  /* Banner Link */
  .banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  /* Hero Text Positioning */
  .wpo-hero-section-text {
    position: relative;
    z-index: 2;
  }

  /* Services Slides Container */
  .services-slides {
    display: flex;
    width: 100%;
  }

  /* Footer Widget Alignment */
  .widget {
    text-align: left;
  }

  .widget ul {
    list-style: none;
    padding: 0;
  }

  /* Contact Form Responsive */
  .contact-form-wrapper,
  .wpo-contact-form {
    padding: 20px 15px;
  }

  .contact-form-wrapper input,
  .contact-form-wrapper textarea,
  .contact-form-wrapper select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

/* ===== SMALL MOBILE STYLES (max-width: 575px) ===== */
@media (max-width: 575px) {
  /* Hero Slider - viewport height minus navbar */
  .hero-slider-wrapper {
    height: calc(100vh - var(--header-height, 65px));
    height: calc(100dvh - var(--header-height, 65px));
    min-height: calc(100dvh - var(--header-height, 65px));
    max-height: none;
    margin-bottom: 0 !important;
  }

  .hero-section {
    height: calc(100dvh - var(--header-height, 65px)) !important;
    min-height: calc(100dvh - var(--header-height, 65px)) !important;
    max-height: none;
    padding: 15px 10px;
  }

  .wpo-hero-section-text {
    padding: 12px !important;
    background: rgba(0, 0, 0, 0.5);
  }

  .wpo-hero-title h2 {
    font-size: 18px !important;
    line-height: 24px !important;
    padding: 0 5px;
  }

  .btns .theme-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  .arrow {
    font-size: 24px !important;
    padding: 6px 10px !important;
  }

  .arrow.left {
    left: 8px !important;
  }

  .arrow.right {
    right: 8px !important;
  }

  /* Services */
  .services-header {
    margin-bottom: 25px !important;
  }

  .services-header h2 {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  .services-slider {
    margin-top: 12px;
  }

  .service-slide img {
    height: 300px;
  }

  .slide-gradient {
    top: auto !important;
    height: 90px;
    bottom: 0;
  }

  .slide-gradient h3 {
    font-size: 16px;
    padding: 8px;
  }

  /* About */
  .wpo-section-title-s4 h2 {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  /* Why Choose Us */
  .why-title {
    font-size: 20px;
    line-height: 26px;
  }

  .feature-box-text h4 {
    font-size: 14px;
    line-height: 20px;
  }

  /* Fun Fact */
  .wpo-fun-fact-grids .grid .info h3 {
    font-size: 28px;
  }

  /* Certification */
  .certification-content h2 {
    font-size: 20px !important;
  }

  .cert-card {
    padding: 15px;
  }

  .cert-card h3 {
    font-size: 18px;
  }

  /* Testimonial */
  .testimonial-left h2 {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  .testimonial-item {
    font-size: 14px !important;
  }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media (max-width: 375px) {
  .hero-slider-wrapper {
    height: calc(100dvh - var(--header-height, 65px));
    min-height: calc(100dvh - var(--header-height, 65px));
    max-height: none;
    margin-bottom: 0 !important;
  }

  .hero-section {
    height: calc(100dvh - var(--header-height, 65px)) !important;
    min-height: calc(100dvh - var(--header-height, 65px)) !important;
    max-height: none;
    padding: 12px 8px;
  }

  .wpo-hero-section-text {
    padding: 10px !important;
  }

  .wpo-hero-title h2 {
    font-size: 16px !important;
    line-height: 22px !important;
    padding: 0;
  }

  .btns .theme-btn {
    padding: 8px 18px !important;
    font-size: 12px !important;
  }

  .arrow {
    font-size: 20px !important;
    padding: 5px 8px !important;
  }

  .services-header h2 {
    font-size: 18px !important;
  }

  .wpo-section-title-s4 h2 {
    font-size: 18px !important;
  }

  .why-title {
    font-size: 18px;
  }

  .testimonial-left h2 {
    font-size: 18px !important;
  }

  .wpo-site-header .navbar-header .navbar-brand img {
    width: 50% !important;
    max-width: 120px;
  }
}

/* ===== ADDITIONAL RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
  /* Images */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Tables */
  table {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure text doesn't overflow */
  p, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Buttons */
  .btn, .theme-btn, .theme-btn1 {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  /* Forms */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    box-sizing: border-box;
  }

  /* Cards and Boxes */
  .card, .box, .service-box {
    margin-bottom: 20px;
  }

  /* Grid adjustments */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media (max-width: 991px) and (orientation: landscape) {
  .hero-slider-wrapper {
    height: calc(100vh - var(--header-height, 70px));
    height: calc(100dvh - var(--header-height, 70px));
    min-height: calc(100vh - var(--header-height, 70px));
  }

  .hero-section {
    height: calc(100vh - var(--header-height, 70px)) !important;
    height: calc(100dvh - var(--header-height, 70px)) !important;
    min-height: calc(100vh - var(--header-height, 70px)) !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .hero-slider-wrapper,
  .arrow,
  .whatsapp-float,
  .preloader {
    display: none !important;
  }
}
