/* ===== RESPONSIVE DESIGN FOR 14 INCH SCREENS (1200px - 1440px) ===== */

/* Target layar 14 inch dengan resolusi umum 1200px - 1440px */
/* Mencakup ukuran 1265px, 1366px, 1388px, dan 1440px */
@media (min-width: 1200px) and (max-width: 1440px) {
  
  /* ===== NAVIGATION BAR FIXES ===== */
  .header-area .main-nav .nav li {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* .header-area .main-nav .nav li a {
    font-size: 15px;
    padding: 8px 12px;
  } */
  
  .header-area .main-nav .logo h4 {
    font-size: 22px;
  }
  
  .header-area .main-nav .logo h4 img {
    max-width: 22px;
  }
  
  /* ===== NAVBAR UNDERLINE FIXES FOR 14 INCH ===== */
  .header-area .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 12px !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .header-area .main-nav .nav li:hover a::after {
    width: 75% !important;
  }
  
  .header-area .main-nav .nav li a.active::after {
    width: 90% !important;
  }
  
  .background-header .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 12px !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .background-header .main-nav .nav li:hover a::after {
    width: 60% !important;
  }
  
  .background-header .main-nav .nav li a.active::after {
    width: 75% !important;
  }
  
  /* ===== MAIN BANNER / HERO SECTION FIXES ===== */
  .main-banner {
    padding: 140px 40px 60px 40px;
  }
  
  .main-banner .left-content h2 {
    font-size: 38px !important;
    line-height: 52px !important;
    margin-bottom: 16px !important;
  }

  .main-banner .left-content p {
    font-size: 14px !important;
    line-height: 25px !important;
    margin-bottom: 30px !important;
  }
  
  .main-banner .left-content .btn {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 10px;
  }
  
  .main-banner .right-image img {
    max-width: 90%;
    height: auto;
  }
  
  /* ===== SECTION SPACING OPTIMIZATION ===== */
  .section {
    padding: 50px 0px !important;
  }
  
  .services {
    padding: 30px 0px 0px 0px !important;
  }
  
  .section-heading h4 {
    font-size: 26px !important;
    margin-bottom: 8px !important;
  }
  
  .section-heading p {
    font-size: 14px !important;
    line-height: 24px !important;
  }
  
  /* ===== CARDS AND CONTENT OPTIMIZATION ===== */
  .bsp-card .card-body {
    padding: 1.8rem 1.4rem !important;
  }

  .bsp-card .card-icon {
    font-size: 42px !important;
  }
  
  .bsp-card h5 {
    font-size: 19px !important;
    margin-bottom: 10px !important;
  }
  
  .bsp-card p {
    font-size: 13px !important;
    line-height: 22px !important;
  }
  
  .main-banner .left-content .first-button,
  .main-banner .left-content .white-button {
    font-size: 14px !important;
    padding: 12px 25px !important;
  }
  
  /* ===== FOOTER AND TEXT ELEMENTS ===== */
  /* COMMENTED OUT FOR MODERN FOOTER
  .footer-widget h4 {
    font-size: 18px !important;
  }
  
  .footer-widget p,
  .footer-widget ul li a {
    font-size: 13px !important;
    line-height: 22px !important;
  }
  */
  
  .breadcrumb-item {
    font-size: 13px !important;
  }
  
  .text-button a {
    font-size: 13px !important;
  }
  
  /* ===== ADDITIONAL SPACING OPTIMIZATION ===== */
  .main-banner {
    padding: 140px 0px 50px 0px !important;
    min-height: auto !important;
  }
  
  .row {
    margin-bottom: 15px !important;
  }
  
  .col-lg-12,
  .col-lg-6,
  .col-lg-4 {
    margin-bottom: 20px !important;
  }
  
  .service-item {
    margin-bottom: 25px !important;
  }
  
  .about-left-image,
  .about-right-content {
    margin-bottom: 20px !important;
  }
  
  .bsp-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  
  .bsp-card .card-text {
    font-size: 14px;
    line-height: 22px;
  }
  
  /* ===== SERVICES SECTION ===== */
  .services .service-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .services .service-item p {
    font-size: 14px;
    line-height: 24px;
  }
  
  /* ===== CONTAINER OPTIMIZATION ===== */
  .container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* ===== BUTTON OPTIMIZATION ===== */
  .btn-lg {
    padding: 10px 18px;
    font-size: 15px;
  }
  
  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  
  /* ===== FOOTER OPTIMIZATION ===== */
  /* COMMENTED OUT FOR MODERN FOOTER
  footer {
    padding: 50px 0px 30px 0px;
  }
  
  footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  footer p, footer li {
    font-size: 14px;
    line-height: 24px;
  }
  */
  
  /* ===== SPLIDE CAROUSEL OPTIMIZATION ===== */
  .splide__slide img {
    max-height: 60px;
    width: auto;
  }
  
  /* ===== ABOUT US SECTION ===== */
  .about-us .left-text h4 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .about-us .left-text p {
    font-size: 14px;
    line-height: 26px;
  }
  
  /* ===== PRICING SECTION ===== */
  .pricing .pricing-item h4 {
    font-size: 22px;
  }
  
  .pricing .pricing-item .price {
    font-size: 36px;
  }
  
  /* ===== CONTACT FORM OPTIMIZATION ===== */
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px 15px;
  }
  
  .contact-form label {
    font-size: 14px;
  }
}

