@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

/* =============================================================
   1. VARIABLES
   ============================================================= */
:root {
  /* Brand Primary: Deep Regal Navy */
  --primary: #1B2559;
  --primary-dark: #10163A;
  --primary-light: #2B387E;

  /* Accent & Secondary: Rich Antique Gold */
  --secondary: #C9A24B;
  --secondary-dark: #A6802C;
  --secondary-light: #DFC074;
  --accent: #C9A24B;
  --gold: #C9A24B;
  --gold-deep: #8A6A22;

  /* Backgrounds & Surfaces */
  --background: #F7F6F2;
  --surface: #FFFFFF;
  --surface-alt: #F2EFE9;

  /* Typography Colors */
  --text-primary: #171A2E;
  --text-secondary: #585C72;
  --text-light: #FFFFFF;
  --text-muted: #8E92A8;

  /* Borders & Structure */
  --border: #E4E0D5;
  --border-light: #EFECE3;
  --footer-bg: #10163A;
  --link: #1B2559;

  /* 3D & Depth Tokens */
  --edge-a: #DAD5C4;
  --edge-b: #C8C1AA;

  /* Gallery / lightbox navy */
  --act-navy: #0f1f4b;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Manrope', Georgia, serif;
  --font-body: 'Inter', 'Nunito Sans', sans-serif;
}

/* [data-bs-theme="dark"] {
  --primary: #5364B8;
  --primary-dark: #1E2652;
  --primary-light: #7080D4;

  --secondary: #D4AF5A;
  --secondary-dark: #B8933C;
  --secondary-light: #F0CF7F;
  --accent: #D4AF5A;
  --gold: #D4AF5A;
  --gold-deep: #967426;

  --background: #0D1021;
  --surface: #151A33;
  --surface-alt: #1B2140;

  --text-primary: #F3F4F8;
  --text-secondary: #ABB0C9;
  --text-light: #FFFFFF;
  --text-muted: #7E83A0;

  --border: #262D54;
  --border-light: #1D2344;
  --footer-bg: #090B17;
  --link: #DFC074;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light {
  background-color: var(--surface) !important;
}

[data-bs-theme="dark"] .text-dark {
  color: var(--text-primary) !important;
}

[data-bs-theme="dark"] .shadow-sm,
[data-bs-theme="dark"] .shadow,
[data-bs-theme="dark"] .shadow-lg {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5) !important;
} */

/* =============================================================
   2. BASE
   ============================================================= */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 76px;
  /* header height offset */
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  flex-grow: 1;
  animation: pageFadeIn 0.8s ease-out both;
}

.main-home {
  animation: none !important;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 64px;
    font-size: 15px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* =============================================================
   3. BUTTONS
   ============================================================= */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
}

.btn-outline-primary-hero {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary-hero:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--secondary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #10163A;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #FFFFFF;
}

.btn-outline-secondary {
  color: var(--secondary-dark);
  border-color: var(--secondary);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #10163A;
}

/* =============================================================
   4. LAYOUT HELPERS, BRAND, HERO
   ============================================================= */
.section-padding {
  padding: 80px 0;
}

.brand-text {
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.85;
  color: #ddd;
}

@media (max-width: 768px) {
  .brand-subtitle {
    font-size: 0.6rem;
  }

  .section-padding {
    padding: 60px 0;
  }
}

/* Very small phones: hide the tagline so the toggler never gets pushed off */
@media (max-width: 400px) {
  .site-header .brand-subtitle {
    display: none;
  }
}

#header-placeholder {
  min-height: 72px;
}

.hero-section {
  background-color: var(--primary);
  color: #FFFFFF;
}

.hero-section h1,
.hero-section h2,
.hero-section h3 {
  color: #FFFFFF;
}

/* =============================================================
   5. HEADER / NAV
   Structure: header.site-header > nav.navbar > .container
              > brand + toggler + .navbar-collapse
   NOTE: .site-header must NOT be display:flex, otherwise the
   navbar shrinks to its content and the toggler can't go right.
   ============================================================= */
.site-header {
  height: 76px;
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  box-shadow: none !important;
  border-bottom: none !important;
}

.site-header .navbar {
  height: 100%;
  padding: 0;
}

