/* ============================================================
   HASTPA DJANGO - Custom CSS
   Tailwind CDN handles utilities; this file handles custom
   components, animations, and WordPress-specific overrides.
   ============================================================ */

/* ---- Global ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #222; overflow-x: hidden; }

/* Navbar logo color for transparent header */
.header.text-white .navbar-logo {
    filter: invert(1) brightness(1.5);
}

:root {
    --brand-red: #0ea5e9;
    --brand-sky-start: #0ea5e9;
    --brand-sky-mid: #0ea5e9;
    --brand-sky-end: #0ea5e9;
    --brand-dark: #222222;
    --brand-gray: #f5f5f5;
}

/* ---- Hero Slider ---- */
.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 600px; overflow: hidden; background-color: #000; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 1s ease-in-out; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 5; }
.hero-slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.65; }
.hero-slide .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 1; }
.hero-slider .content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; color: #fff; text-align: center; padding: 0 20px; }
.hero-tagline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 700;
  font-style: italic;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(14, 165, 233, 0.7), 0 0 25px rgba(2, 132, 199, 0.35);
}
.hero-slider .content h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(1.6rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.2; text-shadow: 1px 2px 8px rgba(0,0,0,0.5); }
.hero-slider .content p { font-size: clamp(0.95rem, 2vw, 1.15rem); margin-top: 1.2rem; line-height: 1.7; opacity: 0.95; max-width: 800px; }
.hero-slider .content .btn-primary { margin-top: 2rem; display: inline-block; background: var(--brand-red); color: #fff; padding: 14px 32px; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; transition: background 0.3s; border-radius: 9999px; }
.hero-slider .content .btn-primary:hover { background: var(--brand-red); }
.hero-slider .content .btn-secondary { margin-top: 2rem; margin-left: 16px; display: inline-block; background: transparent; border: 2px solid #fff; color: #fff; padding: 12px 30px; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; border-radius: 9999px; }
.hero-slider .content .btn-secondary:hover { background: #fff; color: var(--brand-red); }

/* Slider arrows */
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--brand-red); }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; border: none; }
.slider-dot.active { background: var(--brand-red); }

/* ---- Section Styles ---- */
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--brand-dark); }
.section-title span { color: var(--brand-red); }
.section-divider { display: block; width: 60px; height: 4px; background: var(--brand-red); margin: 12px 0 20px; }
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ---- Cards ---- */
.event-card { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; background: #fff; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.event-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.event-card:hover img { transform: scale(1.05); }
.event-card .card-body { padding: 20px; }
.event-card .card-badge { display: inline-block; background: var(--brand-red); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; margin-bottom: 8px; letter-spacing: 1px; }

/* ---- Stats Counter ---- */
.stats-section { background: var(--brand-red); color: #fff; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

/* Header Active and Hovered link weight + animated underline */
.nav-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active-link {
  font-weight: 700 !important;
  color: var(--brand-red) !important;
  background-color: rgba(14, 165, 233, 0.1);
}

.dropdown-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-top: 3px solid var(--brand-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(10px);
}
.dropdown-link {
  display: block;
  padding: 10px 12px;
  color: #2f2f2f;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.dropdown-link:hover {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--brand-red);
  transform: translateX(2px);
}

/* Header scrolled state */
header.scrolled {
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  background: #0ea5e9 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
header.scrolled #navbar-logo {
  filter: brightness(0) invert(1) !important;
}
header.scrolled .nav-link {
  color: #ffffff !important;
}
header.scrolled .nav-link.active-link {
  color: #ffffff !important;
}
header.scrolled .nav-link:hover {
  color: #ffffff !important;
}
header.scrolled #search-toggle {
  color: #ffffff !important;
}
header.scrolled #search-toggle:hover {
  color: #ffffff !important;
}
/* Logo fade transition */
#navbar-logo {
  transition: opacity 0.3s ease;
}
/* Team slider */
.team-slider {
  overflow: hidden;
}
.team-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.team-slide {
  flex: 0 0 100%;
  padding: 0 0.75rem;
  box-sizing: border-box;
}
.team-card-shell {
  display: flex;
  flex-direction: column;
}
.team-card-body {
  display: flex;
  align-items: flex-start;
}
.team-card-body p {
  width: 100%;
}
.team-card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  min-height: calc(1.6em * 2);
}
.team-slider-dots {
  gap: 0.5rem;
}
.team-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.team-slider-dots button.active {
  width: 28px;
  background: var(--brand-red);
}
@media (min-width: 769px) {
  .team-slide {
    flex-basis: 50%;
  }
}
@media (min-width: 1025px) {
  .team-slide {
    flex-basis: 33.333%;
  }
}

