/* =========================================
   SHAH ALI FOUNDATION — GLOBAL STYLES
   ========================================= */

/* EB Garamond throughout */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&display=swap');

:root {
  --page-bg: #231939;       /* flat background, all pages */
  --navbar-bg: #2e4e20;     /* top bar */
  --navbar-bg-hover: #243c19;
  --text: #ffffff;          /* all text is white */
  --navbar-height: 66px;
}

* {
  box-sizing: border-box;
}

/* =========================================
   GLOBAL PAGE SETTINGS
   ========================================= */

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--text);
  background: var(--page-bg);
}

/* =========================================
   NAVIGATION BAR
   ========================================= */

.navbar {
  background-color: var(--navbar-bg) !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'EB Garamond', Georgia, serif;
  min-height: var(--navbar-height);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-nav .nav-link,
.navbar .menu-text {
  color: #ffffff !important;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Active navigation tab */
.navbar .nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
}

/* Search icon and other icons */
.navbar .quarto-navbar-tools a,
.navbar .aa-DetachedSearchButton,
.navbar .aa-DetachedSearchButtonIcon,
.navbar .bi {
  color: #ffffff !important;
}

/* Dropdown menu */
.navbar .dropdown-menu {
  background-color: var(--navbar-bg) !important;
  border: 1px solid #ffffff;
  border-radius: 3px;
}

.navbar .dropdown-item {
  color: #ffffff !important;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--navbar-bg-hover) !important;
  color: #ffffff !important;
}

/* Mobile navigation toggler */
.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* =========================================
   HIDE DEFAULT QUARTO TITLE BLOCKS
   ========================================= */

#title-block-header,
.quarto-title-block,
header.quarto-title-block {
  display: none !important;
}

/* =========================================
   GENERAL PAGE LAYOUT
   ========================================= */

#quarto-content,
main.content,
.page-columns,
.page-layout-full {
  width: 100%;
  max-width: none !important;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--page-bg);
}

/* General typography: everything white */
h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Georgia, serif;
  color: #ffffff;
  font-weight: 500;
}

p, li, div, span, td, th, a {
  font-family: 'EB Garamond', Georgia, serif;
  color: #ffffff;
}

p {
  line-height: 1.5;
}

/* Links inside page content */
main a,
.contact-page a,
.donation-page a {
  color: #ffffff;
  text-decoration: underline;
}

main a:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* =========================================
   HOMEPAGE
   ========================================= */

.homepage {
  display: grid;
  grid-template-columns: 28% 72%;
  width: 100%;
  margin-top: 1rem;
  height: calc(100vh - var(--navbar-height) - 1rem);
  height: calc(100dvh - var(--navbar-height) - 1rem);
  overflow: hidden;
  align-items: stretch;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 3.5rem);
  min-width: 0;
}

.intro h1 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}

.intro p {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-page {
  padding: clamp(2rem, 5vw, 5rem);
  color: #ffffff;
  font-size: 1.2rem;
}

.contact-page i {
  margin-right: 0.4rem;
}

.contact-page .social a {
  margin-right: 1.5rem;
}

/* =========================================
   DONATION PAGE
   Two-line gap between the top bar and the text
   ========================================= */

.donation-page {
  padding: 3.6rem clamp(2rem, 5vw, 5rem) 2rem;  /* top = about two lines */
  color: #ffffff;
  font-size: 1.2rem;
}

.donation-page > :first-child {
  margin-top: 0;
}

/* =========================================
   COMING SOON PAGES
   ========================================= */

.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh;
  width: 100%;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
}

.coming-soon p {
  margin: 0;
}

/* =========================================
   GALLERY
   ========================================= */

.gallery-page {
  padding: 3.6rem clamp(2rem, 5vw, 5rem) 2rem;
}

.gallery-page .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1.2rem;
  width: 100%;
}

.gallery-page .gallery p {
  margin: 0 !important;
}

.gallery-page .gallery a.lightbox {
  display: block;
}

.gallery-page .gallery img {
  display: block;
  width: 100% !important;
  height: 220px !important;
  max-width: 100%;
  object-fit: cover;
  border-radius: 3px;
  transition: opacity 0.2s;
}

.gallery-page .gallery img:hover {
  opacity: 0.85;
}

/* ---- Lightbox: description panel beside the enlarged image ---- */

/* Every box inside the panel: no white background, white text */
.glightbox-container .gslide-description,
.glightbox-container .gslide-description *,
.glightbox-clean .gslide-description,
.glightbox-clean .gslide-description * {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-family: 'EB Garamond', Georgia, serif;
}

/* The panel itself: purple, same as the page */
.glightbox-container .gslide-description,
.glightbox-clean .gslide-description {
  background: var(--page-bg) !important;
  background-color: var(--page-bg) !important;
}

.glightbox-container .gslide-desc,
.glightbox-container .gslide-desc p {
  font-size: 1.15rem;
  line-height: 1.5;
}

.glightbox-container .gslide-title {
  font-size: 1.3rem;
  font-weight: 500;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 700px) {
  .homepage {
    grid-template-columns: 38% 62%;
    margin-top: 0.5rem;
    height: calc(100dvh - var(--navbar-height) - 0.5rem);
  }

  .intro {
    padding: 1rem;
  }

  .intro h1 {
    font-size: 1.25rem;
  }

  .intro p {
    font-size: 0.9rem;
  }

  .donation-page {
    padding-top: 3rem;
  }

  .gallery-page {
    padding-top: 3rem;
  }
}

/* =========================================
   END OF STYLES
   ========================================= */
