/* ---------- Default Desktop Layout ---------- */
/* Desktop view same rahega, koi change nahi */

/* ---------- Responsive Styles (for mobile and tablets) ---------- */
@media (max-width: 768px) {

  /* Header & Navigation */
  nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-links a {
    font-size: 14px;
  }

  /* Section Padding */
  .section2 {
    padding: 1rem 5%;
  }

  /* Main Education Card */
  .card {
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box;
  }

  /* Card inner layout */
  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  

  /* Font sizes adjustment */
  h1 {
    font-size: 34px !important;
    text-align: center;
  }

  h3 {
    font-size: 20px !important;
  }

  h4 {
    font-size: 18px !important;
  }

  p, li {
    font-size: 14px !important;
    line-height: 1.5;
  }

  ul {
    padding-left: 20px;
  }

  /* Scholar Recognition section */
  .card-container .card {
    margin: 10px 0;
  }

  /* Fix date position */
  .card div[style*="position: absolute"] {
    position: static !important;
    text-align: right;
    margin-top: 5px;
  }

  /* Footer */
  footer {
    text-align: center;
    font-size: 13px;
    padding: 10px;
  }
}

.year {
  position: relative;
}

.year p {
  position: absolute;
  top: -88px;
  right: 20px;
}

/* mobile view fix */
@media (max-width: 768px) {
  .year p {
    position: static;
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
  }
}


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
}


/* 🌐 Default hamburger hidden */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #dba8e2;
}

/* Mobile view styling */
@media (max-width: 768px) {

  nav {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 50px;
    border-radius: 8px;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    color: #333;
    font-size: 16px;
  }

  /*.nav-links a:last-child {
    border-bottom: none;
  }*/

  /* Hide the Calm Companion button nav on mobile */
  nav[style*="margin-right"] {
    display: none !important;
  }
}