.site-header .navbar>.container {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.site-header .navbar-brand {
  color: var(--text-light);
  margin: 0;
}

.site-header .navbar-toggler {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #FFFFFF;
}

.site-header .navbar-toggler svg {
  display: block;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(201, 162, 75, 0.6);
}

.site-header .btn-outline-primary {
  color: #FFFFFF;
  border-color: rgba(201, 162, 75, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .btn-outline-primary:hover {
  color: var(--secondary-light);
  border-color: var(--secondary);
  background: rgba(201, 162, 75, 0.25);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--secondary-light);
}

.nav-link.active,
.nav-link:active {
  color: #FFFFFF !important;
  background-color: rgba(201, 162, 75, 0.22);
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 6px;
}

/* Mobile / tablet: opened menu becomes a panel under the header bar */
@media (max-width: 991.98px) {
  .site-header {
    height: 64px;
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid rgba(201, 162, 75, 0.35);
    box-shadow: 0 12px 24px rgba(16, 22, 58, 0.35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.75rem 0.5rem !important;
  }
}

/* =============================================================
   6. FOOTER
   ============================================================= */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

/* =============================================================
   7. GENERIC COMPONENTS
   ============================================================= */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.25rem rgba(201, 162, 75, 0.25);
}

.badge.bg-success,
.badge.bg-secondary,
.badge-highlight {
  background-color: var(--accent) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
}

.sidebar-dark {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

/* =============================================================
   8. HOME: WORKERS' WELFARE IMAGE + NGO BANNER
   ============================================================= */
.workers-img-wrap {
  min-height: 240px;
}

.workers-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Soft fade from the card background into the image (desktop) */
.workers-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, transparent 35%);
  pointer-events: none;
}

.ngo-visual {
  position: relative;
  padding: 2.5rem 1.5rem 3rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #fff5f9 0%, #eaf9fc 100%);
  box-shadow: 0 20px 40px rgba(0, 111, 138, 0.12);
  overflow: hidden;
  isolation: isolate;
}

/* soft decorative circles behind the image */
.ngo-blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}

.ngo-blob-1 {
  width: 180px;
  height: 180px;
  top: -50px;
  right: -40px;
  background: rgba(255, 183, 77, 0.35);
}

.ngo-blob-2 {
  width: 140px;
  height: 140px;
  bottom: -40px;
  left: -30px;
  background: rgba(200, 16, 90, 0.18);
}

.ngo-img {
  max-width: 300px;
  filter: drop-shadow(0 14px 22px rgba(200, 16, 90, 0.28));
  animation: ngo-float 4s ease-in-out infinite;
}

.ngo-badge {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  background: #fff;
  color: #c8105a;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

@keyframes ngo-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ngo-img {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .ngo-visual {
    margin-top: 2rem;
  }
}

/* Mobile: image goes on top as a banner, fade from the bottom */
@media (max-width: 767.98px) {
  .workers-img-wrap {
    order: -1;
    min-height: 200px;
  }

  .workers-img-overlay {
    background: linear-gradient(0deg, var(--surface) 0%, transparent 40%);
  }
}

/* =============================================================
   9. PROJECTS / SERVICES PAGE (.ct-*)
   Uses the variables above, so dark mode works too.
   ============================================================= */
.ct-intro {
  background: var(--primary);
  padding: 64px 0 52px;
}

.ct-intro h1 {
  color: #fff;
  margin-bottom: 14px;
}

.ct-intro p {
  color: rgba(255, 255, 255, .85);
  font-size: 19px;
  max-width: 680px;
  margin: 0;
}

.ct-intro .alert {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: 8px;
  max-width: 680px;
}

.ct-section {
  padding: 64px 0;
}

.ct-section-tint {
  background: var(--background);
  border-top: 1px solid var(--border);
}

.ct-heading {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Programme cards */
.ct-card {
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* equal-height cards in a row */
}

.ct-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(27, 37, 89, 0.08);
  border-color: rgba(201, 162, 75, 0.4);
}

.ct-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--secondary);
}

.ct-icon svg {
  width: 26px;
  height: 26px;
}

.ct-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.ct-card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 18px;
}

.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.ct-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa3b5;
}

.ct-status.is-active {
  color: #1f7a45;
}

