/* =========================== MENU ======================== */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-navbar {
    background: #fff;
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.navbar-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 700;
    color: #100568;
}
/* ===== DROPDOWN ===== */
.submenu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    background: #fff;
    min-width: 180px;

    display: none;
    list-style: none;
    margin: 0;
    padding: 0;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 3px solid #100568;
    z-index: 9999;
}

.submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #100568;
    font-weight: 600;
}

.dropdown-menu li a:hover {
    background: #100568;
    color: white;
}

/* ===== LOGO ===== */

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img {
    height: 95px;   /* adjust size like reference */
    width: auto;
    position: relative;
    top: 30px;       /* 👈 moves logo slightly down */
}

/* ====== RESPONSIVE DESIGN === */
@media (max-width: 992px) {

    .nav-menu {
        gap: 20px;
    }

    .logo img {
        height: 70px;
    }
}

@media (max-width: 768px) {

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 480px) {

    .nav-menu li a {
        font-size: 15px;
    }

    .logo img {
        height: 55px;
    }
}


/* Smooth link click feel */
.nav-menu li a:active {
    transform: scale(0.95);
    display: inline-block;
}

/* hide mobile elements on desktop */
.mobile-title,
.hamburger {
    display: none;
}

/* ===== MOBILE VIEW ================================ */
    @media (max-width: 768px) {

        /* show mobile elements */
        .mobile-title {
            flex: 1;
            display: block;   /* IMPORTANT */
            text-align: center;
            font-weight: 700;
            color: #100568;
            font-size: 13px;
            font-family: 'Times New Roman', sans-serif;
            line-height: 1.2;
            letter-spacing: 1px;
            padding: 0 8px;
            text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.403);
            overflow: visible;
            text-overflow: unset;  
        }

        .hamburger {
            display: block;
            font-size: 26px;
            cursor: pointer;
        }

        /* hide desktop menus */
        .nav-menu {
            display: none;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            background: #fff;
            padding: 10px 15px;
             /* 👇 IMPORTANT FIX */
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        }

        .nav-menu.active {
            display: flex;
        }

        /* 🔥 REMOVE ALL POSITIONING HACKS */
    .left-menu,
    .right-menu {
        position: static;
        margin: 0;
    }

    /* spacing between menus */
    .right-menu {
        margin-top: 10px;
    }

        /* layout fix */
        .navbar-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
            width: 100%;
        }

        /* top bar: hide email */
        .top-bar-content span:nth-child(2) {
            display: none;
        }
        
        .logo {
            flex-shrink: 0;
        }
        
        .logo img {
            height: 60px;
            top: 0;
        }
        
    }

/* =================================================
   MOBILE HEADER EXTRA (NEW ADDITION)
================================================= */

.mobile-header-extra {
    display: none;
}

/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {

    /* SHOW MOBILE HEADER EXTRA */
    .mobile-header-extra {
        display: block;
        background: #fff;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    /* MOBILE MENU PANEL */
    .mobile-menu-panel {
        display: none;
        background: #fff;
        text-align: center;
        border-top: 1px solid #eee;
    }

    .mobile-menu-panel ul {
        list-style: none;
        padding: 10px 0;
        margin: 0;
    }

    .mobile-menu-panel ul li {
        padding: 12px 0;
    }

    .mobile-menu-panel ul li a {
        text-decoration: none;
        color: #100568;
        font-weight: 600;
        font-size: 15px;
        display: block;
    }

    /* OPEN STATE */
    .mobile-menu-panel.active {
        display: block;
    }
}

/* ===================== NEW SECTION ===================== */

.centers-section {
    padding: 80px 20px;
    background: #fff;
    max-width: 1300px;   /* controls box width */
    margin: 0 auto;      /* centers it */
}

.xyz {
    background: #ffffff;
    padding: 15px;
    text-align: center; 
    font-family: 'Roboto', sans-serif;
    margin-top: 80px;
}

.xyz h2 {
    color: #212529;
    margin: 0;
    font-size: 40px;
    font-weight: 600;
}

.info i {
    color: #1a0f6b;
    margin-right: 8px;
    font-size: 16px;
    width: 18px; /* keeps alignment neat */
  }

.info p {
    display: flex;
    align-items: center;
  }

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
  }
  
  /* Card */
  .center-card {
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ccc;
  }
  
  /* Top Title */
  .card-title {
    background: #1a0f6b;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 25px;
    font-weight: bold;
  }
  
  /* Profile Section */
  .card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  
  .card-body img {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .info p {
    margin: 6px 0;
    font-size: 16px;
  }
  
  .schedule {
    border-top: 1px solid #ccc;
    padding: 0;
  }
  
  /* TABLE */
  .schedule table {
    width: 100%;
    border-collapse: collapse;
  }
  
  /* CELLS */
  .schedule th,
  .schedule td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
    font-size: 15px;
  }
  
  /* HEADER ROW */
  .schedule th {
    background: #f0f0f0;
    font-weight: 600;
  }
  
  /* "Time" label */
  .time-label {
    text-align: left;
    padding-left: 15px;
    font-weight: bold;
    background: #f9f9f9;
  }

  .schedule table tr:first-child th:first-child {
    background: #f5f5f5;
  }

