/* ==============================================
   INNER PAGE — css/inner-page.css
   Shared styles for SMS, Safety Agent,
   Safety File & Plan, Partners pages.
   Builds on css/style.css
   ============================================== */

/* ── Intro Section ──────────────────────────── */
.ip-intro-section {
  padding: 5rem 0;
  background: #fff;
}

.ip-intro-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.ip-intro-text p {
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ip-intro-text a {
  color: #C9A03C;
  text-decoration: underline;
}

.ip-intro-text a:hover {
  color: #b8882e;
}

/* ── Section Titles ─────────────────────────── */
.ip-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #1B2B3A;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.ip-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.ip-section-sub {
  font-size: 1rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.7;
}

/* ── Stats Stack ────────────────────────────── */
.ip-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ip-stat-card {
  background: #F8F9FB;
  border: 1.5px solid #E5E7EB;
  border-left: 4px solid #C9A03C;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ip-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1B2B3A;
  line-height: 1;
}

.ip-stat-label {
  font-size: 0.82rem;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Highlight Box ──────────────────────────── */
.ip-highlight-box {
  background: #F8F9FB;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem;
}

.ip-highlight-icon {
  font-size: 2.5rem;
  color: #C9A03C;
  display: block;
  margin-bottom: 1rem;
}

.ip-highlight-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2B3A;
  margin: 0 0 1rem;
}

.ip-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ip-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.ip-check-list li i {
  color: #C9A03C;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CTA Buttons ────────────────────────────── */
.ip-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: #C9A03C;
  color: #fff !important;
  border: 2px solid #C9A03C;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  transition: all 0.2s;
  margin-top: 1rem;
  white-space: nowrap;
}

.ip-btn-primary:hover {
  background: #b8882e;
  border-color: #b8882e;
  color: #fff !important;
}

.ip-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none !important;
  transition: all 0.2s;
  white-space: nowrap;
}

.ip-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
  color: #fff !important;
}

/* ── Cards Section ──────────────────────────── */
.ip-cards-section {
  padding: 5rem 0;
}

.ip-light-bg {
  background: #F8F9FB;
}

.ip-cards-grid {
  display: grid;
  gap: 1.5rem;
}

.ip-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Card ───────────────────────────────────── */
.ip-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.ip-card--numbered .ip-card-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 160, 60, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.ip-card-icon {
  font-size: 1.6rem;
  color: #C9A03C;
  margin-bottom: 1rem;
}

.ip-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B2B3A;
  margin: 0 0 0.6rem;
}

.ip-card p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
}

/* ── Functions Grid ─────────────────────────── */
.ip-functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ip-function-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ip-function-item:hover {
  border-color: #C9A03C;
  box-shadow: 0 2px 12px rgba(201,160,60,0.12);
}

.ip-function-item i {
  color: #C9A03C;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Accordion ──────────────────────────────── */
.ip-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 880px;
  margin: 0 auto;
}

.ip-accordion-item {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.ip-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1B2B3A;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: background 0.18s;
}

.ip-accordion-trigger span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ip-accordion-trigger span i {
  color: #C9A03C;
  font-size: 1rem;
  flex-shrink: 0;
}

.ip-accordion-trigger:hover {
  background: #FFFBF0;
}

.ip-accordion-trigger[aria-expanded="true"] {
  background: #FFFBF0;
  border-bottom: 1px solid #E5E7EB;
}

.ip-acc-chevron {
  font-size: 0.75rem;
  color: #9CA3AF;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.ip-accordion-trigger[aria-expanded="true"] .ip-acc-chevron {
  transform: rotate(180deg);
  color: #C9A03C;
}

.ip-accordion-body {
  padding: 1.4rem 1.5rem 1.6rem;
  font-size: 0.93rem;
  color: #4B5563;
  line-height: 1.8;
}

.ip-accordion-body p {
  margin: 0 0 0.9rem;
}

.ip-accordion-body p:last-child {
  margin-bottom: 0;
}

.ip-accordion-body ul,
.ip-accordion-body ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0 0.9rem;
}

.ip-accordion-body li {
  margin-bottom: 0.4rem;
}

.ip-regulation {
  background: #F8F9FB;
  border-left: 4px solid #C9A03C;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: #6B7280;
  font-style: italic;
  line-height: 1.75;
}