/* ===== SPECIFIC FIXES FOR 1366px (MOST COMMON 14 INCH RESOLUTION) ===== */
@media (min-width: 1300px) and (max-width: 1400px) {
  
  /* Extra tight spacing for 1366px screens */
  .main-banner {
    padding: 130px 30px 50px 30px;
  }
  
  .main-banner .left-content h2 {
    font-size: 38px;
    line-height: 50px;
  }
  
  .header-area .main-nav .nav li {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* .header-area .main-nav .nav li a {
    font-size: 13px;
  } */
  
  /* Navbar underline adjustments for 1366px and 1388px */
  .header-area .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .header-area .main-nav .nav li:hover a::after {
    width: 75% !important;
  }
  
  .header-area .main-nav .nav li a.active::after {
    width: 90% !important;
  }
  
  .background-header .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .background-header .main-nav .nav li:hover a::after {
    width: 60% !important;
  }
  
  .background-header .main-nav .nav li a.active::after {
    width: 75% !important;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .section {
    padding: 50px 0px;
  }
}

/* ===== SPECIFIC FIX FOR 1366px RESOLUTION ===== */
@media screen and (width: 1366px) {
  
  /* Force navbar underline to start from left for 1366px */
  .header-area .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    transform-origin: left !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .header-area .main-nav .nav li:hover a::after {
    width: 75% !important;
  }
  
  .header-area .main-nav .nav li a.active::after {
    width: 90% !important;
  }
  
  .background-header .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    transform-origin: left !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .background-header .main-nav .nav li:hover a::after {
    width: 60% !important;
  }
  
  .background-header .main-nav .nav li a.active::after {
    width: 75% !important;
  }
}

/* ===== ADDITIONAL FIX FOR 1366px WITH MIN-MAX RANGE ===== */
@media (min-width: 1366px) and (max-width: 1366px) {
  
  /* Double ensure navbar underline starts from left */
  .header-area .main-nav .nav li a::after,
  .background-header .main-nav .nav li a::after {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    transform-origin: left !important;
  }
}

/* ===== TYPOGRAPHY IMPROVEMENTS FOR READABILITY ===== */
@media (min-width: 1200px) and (max-width: 1440px) {
  
  /* Improve text readability */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.6rem; }
  h4 { font-size: 1.4rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1rem; }
  
  p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  /* Optimize spacing between elements */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== SPECIFIC FIXES FOR 1265px SCREENS ===== */
@media (min-width: 1200px) and (max-width: 1299px) {
  
  /* Navbar underline fixes for 1265px */
  .header-area .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .header-area .main-nav .nav li:hover a::after {
    width: 65% !important;
  }
  
  .header-area .main-nav .nav li a.active::after {
    width: 80% !important;
  }
  
  .background-header .main-nav .nav li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    height: 2px !important;
    left: 0 !important;
    width: 0 !important;
    background: #F7931E !important;
    transition: all 0.3s ease !important;
  }
  
  .background-header .main-nav .nav li:hover a::after {
    width: 50% !important;
  }
  
  .background-header .main-nav .nav li a.active::after {
    width: 65% !important;
  }
}

/* Media Query untuk Resolusi 1024 x 768 (Tablet Landscape) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-area .main-nav .nav li a {
    font-size: 14px;
    padding: 0px 12px;
  }
  
  /* Navbar underline untuk 1024px */
  .header-area .main-nav .nav li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: #F7931E !important;
    transition: all 0.3s ease;
  }
  
  .header-area .main-nav .nav li:hover a::after {
    width: 65% !important;
  }
  
  .header-area .main-nav .nav li a.active::after {
    width: 80% !important;
  }
  
  .background-header .main-nav .nav li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    width: 0;
    height: 2px;
    background: #F7931E !important;
    transition: all 0.3s ease;
  }
  
  .background-header .main-nav .nav li:hover a::after {
    width: 50% !important;
  }
  
  .background-header .main-nav .nav li a.active::after {
    width: 65% !important;
  }
  
  /* ===== FONT SIZE OPTIMIZATION FOR 1024x768 ===== */
  .main-banner .left-content h2 {
    font-size: 36px !important;
    line-height: 48px !important;
    margin-bottom: 15px !important;
  }
  
  .main-banner .left-content p {
    font-size: 14px !important;
    line-height: 24px !important;
    margin-bottom: 25px !important;
  }
  
  .section-heading h4 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }
  
  .section-heading p {
    font-size: 14px !important;
    line-height: 24px !important;
  }
  
  /* ===== CARD AND CONTENT OPTIMIZATION ===== */
  .bsp-card .card-body {
    padding: 1.5rem 1.2rem !important;
  }
  
  .bsp-card .card-icon {
    font-size: 40px !important;
  }
  
  .bsp-card h5 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  
  .bsp-card p {
    font-size: 13px !important;
    line-height: 22px !important;
  }
  
  /* ===== SECTION SPACING OPTIMIZATION ===== */
  .container {
    max-width: 960px;
  }
  
  .section {
    padding: 45px 0px !important;
  }
  
  .main-banner {
    padding: 120px 0px 45px 0px !important;
  }
  
  .services {
    padding: 35px 0px 0px 0px !important;
  }
  
  /* ===== FOOTER AND TEXT ELEMENTS ===== */
  /* COMMENTED OUT FOR MODERN FOOTER
  .footer-widget h4 {
    font-size: 16px !important;
  }
  
  .footer-widget p,
  .footer-widget ul li a {
    font-size: 12px !important;
    line-height: 20px !important;
  }
  */
  
  .breadcrumb-item {
    font-size: 12px !important;
  }
  
  .text-button a {
    font-size: 12px !important;
  }
  
  .main-banner .left-content .first-button,
  .main-banner .left-content .white-button {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
  
  /* ===== ADDITIONAL SPACING OPTIMIZATION ===== */
  .row {
    margin: 0 !important;
    padding: 0 10px !important;
  }
  
  .col-lg-12, .col-lg-6, .col-lg-4 {
    padding: 0 8px !important;
  }
  
  .service-item {
    margin-bottom: 20px !important;
    padding: 15px !important;
  }
  
  .about-left-image, .about-right-content {
    padding: 0 10px !important;
  }
  
  .main-banner {
    padding: 80px 0 !important;
  }
}

