* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f7fa;
}

/* Left Section with Logo + Brand */
/* ---------- Universal Header Layout (All screens) ---------- */
.head-bar {
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

.head-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-size: 32px;
  font-weight: 900;
  font-family: "Inter", sans-serif;
  color: #444444;
  white-space: nowrap;
}

/* Menu button */
.head-bar-button button {
  background-color: rgba(249, 168, 2, 1);
  color: black;
  border-radius: 30px;
  padding: 10px 20px;
  border: 2px solid #f5e6c4;
  font-size: 20px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.head-bar-button button:hover {
  background-color: gold;
}

/* Dropdown content hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  top: 90px;
  right: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px 0;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

/* Toggle class to show dropdown */
.dropdown.show .dropdown-content {
  display: block;
}

.container-2 {
  height: fit-content;
  text-align: center;
}

.underlined-text {
  position: relative;
  display: inline-block;
  color: #1e3a8a;
  padding-bottom: 10px;
  font-weight: 900;
  font-size: 32px;
}

.underlined-text::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -5px;
  width: 40%;
  height: 4px;
  background-color: #ffe031;
  border-radius: 2px;
}

.container-2 p {
  font-size: 22px;
  font-weight: 500px;
  color: #1581bf;
  padding-top: 5px;
}

.main-footer {
  background: #0f172a;
  color: #e2e8f0;
  text-align: center;
  padding: 10px 0 20px;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

/* ---------- TICKER ---------- */
.ticker-footer {
  width: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8px 0;
}

.ticker-label {
  padding: 8px 15px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  flex-shrink: 0;
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 18s linear infinite;
  font-size: 14px;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ---------- FOOTER TEXT ---------- */
.footer-details {
  margin-top: 12px;
  font-size: 14px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #cbd5e1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 10px auto 0;
  padding: 0 15px;
  flex-wrap: wrap; /* for small screens */
  font-size: 14px;
  color: #cbd5e1; /* light gray text */
}

.footer-links a {
  color: #60a5fa;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-dev-right a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-dev-right a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    margin-bottom: 5px;
  }
  .footer-dev-right {
    margin-top: 0;
  }
}

.footer-copy {
  font-size: 13px;
  margin: 5px 0;
}

/* ✅ Tablet View (460px - 600px) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .desktop-navbar {
    display: none;
  }
  .head-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ensure single row */
  }

  .logo-img {
    /* width: 80px;
    height: 80px; */
    height: 100px; /* control by HEIGHT */
    width: 100px; /* allow width to scale naturally */
    object-fit: contain;
    border-radius: 0px;
  }

  .brand-text {
    font-size: 18px;
    white-space: wrap;
    text-align: left;
    margin: 0;
  }

  .head-bar-button button {
    font-size: 16px;
    padding: 8px 16px;
  }

  .dropdown-content {
    right: 10px;
    z-index: 1001;
    text-align: center;
  }

  .dropdown-content a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .container-2 {
    margin: 0;
    padding: 0;
    max-width: 90%;
  }

  .underlined-text {
    font-size: 18px;
  }

  .container-2 p {
    font-size: 12px;
  }
  .cta-wrapper {
    bottom: 18px;
    right: 18px;
  }

  .cta-btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  .cta-btn svg {
    width: 19px;
    height: 19px;
  }

  .cta-options {
    bottom: 65px;
    gap: 9px;
  }

  .cta-option-btn {
    padding: 11px 16px;
    font-size: 14px;
  }
}

/* ✅ Mobile View (300px - 459px) */
@media only screen and (min-width: 300px) and (max-width: 600px) {
  .desktop-navbar {
    display: none;
  }
  .head-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    padding: 10px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ensure single row */
  }

  .logo-img {
    height: 80px; /* control by HEIGHT */
    width: 80px; /* allow width to scale naturally */ /* prevent over-wide logo */
    object-fit: contain;
    border-radius: 0px;
  }

  .brand-text {
    font-size: 14px;
    white-space: wrap;
    margin: 0 10px;
    text-align: left;
  }

  .head-bar-button {
    margin: 0;
  }

  .head-bar-button button {
    font-size: 12px;
    padding: 6px 12px;
  }

  .dropdown-content {
    right: 10px;
    z-index: 1001;
    text-align: center;
  }

  .dropdown-content a {
    font-size: 12px;
    padding: 8px 12px;
  }

  .container-2 {
    margin: 0;
    padding: 0;
    max-width: 95%;
  }

  .underlined-text {
    font-size: 16px;
  }

  .container-2 p {
    font-size: 12px;
  }
  .ticker-label,
  .ticker-text {
    font-size: 13px;
  }
  .footer-details {
    font-size: 13px;
    padding: 0 10px;
  }
  .footer-dev-right {
    text-align: center;
    padding-right: 0;
  }

  .cta-wrapper {
    bottom: 15px;
    right: 15px;
  }

  .cta-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .cta-btn svg {
    width: 18px;
    height: 18px;
  }

  .cta-options {
    bottom: 60px;
    right: 0;
    gap: 8px;
  }

  .cta-option-btn {
    padding: 10px 14px;
    font-size: 13px;
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .head-bar {
    display: none;
  }
  .desktop-navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
  }

  .desktop-navbar .logo {
    height: 60px;
  }

  .desktop-navbar .menu {
    list-style: none;
    display: flex;
    gap: 40px;
  }

  /* Base menu link */
  .desktop-navbar .menu li a {
    text-decoration: none;
    font-size: 18px;
    color: #313286;
    font-weight: 800;
    padding-bottom: 6px;
    position: relative; /* REQUIRED for ::after underline */
    transition:
      color 0.3s ease,
      transform 0.3s ease;
  }

  /* Hover effect */
  .desktop-navbar .menu li a:hover {
    color: #f18c3f;
    transform: translateY(-2px);
  }

  .desktop-navbar .menu li a:hover::after {
    width: 100%;
  }
}

/* CTA Container */
.cta-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.cta-btn {
  background: #4f46e5;
  color: white;
  padding: 15px 20px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.cta-btn:hover {
  background: #6366f1;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 10px;
}

/* Option Buttons */
.cta-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.cta-option-btn {
  background: #fff;
  color: #4f46e5;
  border: 1px solid #4f46e5;
  padding: 12px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-option-btn:hover {
  background: #4f46e5;
  color: white;
}
