/* ==========================================================
   FITRANGER GALLERY PAGE STYLING (Black, Gray, Yellow Theme)
   Author: Edgewave Innovations
   ========================================================== */

:root {
  --primary-color: #f9c400; /* Gold Yellow */
  --secondary-color: #f9c400;
  --black: #0b0b0b;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-light: #ccc;
  --white: #fff;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

/* --- BODY --- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
  background: #0b0b0b;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.nav-logo h2 {
  color: var(--primary-color);
}

.nav-logo .logo-tagline {
  color: #aaa;
}

.nav-menu .nav-link {
  color: var(--white);
  transition: var(--transition);
  font-weight: 500;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  color: var(--primary-color);
}

/* --- HERO --- */
.page-hero {
  background: linear-gradient(135deg, #0b0b0b, #1c1c1c);
  color: var(--white);
  text-align: center;
  padding: 8rem 1rem 5rem;
  box-shadow: inset 0 0 60px rgba(249, 196, 0, 0.1);
}

.page-hero h1 {
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.page-hero p {
  color: #ddd;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* --- BREADCRUMB --- */
.breadcrumb-section {
  background: #111;
  color: var(--gray-light);
  padding: 2rem 0;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb .separator {
  color: #888;
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: #aaa;
  max-width: 650px;
  margin: 0 auto;
}

/* --- GALLERY FILTER BUTTONS --- */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--gray-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
}

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1rem;
  margin: 0;
  color: var(--primary-color);
}

/* --- BRANCH HIGHLIGHTS --- */
.branch-highlights-section {
  background: #111;
  color: var(--white);
}

.highlight-card {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(249, 196, 0, 0.15);
}

.highlight-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-content {
  padding: 1.5rem;
}

.highlight-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.highlight-content p {
  color: #aaa;
  margin-bottom: 1rem;
}

.cta-btn.primary {
  background: var(--primary-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
}

.cta-btn.primary:hover {
  background: #fff;
  color: #000;
}

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(135deg, #0b0b0b, #1d1d1d);
  color: var(--white);
  text-align: center;
  box-shadow: inset 0 0 50px rgba(249, 196, 0, 0.1);
}

.cta-section h2 {
  color: var(--primary-color);
}

.cta-section p {
  color: #ddd;
  opacity: 0.9;
}

.cta-btn.secondary {
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  transition: var(--transition);
}

.cta-btn.secondary:hover {
  background: var(--primary-color);
  color: #000;
}

/* --- FOOTER --- */
.footer {
  background: #0b0b0b;
  color: #ccc;
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer h3,
.footer h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #888;
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 50%;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: none;
  z-index: 999;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .gallery-item img {
    height: 220px;
  }

  .highlight-card {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }
}
