/**
 * Divyakshetra Hariharapura - Divine Services Stylesheet
 * File: static/assets/css/services.css
 */

:root {
  --divine-maroon: #840000;
  --divine-maroon-dark: #5a0000;
  --divine-maroon-light: #9e1b1b;
  --divine-gold: #c28829;
  --divine-gold-rich: #d97706;
  --divine-gold-light: #ffd54f;
  --divine-gold-border: #fae4be;
  --divine-cream-bg: #fdfbf7;
  --divine-sand-bg: #fbf7ee;
  --divine-card-bg: #ffffff;
  --divine-text-dark: #1f2937;
  --divine-text-muted: #4b5563;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--divine-cream-bg) !important;
  color: var(--divine-text-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ----------------------------------------------------
   Hero & Breadcrumb Section
   ---------------------------------------------------- */
.services-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(90, 0, 0, 0.94) 0%, rgba(132, 0, 0, 0.88) 50%, rgba(50, 0, 0, 0.95) 100%),
              url('/assets/img/hero/slider1.jpg') center/cover no-repeat;
  padding: 90px 0 80px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--divine-gold);
}

.services-hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/assets/img/bg/pattern_bg_2.png') repeat center;
  opacity: 0.15;
  pointer-events: none;
}

.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 213, 79, 0.15);
  border: 1px solid rgba(255, 213, 79, 0.4);
  color: var(--divine-gold-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.services-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.services-hero-title span {
  color: var(--divine-gold-light);
}

.services-hero-subtitle {
  font-family: var(--font-cinzel);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 1px;
  max-width: 840px;
  margin: 0 auto 24px;
  font-weight: 600;
}

.services-breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.services-breadcrumb-nav a {
  color: var(--divine-gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.services-breadcrumb-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ----------------------------------------------------
   Services Main Showcase Section
   ---------------------------------------------------- */
.services-showcase-section {
  padding: 85px 0 95px;
  background: var(--divine-cream-bg);
  position: relative;
}

.services-showcase-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/assets/img/shape/event-shape.png') repeat center;
  opacity: 0.04;
  pointer-events: none;
}

.services-item-card {
  background: #ffffff;
  border: 1.5px solid var(--divine-gold-border);
  border-radius: 26px;
  padding: 44px 40px;
  margin-bottom: 48px;
  box-shadow: 0 14px 40px rgba(132, 0, 0, 0.07);
  transition: all 0.35s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services-item-card:last-child {
  margin-bottom: 0;
}

.services-item-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #d4af37, #840000, #d4af37);
}

.services-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(132, 0, 0, 0.13);
  border-color: #d4af37;
}

/* Header & Meta */
.services-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.services-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--divine-maroon), var(--divine-maroon-dark));
  color: var(--divine-gold-light);
  border: 2px solid #d4af37;
  border-radius: 12px;
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(132, 0, 0, 0.2);
  flex-shrink: 0;
}

.services-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf5e6;
  border: 1px solid #f6d899;
  color: var(--divine-maroon);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.services-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--divine-maroon);
  line-height: 1.3;
  margin-bottom: 20px;
}

.services-card-text p {
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.85;
  text-align: justify;
  margin-bottom: 16px;
}

.services-card-text p:last-child {
  margin-bottom: 0;
}

/* Institutions List Box inside Service 03 */
.services-institutions-box {
  background: #fbf7ee;
  border: 1px solid #fae4be;
  border-radius: 16px;
  padding: 20px 22px;
  margin: 18px 0 16px;
}

.services-institutions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.services-institutions-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #2b2b2b;
  line-height: 1.5;
}

.services-institutions-list li i {
  color: var(--divine-maroon);
  background: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #f6d899;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.services-institutions-list li span.inst-title {
  color: var(--divine-maroon);
  font-weight: 700;
}

/* Image Visual Box with Arch Frame */
.services-visual-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
}

.services-image-frame {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #d4af37;
  box-shadow: 0 12px 32px rgba(132, 0, 0, 0.16);
  background: #f8f4eb;
  line-height: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.services-image-frame img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: top;
}

.services-item-card:hover .services-image-frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(132, 0, 0, 0.22);
}

.services-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 17px;
  pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .services-item-card {
    padding: 30px 24px;
    margin-bottom: 36px;
  }
  .services-visual-wrap,
  .services-image-frame {
    min-height: 0;
    margin-top: 15px;
  }
  .services-hero-section {
    padding: 70px 0 60px;
  }
}

@media (max-width: 575px) {
  .services-item-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .services-card-meta {
    gap: 10px;
  }
  .services-num-badge {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .services-tag-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  .services-card-title {
    font-size: 1.35rem;
  }
  .services-card-text p {
    font-size: 0.95rem;
    text-align: left;
  }
  .services-institutions-box {
    padding: 16px 14px;
  }
  .services-institutions-list li {
    font-size: 0.88rem;
  }
}
