/* ============================================================
   INSTYTUT JANA OLSZEWSKIEGO — Styles
   ============================================================ */

/* ---------- CSS RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #212529;
  background-color: #f8f9fa;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---------- PAGE LOADER ---------- */
.page-loading-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 999999;
  transform-origin: right center;
  transition: transform 0.45s ease-in-out;
  pointer-events: none;
}
.page-loading-bg.hidden {
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.bg-white { background-color: #fff; }
.bg-gray { background-color: #f8f9fa; }
.text-center { text-align: center; }

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

.navbar-brand {
  flex-shrink: 0;
  z-index: 10;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

.site-header.scrolled .logo-img {
  height: 65px;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 20;
  flex-shrink: 0;
}

.hamburger-box {
  width: 28px;
  height: 20px;
  display: block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
  background: #212529;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before { top: -9px; }
.hamburger-inner::after { top: 9px; }

.hamburger.active .hamburger-inner { background: transparent; }
.hamburger.active .hamburger-inner::before {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .hamburger-inner::after {
  transform: translateY(-9px) rotate(-45deg);
}

/* NAV LINKS */
.navbar-collapse {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-header.scrolled .nav-link {
  color: #212529;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link:focus {
  color: #8b0000;
}

/* DROPDOWN */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 500;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.dropdown-inner a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.dropdown-inner a:hover {
  background: #f8f9fa;
  color: #8b0000;
}

/* SUPPORT BUTTON */
.nav-support-btn {
  margin-left: 12px;
}

.btn-support {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
  white-space: nowrap;
}

.site-header.scrolled .btn-support {
  border-color: #8b0000;
  color: #8b0000;
}

.btn-support:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.site-header.scrolled .btn-support:hover {
  background: #8b0000;
  color: #fff;
}

/* ---------- HERO SLIDER ---------- */
.hero-slider-section {
  position: relative;
  width: 100%;
  background: #111;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 2;
}

/* SLIDER DOTS */
.slider-dots {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

/* SLIDER THUMBS */
.slider-thumbs {
  display: flex;
  background: rgba(0,0,0,0.4);
  position: relative;
  z-index: 5;
}

.thumb {
  flex: 1;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  height: 80px;
  opacity: 0.5;
  transition: opacity 0.3s;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.thumb:last-child {
  border-right: none;
}

.thumb.active {
  opacity: 1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PHOTO CREDIT */
.photo-credit {
  text-align: right;
  font-size: 11px;
  color: #666;
  padding: 4px 30px;
  background: #f8f9fa;
}

/* ---------- INSTITUTE NAME SECTION ---------- */
.institute-name-section {
  padding: 30px 0 20px;
}

.institute-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.institute-address {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  color: #495057;
}

/* ---------- FEATURED IMAGE ---------- */
.featured-image-section {
  padding: 10px 0 20px;
  background: #fff;
}

.featured-img {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

/* ---------- QUOTE SECTION ---------- */
.quote-section {
  padding: 50px 0 40px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.quote-text {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: #212529;
  line-height: 1.4;
}

.spacer-32 { height: 32px; }

.quote-desc {
  font-size: 18px;
  font-weight: 500;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-underline {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  border-bottom: 1.5px solid #adb5bd;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-underline:hover {
  color: #8b0000;
  border-color: #8b0000;
}

/* ---------- NEWS CARDS ---------- */
.news-section {
  padding: 20px 0 40px;
  background: #f8f9fa;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.09);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wave-divider {
  margin-top: -2px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 28px;
  display: block;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.news-card:hover .card-title {
  color: #8b0000;
}

.card-date {
  font-size: 12px;
  color: #868e96;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ---------- SOCIAL SECTION ---------- */
.social-section {
  padding: 30px 0 40px;
  background: #f8f9fa;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.social-title {
  font-size: 22px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 16px;
}

.social-feed-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.09);
  overflow: hidden;
  min-height: 300px;
}

.facebook-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.social-icon-lg {
  font-size: 48px;
  color: #1877f2;
  margin-bottom: 12px;
  display: block;
}

.social-placeholder p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 16px;
  font-weight: 500;
}

.social-follow-btn {
  display: inline-block;
  background: #1877f2;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.social-follow-btn:hover {
  background: #1558c0;
  color: #fff;
}

.twitter-box {
  padding: 0;
}

.twitter-box .twitter-timeline {
  display: block;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
  padding: 20px 0 40px;
  background: #f8f9fa;
}

.video-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  cursor: pointer;
  background: #000;
  aspect-ratio: 16/9;
  max-height: 560px;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-wrapper:hover .video-bg {
  opacity: 0.6;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.video-iframe-container {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.video-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- PHOTOS + QUOTE SECTION ---------- */
.photos-quote-section {
  padding: 60px 0 120px;
  border-top: 2px solid #f8f9fa;
}

.photos-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.photos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photos-left,
.photos-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s;
}

.photo-item:hover .gallery-photo {
  transform: scale(1.03);
}

.photo-credit-sm {
  font-size: 9px;
  color: #868e96;
  padding: 3px 0;
}

.quote-mission-col {
  padding: 20px 30px;
}

.mission-quote {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  color: #212529;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  padding-bottom: 30px;
}

.footer-top-border {
  border-bottom: 2px solid #f8f9fa;
  padding-top: 40px;
  margin-bottom: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 32px;
  padding: 50px 0;
  align-items: start;
}

.footer-logo {
  max-height: 120px;
  width: auto;
}

.footer-quote-col p {
  font-size: 14px;
  color: #495057;
  line-height: 1.7;
  font-weight: 500;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-col p,
.footer-bank-col p {
  font-size: 13px;
  color: #495057;
  line-height: 1.8;
  font-weight: 500;
}

.contact-sm {
  margin-top: 8px;
  font-size: 12px !important;
}

.footer-bottom {
  border-top: 1px solid #f8f9fa;
  padding-top: 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 26px;
  margin-bottom: 12px;
}

.footer-social a {
  color: #495057;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #8b0000;
}

.footer-credit {
  font-size: 13px;
  color: #868e96;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 13px;
  color: #868e96;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #868e96;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #8b0000;
  color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-logo-col {
    grid-column: 1 / 2;
  }

  .footer-quote-col {
    grid-column: 2 / 3;
  }

  .photos-quote-grid {
    grid-template-columns: 1fr;
  }

  .photos-col {
    display: none;
  }
}

@media (max-width: 768px) {

  /* HEADER */
  .hamburger {
    display: flex;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 0 30px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 15;
    overflow-y: auto;
  }

  .navbar-collapse.open {
    right: 0;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    color: #212529 !important;
    padding: 12px 24px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  .nav-support-btn {
    margin: 16px 24px 0;
  }

  .btn-support {
    border-color: #8b0000 !important;
    color: #8b0000 !important;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    background: #f8f9fa;
  }

  .nav-item.dropdown.mobile-open .dropdown-menu {
    display: block;
  }

  .dropdown-inner a {
    padding: 10px 36px;
    font-size: 13px;
    border-bottom: 1px solid #e9ecef;
  }

  /* SLIDER */
  .slider {
    height: 260px;
  }

  .thumb {
    height: 60px;
  }

  /* SECTIONS */
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    max-height: 90px;
    margin: 0 auto;
  }

  .photos-quote-section {
    padding-bottom: 50px;
  }

  .photos-quote-grid {
    grid-template-columns: 1fr;
  }

  .photos-col {
    display: none;
  }

  .video-wrapper {
    border-radius: 6px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ============================================================
   INNER PAGES — Shared Styles
   ============================================================ */

/* Inner page top padding (below fixed header) */
.inner-page-content {
  padding-top: 110px;
}

/* Page hero / title bar */
.inner-page-hero {
  padding: 40px 0 30px;
  border-bottom: 2px solid #f8f9fa;
}

.inner-page-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb-nav {
  font-size: 13px;
  color: #868e96;
  font-weight: 500;
}

.breadcrumb-nav a {
  color: #8b0000;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover { color: #5a0000; }

.breadcrumb-nav span {
  margin: 0 6px;
  color: #adb5bd;
}

/* Inner content area */
.inner-content-area {
  padding: 48px 0 80px;
}

/* Two-column layout */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.main-col { min-width: 0; }

/* Sidebar */
.aside-col { position: sticky; top: 120px; }

.aside-nav-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px;
}

.aside-nav-box h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b0000;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f8f9fa;
}

.aside-nav-box ul li {
  border-bottom: 1px solid #f8f9fa;
}

.aside-nav-box ul li:last-child { border-bottom: none; }

.aside-nav-box ul li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  transition: color 0.2s;
}

.aside-nav-box ul li a:hover,
.aside-nav-box ul li.active a {
  color: #8b0000;
  font-weight: 600;
}

/* Prose content */
.prose-content h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #212529;
  margin: 28px 0 12px;
}

.prose-content h3 {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
  color: #212529;
  margin: 22px 0 10px;
}

.prose-content p {
  font-size: 16px;
  color: #495057;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 500;
}

.prose-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-content ul li {
  font-size: 15px;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 6px;
  font-weight: 500;
}

.prose-content a {
  color: #8b0000;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-content a:hover { color: #5a0000; }

/* Pullquote */
.pullquote-block {
  background: #f8f9fa;
  border-left: 4px solid #8b0000;
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
}

.pullquote-block p {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #212529 !important;
  margin-bottom: 6px !important;
}

.pullquote-block cite {
  font-size: 14px;
  color: #868e96;
  font-style: normal;
}

/* Info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.info-table th, .info-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
  color: #495057;
}

.info-table th {
  font-weight: 700;
  color: #212529;
  width: 35%;
  white-space: nowrap;
}

.info-table a { color: #8b0000; }

/* Subpage cards grid */
.subpage-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.subpage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  transition: all 0.2s;
  text-decoration: none;
}

.subpage-card i {
  font-size: 28px;
  color: #8b0000;
}

.subpage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: #8b0000;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.team-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px 20px;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: #adb5bd;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  color: #868e96;
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8b0000;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #8b0000;
}

.timeline-year {
  font-size: 13px;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content p {
  font-size: 15px;
  color: #495057;
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}

/* Archive list */
.archive-list {
  margin: 8px 0 24px;
}

.archive-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.archive-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.archive-meta {
  font-size: 12px;
  color: #868e96;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.archive-title {
  font-size: 16px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
  line-height: 1.4;
}

.archive-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.archive-title a:hover { color: #8b0000; }

.archive-excerpt {
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 10px;
}

.archive-note {
  font-size: 14px;
  color: #868e96;
  font-style: italic;
  margin-top: 16px;
}

.archive-note a { color: #8b0000; }

.read-more-link {
  font-size: 13px;
  font-weight: 600;
  color: #8b0000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.read-more-link:hover { gap: 8px; }

/* Article pages */
.article-header {
  margin-bottom: 24px;
}

.article-hero-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.article-meta {
  font-size: 13px;
  color: #868e96;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-signature {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
}

.article-signature p {
  font-size: 14px !important;
  color: #495057 !important;
}

.article-back-link {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f8f9fa;
}

.article-back-link a {
  font-size: 14px;
  font-weight: 600;
  color: #8b0000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.article-back-link a:hover { gap: 10px; }

/* Document download box */
.document-download-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff8f8;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.document-download-box i {
  font-size: 36px;
  color: #dc3545;
  flex-shrink: 0;
}

.document-download-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2px;
}

.document-download-box p {
  font-size: 12px;
  color: #868e96;
  margin: 0;
}

.btn-download-placeholder {
  margin-left: auto;
  font-size: 12px;
  color: #868e96;
  font-style: italic;
  white-space: nowrap;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b0000;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #868e96;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.contact-card a {
  color: #8b0000;
  text-decoration: none;
}

.contact-social-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #dee2e6;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  transition: all 0.2s;
  text-decoration: none;
}

.contact-social-link:hover {
  border-color: #8b0000;
  color: #8b0000;
}

.map-embed-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* Support page */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.bank-details-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 24px;
  margin: 20px 0;
}

.bank-detail-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: 14px;
}

.bank-detail-row:last-child { border-bottom: none; }

.bank-label {
  font-weight: 700;
  color: #212529;
  min-width: 120px;
  flex-shrink: 0;
}

.bank-value {
  color: #495057;
  font-weight: 500;
}

.bank-account {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #8b0000;
  letter-spacing: 0.05em;
}

.support-quote-box {
  background: #8b0000;
  color: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.support-quote-box blockquote {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  font-style: italic;
}

.support-quote-box cite {
  font-size: 13px;
  opacity: 0.8;
  font-style: normal;
}

.support-links-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 20px 24px;
}

.support-links-box h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b0000;
  margin-bottom: 12px;
}

.support-links-box ul li {
  border-bottom: 1px solid #f8f9fa;
}

.support-links-box ul li:last-child { border-bottom: none; }

.support-links-box ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  transition: color 0.2s;
}

.support-links-box ul li a:hover { color: #8b0000; }

.support-links-box ul li a i {
  font-size: 10px;
  color: #8b0000;
}

/* ============================================================
   RESPONSIVE — Inner Pages
   ============================================================ */

@media (max-width: 1024px) {
  .two-col-layout {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .inner-page-content {
    padding-top: 80px;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .aside-col {
    position: static;
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .subpage-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-hero-img {
    height: 200px;
  }

  .document-download-box {
    flex-wrap: wrap;
  }

  .btn-download-placeholder {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .logo-img {
    height: 65px;
  }

  .slider {
    height: 200px;
  }

  .institute-title {
    font-size: 20px;
  }

  .institute-address {
    font-size: 14px;
  }

  .quote-text {
    font-size: 18px;
  }

  .quote-desc {
    font-size: 15px;
  }

  .mission-quote {
    font-size: 16px;
  }

  .photos-quote-section {
    padding-bottom: 40px;
  }

  .card-img {
    height: 160px;
  }
}