/*---================MAP==============================*/

  .map-section {
    padding: 1px;
    background: #f5f5f5;
  }
  
  .map-card {
    width: 100%;
    max-width: 100%;
    height: 600px;
    margin: auto;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: #fff;
  }
  
  .map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

/* ================= GENERAL ================= */
.centers-section {
    padding: 60px 15px;
    background: #fff;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  .xyz h2 {
    font-size: 32px;
  }
  
  /* ================= GRID ================= */
  .cards-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  /* ================= CARD ================= */
  .card-body {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  
  /* ================= MAP ================= */
  .map-card {
    width: 100%;
    height: 500px; /* slightly flexible base */
  }
  
  /* ================= TABLE FIX ================= */
  .schedule {
    overflow-x: auto; /* 🔥 prevents breaking */
  }
  
  /* ================= TABLET ================= */
  @media (max-width: 992px) {
  
    .cards-wrapper {
      grid-template-columns: 1fr; /* 2 → 1 */
    }
  
    .xyz h2 {
      font-size: 28px;
    }
  
    .card-body img {
      width: 100px;
      height: 120px;
    }
  
    .map-card {
      height: 450px;
    }
  }
  
  /* ================= MOBILE ================= */
  @media (max-width: 600px) {
  
    .centers-section {
      padding: 40px 10px;
    }
  
    .xyz h2 {
      font-size: 24px;
    }
  
    .card-body {
      flex-direction: column; /* 🔥 stack */
      text-align: center;
    }
  
    .card-body img {
      width: 100%;
      max-width: 180px;
      height: auto;
    }
  
    .info p {
      justify-content: center;
    }
  
    .schedule th,
    .schedule td {
      font-size: 13px;
      padding: 8px;
    }
  
    .map-card {
      height: 300px;
    }
  }

/* ===================== FOOTER ===================== */
.footer {
    background: #100568;
    color: #f7f7f7;
}

.footer-main {
    padding: 70px 0 30px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 3px;
    background: #00bfff;
    margin-bottom: 20px;
}

/* CONTACT */
.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 10px;

}

.footer-contact a {
    color: #f7f7f7;
    text-decoration: none;
}

/* SOCIAL ICONS (NEW) */
.social-icons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #00bfff;
    transform: translateY(-3px);
}

/* LOCATIONS LIST (FIXED) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
}

.footer-links i {
    color: #ffffff;
}

/* BOTTOM */
.footer-bottom {
    background: #0a043f;
    padding: 20px 0;
    text-align: center;
    color: #ddd;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 992px) {

    .footer-main {
        padding: 60px 0 20px;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .footer h4 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {

    .footer-main {
        padding: 50px 0 20px;
        text-align: left;
    }

    .footer-contact p {
        font-size: 14px;
    }

    .footer-links li {
        justify-content: left;
        font-size: 14px;
    }

    .social-icons {
        justify-content: left;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 13px;
    }
}