.ct-status.is-active::before {
  background: #2e9a57;
}

/* Buttons */
.ct-btn,
.ct-btn-outline {
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  transition: background .15s, color .15s;
}

.ct-btn {
  background: var(--primary);
  color: #fff;
}

.ct-btn:hover,
.ct-btn:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #10163A;
}

.ct-btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.ct-btn-outline:hover,
.ct-btn-outline:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.ct-btn:focus-visible,
.ct-btn-outline:focus-visible,
.ct-filters button:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  box-shadow: none;
}

/* Search and filters */
.ct-search {
  position: relative;
}

.ct-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.ct-search .form-control {
  padding-left: 40px;
  height: 46px;
  border-radius: 6px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-primary);
}

.ct-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 992px) {
  #gallery-filters {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    gap: 1.25rem !important;
    margin: 0 0 1.5rem !important;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }

  #gallery-filters::-webkit-scrollbar {
    display: none;
  }

  #gallery-filters .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 2px !important;
    padding: 5px !important;
    font-size: 0.9rem;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    color: var(--text-secondary) !important;
  }

  #gallery-filters .btn.btn-primary {
    /* color: var(--act-navy) !important; */
    font-weight: 700;
    border-bottom-color: var(--secondary) !important;
  }
}


@media (min-width: 992px) {


  .ct-filters {
    justify-content: flex-end;
  }
}

.ct-filters button {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 600;
}

.ct-filters button:hover {
  border-color: var(--primary-dark);
}

.ct-filters button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.ct-count {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 14px;
}

/* Document rows */
.ct-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.ct-doc-icon {
  color: var(--primary-dark);
  flex-shrink: 0;
}

.ct-doc-main {
  flex-grow: 1;
  min-width: 0;
}

.ct-doc-main h3 {
  font-size: 18px;
  margin: 0 0 2px;
}

.ct-doc-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.ct-doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ct-doc-actions .btn {
  padding: 6px 16px;
  font-size: 14px;
}

@media (max-width: 767px) {
  .ct-doc {
    flex-wrap: wrap;
  }

  .ct-doc-actions {
    width: 100%;
  }
}

.ct-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}

/* Modals */
.ct-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.ct-modal .modal-header {
  background: var(--primary);
  border: 0;
  border-bottom: 4px solid var(--accent);
}

.ct-modal .modal-title {
  color: #fff;
  font-size: 22px;
}

.ct-modal .modal-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
}

.ct-facts dt {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ct-facts dd {
  margin-bottom: 16px;
}

.ct-related {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.ct-related li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.ct-related .name {
  flex-grow: 1;
  font-weight: 600;
}

.ct-related .btn {
  padding: 4px 14px;
  font-size: 14px;
}

.ct-viewer {
  border: 1px solid var(--border);
  background: var(--background);
  min-height: 200px;
}

.ct-viewer iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

.ct-viewer img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}

.ct-nopreview {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {

  .ct-card,
  .ct-btn,
  .ct-btn-outline {
    transition: none;
  }
}

/* =============================================================
   10. GALLERY PAGE
   ============================================================= */
/* Filter buttons */
#gallery-filters .btn-primary {
  background: var(--act-navy) !important;
  color: #fff !important;
}

#gallery-filters .btn-outline-primary {
  color: var(--act-navy);
}

