* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  /* needed for sticky footer */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f6f3;
}

/* Main content */
main {
  flex: 1;
  /* pushes footer down */
}

/* Navbar wrapper */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff9f0;
  padding: 12px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

/* Logo section */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 32px;      /* smaller logo */
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

/* Left nav (inline buttons) */
.left-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px; /* spacing after logo */
}

.nav_button {
  color: #333;
  text-decoration: none;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav_button:hover {
  background-color: #A6D2FD;
  color: white;
  border-bottom: 2px solid #333;
  border-radius: 6px;
}

/* Right nav (dropdown/login) */
.right-nav {
  margin-left: auto; /* pushes it to the far right */
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.right-nav li {
  list-style: none;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 8px 14px;
  font-weight: bold;
  color: #333;
  border-radius: 6px;
  transition: 0.3s ease;
}

.dropdown-toggle:hover {
  background-color: #A6D2FD;
  color: #fff;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: 1001;
  padding: 10px 0;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: #A6D2FD;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .left-nav {
    flex-wrap: wrap;
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
  }

  .right-nav {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .dropdown-content {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
  }
}

/* Buttons */
.submit_btn {
  padding: 12px 30px;
  font-size: 18px;
  background-color: #A6D2FD;
  color: #000000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn {
  padding: 8px 16px;
  background-color: #A6D2FD;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.red-btn {
  margin-top: 10px;
  background-color: #FF7F7A;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  color: #171717;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn:hover,
.submit_btn:hover {
  background: #005fa3;
  transform: scale(1.05);
}

a {
  text-decoration: none;
}

/* input sytles */
.error {
  font-size: medium;
  text-transform: capitalize;
  color: red;
  text-align: center;
  margin-top: 5px;
}

.label-wrapper {
  margin: auto;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.inputField-label {
  font-weight: 500;
  font-size: 18px;
  color: #001514;
  margin-bottom: 5px;
}

.inputField,
.inputField_error {
  width: 250px;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
}

.inputField {
  border: 1px solid #ccc;
}

.inputField_error {
  border: 1px solid red;
}

.form-container {
  max-width: 1000px;
  margin: 50px auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.side_bar{
  width: auto;
  margin-top: 90px auto;
  margin: 10px 20px;
  float: left;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* suggestions */
#suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  width: 100%;
  /* max-width: 300px; */
  position: absolute;
  font-size: 16px;
  color: #000;
  background: #fff;
  z-index: 1000;
}

#suggestions li {
  padding: 6px 10px;
  cursor: pointer;
}

#suggestions li:hover {
  background: #eee;
}

/* Search Box */
.searchInput {
  width: 100%;
  outline: none;
  border: 1px solid #000;
  padding: 15px;
  border-radius: 6px;
  font-size: 16px;
  color: #000;
  margin-right: 5px;
}

.searchInput:hover {
  border-color: #A6D2FD;
  box-shadow: 0 0 8px #adceef;
}

.search-container {
  position: relative;
  display: flex;
  width: 100%;
}

.line_wrapper {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
}

.trial-info {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: gray;
  clear: both;
  padding: 5px;
  position: relative;
}

/* -------------- Videos --------------------------------- */
.video-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: auto;
  max-width: 1000px;
  object-fit: cover;
  border-radius: 8px;
}

/* -------------- End videos --------------------------------- */
/* -------------- grammer videos --------------------------------- */
.grammer-video-wrapper {
  width: 100%;                 /* take full width on small screens */
  max-width: 300px;            /* optional: keeps it from being too large */
  aspect-ratio: 16 / 9;        /* keeps video responsive */
  border-radius: 8px;
  padding: 10px;
  margin: 10px auto;           /* center horizontally */
  box-sizing: border-box;
  overflow: hidden;
}

.grammer-video-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Optional tweaks for larger screens */
@media (min-width: 768px) {
  .grammer-video-wrapper {
    float: left;       /* allow side-by-side layout */
    width: 48%;        /* adjust for multi-column */
    margin: 1%;
  }
}
/* -------------- End grammer videos --------------------------------- */


@media (max-width: 500px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .form-container {
    margin: 20px;
  }
}

/* ---------------------- pop up message (login) -------------------------- */
.login-popup {
  padding: 15px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  text-align: center;
  width: 100%;
  margin: 20px auto;
}

.login-popup button {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #A6D2FD;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-popup button:hover {
  background: #0056b3;
}

/* ---------------------- pop up message (subscription) -------------------------- */
.subscription-popup,
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #A6D2FD;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-items: center;
  gap: 6px;
}

.popup-content button:hover {
  background: #0056b3;
}

/* -------------------- Access denied popup -------------------------- */
.Access-denied-popup {
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* -------------------- breadcrumb ---------------------------------------------- */
ul.breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  list-style: none;
  max-width: 1000px;
  margin: 20px auto;
  flex-wrap: wrap;
}

ul.breadcrumb li {
  display: inline;
  font-size: 18px;
}

ul.breadcrumb li+li:before {
  padding: 8px;
  color: black;
  content: "/\00a0";
}

ul.breadcrumb li a {
  color: #0275d8;
  text-decoration: none;
}

ul.breadcrumb li a:hover {
  color: #01447e;
  text-decoration: underline;
}

/* ------------------ profile ------------------------------ */
.subscription-container {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 15px;
}

.subscription-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.subscription-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.subscription-card .price {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: black;
}

stripe-buy-button {
  display: block;
  margin: 0 auto;
}

/* ------------------------ policy ------------------------------ */
/* Parent container to control layout */
.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* Center cards */
}

