/* ========== Base Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* default readability */
  color: #333;
}

::selection {
  background: #228bba;
  color: #ffffff;
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
  color: #222;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;

}

h3 {
  font-size: 1.5rem;

}

h4 {
  font-size: 1.2rem;
  /* ~19px */
}


p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1em;
  color: #444;
}

strong {
  color: #852624 !important;
  font-weight: bold;
}

#tips {
  padding: 20px;
}

/* Default link style */
.i-link {
  color: #228bba;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

/* Hover effect */
.i-link:hover {
  color: #414141;
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

/* scrollbar width */

::-webkit-scrollbar {
  width: 10px;

}

::-webkit-scrollbar-track {
  background: #ffffff;

}

::-webkit-scrollbar-thumb {
  background: #228bba;
  border-radius: 6px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #228bba;
}

/* For Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #228bba #f1f1f1;

}

/* ========== Layout ========== */
.container,
.layout {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 20px; 
  padding-right: 20px; 
}

.main {
  max-width: 1100px;
  margin: 50px auto;
  padding-left: 10px;
  padding-right: 10px;
}

/* ========== Header ========== */
.header {
  background: #ffffff;
  padding: 1px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: 50px;
  margin-right: 8px;
}

.logo span {
  font-size: 18px;
  font-weight: bold;
  color: #228bba;
}

.nav a {
  margin-left: 1rem;
  color: #19191a;
  text-decoration: none;
}

.nav a:hover {
  color: #228bba;
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #0f0f0f;
}

/* ========== Mobile Menu ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 250px;
  height: 100%;
  background: #228bba;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile-menu a {
  margin: 1rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

.mobile-menu a:hover {
  color: #020202;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.mobile-menu.show {
  right: 0;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 50px auto;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  color: #222222;
}

.hero p {
  color: #383838;
}

.features {
  margin-top: 15px;
  color: #228bba;
}

.faq {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Card style */
.faq-item {
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: 0.3s;
}

/* Question */
.faq-question {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  background: #b1f7c8;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #e9f5ee;
}

/* Icon */
.faq-question .icon::before {
  content: "+";
  font-size: 20px;
  transition: 0.3s;
}

/* Active icon */
.faq-item.active .icon::before {
  content: "−";
}

/* Answer animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: #444;
  line-height: 1.6;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .faq {
    padding: 0 15px;
  }

  .faq-question {
    font-size: 15px;
    padding: 15px;
  }
}





/* centers the button */
.btn-wrapper {
  text-align: center;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #198754;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  background-color: #146c43;
  color: white;
}

.btn:active {
  transform: scale(0.98);
  /* slight click effect */
}

/* ========== Bill Form ========== */
.bill-form {
  flex-direction: column;
  max-width: 90%;
  margin: 20px auto;
  padding: 10px 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
}

.bill-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.bill-form button {
  width: 180px;
  padding: 12px;
  background: #198754;
  text-align: center;
  border: 2px solid #198754;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.bill-form button:hover {
  background: #fff;
  color: #020202;
}

.error-message {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
}

.save-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* checkbox aur text ke beech gap */
  margin-top: 8px;
  font-size: 14px;
  cursor: pointer;
}

.save-ref input {
  margin: 0;
}

.save-ref label {
  color: #333;
  white-space: nowrap;
  /* text ko ek hi line me rakhe */
}


/* Responsive Bill Form */
@media (max-width: 768px) {
  .bill-form {
    flex-direction: column;
    max-width: 95%;
  }

  .bill-form input {
    width: 100%;
  }

  .bill-form button {
    margin-top: 10px;
    width: 140px;
    height: 40px;
    font-size: 14px;
  }
}


/* ========== Card Style ========== */
.card {
  border: 1px solid #ddd;
  margin-bottom: 25px;
  border-radius: 4px;
  background: #feffff;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 10px 10px;
  font-weight: 400;
  font-size: 15px;
  color: #333;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-list li {
  border-bottom: 1px solid #eee;
  margin: 0 15px;
  /* 👈 creates spacing from card border */
}

.card-list a {
  display: block;
  padding: 10px 0;
  /* 👈 remove side padding (already handled by margin) */
  color: #198754;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}


.card-list a:hover {
  color: #5603b4;

}

#adCard {
  height: 300px;
  overflow: hidden;
}

/* ========== img ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 40px 10px;
  background: #228bba;
  font-size: 15px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #ffffff;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  
}

/* Style the ordered list */
ol {
  counter-reset: item;
  /* for custom numbering */
  padding-left: 1rem;
  /* space for numbers */
  margin: 20px 0;
  list-style: none;
  /* remove default numbers */
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Style each list item */
ol li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 2.5rem;
  /* space for custom number */
}

/* Add custom number */
ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #198754;
  /* green number */
}