#gallery-filters .btn-outline-primary:hover,
#gallery-filters .btn-outline-primary:focus {
  background: var(--act-navy) !important;
  color: #fff !important;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #e9ecf5;
  box-shadow: 0 4px 14px rgba(15, 31, 75, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-card:hover {
  box-shadow: 0 10px 28px rgba(15, 31, 75, 0.25);
  transform: translateY(-4px);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(to top,
      rgba(15, 31, 75, 0.95) 0%,
      rgba(15, 31, 75, 0.75) 50%,
      rgba(15, 31, 75, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-overlay>* {
  transform: translateY(14px);
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover .gallery-overlay>* {
  transform: translateY(0);
}

.gallery-tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50rem;
  margin-bottom: 0.6rem;
}

.gallery-overlay h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.gallery-overlay p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.92;
}

.gallery-overlay h5,
.gallery-overlay p,
.gallery-overlay .gallery-tag {
  color: #fff !important;
}

/* Touch / small screens: navy tag pill */
@media (hover: none),
(max-width: 767px) {
  .gallery-tag {
    background: var(--act-navy);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.35rem;
  }
}

/* Touch devices: overlay only at the bottom so the image stays visible, title only */
@media (hover: none) {
  .gallery-overlay {
    inset: auto 0 0 0;
    height: auto;
    padding: 2rem 0.9rem 0.8rem;
    opacity: 1;
    background: linear-gradient(to top,
        rgba(15, 31, 75, 0.85) 0%,
        rgba(15, 31, 75, 0.55) 55%,
        rgba(15, 31, 75, 0) 100%);
    /* transparent at the top */
  }

  .gallery-overlay>* {
    transform: none;
  }

  .gallery-overlay p {
    display: none;
    /* no description on mobile */
  }

  .gallery-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.35rem;
  }

  .gallery-overlay h5 {
    font-size: 0.95rem;
    margin: 0;
  }
}

/* Mobile: filters become a scrollable underline tab bar */
@media (max-width: 767px) {
  #gallery-filters {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    gap: 1.25rem !important;
    margin: 0 0 1.5rem !important;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
  }

  #gallery-filters::-webkit-scrollbar {
    display: none;
  }

  #gallery-filters .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0 !important;
    padding: 0.6rem 0.1rem !important;
    font-size: 0.9rem;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    color: var(--text-secondary) !important;
  }

  #gallery-filters .btn.btn-primary {
    /* color: var(--act-navy) !important; */
    font-weight: 700;
    border-bottom-color: var(--secondary) !important;
  }
}

/* =============================================================
   11. LIGHTBOX (final merged values)
   ============================================================= */
#lightboxModal {
  z-index: 100000 !important;
}

/* .modal-backdrop {
  z-index: 99999 !important;
  background-color: #02060f;
}

.modal-backdrop.show {
  opacity: 0.88;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
} */

#lightboxModal .modal-dialog {
  margin-top: 40px;
  margin-bottom: 1.5rem;
}

#lightboxModal .modal-content {
  background: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.12),
    0 25px 70px rgba(0, 0, 0, 0.6);
}

.lightbox-img-wrap {
  position: relative;
  background: #e8edf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--act-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  background: var(--act-navy);
  color: #fff;
}

.lightbox-nav.prev {
  left: 12px;
}

.lightbox-nav.next {
  right: 12px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--act-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-info {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
  background: #ffffff;
  border-top: 4px solid var(--act-navy);
}

.lightbox-info h4 {
  color: var(--act-navy);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

#lightbox-meta {
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

#lightbox-desc {
  font-size: 0.98rem;
  color: #374151;
  margin: 0;
}

/* Mobile */
@media (max-width: 576px) {
  #lightboxModal .modal-dialog {
    margin-top: 70px;
  }

  #lightbox-img {
    max-height: 40vh;
  }
}

/* =============================================================
   12. SEARCH BAR
   ============================================================= */
/* Desktop / tablet: single pill, button on the right */
/* .search-group {
  border-radius: 50px;
  overflow: hidden;
  flex-wrap: nowrap;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
} */

/* .search-input-modern {
  min-width: 0;
  border: none;
  padding-left: 1.5rem;
  text-overflow: ellipsis;
} */

.search-btn {
  background: var(--text-light);
  color: var(--primary-dark);
  border: none;
  border-radius: 0;
  padding-left: 4rem;
  padding-right: 4rem;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--accent);
  color: var(--text-light);
}

/* Mobile: button drops to a second row */
@media (max-width: 575.98px) {
  .search-group {
    flex-direction: column;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    gap: .75rem;
  }

  .search-group>.form-control,
  .search-group>.btn {
    width: 100%;
    margin: 0 !important;
    /* cancels Bootstrap's -1px input-group margin */
    border-radius: 50px !important;
    /* each row becomes its own pill */
  }

  .search-group>.form-control {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  }
}

/* --------------------------------------- 14-10-26--------------- */


.brand-top {
  margin-bottom: 6px;
  /* logo row-ukkum subtitle-ukkum gap */
}