/* ===== TABLET PORTRAIT OPTIMIZATION (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Navigation */
  .navbar-brand img {
    max-height: 45px !important;
  }
  
  .navbar-nav .nav-link {
    font-size: 14px !important;
    padding: 8px 12px !important;
  }
  
  /* Main Banner */
  .main-banner h2 {
    font-size: 36px !important;
    line-height: 42px !important;
  }
  
  .main-banner p {
    font-size: 14px !important;
    line-height: 24px !important;
  }
  
  /* Section Headings */
  .section-heading h2 {
    font-size: 28px !important;
    line-height: 34px !important;
  }
  
  .section-heading p {
    font-size: 13px !important;
    line-height: 22px !important;
  }
  
  /* Cards and Services */
  .service-item h4 {
    font-size: 18px !important;
    line-height: 24px !important;
  }
  
  .service-item p {
    font-size: 13px !important;
    line-height: 20px !important;
  }
  
  /* Buttons */
  .main-button a {
    font-size: 13px !important;
    padding: 12px 20px !important;
  }
  
  /* Footer */
  /* COMMENTED OUT FOR MODERN FOOTER
  .footer p {
    font-size: 12px !important;
  }
  */
  
  /* Spacing */
  .main-banner {
    padding: 60px 0 !important;
  }
  
  section {
    padding: 60px 0 !important;
  }
  
  .container {
    padding: 0 15px !important;
  }
}