/* ============================================================
   Media / Gallery Page
   ============================================================ */

/* --- Hero --- */
.media-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background-image: url(../images/media/banner.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.media-hero .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 0;
}

.media-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.media-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 90px;
}

.media-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.media-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.media-breadcrumb a:hover { color: #fff; }

.media-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7cb4f5;
  margin-bottom: 14px;
}

.media-hero h1 {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 14px;
}

.media-hero .hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Gallery Grid --- */
.media-gallery-section {
  padding: 80px 0;
}

.media-gallery-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
  display: block;
  text-decoration: none;
}
.media-gallery-card:hover {
  box-shadow: 0 14px 40px rgba(0,79,181,0.14);
  transform: translateY(-4px);
}

.media-gallery-card .card-thumb {
  position: relative;
  overflow: hidden;
}
.media-gallery-card .card-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-gallery-card:hover .card-thumb img {
  transform: scale(1.05);
}

.media-gallery-card .card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.media-gallery-card:hover .card-thumb-overlay {
  background: rgba(0,79,181,0.35);
}

.media-gallery-card .card-thumb-overlay .overlay-icon {
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}
.media-gallery-card:hover .card-thumb-overlay .overlay-icon {
  opacity: 1;
  transform: scale(1);
}

.media-gallery-card .card-body-inner {
  padding: 20px 22px 22px;
  border-top: 1px solid #f0f0f0;
}
.media-gallery-card .card-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.media-gallery-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: #004FB5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.media-gallery-card .card-link:hover { color: #003d8f; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .media-hero h1 { font-size: 34px; }
}
@media (max-width: 767px) {
  .media-hero { min-height: 320px; }
  .media-hero h1 { font-size: 26px; }
  .media-hero .hero-content { padding: 100px 0 60px; }
  .media-gallery-card .card-thumb img { height: 200px; }
}
