/* ==============================
   Global Styles (Desktop Default)
   ============================== */

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hide hamburger + close-btn in desktop */
.hamburger, .close-btn {
  display: none;
}

/* ===== Default Desktop ===== */
.table_ table {
  display: table;
}

/* Cards hidden in desktop */
.cards-container {
  display: none;
}

/* Ensure images appear in desktop normally */
.solar_charging img,
.parking_charging img,
.charging_station img {
  display: block;
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* ==============================
   Mobile Styles (Up to 420px)
   ============================== */
@media (max-width: 420px) {

  /* -------------------- Header / Navbar -------------------- */
  header {
    padding: 12px 14px;
    background: linear-gradient(135deg, #1a472a 0%, #2e7d32 100%);
    color: #fff;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 68px !important;
    height: 68px !important;
    margin: 6px auto;
  }

  .logo img {
    width: 68px !important;
    height: 68px !important;
    object-fit: contain !important;
    border-radius: 8px;
    padding: 2px;
  }

  .company-name {
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 20px;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    max-width: calc(100% - 100px);
    margin: 0 auto;
    font-weight: 600;
  }

  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    z-index: 1300;
  }

  .nav-links-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: #163a21;
    display: flex;
    flex-direction: column;
    padding: 18px;
    box-shadow: -4px 0 18px rgba(0,0,0,0.45);
    transition: right 260ms ease-in-out;
    z-index: 1400;
  }

  .nav-links-container.active { right: 0; }

  .close-btn {
    display: block !important;
    font-size: 34px;
    color: #fff;
    background: transparent;
    border: none;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 8px;
    padding: 6px 8px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
    padding-left: 0;
  }

  .nav-links li { width: 100%; list-style: none; }

  .nav-links a {
    display: block;
    padding: 10px 6px;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
  }

  .nav-links a:hover {
    color: #FFD700;
  }

  /* -------------------- Head Section -------------------- */
  .head {
    text-align: center;
    padding: 18px 12px;
  }

  .head h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .head h2 {
    font-size: 1.1rem;
    
    margin-bottom: 8px;
  }

  .head p {
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: justify;
  }

  /* -------------------- Table Hidden on Mobile -------------------- */
  .table_ table {
    display: none !important;
  }

  /* -------------------- Cards Visible Only in Mobile -------------------- */
  .cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px auto;
    width: 90%;
  }

  .card {
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    padding: 16px 14px;
    width: 100%;
    text-align: left;
    line-height: 1.6;
  }

  /* Level 1 Gradient (Green) */
  .card:nth-child(1) {
    background: linear-gradient(135deg, #4CAF50, #81C784);
  }

  /* Level 2 Gradient (Orange) */
  .card:nth-child(2) {
    background: linear-gradient(135deg, #FFA000, #FFB74D);
  }

  /* Level 3 Gradient (Red) */
  .card:nth-child(3) {
    background: linear-gradient(135deg, #E53935, #EF9A9A);
  }

  .card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .card p {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }

  /* -------------------- Charging Images -------------------- */
  .solar_charging img {
    
  .parking_charging img {
    display: block !important;
    content: url("charging_station_set_up.png");
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 12px;
  }

  .charging_station img {
    display: block !important;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* -------------------- Footer -------------------- */
  footer {
    padding: 18px 12px;
    background: #163a21;
    color: #fff;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .footer-left, .footer-right {
    width: 100%;
    text-align: center;
  }

  .footer-logo {
    width: 100px;
    margin: 0 auto 10px;
  }

  .footer-company-name {
    font-size: 1rem;
    line-height: 1.3;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
  }

  .social-icon {
    display: inline-block;
    color: #FFD700;
    font-size: 1rem;
    text-decoration: none;
  }

  .footer-links {
    margin-top: 10px;
  }

  .footer-links h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0;
    list-style: none;
  }

  .footer-links a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
  }

  .footer-links a:hover { color: #FFD700; }

  .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .footer-contact p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .mapouter {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
  }

  .gmap_iframe {
    width: 100%;
    height: 160px;
    border-radius: 8px;
  }
}