/* Sidebar list card */
.list-card {
  flex: 1 1 250px; /* Grow/shrink but min 250px */
  max-width: 250px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Main content card */
.main-card {
  flex: 3 1 250px; /* Take more space */
  background: #fff;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: flex; /* activate flex properties */
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

/* List styling */
.list-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-card li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.list-card li.active {
  background: #f0f0f0;
  font-weight: bold;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cards-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Footer */
footer {
  background: #545454;
  color: #ffffff;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  margin-top: auto;
  /* ensures it stays at bottom */
}

footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer li a {
  display: block;
  color: white;
  text-align: center;
  padding: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

footer li a:hover {
  background-color: #005fa3;
}

footer p {
  margin-top: 8px;
  font-size: 14px;
}

/* validation code */
.vaild_center {
  margin: auto;
  width: 50%;
  padding: 10px;
}
/*________________ Vaidate code ________________________ */
.otp-container {
  display: flex;
  justify-content: center; /* centers nicely */
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;          /* allow wrapping if screen is too small */
}

.otp-container input {
  width: 12vw;              /* scales with screen width */
  max-width: 60px;          /* prevents getting too large */
  min-width: 40px;          /* ensures usability on small screens */
  aspect-ratio: 1 / 1;      /* keeps square shape */
  
  font-size: clamp(1.2rem, 5vw, 2rem); /* responsive font size */
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border 0.2s;
}

/* Tweak for very small screens */
@media (max-width: 400px) {
  .otp-container {
    gap: 6px;  /* tighten spacing */
  }
}
.otp-container input:focus {
  border-color: #A6D2FD;
  box-shadow: 0 0 8px #adceef;
  outline: none;
}
/*________________ end Vaidate code ________________________ */

#clientMsg {
  margin-top: 15px;
  font-weight: bold;
}

/* TABLE */
.table-container {
  width: 100%;
  overflow-x: auto; /* Enables horizontal scroll on small screens */
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px; /* Prevents squishing on very small screens */
}

td,
th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  white-space: nowrap; /* Keeps content from breaking weirdly */
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #ddd;
}

th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #A6D2FD;
  color: black;
}

/* Optional: stack cells on very small screens */
@media screen and (max-width: 600px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  tr {
    margin-bottom: 15px;
  }

  td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    content: attr(data-label); /* Add a label from HTML */
    position: absolute;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
  }

  th {
    display: none; /* Hide headers since labels replace them */
  }
}
