/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: rgb(226, 246, 255);
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  background: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-container nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
}

.nav-container nav a {
  text-decoration: none;
  color: #000;
}

.header-right {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.header-right a {
  text-decoration: none;
  color: #000;
}

/* ================= HEADING ================= */
h1 {
  text-align: center;
  margin: 40px 0;
}

/* ================= BLOG CARDS ================= */
.card {
  display: flex;
  gap: 20px;
  background: #fff;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.card img {
  width: 35%;
  object-fit: cover;
}

.card .content {
  padding: 20px;
}

.short-text {
  font-size: 1rem;
}

.full-text {
  display: none;
  margin-top: 10px;
  font-size: 0.95rem;
}

.read-more-btn {
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  background: rgb(0, 184, 197);
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
}

/* ================= FOOTER ================= */
footer {
  background: #111;
  color: #fff;
  margin-top: 60px;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

footer hr {
  margin: 20px 0;
}

footer p {
  
  margin: 10px 0;
}

/* ================= RESPONSIVE ================= */

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .nav-container {
    justify-content: center;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

  /* Navbar */
  .nav-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-container nav {
    margin-left: 0 !important;
    margin-bottom: 15px;
    justify-content: center;
  }

  .header-right {
    margin: 0 !important;
    justify-content: center;
  }

  /* Blog Cards */
  .card {
    flex-direction: column;
  }

  .card img {
    width: 100%;
    height: 220px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer p {
    margin-left: 0 !important;
    margin-top: 10px !important;
  }
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }

  .read-more-btn {
    width: 100%;
  }
}


/* HAMBURGER DEFAULT HIDE (DESKTOP) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-left: 17rem;
  margin-top: -4rem;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* LOGO LEFT */
  .logo img {
    margin-left: -5rem !important;
    margin-bottom: -0.7rem;
    
    
  }

  /* NAV HIDE */
  nav {
    position: absolute;
    top: 90px;
    right: 20px;
    background: white;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    display: none;
  }

  nav.show {
    display: flex;
  }

  /* HAMBURGER SHOW */
  .hamburger {
    display: flex;
  }

  /* HEADER RIGHT HIDE (OPTIONAL) */
  .header-right {
    display: none;
  }
}


@media (max-width: 768px) {

  .main-nav {
    display: none !important;
    position: absolute;
    top: 90px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .main-nav.show {
    display: flex !important;
  }

  .hamburger {
    display: flex;
  }
}



/* ===== NAVBAR LINK EFFECT (NO LAYOUT CHANGE) ===== */

header .main-nav a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Text color on hover */
header .main-nav a:hover {
  color: rgb(0, 184, 197) !important;
}

/* Underline animation */
header .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: rgb(0, 184, 197);
  transition: width 0.3s ease;
}

/* Hover underline */
header .main-nav a:hover::after {
  width: 100%;
}

/* Active page underline */
header .main-nav a.active::after {
  width: 100%;
}


/* ===== HEADER RIGHT (Login + Get Started) ===== */

.header-right a {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Login hover */
.header-right a:hover {
  color: rgb(0, 184, 197);
}

/* Get Started hover (no jump) */
.header-right a.yeah:hover {
  background-color: rgb(0, 150, 160);
  color: #fff;
}






/* SERVICES DROPDOWN — BLOGS PAGE */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 155%;
  left: 0;

  background: #ffffff;
  min-width: 270px;

  display: flex;
  flex-direction: column;

  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);

  opacity: 0;
  visibility: hidden;
  transform: translateY(25px);
  transition: all 0.35s ease;

  z-index: 999;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  padding: 20px 28px;      /* 👈 height / spacing */
  font-size: 1.18rem;     /* 👈 text bada */
  font-weight: 500;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: rgb(0, 184, 197);
  color: #fff;
}

/* Hover effect */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.main-nav {
  position: relative;
}

.dropdown {
  position: relative;
}

/* dropdown hidden */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  padding: 10px 0;
  display: none;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* text thoda bada + spacing */
.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* 🔥 REAL FIX */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* GAP REMOVE */
.dropdown > a {
  padding-bottom: 12px;
}




.dropdown {
  position: relative;
}

/* invisible hover bridge */
.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;     /* 👈 GAP COVER */
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px); /* bridge ke niche */
  left: 0;
  background: #fff;
  min-width: 230px;
  padding: 10px 0;
  display: none;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dropdown-menu a {
  display: block;
  padding: 14px 22px;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* hover works via bridge */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* VERY IMPORTANT */
.navbar,
.main-nav {
  overflow: visible !important;
}