.brand-title {
  display: block;
  flex-shrink: 0;
  height: 25px;
  aspect-ratio: 600 / 260;
  background-color: var(--text-light, #fff);
  -webkit-mask: url("../images/logo/logo_act.png") no-repeat left center / contain;
  mask: url("../images/logo/logo_act.png") no-repeat left center / contain;
  /* margin-bottom ippo .brand-top-la irukku, inga thevai illa */
}



.brand-fullform {
  font-size: 0.7rem;
  /* line-height: 1.1; */
  letter-spacing: 0.5px;
  max-width: 90px;
  /* 2 lines-ah wrap aagum */
  color: #ddd;
  opacity: 0.85;
  font-weight: 500;
}

@media (max-width: 575px) {
  .site-header .navbar-brand {
    gap: 6px !important;
    min-width: 0;
    flex: 1 1 auto;
    /* let the brand shrink so the toggler stays visible */
  }

  .site-header .logo-img {
    height: 24px !important;
  }

  .site-header .brand-text {
    min-width: 0;
    gap: 1px;
  }

  .site-header .brand-fullform {
    display: block !important;
    max-width: none;
    /* removes the 90px limit that squeezes it on desktop */
    font-size: 0.6rem;
    line-height: 1.15;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  .site-header .brand-subtitle {
    display: block !important;
    font-size: 0.52rem;
    line-height: 1.75;
    white-space: nowrap;
  }
}

/* Very small phones (≤360px): allow the full form to wrap to 2 lines */
@media (max-width: 360px) {
  .site-header .brand-fullform {
    white-space: normal;
    max-width: 120px;
  }

  .site-header .brand-subtitle {
    font-size: 0.5rem;
  }
}

/* Mobile / small screens */
@media (max-width: 575px) {
  .navbar-brand {
    margin-right: 0;
    min-width: 0;
  }

  .logo-img {
    height: 26px !important;
    /* icon konjam chinna */
  }

  .brand-fullform {
    /* display: none; */
    /* full form mobile-la maraiyum */
  }

  .brand-title {
    /* height: 15px; */
    /* wordmark chinna */
    /* margin-bottom: 0; */
  }

  .brand-top {
    /* margin-bottom: 3px; */
  }

  .brand-subtitle {
    /* font-size: 0.6rem;
    white-space: nowrap; */
  }
}

/* Romba chinna phones (360px-ku keezha) */
@media (max-width: 360px) {
  .brand-subtitle {
    /* font-size: 0.55rem; */
  }
}

/* Mission box - decent highlighted border */
.mission-box {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 162, 75, 0.45);
  /* accent gold border */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 0 0 4px rgba(201, 162, 75, 0.08);
  /* soft outer ring */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.mission-box:hover {
  border-color: rgba(201, 162, 75, 0.8);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.09),
    0 0 0 6px rgba(201, 162, 75, 0.12);
}

/* Left accent bar (optional, looks premium) */
/* .mission-box::before {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 5px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, var(--accent), var(--primary));
} */

/* Mission box - hover lift */
.mission-box {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.mission-box:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 75, 0.8);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.12),
    0 0 0 6px rgba(201, 162, 75, 0.12);
}

/* ------------------------- */

.navbar-brand {
  align-items: center;
  /* logo & wordmark vertically center */
}

.brand-text {
  align-items: flex-start;
  /* fullform & subtitle rendum same left edge-la start */
  text-align: left;
  line-height: 1.2;
  gap: 4px;
}

.brand-fullform,
.brand-subtitle {
  margin: 0;
  padding: 0;
}


.info-strip .info-item a,
.info-strip .info-item span {
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .ct-filters {
    justify-content: center;
  }

  .info-strip .info-item+.info-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
  }

  /* Email links oru line la irukka */
  .info-strip .info-item a[href^="mailto:"] {
    white-space: nowrap;
  }
}

.about-photo {
  background: #E2E8F0;
  aspect-ratio: 4 / 3;
  /* mobile: clean 4:3 frame, no grey bars */
}

.about-photo img {
  display: block;
  object-fit: cover;
  /* fills the frame, no empty space */
  object-position: center;
}

/* Desktop: match the height of the text column beside it */
@media (min-width: 992px) {
  .about-photo {
    aspect-ratio: auto;
    height: 100%;
    min-height: 400px;
  }
}