/* Optional: hover effect */
ol li:hover {
  color: #198754;
  transition: color 0.3s;
}

ul {
  padding-left: 2rem;
  padding-bottom: 20px;
}

/*======== Table CSS ======*/

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;

}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background-color: #198754;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #ddd;
}

td {
  font-family: Arial, sans-serif;
}

th {
  font-weight: bold;
}


/*======== Contact us CSS ======*/
#my-form {
  max-width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

#my-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

#my-form input,
#my-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

#my-form button {
  background: #198754;
  /* bootstrap green */
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#my-form button:hover {
  background: #146c43;
}

#my-form-status {
  margin-top: 10px;
  font-size: 14px;
  color: #198754;
}

/*======== Calculator =======*/
/* Wrapper */
form {
  max-width: 100%;
  margin: 20px auto 0 auto;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Floating form field */
.form-floating {
  position: relative;
  margin: 20px auto;
  width: 70%;
}

.form-floating input {
  width: 100%;
  padding: 12px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-floating input:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.12rem rgba(25, 135, 84, 0.25);
}

/* Floating label */
.form-floating label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 4px;
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease all;
}

.form-floating input:focus+label,
.form-floating input:not(:placeholder-shown)+label {
  top: -6px;
  font-size: 12px;
  color: #167247;
}

/* Button wrapper */
.my-3 {
  margin: 20px 0;
  /* space above and below button */
  text-align: center;
  /* center align button */
}

/* Button */
.my-3 input[type="submit"],
.my-3 button {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #198754;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.my-3 input[type="submit"]:hover,
.my-3 button:hover {
  background-color: #146c43;
}

.result-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-family: Arial, sans-serif;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.result-box .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #ccc;
  font-size: 14px;
}

.result-box .row:last-child {
  border-bottom: none;
}

.result-box .total {
  font-size: 16px;
  font-weight: bold;
  color: #d9534f;
}

.result-box .note {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* Section Headings inside Result Box */
.result-box h4 {
  font-size: 15px;
  font-weight: 600;
  color: #198754;
  /* green accent */
  margin: 12px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 20px;
  background: #228bba;
  color: white;
  border: none;
  padding: 8px 12px;
  /* reduced vertical padding */
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#backToTop .arrow {
  font-size: 22px;
  font-weight: bold;
  /* make arrow bold */
  line-height: 1;
  /* remove extra spacing */
}

.lesco-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #228bba;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.3s ease;
  /* smooth effect */
}

.lesco-btn:hover {
  color: #080808;
  /* change text color on hover */
}


.hero-top-badge {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    text-align: center;
}

/* LIVE CAPSULE */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(79, 180, 238, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* EMOJI SIZE */
.live-badge .emoji {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* UPDATED TEXT */
.update-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}



/* BADGES GRID */
.hero-badges {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:12px;
  margin-top:35px;
}

/* BADGE BOX */
.badge-box {
  padding:12px;
  border-radius:10px;
  background: rgba(79, 180, 238, 0.25);
  backdrop-filter: blur(8px);
  text-align:center;
  font-weight:500;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.badge-box:hover {
  transform: translateY(-6px) scale(1.05);
  background: rgba(79, 180, 238, 0.842);
  box-shadow:0 12px 25px rgba(0,0,0,0.2);
}

/* MOBILE */
@media(max-width:768px){

  .pro-hero h1 {
    font-size:24px;
  }

  .hero-input-wrap input,
  .hero-input-wrap button {
    width:100%;
  }

  .hero-badges {
    grid-template-columns: repeat(2,1fr);
  }

}

/* BADGES ROW */
.hero-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* single row on PC */
    gap: 14px;
    margin-top: 35px;
}

/* BUTTON STYLE BOX */
.badge-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 7px;
    background: rgba(79, 180, 238, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* EMOJI SIZE */
.badge-box .emoji {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* HOVER EFFECT */
.badge-box:hover {
    transform: translateY(-4px);
    background: rgba(79, 180, 238, 0.897);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* MOBILE = 2 PER ROW */
@media (max-width: 768px) {
    .hero-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .badge-box {
        font-size: 14px;
        padding: 12px;
    }

    .badge-box .emoji {
        width: 14px;
        height: 14px;
    }
}
