@font-face {
  font-family: 'Shahid Abu Said';
  src: url('./font.ttf') format('truetype');
}

/* GENERAL PAGE STYLES */
body {
  font-family: "Noto Serif Bengali", serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;       /* Center content horizontally */
  justify-content: flex-start;
  min-height: 100vh;
  margin: 0;
  font-size: clamp(2rem, 3vw, 4rem);
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1rem 2rem;
  background: rgba(30,30,30,0.85);
  border-radius: 2.5em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin: 1.5rem auto 2.5rem auto;
  width: fit-content;
  position: relative;
}
.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.navbar-toggle {
  display: none;
}
.navbar-mobile-header {
  display: none;
}
@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border-radius: 1.5em;
    padding: 0.5em 0.5em 0.5em 0.5em;
    gap: 0.5em;
    position: relative;
    background: rgba(30,30,30,0.95);
  }
  .navbar-mobile-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
    height: 2.2em;
  }
  .navbar-toggle {
    display: block;
    font-size: 2rem;
    margin: 0 0.2em 0 0.2em;
  }
  .navbar-pagename {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    height: 2.2em;
    line-height: 2.2em;
    margin-left: 0.1em;
  }
  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    position: absolute;
    left: 0;
    top: 3.2em;
    background: rgba(30,30,30,0.98);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-radius: 0 0 1.5em 1.5em;
    z-index: 15;
    padding: 1em 0.5em 1em 0.5em;
    animation: slideDown 0.2s;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }
  .navbar.navbar-open .navbar-links {
    display: flex;
  }
  .navbar-links a {
    display: block;
    width: 100%;
    margin: 0.4em 0;
    padding: 1em 1.2em;
    border-radius: 1em;
    font-size: 1.2rem;
    background: none;
    text-align: left;
    color: #ff5555;
    transition: background 0.2s, color 0.2s;
  }
  .navbar-links a:visited {
    color: #ff5555;
  }
  .navbar-links a:hover, .navbar-links a.active {
    background: #ff5555;
    color: #fff !important;
    text-decoration: none;
  }
}
.navbar-links a {
  color: #ff5555;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 2em;
  transition: background 0.2s, color 0.2s;
  position: relative;
  background: none;
  box-shadow: none;
  margin: 0 0.2em;
}
.navbar-links a:visited {
  color: #ff5555;
}
.navbar-links a:hover, .navbar-links a.active {
  background: #ff5555;
  color: #fff !important;
  text-decoration: none;
  border-radius: 2em;
  box-shadow: 0 2px 8px rgba(255,85,85,0.15);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Show page name beside hamburger only on mobile */
.navbar-pagename {
  display: none;
  font-size: 1.2rem;
  color: #fff;
  margin-left: 0.5em;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .navbar-pagename {
    display: inline-block;
    vertical-align: middle;
  }
}

/* FLAGS */
.flags {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.flag {
  width: 6.25rem;
  height: auto;
  max-width: 100%;
}

/* IFRAMES (Videos) */
iframe {
  width: 100%;
  max-width: 560px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.875rem 0;
  border-radius: 10px;
  border: none;
}

/* NOTE SECTIONS */
.note-box {
  font-size: clamp(1.5rem, 1.5vw, 2.5rem);
  margin: 1.25rem 0;
  max-width: 600px;
  line-height: 1.7;
  padding: 1.2em 1em 1.2em 1em;
  background: rgba(30,30,30,0.7);
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  word-break: break-word;
}
.note-box span {
  color: #ff5555;
  display: inline;
  margin-bottom: 0;
}
.note-box a {
  color: #ff5555;
  text-decoration: none;
  font-weight: bold;
  word-break: break-all;
}

.chat-box {
  border: 2px solid #ff5555;
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  margin: 1.25rem auto;
  padding: 0;
  background: rgba(30,30,30,0.7);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.chat-box iframe {
  width: 100% !important;
  min-height: 450px;
  border: none;
  flex: 1 1 auto;
  display: block;
}

/* SHAHID ABU SAID FONT CLASS */
.shahid-abu-said {
  font-family: 'Shahid Abu Said', sans-serif;
}

/* CHAT HEADING */
.chat-heading {
  font-size: 2.2rem;
  font-family: 'Shahid Abu Said', sans-serif;
  color: #ff5555;
  margin-bottom: 0.5em;
}

/* HORIZONTAL RULES */
hr {
  border: none;
  border-top: 2px solid #fff;
  width: 100%;
  margin: 1rem 0;
}

/* BENGALI FONT UTILITY */
.noto-serif-bengali-font {
  font-family: "Noto Serif Bengali", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* BLANK PAGE STYLES */
.blank-content {
  padding: 2rem;
  text-align: center;
}

/* GALLERY PAGE STYLES */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
.gallery-item iframe,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER STYLES */
.footer {
  font-size: 1rem;
  padding: 1rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 480px) {
  body {
    font-size: clamp(1.2rem, 4vw, 2rem);
    padding: 0.5rem;
  }
  .flags {
    gap: 1rem;
  }
  .flag {
    width: 4.5rem;
  }
  .note-box, .chat-box {
    font-size: clamp(0.75rem, 3vw, 1rem);
  }
}
