body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #2d3436;
}
a { text-decoration: none; color: inherit; }

/* Navbar */
.custom-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 71%; /* more flexible for responsiveness */
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 35px;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* logo left, menu follows */
  z-index: 1000;
  transition: all 0.3s ease;
  flex-wrap: nowrap;
}

/* Logo flush left, slightly outside navbar */
.custom-navbar .logo {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  left: -35px; /* overlap left edge */
  z-index: 2;
  margin-right: 20px; /* space between logo and menu */
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  height: 100%;
  flex-wrap: nowrap;
}

/* Nav items */
.nav-links li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* Links */
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 600;
  color: #2d3436;
  border-radius: 30px;
  height: 50px;
  text-decoration: none;
  white-space: nowrap; /* prevent text wrap */
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(9,132,227,0.15);
  color: #0984e3;
  cursor: pointer;
}

/* Dropdown arrow */
.arrow {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.dropdown:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(9,132,227,0.1);
  backdrop-filter: blur(15px);
  border-radius: 0 0 20px 20px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 999;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Submenu links */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #2d3436;
  border-radius: 20px;
}

/* Nav indicator */
.nav-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  background: rgba(9,132,227,0.15);
  border-radius: 18px;
  transition: all 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .custom-navbar { width: 95%; }
}
@media (max-width: 992px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    background: rgba(255,255,255,0.95);
    padding: 15px 0;
    border-radius: 0 0 20px 20px;
    display: none;
  }
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; justify-content: center; margin: 5px 0; }
  .nav-links a { width: 100%; justify-content: center; }
}

/* Hero */
.hero-section {
  height: 100vh;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-section .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(9,132,227,0.85), rgba(38,222,129,0.75));
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 {
  font-size: 3.8rem; font-weight: 700;
  margin-bottom: 20px;
}
.hero-content p { font-size: 1.3rem; margin-bottom: 35px; color: #f1f2f6; }
.hero-section .btn.custom-btn {
  margin: 8px; padding: 14px 32px;
  border-radius: 30px; font-weight: 600;
  color: #fff; background: #0984e3;
  transition: transform .3s ease, background .3s ease;
}
.hero-section .btn.custom-btn:hover {
  background: #0652dd; transform: translateY(-3px);
}

/* Blocks */
.custom-block {
  position: relative; border-radius: 12px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.custom-block img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s ease;
}
.custom-block:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
.custom-block:hover img { transform: scale(1.1); }
.custom-block-info {
  position: absolute; bottom: 0; width: 100%;
  padding: 14px 16px; background: rgba(255,255,255,0.95);
}
.custom-block-info h5 { color: #26de81; margin: 0 0 5px; }
.custom-block-info p { margin: 0; font-size: 0.9rem; }

.topics-section { padding: 80px 0; }
.section-title { color: #0984e3; margin-bottom: 30px; }

/* Footer */
footer {
  background: #2d3436; color: #fff; padding: 40px 0;
}
footer h5 { margin-bottom: 15px; color: #26de81; }
footer p, footer li, footer a { color: #dfe6e9; font-size: 0.95rem; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 8px; }
footer a:hover { color: #0984e3; }
footer hr { border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0; }

/* Example responsive tweaks if needed */
@media (max-width: 992px) {
  .custom-navbar { width: 90%; left: 50%; transform: translateX(-50%); }
  .nav-links { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .hero-section .btn.custom-btn { display: block; margin: 10px auto; }
}

/* Modal Base */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* Modal Header with Gradient */
.modal-header {
  background: linear-gradient(135deg, #0984e3, #26de81);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* Modal Title */
.modal-header .modal-title {
  color: #fff;
  font-size: 1.5rem;
}

/* Close Button */
.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.modal-header .btn-close:hover {
  opacity: 1;
}

/* Modal Body */
.modal-body {
  padding: 2rem;
  background: #fff;
}

/* Input Fields */
.modal-body input.form-control {
  border-radius: 12px;
  border: 1px solid #dfe6e9;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.modal-body input.form-control:focus {
  border-color: #0984e3;
  box-shadow: 0 0 8px rgba(9,132,227,0.3);
}

/* Login Button */
.modal-body button.custom-btn {
  width: 100%;
  padding: 12px 0;
  font-weight: 600;
  border-radius: 30px;
  background: linear-gradient(135deg, #0984e3, #26de81);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.modal-body button.custom-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #26de81, #0984e3); /* reverse gradient */
}
