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

body, html{
    height: 100%;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #D1E1F5;
  color: #0a1a3a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* keeps footer at bottom */
  padding-top: 6rem;        /* space for fixed navbar */
}
/* Tunnel overlay without extra markup */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 6rem; /* match navbar offset */
  background: linear-gradient(#D1E1F5 0%, rgba(209,225,245,0.9) 60%, rgba(209,225,245,0) 100%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  pointer-events: none;
  z-index: 950; /* under navbar (1000), above content */
}
.top-tunnel {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 6rem;
  background: linear-gradient(#D1E1F5 0%, rgba(209,225,245,0.9) 60%, rgba(209,225,245,0) 100%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  pointer-events: none;
  z-index: 950;
}
.main-content {
  min-height: 100vh; /* Adjust (e.g. 120vh means 20% taller than screen) */
  padding: 20px;
}

/* Navbar */
  .navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 7.9%;
    background: #0A2C59;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.navbar img {
  height: 4vh;
  border-radius: 50%;
}

.navbar .title {
    color: white;
    text-decoration: none;
  font-size: 1rem !important;
  font-weight: bold;
  margin-left: 10px;
}

.nav-btn{
  text-decoration: none;
  margin: 0 10px;
}

.navbar-center {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.bell {
    color: white;
    cursor: pointer;
    margin-top: 0;
    margin-right: 5px;
    font-size: 1rem;
    line-height: 1;
}

.prof {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-right {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

.navbar-right a {
  text-decoration: none;
}

/* Notification badge on top of bell icon */
.notif {
  position: relative;
  display: inline-block;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: none; /* shown when there are new items */
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (min-width: 769px) {
  .footer{
    margin-top: 5% !important;
  }
}

@media (max-width: 768px) {
  .notif-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
}

.nav-btn {
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.nav-btn:hover, .nav-btn.active {
    background: #1e4e9e;
    color: #fff;
}

.kk-btns{
  display: flex;
  justify-content: flex-end;
}

/* Hamburger Icon */
.navbar-hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 10px;
}
.navbar-center {
  display: flex;
}
.allow{
  margin-top: 3%;
  color: red;
}

/* On smaller screens, swap visibility */
@media (max-width: 1048px) {
  .navbar-center {
    display: none;
  }
  .navbar-hamburger {
    display: inline-block;
  }
}

/* Mobile navbar optimization */
@media (max-width: 768px) {
  .navbar {
    padding: 4% 4.8%;
  }
  
  .navbar img {
    height: 32px;
  }
  
  .navbar .title {
    font-size: 14px;
    margin-left: 8px;
  }
  
  .navbar-hamburger {
    font-size: 1.5rem;
    margin-right: 5px;
    display: flex;
    align-items: center;
  }
  
  .bell {
    font-size: 1.1rem;
    margin-right: 3px;
    margin-top: 0;
    display: flex;
    align-items: center;
  }
  
  .navbar-right {
    gap: 0.01%;
    font-size: 1rem;
    display: flex;
    align-items: center;
  }
  
  .navbar-right .prof {
    display: flex;
    align-items: center;
    margin-top: 0;
  }
  body::before {
    height: 4.5rem;
    width: 92%;
  }
  .top-tunnel {
    height: 4.5rem;
    width: 92%;
  }
  

  .card {
    background-color: #fff;
  }

  .card img {
    width: 60%;
    max-width: 220px;
  }

  /* Add space between content and footer on mobile */
  .footer {
    margin-top: 80px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
  }
}

/* Card */
.card {
  width: 90%;
  max-width: 900px;          /* limit size on large screens */
  background: #fff;
  display: flex;
  flex-direction: column;   
  align-items: center;      
  border-radius: 2vh;
  margin: 3% auto;
  padding: 1.5% 2%;
  text-align: center;       
}

.card img {
  width: 40%;
  max-width: 420px;
  border-radius: 15px;
  margin-bottom: 15px;
}

.card .tag {
  display: inline-block;
  background: #0a2a5a;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-size: 14px;
}

.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: #0a2a5a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.btn:hover {
  background: #163d80;
}

.link {
  display: block;
  margin-top: 10px;
  color: #0a2a5a;
  text-decoration: none;
  font-weight: bold;
}

/* Login Strip - Modern Design */
.login-strip {
  position: fixed;
  top: calc(1rem + 70px); /* 1rem navbar offset + navbar height */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: linear-gradient(135deg, #0A2C59 0%, #143d77 100%, #1e4e9e 50%);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(10,44,89,0.20), 0 2px 8px rgba(10,44,89,0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1100;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: slideDown 0.4s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-strip:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,44,89,0.25), 0 4px 12px rgba(10,44,89,0.18);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.login-strip a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.login-strip a:hover {
  color: #fff;
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.login-strip i {
  color: #ffd700;
  font-size: 20px;
  margin-right: 4px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Mobile responsive login strip */
@media (max-width: 600px) {
  .login-strip {
    font-size: 14px;
    padding: 10px 15px;
    gap: 8px;
    width: 92%;
    max-width: 95vw;
    top: calc(1rem + 56px); /* adjust if navbar is shorter on mobile */
    border-radius: 10px;
  }
  
  .login-strip i {
    font-size: 18px;
    margin-right: 3px;
  }
  
  .login-strip a {
    font-size: 13px;
    padding: 3px 8px;
  }
  .verification-strip {
    font-size: 14px;
    padding: 10px 15px;
    gap: 8px;
    width: 92%;
    max-width: 95vw;
    top: calc(1rem + 56px); /* adjust if navbar is shorter on mobile */
    border-radius: 10px;
  }
  
  .verification-strip i {
    font-size: 18px;
    margin-right: 3px;
  }
  
  .verification-strip a {
    font-size: 13px;
    padding: 3px 8px;
  }
}

/* Mobile Navbar Menu */
.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 16px;
    width: 220px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    z-index: 2000;
    padding: 18px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(20,61,119,0.18);
    border: 1px solid #e3eaf3;
}
.navbar-mobile-menu.active {
    display: flex !important;
}
.navbar-mobile-menu .nav-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 8px;
    color: #143d77;
    background: none;
    text-align: left;
    border: none;
    margin-bottom: 8px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}
.navbar-mobile-menu .nav-btn:last-child {
    margin-bottom: 0;
}
.navbar-mobile-menu .nav-btn:hover {
    background: #eaf3fa;
    color: #1e4e9e;
}

/* Disabled States */
a.disabled, button.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .main-content {
    min-height: 60vh;
  }
  .card {
    margin-top: 5%;
    width: 95%;
    max-width: 320px;
    padding: 5%;
  }

  .card img {
    width: 55%;
    max-width: 180px;
  }

  .card h2 {
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }
}

/* Footer */
.footer {
  background: #0A2C59;
  color: #fff;
  padding: 40px 60px 20px;


}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-left h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 15px;
  line-height: 1.5;
  color: #cfd9e8;
}

.footer-middle h4,
.footer-right h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-middle ul li,
.footer-right ul li {
  margin-bottom: 8px;
}

.footer-middle ul li a,
.footer-right ul li a {
  text-decoration: none;
  color: #cfd9e8;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-middle ul li a:hover,
.footer-right ul li a:hover {
  color: #ffffff;
}

.footer-right ul li i {
  margin-right: 8px;
  font-size: 15px;
}

.footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #cfd9e8;
}


.verification-strip {
  position: fixed;
  top: calc(1rem + 70px); /* 1rem navbar offset + navbar height */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: linear-gradient(135deg, #0A2C59 0%, #143d77 100%, #1e4e9e 50%);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(10, 44, 89, 0.20), 0 2px 8px rgba(10, 44, 89, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1100;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: slideDown 0.4s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.verification-strip:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 44, 89, 0.25), 0 4px 12px rgba(10, 44, 89, 0.18);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.verification-strip a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.verification-strip a:hover {
  color: #fff;
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.verification-strip i {
  color: #ffd700;
  font-size: 20px;
  margin-right: 4px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
