/* ============================================
   Indian Yoga Tourism – Projects Module CSS
   File: /projects/styles.css
   ============================================ */

:root {
  --accent: #e85d04;
  --accent-dark: #c2410c;
  --pink: #be185d;
  --pink-dark: #9d174d;
  --hero-start: #be185d;
  --hero-end: #e85d04;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #fce7f3;
  --soft-bg: #fff7ed;
  --soft-pink: #fdf2f8;
}

/* ---------- Hero (listing + detail) ---------- */
/* Navbar is position:absolute – leave space so title never overlaps logos */
.projects-hero,
.project-detail-hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  color: #fff;
  /* top padding clears fixed/absolute navbar + logos (~90–110px) */
  padding: 140px 0 48px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.projects-hero h1,
.project-detail-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  margin: 0;
  color: #fff !important;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.breadcrumb-nav {
  font-size: 0.9rem;
  opacity: 0.95;
  margin-top: 10px;
  color: #fff;
}

.breadcrumb-nav a {
  color: #fff !important;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* ---------- Project cards (listing) ---------- */
.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(190, 24, 93, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(232, 93, 4, 0.15);
  border-color: #fdba74;
}

.project-card .logo-wrap {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--soft-bg) 0%, var(--soft-pink) 100%);
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.project-card .logo-wrap img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
}

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

.project-card .date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pink);
  box-shadow: 0 2px 10px rgba(190, 24, 93, 0.2);
  line-height: 1.1;
  z-index: 2;
  border: 2px solid var(--border);
}

.project-card .date-badge .day {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.project-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.35;
}

.project-card .btn-read {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 7px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.project-card .btn-read:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

.project-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 10px;
}

/* ---------- Sidebar ---------- */
.projects-sidebar .widget {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(190, 24, 93, 0.08);
  border: 1px solid var(--border);
}

.projects-sidebar .widget h5 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--pink);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.contact-form-widget input,
.contact-form-widget textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.contact-form-widget input:focus,
.contact-form-widget textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.contact-form-widget button {
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
}

.contact-form-widget button:hover {
  opacity: 0.92;
}

/* ---------- Pagination (JS) ---------- */
.proj-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0 50px;
  flex-wrap: wrap;
}

.proj-pagination button {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--pink);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.proj-pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.proj-pagination button.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  color: #fff;
  border-color: transparent;
}

.proj-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.proj-pagination .nav-btn {
  border-radius: 25px;
  padding: 0 18px;
  min-width: auto;
}

.project-item {
  display: none;
}

.project-item.visible {
  display: block;
}

/* ---------- Detail page ---------- */
.project-logo-box {
  background: linear-gradient(180deg, var(--soft-bg) 0%, var(--soft-pink) 100%);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(190, 24, 93, 0.08);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-box img {
  max-width: 280px;
  max-height: 200px;
  object-fit: contain;
}

.project-details-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 14px rgba(190, 24, 93, 0.08);
  border: 1px solid var(--border);
  position: sticky;
  top: 20px;
}

.project-details-sidebar h5 {
  font-size: 1.15rem;
  color: var(--pink);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.detail-item {
  margin-bottom: 18px;
}

.detail-item .label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-item .value {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-item a {
  color: var(--accent);
}

.project-content h4 {
  color: var(--pink);
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.project-content p,
.project-content li {
  color: #374151;
  line-height: 1.7;
}

.project-content ul {
  padding-left: 20px;
}

.btn-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.btn-back:hover {
  color: var(--pink);
  text-decoration: none;
}

.btn-visit {
  background: linear-gradient(135deg, var(--pink) 0%, var(--accent) 100%);
  color: #fff !important;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}

.btn-visit:hover {
  opacity: 0.9;
  color: #fff !important;
  text-decoration: none;
}

.note-box {
  background: var(--soft-bg);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  /* On mobile navbar becomes position:relative – less top space needed */
  .projects-hero,
  .project-detail-hero {
    padding: 40px 0 36px;
  }

  .projects-hero h1,
  .project-detail-hero h1 {
    font-size: 1.75rem;
  }

  .project-details-sidebar {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .projects-hero,
  .project-detail-hero {
    padding: 32px 0 28px;
  }

  .projects-hero h1,
  .project-detail-hero h1 {
    font-size: 1.5rem;
  }

  .project-card .logo-wrap {
    height: 150px;
  }

  .proj-pagination button {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .proj-pagination .nav-btn {
    padding: 0 12px;
  }
}

@media (min-width: 992px) {
  /* Extra safety under absolute navbar on desktop */
  .projects-hero,
  .project-detail-hero {
    padding-top: 150px;
  }
}
