/* =========================================================
   DTL-LMS – Arunachali State Theme & Hope UI Extensions
   Department of Social Justice, Empowerment & Tribal Affairs
   Govt. of Arunachal Pradesh
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,300&family=Noto+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Arunachali Heritage Palette */
  --ap-red:      #B3261E;  /* traditional woven red – primary accent */
  --ap-ochre:    #E0A100;  /* saffron / yellow band – highlights, CTAs */
  --ap-green:    #1F6B4A;  /* forest green – success, progress */
  --ap-indigo:   #1D2B53;  /* deep indigo-black – headings, sidebar */
  --ap-cream:    #FBF5E6;  /* warm cream background */
  --ap-brown:    #6B4A2F;  /* bamboo / earth – secondary text */
  --ap-mist:     #E6EEF0;  /* hill-mist blue-grey – cards, borders */
  --ap-gold:     #F39C12;
  --ap-border:   #E2D9C5;

  /* Bootstrap Variable Overrides */
  --bs-primary: #B3261E;
  --bs-primary-rgb: 179, 38, 30;
  --bs-secondary: #6B4A2F;
  --bs-success: #1F6B4A;
  --bs-info: #1D2B53;
  --bs-warning: #E0A100;
  --bs-dark: #1D2B53;
  --bs-body-font-family: 'Noto Sans', sans-serif;
  --bs-body-bg: #F8F4EC;
  --bs-body-color: #2D2A26;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
  color: var(--ap-indigo);
  font-weight: 700;
}

/* Woven Tribal Geometric Ribbon */
.tribal-woven-bar {
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    var(--ap-red),
    var(--ap-red) 12px,
    var(--ap-ochre) 12px,
    var(--ap-ochre) 24px,
    var(--ap-indigo) 24px,
    var(--ap-indigo) 36px,
    var(--ap-green) 36px,
    var(--ap-green) 48px
  );
  width: 100%;
}

.tribal-pattern-border {
  border-top: 4px solid var(--ap-red);
  position: relative;
}
.tribal-pattern-border::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ap-red) 0 20px, var(--ap-ochre) 20px 40px, var(--ap-indigo) 40px 60px);
}

/* Navbar & Header */
.dtl-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--ap-border);
  box-shadow: 0 4px 15px rgba(29, 43, 83, 0.05);
}

.brand-emblem {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-emblem .emblem-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ap-red), var(--ap-ochre));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(179, 38, 30, 0.3);
}

/* Sidebar */
.dtl-sidebar {
  background: var(--ap-indigo);
  color: #E6EEF0;
  min-height: 100vh;
  box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}
.dtl-sidebar .nav-link {
  color: #C3CFD9;
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 2px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.dtl-sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}
.dtl-sidebar .nav-link.active {
  color: #ffffff;
  background: var(--ap-red);
  box-shadow: 0 3px 10px rgba(179, 38, 30, 0.35);
  font-weight: 600;
}
.dtl-sidebar .submenu-link {
  color: #A0B2C6;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 1px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dtl-sidebar .submenu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.dtl-sidebar .submenu-link.active {
  color: #ffffff;
  background: rgba(179, 38, 30, 0.6);
  font-weight: 600;
}
.dtl-sidebar .collapse-arrow {
  transition: transform 0.2s ease;
}
.dtl-sidebar .nav-link.collapsed .collapse-arrow {
  transform: rotate(-90deg);
}
.dtl-sidebar .sidebar-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ap-ochre);
  padding: 12px 14px 4px;
  font-weight: 700;
}

/* Tribal Language Cards */
.card-language-nyishi {
  border-top: 5px solid var(--ap-red) !important;
  background: linear-gradient(180deg, #ffffff 0%, #FFF7F6 100%);
}
.card-language-galo {
  border-top: 5px solid var(--ap-green) !important;
  background: linear-gradient(180deg, #ffffff 0%, #F5FAF7 100%);
}
.card-language-adi {
  border-top: 5px solid var(--ap-ochre) !important;
  background: linear-gradient(180deg, #ffffff 0%, #FFFDF5 100%);
}

.dtl-card {
  background: #ffffff;
  border: 1px solid var(--ap-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(29, 43, 83, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dtl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(29, 43, 83, 0.08);
}

/* Badge & Hornbill Accents */
.badge-hornbill {
  background: linear-gradient(135deg, var(--ap-ochre), var(--ap-red));
  color: white;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
}
.badge-orchid {
  background: linear-gradient(135deg, var(--ap-green), #2ECC71);
  color: white;
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 14px;
}

/* Buttons */
.btn-ap-primary {
  background: var(--ap-red);
  color: white;
  border: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-ap-primary:hover {
  background: #961E17;
  color: white;
  box-shadow: 0 6px 15px rgba(179, 38, 30, 0.3);
}

.btn-ap-ochre {
  background: var(--ap-ochre);
  color: #1D2B53;
  border: none;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
}
.btn-ap-ochre:hover {
  background: #C99000;
  color: #1D2B53;
}

/* Progress bar styled */
.progress-bamboo {
  display: flex !important;
  height: 12px;
  width: 100%;
  border-radius: 8px;
  background-color: #E2E8F0 !important;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.progress-bamboo .progress-bar {
  display: block !important;
  height: 100% !important;
  border-radius: 8px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--ap-green), #27AE60);
}

/* Audio Player */
.dtl-audio-box {
  background: #F4F8F9;
  border: 1px solid var(--ap-mist);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dtl-audio-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ap-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 18px;
}

/* Question & Assessment UI */
.assessment-timer-badge {
  font-size: 18px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  background: #FFF1F0;
  color: var(--ap-red);
  border: 2px solid var(--ap-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quiz-option-card {
  border: 2px solid var(--ap-border);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-option-card:hover {
  border-color: var(--ap-ochre);
  background: #FFFDF8;
}
.quiz-option-card.selected {
  border-color: var(--ap-red);
  background: #FFF5F4;
}

.decision-card {
  transition: all 0.2s ease;
}
.decision-card:hover {
  border-color: var(--ap-ochre) !important;
  background: #FFFDF8;
  transform: translateY(-2px);
}

.hero-banner {
  background: linear-gradient(135deg, var(--ap-indigo) 0%, #2A3C72 100%);
  color: white;
  border-radius: 20px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '🦅';
  position: absolute;
  right: 30px;
  bottom: -20px;
  font-size: 120px;
  opacity: 0.15;
}