/* Mobile menu link colors */
#mobile-menu a {
  color: var(--brand-dark) !important;
}
#mobile-menu a:hover {
  color: var(--brand-red) !important;
}
/* Mobile menu search input */
#mobile-menu .mobile-search {
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  background: #fff;
}

/* ---- Partner Logos ---- */
.partner-logo { filter: grayscale(100%); opacity: 0.6; transition: filter 0.3s, opacity 0.3s; }
.partner-logo:hover { filter: none; opacity: 1; }

/* ---- Breadcrumb ---- */
.page-hero { background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); padding: 100px 20px 70px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url("../images/dsc_0961_7649051864_o-2048x1360.60bb82a615bf.jpg") center/cover no-repeat; opacity: 0.3; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%); }
.page-hero .content { position: relative; z-index: 2; animation: fadeInUp 0.7s ease both; }
.page-hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; margin-top: 12px; opacity: 0.85; }
.breadcrumb a { color: var(--brand-red); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Blog Cards ---- */
.blog-card { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; background: #fff; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.14); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .card-body { padding: 20px; }
.blog-card .card-date { font-size: 0.75rem; color: #888; margin-bottom: 6px; }
.blog-card .card-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: var(--brand-dark); line-height: 1.4; }
.blog-card .card-title:hover { color: var(--brand-red); }
.blog-card .read-more { display: inline-block; margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: var(--brand-red); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Contact Form ---- */
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95rem; font-family: 'Inter', sans-serif; margin-bottom: 16px; transition: border-color 0.3s; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-red); }
.contact-form button[type=submit] { background: var(--brand-red); color: #fff; border: none; padding: 13px 32px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: background 0.3s; border-radius: 9999px; width: 100%; }
.contact-form button[type=submit]:hover { background: var(--brand-red); }

/* ---- Responsive Fixes ---- */
@media (max-width: 768px) {
    .hero-slide { height: 65vh; }
    .hero-slide .content { padding: 0 20px; }
    .slider-prev, .slider-next { width: 36px; height: 36px; font-size: 0.9rem; }
    .hero-slide .content .btn-primary, .hero-slide .content .btn-secondary { display: block; text-align: center; margin-left: 0; margin-top: 10px; }
}

/* ---- Utility ---- */
.text-brand-red { color: var(--brand-red); }
.bg-brand-red { background-color: var(--brand-red); }
.border-brand-red { border-color: var(--brand-red); }
.btn-red { display: inline-block; background: var(--brand-red); color: #fff; padding: 11px 28px; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; transition: background 0.3s; border-radius: 9999px; border: none; cursor: pointer; }
.btn-red:hover { background: var(--brand-red); }
.btn-outline { display: inline-block; border: 2px solid var(--brand-red); color: var(--brand-red); padding: 9px 26px; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s; border-radius: 9999px; }
.btn-outline:hover { background: var(--brand-red); color: #fff; }

/* ---- Fade-in Animation for sections ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- Gallery Grid ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.03); }

/* ---- Team Card ---- */
.team-card { text-align: center; padding: 24px 16px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: transform 0.3s; }
.team-card:hover { transform: translateY(-5px); }
.team-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--brand-red); }
