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;
}


footer {
  background-color: #6674818a;
  text-align: center;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  margin-top: 20px;
}

footer h1 {
  color: #f5f7fa;
  font-weight: 900;
}

footer p {
  color: #333333;
  font-weight: 500;
}

.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999;
}

.popup-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
  display: none;
}

.popup-content {
  position: relative;
  overflow-y: auto;
  flex: 1;
  padding: 10px;
}

.image-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.popup-image {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.watermark-cross {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.watermark-cross::before,
.watermark-cross::after {
  content: "Sri Dwarakadheesh Investment Services";
  position: absolute;
  top: 65%;
  left: 65%;
  transform-origin: right top;
  transform: translate(-50%, -50%) rotate(45deg);
  font-size: 54px;
  font-weight: bold;
  color: rgba(255, 215, 0, 0.5);
  white-space: nowrap;
  /* stretch beyond visible screen */
  text-align: right;
  pointer-events: none;
}

.watermark-cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.watermark-cross::after {
  top: 40%;
  left: -50%;
  transform: rotate(45deg);
}

.overlay-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.005);
  z-index: 5;
}

.close-btn {
  background: red;
  color: white;
  border: none;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 20;
}

.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: #2f4f4f;
  padding-top: 5px;
}

.footer-royal-blue {
  background-color: #375a9e;
  /* Royal blue */
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  border-top: 4px solid #274472;
}

.footer-royal-blue strong {
  font-weight: 600;
}

.footer-royal-blue a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-royal-blue a:hover {
  color: #dbeafe;
}

/* ✅ Tablet View (460px - 600px) */
@media only screen and (min-width: 460px) and (max-width: 600px) {
  .head-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ensure single row */
  }

  .logo-img {
    width: 80px;
    height: 80px;
  }

  .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;
  }

  footer {
    font-size: 10px;
  }
}


/* ✅ Mobile View (300px - 459px) */
@media only screen and (min-width: 300px) and (max-width: 459px) {
  .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 {
    width: 60px;
    height: 60px;
  }

  .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;
  }

  footer {
    font-size: 9px;
  }
}
