/* ===================================================
   Tuproqqal'a MTB - Main Stylesheet
   Color Palette: Green (#1a6b3c, #2d9e5f, #e8f5ec)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary: #1a6b3c;
  --primary-dark: #0f4a28;
  --primary-light: #2d9e5f;
  --primary-hover: #22854d;
  --accent: #f5a623;
  --accent-dark: #e08e00;
  --bg-light: #f0f7f3;
  --bg-white: #ffffff;
  --text-dark: #1a2e1f;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #d1e8da;
  --shadow-sm: 0 1px 3px rgba(26,107,60,0.08);
  --shadow-md: 0 4px 20px rgba(26,107,60,0.12);
  --shadow-lg: 0 12px 40px rgba(26,107,60,0.18);
  --gradient-primary: linear-gradient(135deg, #0f4a28 0%, #1a6b3c 50%, #2d9e5f 100%);
  --gradient-hero: linear-gradient(135deg, rgba(15,74,40,0.95) 0%, rgba(26,107,60,0.92) 60%, rgba(45,158,95,0.85) 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--accent); }
.topbar .top-item { display: flex; align-items: center; gap: 5px; }
.topbar .top-item i { color: var(--accent); font-size: 0.75rem; }

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(26,107,60,0.2);
}

.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 10px 0; }

.navbar-brand img {
  height: 55px;
  width: 55px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img { transform: rotate(5deg) scale(1.05); }

.brand-text { line-height: 1.2; }
.brand-name { font-size: 0.9rem; font-weight: 700; color: var(--primary); display: block; }
.brand-subtitle { font-size: 0.7rem; color: var(--text-muted); display: block; }

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 22px 14px !important;
  position: relative;
  transition: color 0.3s;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border-top: 3px solid var(--primary);
  animation: fadeSlideDown 0.2s ease;
}

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

.dropdown-item { padding: 10px 20px; font-size: 0.86rem; color: var(--text-body); transition: var(--transition); }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); padding-left: 26px; }

/* ===================== HERO ===================== */
.hero {
  min-height: 90vh;
  background: var(--gradient-hero),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="20" fill="rgba(255,255,255,0.02)"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.2);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 35px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-buttons { animation: fadeInUp 0.6s 0.3s ease both; }

.hero-stat-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  animation: fadeInRight 0.7s ease both;
  transition: var(--transition);
}

.hero-stat-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.hero-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  display: block;
  line-height: 1;
}

.hero-stat-card .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

.hero-stat-card i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }

/* ===================== BUTTONS ===================== */
.btn-primary-custom {
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}

.btn-primary-custom:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,0.5);
  color: white;
}

.btn-outline-custom {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: white;
  background: rgba(255,255,255,0.15);
  color: white;
  transform: translateY(-2px);
}

.btn-green {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26,107,60,0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,107,60,0.45);
  color: white;
}

/* ===================== SECTION LAYOUT ===================== */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }
.section-dark { background: var(--gradient-primary); color: white; }

.section-header { text-align: center; margin-bottom: 55px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,107,60,0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-title.white { color: white; }

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 14px auto;
}

.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.section-subtitle.white { color: rgba(255,255,255,0.8); }

/* ===================== STATS SECTION ===================== */
.stats-section {
  background: var(--gradient-primary);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.stat-item {
  text-align: center;
  padding: 20px;
  color: white;
}

.stat-item .icon-wrap {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  border: 2px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}

.stat-item:hover .icon-wrap {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.stat-item .count {
  font-size: 2.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.stat-item .label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* ===================== NEWS CARDS ===================== */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.news-card .card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.news-card:hover .card-img { transform: scale(1.05); }

.news-card .card-img-wrap { overflow: hidden; position: relative; }

.news-card .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.news-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.news-card .card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}

.news-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

.news-card .read-more {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.news-card .read-more:hover { gap: 10px; }

/* ===================== SCHOOL CARDS ===================== */
.school-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.school-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.school-card .school-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.school-card h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }

.school-card .school-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.school-card .school-meta span i { color: var(--primary); width: 14px; }

.school-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===================== STAFF CARDS ===================== */
.staff-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.staff-card .staff-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-light);
  margin: 25px auto 15px;
  display: block;
  transition: border-color 0.3s;
}

.staff-card:hover .staff-photo { border-color: var(--primary-light); }

.staff-card .staff-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px auto 15px;
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
}

.staff-card .card-body { padding: 5px 20px 25px; }

.staff-card h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }

.staff-card .position-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(26,107,60,0.1);
  color: var(--primary);
  margin-bottom: 12px;
}

.staff-card .staff-contact a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.staff-card .staff-contact a:hover { color: var(--primary); }

/* ===================== GALLERY ===================== */
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,74,40,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

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

.gallery-item .overlay i { font-size: 2rem; margin-bottom: 8px; }
.gallery-item .overlay span { font-size: 0.85rem; font-weight: 600; }

/* ===================== ANNOUNCEMENT TICKER ===================== */
.announcement-bar {
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.announcement-label {
  background: var(--accent);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.announcement-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================== CONTACT SECTION ===================== */
.contact-info-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 35px;
  color: white;
  height: 100%;
}

.contact-info-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item .text { flex: 1; }
.contact-item .text small { font-size: 0.75rem; color: rgba(255,255,255,0.65); display: block; }
.contact-item .text span { font-size: 0.9rem; color: white; }
.contact-item .text a { color: white; text-decoration: none; }

.contact-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-form-card h4 { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 25px; }

.form-control {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.1);
  outline: none;
}

.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

/* ===================== BREADCRUMB ===================== */
.page-header {
  background: var(--gradient-primary);
  padding: 50px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  right: -5%;
  top: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
}

.breadcrumb { margin: 0; background: transparent; padding: 0; }
.breadcrumb-item { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.breadcrumb-item a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-item a:hover { color: white; }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===================== PAGINATION ===================== */
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  padding: 8px 14px;
  transition: var(--transition);
}

.pagination .page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-brand img { height: 55px; filter: brightness(0) invert(1); }

.footer-brand p { font-size: 0.85rem; margin-top: 12px; color: rgba(255,255,255,0.6); }

.footer h6 { color: white; font-weight: 700; margin-bottom: 18px; font-size: 0.95rem; position: relative; padding-bottom: 10px; }

.footer h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-links a i { font-size: 0.7rem; color: var(--primary-light); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-contact-item i { color: var(--accent); font-size: 0.9rem; width: 16px; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-btn.tg { background: #2CA5E0; color: white; }
.social-btn.fb { background: #1877F2; color: white; }
.social-btn.ig { background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: white; }
.social-btn.yt { background: #FF0000; color: white; }
.social-btn:hover { transform: translateY(-3px) scale(1.1); color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(25px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== MISC UTILITIES ===================== */
.scrolltop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26,107,60,0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  font-size: 1rem;
}

.scrolltop.show { opacity: 1; pointer-events: auto; }
.scrolltop:hover { transform: translateY(-3px) scale(1.1); }

.filter-tag {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: white;
  color: var(--text-body);
  text-decoration: none;
  display: inline-block;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.page-loader.loaded { opacity: 0; pointer-events: none; }

.loader-logo {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hero { min-height: 70vh; }
  .navbar-nav .nav-link { padding: 10px 15px !important; }
  .navbar-nav .nav-link::after { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 50px 0; }
  .topbar { display: none; }
  .hero { min-height: 80vh; padding-top: 30px; }
}