/* Inline video in accordion */
.ip-video-embed {
  margin-top: 1.4rem;
}

.ip-video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  max-width: 560px;
  background: #000;
}

.ip-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s;
}

.ip-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.2s;
}

.ip-video-wrap:hover .ip-video-overlay {
  background: rgba(0,0,0,0.38);
}

.ip-video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,160,60,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(201,160,60,0.5);
  transition: transform 0.2s, background 0.2s;
}

.ip-video-wrap:hover .ip-video-play {
  transform: scale(1.08);
  background: #C9A03C;
}

/* YouTube link card (for videos with embedding disabled) */
.ip-video-yt-link {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 560px;
  background: #000;
  text-decoration: none !important;
}

.ip-video-yt-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s, transform 0.3s;
}

.ip-video-yt-link:hover img {
  filter: brightness(0.7);
  transform: scale(1.03);
}

.ip-video-yt-link .ip-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.22);
  transition: background 0.2s;
}

.ip-video-yt-link:hover .ip-video-overlay {
  background: rgba(0,0,0,0.38);
}

.ip-video-yt-link .ip-video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,160,60,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(201,160,60,0.5);
  transition: transform 0.2s, background 0.2s;
}

.ip-video-yt-link:hover .ip-video-play {
  transform: scale(1.08);
  background: #C9A03C;
}

.ip-video-yt-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.72);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.ip-video-yt-badge i {
  color: #FF0000;
  font-size: 1rem;
}

/* ── CTA Band ───────────────────────────────── */
.ip-cta-band {
  background: linear-gradient(135deg, #1B2B3A 0%, #243447 100%);
  padding: 4.5rem 0;
}

.ip-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.ip-cta-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.ip-cta-text p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 520px;
}

.ip-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Partners Page ──────────────────────────── */
.ip-partners-section {
  padding: 5rem 0;
  background: #F8F9FB;
}

/* Featured partner block */
.ip-partner-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: center;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ip-partner-featured-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #F8F9FB;
  border-radius: 12px;
  min-height: 160px;
}

.ip-partner-featured-logo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.ip-partner-featured-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1B2B3A;
  margin: 0.5rem 0 0.8rem;
}

.ip-partner-featured-body p {
  font-size: 0.96rem;
  color: #4B5563;
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

/* Partner badge */
.ip-partner-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.ip-partner-badge--primary {
  background: rgba(74,58,168,0.1);
  color: #4A3AA8;
}

/* Partner cards grid */
.ip-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ip-partner-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.22s, box-shadow 0.22s;
}

.ip-partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.ip-partner-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F9FB;
  border-radius: 10px;
  padding: 1.2rem;
  min-height: 100px;
}

.ip-partner-card-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.ip-partner-logo-fallback {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #9CA3AF;
  font-size: 0.85rem;
  font-weight: 600;
}

.ip-partner-logo-fallback i {
  font-size: 2rem;
  color: #C9A03C;
}

.ip-partner-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1B2B3A;
  margin: 0 0 0.5rem;
}

.ip-partner-card-body p {
  font-size: 0.9rem;
  color: #4B5563;
  line-height: 1.75;
  margin: 0;
}

.ip-partner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #C9A03C !important;
  text-decoration: none !important;
  margin-top: 0.8rem;
  transition: color 0.2s;
}

.ip-partner-link:hover {
  color: #b8882e !important;
}

/* ── Dropdown Divider ───────────────────────── */
.dropdown .dropdown-divider {
  border-top: 1px solid #E5E7EB;
  margin: 4px 8px;
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .ip-intro-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ip-intro-visual {
    max-width: 480px;
  }

  .ip-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-functions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-partner-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .ip-partner-featured-logo {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ip-cards-3 {
    grid-template-columns: 1fr;
  }

  .ip-functions-grid {
    grid-template-columns: 1fr;
  }

  .ip-partners-grid {
    grid-template-columns: 1fr;
  }

  .ip-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .ip-cta-actions {
    justify-content: center;
  }

  .ip-cta-text p {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .ip-intro-section,
  .ip-cards-section,
  .ip-partners-section {
    padding: 3rem 0;
  }

  .ip-accordion-trigger {
    padding: 1rem 1.2rem;
    font-size: 0.92rem;
  }

  .ip-accordion-body {
    padding: 1.1rem 1.2rem 1.3rem;
  }
}
