@import url('sky-theme.css?v=5');

/* Shared site chrome: the Alumni page header/footer is the visual reference for every public page. */
.topbar,
.fgmphs-header {
  box-sizing: border-box;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 0 max(24px, 10vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #f1eee8;
  position: relative;
  z-index: 10;
}

.topbar .brand,
.fgmphs-header .fgmphs-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #27333c;
  text-decoration: none;
}

.topbar .brand img,
.fgmphs-header .fgmphs-logo img { width: 43px; height: 43px; object-fit: contain; }
.topbar .brand b,
.topbar .brand small,
.fgmphs-header .fgmphs-logo span,
.fgmphs-header .fgmphs-logo small { display: block; font-family: 'Noto Serif Bengali', serif; }
.topbar .brand b,
.fgmphs-header .fgmphs-logo span { font-size: 14px; line-height: 1.2; }
.topbar .brand small,
.fgmphs-header .fgmphs-logo small { font-size: 11px; line-height: 1.2; }

.topbar nav,
.fgmphs-header .fgmphs-nav nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a,
.fgmphs-header .fgmphs-nav nav a {
  color: #46515a;
  text-decoration: none;
  font: 600 13px 'Noto Serif Bengali', serif;
}
.topbar nav a:hover,
.topbar nav a.active,
.fgmphs-header .fgmphs-nav nav a:hover,
.fgmphs-header .fgmphs-nav nav a.active { color: #f2a230; }
.topbar .join,
.fgmphs-header .join {
  min-width: 112px;
  padding: 9px 24px;
  text-align: center;
  border-radius: 8px;
  background: #f9a839;
  color: #24313a !important;
  text-decoration: none;
  font: 600 13px 'Noto Serif Bengali', serif;
}

.mobile-nav-toggle,
.mobile-register { display: none; }

.site-footer,
.fgmphs-footer,
body > footer {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #f7f2e9;
  color: #34404b;
  padding: 30px max(24px, 8vw) 12px;
  border-top: 1px solid #e9e4db;
}
.site-footer .footer-grid,
.fgmphs-footer .footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .95fr .95fr 1.25fr;
  gap: 32px;
  padding-bottom: 14px;
  border-bottom: 0;
}
.site-footer .footer-side-info { display: contents; }
.site-footer h3,
.fgmphs-footer h3 { font: 700 18px 'Noto Serif Bengali', serif; margin: 4px 0 19px; color: #27333c; }
.site-footer .footer-about { padding-top: 10px; }
.site-footer .footer-links h3 { margin-bottom: 7px; }
@media (min-width: 761px) {
  .site-footer .footer-links h3 { margin-bottom: 0; }
}
.site-footer .footer-about img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 13px; }
.site-footer .footer-about p { max-width: 280px; margin: 0; color: #4d5961; font: 400 14px/1.8 'Noto Serif Bengali', serif; }
.site-footer .social-links { display: flex; gap: 10px; margin-top: 17px; }
.site-footer .social-links a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #2374dc; color: #fff; text-decoration: none; font: 700 15px 'DM Sans', sans-serif; }
.site-footer .social-links svg { width: 16px; height: 16px; display: block; }
.site-footer .social-links a:nth-child(2) { background: #d94f78; }
.site-footer .social-links a:nth-child(3) { border-radius: 4px; background: #2867a8; }
.site-footer .social-links a:nth-child(4) { border-radius: 5px; background: #df2727; }
.site-footer .footer-contact .footer-social-row { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 5px 0 0; }
.site-footer .footer-contact .footer-social-icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 50%; background: #0866ff; box-shadow: 0 2px 7px #102a431c; }
.site-footer .footer-contact .footer-social-icon img { display: block; width: 19px; height: 19px; margin: 0; object-fit: contain; }
.site-footer .footer-contact .footer-social-icon.instagram { border-radius: 11px; background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.site-footer .footer-contact .footer-social-icon.linkedin { border-radius: 7px; background: #0a66c2; }
.site-footer .footer-links,
.site-footer .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer .footer-links a,
.site-footer .footer-contact > a { color: #48545d; text-decoration: none; font: 500 14px 'Noto Serif Bengali', serif; }
.site-footer .footer-contact > a[href^="mailto:"] { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-contact > a[href^="mailto:"] img { width: 17px; height: 17px; flex: none; object-fit: contain; }
.site-footer .footer-links a:hover,
.site-footer .footer-contact > a:hover { color: #c47714; }
.site-footer .footer-contact h3 { margin-bottom: 2px; }
.site-footer .footer-contact div { margin-top: 2px; font: 500 13px/1.4 'Noto Serif Bengali', serif; }
.site-footer .footer-contact div p { margin: 5px 0 0; color: #64707a; font-size: 11px; }
.site-footer .footer-bottom,
.fgmphs-footer .copyright {
  max-width: 1240px;
  margin: 7px auto 0;
  padding-top: 7px;
  border-top: 0;
}
.site-footer .footer-bottom { font-size: 11px; }

@media (max-width: 850px) {
  .topbar,
  .fgmphs-header { height: 64px; min-height: 64px; max-height: 64px; padding: 0 24px; }
  .topbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px 16px 12px;
    background: #fff;
    border-top: 1px solid #f1eee8;
    border-bottom: 1px solid #e7e1d8;
    box-shadow: 0 12px 22px rgba(37, 48, 55, .13);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .topbar.menu-open nav { display: flex; }
  .topbar nav a {
    flex: 0 0 auto;
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid #f2efe9;
    font-size: 14px;
  }
  .topbar nav a:last-child { border-bottom: 0; }
  .topbar .join { display: none; }
  .mobile-register {
    display: block;
    margin: 10px 0 4px;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 8px;
    background: #f9a839;
    color: #24313a !important;
    text-align: center;
    font-weight: 700 !important;
  }
  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 4px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-nav-toggle img {
    display: block;
    width: 21px;
    height: 21px;
  }
  .fgmphs-header .fgmphs-nav nav { display: none; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 38px; }
}
@media (max-width: 560px) {
  .topbar,
  .fgmphs-header { height: 64px; min-height: 64px; max-height: 64px; padding: 0 18px; }
  .topbar .brand { min-width: 0; gap: 7px; }
  .topbar .brand img { width: 38px; height: 38px; flex: 0 0 auto; }
  .topbar .brand span { min-width: 0; }
  .topbar .brand b { max-width: min(64vw, 255px); white-space: nowrap; font-size: 11px; }
  .topbar .brand small { font-size: 9px; }
  .mobile-nav-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; padding-bottom: 9px; }
  .site-footer .footer-about { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; min-width: 0; padding-bottom: 11px; border-bottom: 1px solid #e5e9eb; text-align: center; }
  .site-footer .footer-about img { width: 48px; height: 48px; margin: 0 0 5px; }
  .site-footer .footer-about p { max-width: 100%; font-size: 11px; line-height: 1.45; }
  .site-footer .footer-links:not(.footer-policy) { grid-column: 1; grid-row: 2; min-width: 0; gap: 7px; }
  .site-footer .footer-side-info { display: flex; grid-column: 2; grid-row: 2; flex-direction: column; gap: 13px; min-width: 0; }
  .site-footer .footer-policy,
  .site-footer .footer-contact { min-width: 0; gap: 7px; }
  .site-footer .footer-links h3,
  .site-footer .footer-contact h3 { margin: 0 0 3px; font-size: 13px; }
  .site-footer .footer-links a,
  .site-footer .footer-contact > a { max-width: 100%; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
  .site-footer .footer-contact div { margin-top: 0; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
  .site-footer .footer-contact div p { font-size: 10px; line-height: 1.4; }
  .site-footer .footer-bottom { grid-column: 1 / -1; margin-top: 0; padding-top: 6px; font-size: 10px; }
  .site-footer,
  .fgmphs-footer,
  body > footer { padding: 16px 15px 9px; }
  .site-footer h3,
  .fgmphs-footer h3 { margin-bottom: 5px; font-size: 13px; }
}
