/* =============================================================================
   FRONT PAGE — THG (Tallinna Haabersti Gümnaasium)
   Inspired by College-pro Bootstrap template, THG colour palette.
   All classes prefixed fp- to avoid collisions.
   ============================================================================= */

/* ── SECTION TITLE ──────────────────────────────────────────────────────────── */

.fp-section-title {
  text-align: center;
  padding-bottom: 60px;
}

.fp-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
}

.fp-section-title h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: #ddd;
  bottom: 0;
  left: calc(50% - 80px);
}

.fp-section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 48px;
  height: 3px;
  background: var(--thg-orange);
  border-radius: 2px;
  bottom: 0;
  left: calc(50% - 24px);
}

.fp-section-title p {
  color: #666;
  margin: 0 auto;
  max-width: 600px;
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */

.fp-hero {
  background: linear-gradient(135deg, var(--thg-green-deep) 0%, var(--thg-green-forest) 100%);
  color: white;
  padding: 80px 0 0;
  overflow: hidden;
}

.fp-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .fp-hero h1 { font-size: 1.8rem; }
}

.fp-hero .hero-tagline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Stats row */
.fp-stats-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fp-stat-item {
  display: flex;
  flex-direction: column;
}

.fp-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--thg-orange);
  line-height: 1;
}

.fp-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* Buttons */
.fp-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.fp-btn-primary {
  background: var(--thg-orange);
  color: white !important;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
}

.fp-btn-primary:hover {
  background: var(--thg-orange-hover);
  color: white !important;
  box-shadow: 0 6px 18px rgba(232, 114, 12, 0.4);
}

.fp-btn-secondary {
  background: transparent;
  color: white !important;
  text-decoration: none;
  padding: 11px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.fp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white !important;
}

/* Hero media */
.fp-hero-media {
  position: relative;
}

.fp-hero-media .fp-main-image {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  object-fit: cover;
}

.fp-badge-accredited {
  position: absolute;
  bottom: 24px;
  left: -10px;
  background: white;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--thg-green-forest);
}

.fp-badge-accredited i {
  font-size: 1.5rem;
  color: var(--thg-orange);
}

@media (max-width: 991px) {
  .fp-hero-media { margin-top: 3rem; }
  .fp-badge-accredited { left: 10px; }
}

/* Feature cards (below hero image, still inside hero bg) */
.fp-feature-cards-wrapper {
  background: rgba(0, 0, 0, 0.2);
  padding: 40px 0;
  margin-top: 60px;
}

.fp-feature-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.fp-feature-card:hover,
.fp-feature-card.active {
  background: rgba(232, 114, 12, 0.15);
  border-color: var(--thg-orange);
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.fp-feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 114, 12, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--thg-orange);
  transition: background 0.3s ease, color 0.3s ease;
}

.fp-feature-card:hover .fp-feature-icon,
.fp-feature-card.active .fp-feature-icon {
  background: var(--thg-orange);
  color: white;
}

.fp-feature-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.fp-feature-content p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Announcement banner (bottom of hero) */
/* ── ANNOUNCEMENT BANNER — top of page, unmissable ─────────────────────────── */

@keyframes fp-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(232, 114, 12, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 114, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 114, 12, 0); }
}

@keyframes fp-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fp-announcement {
  background: linear-gradient(135deg, var(--thg-orange) 0%, #d4590a 40%, #c24400 100%);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* subtle animated shine across the banner */
.fp-announcement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: fp-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.fp-announcement .fp-event-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
}

/* megaphone badge */
.fp-announcement .fp-event-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: white;
  animation: fp-pulse-ring 2s ease-out infinite;
}

/* date box */
.fp-announcement .fp-event-date {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.fp-announcement .fp-event-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.fp-announcement .fp-event-date .month {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
  font-weight: 600;
}

/* text */
.fp-announcement .fp-event-info {
  flex: 1;
  min-width: 200px;
}

.fp-announcement .fp-event-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.fp-announcement .fp-event-info p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* CTA button */
.fp-announcement .fp-event-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.fp-btn-event {
  background: white;
  color: #c24400 !important;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fp-btn-event:hover {
  background: var(--thg-green-deep);
  color: white !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* body div (replaces <p> for formatted HTML) */
.fp-announcement .fp-event-body {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.fp-announcement .fp-event-body p {
  margin: 0 0 0.4em;
}

.fp-announcement .fp-event-body p:last-child {
  margin-bottom: 0;
}

/* separator between stacked announcements */
.fp-event-content--border {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

/* admin-only edit pencil — positioned at top-right of section */
.fp-announcement .container {
  position: relative;
}

.fp-edit-link {
  position: absolute;
  top: 0;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.fp-edit-link:hover {
  background: white;
  color: #c24400 !important;
}

/* ── mobile: stack vertically ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .fp-announcement {
    padding: 18px 0;
  }
  .fp-announcement .fp-event-content {
    gap: 1rem;
  }
  .fp-announcement .fp-event-badge {
    display: none;
  }
  .fp-announcement .fp-event-info h3 {
    font-size: 1rem;
  }
  .fp-btn-event {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .fp-event-content--border {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }
  .fp-edit-link {
    top: -4px;
    right: 10px;
  }
}

/* ── ABOUT ──────────────────────────────────────────────────────────────────── */

.fp-about {
  padding: 80px 0;
  background: #fff;
}

.fp-about-content h3 {
  color: var(--thg-orange);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.fp-about-content h2 {
  color: var(--thg-green-forest);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.fp-about-content > p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Timeline */
.fp-timeline {
  position: relative;
  padding-left: 28px;
  margin: 1.5rem 0;
}

.fp-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--thg-orange), var(--thg-green-sage));
}

.fp-timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.fp-timeline-item:last-child { padding-bottom: 0; }

.fp-timeline-dot {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--thg-orange);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.2);
}

.fp-timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 3px;
}

.fp-timeline-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* About image column */
.fp-about-image {
  position: relative;
}

.fp-about-image > img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  width: 100%;
  object-fit: cover;
}

.fp-mission-vision {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: -50px;
  margin-left: 24px;
  margin-right: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-top: 4px solid var(--thg-orange);
  position: relative;
  z-index: 1;
}

.fp-mission-vision h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.fp-mission-vision p {
  font-size: 0.83rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

.fp-mission { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }

@media (max-width: 991px) {
  .fp-about-image { margin-top: 2.5rem; }
  .fp-mission-vision { margin-left: 12px; margin-right: 12px; }
}

/* Core values */
.fp-core-values { margin-top: 60px; }

.fp-core-values > h3 {
  color: var(--thg-green-forest);
  font-weight: 700;
}

.fp-value-card {
  background: var(--thg-body-bg);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid transparent;
}

.fp-value-card:hover {
  background: white;
  border-color: var(--thg-orange);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.fp-value-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 114, 12, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--thg-orange);
  transition: background 0.3s ease, color 0.3s ease;
}

.fp-value-card:hover .fp-value-icon {
  background: var(--thg-orange);
  color: white;
}

.fp-value-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 8px;
}

.fp-value-card p {
  font-size: 0.83rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ── FEATURED PROGRAMS (KOOLIELU) ───────────────────────────────────────────── */

.fp-programs {
  padding: 80px 0;
  background: var(--thg-body-bg);
}

/* Big banner card (left column) */
.fp-program-banner {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fp-program-banner:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.fp-banner-image {
  position: relative;
  overflow: hidden;
  height: 230px;
  flex-shrink: 0;
}

.fp-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fp-program-banner:hover .fp-banner-image img {
  transform: scale(1.05);
}

.fp-banner-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--thg-orange);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.fp-banner-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fp-banner-info .fp-program-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 6px;
}

.fp-program-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fp-program-stats span {
  font-size: 0.8rem;
  color: var(--thg-green-sage);
  font-weight: 600;
}

.fp-program-stats i { margin-right: 4px; color: var(--thg-orange); }

.fp-banner-info > p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.fp-program-details {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fp-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #555;
}

.fp-detail-item i { color: var(--thg-orange); }

.fp-discover-btn {
  display: inline-block;
  background: var(--thg-green-forest);
  color: white !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
  align-self: flex-start;
}

.fp-discover-btn:hover {
  background: var(--thg-orange);
  color: white !important;
}

/* Program items grid (right column) */
.fp-programs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.fp-program-item {
  background: white;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  flex: 1;
  border-left: 3px solid transparent;
}

.fp-program-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--thg-orange);
}

.fp-item-icon {
  width: 80px;
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.fp-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-item-content { flex: 1; min-width: 0; }

.fp-item-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 4px;
}

.fp-item-content p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.fp-meta-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fp-meta-info span {
  font-size: 0.75rem;
  color: var(--thg-green-sage);
  font-weight: 600;
}

.fp-item-arrow {
  color: #ccc;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.fp-program-item:hover .fp-item-arrow {
  color: var(--thg-orange);
  transform: translateX(3px);
}

/* ── DARK MODE ──────────────────────────────────────────────────────────────── */

[data-bs-theme="dark"] .fp-section-title h2 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-section-title h2::before { background: #2a3a2c; }
[data-bs-theme="dark"] .fp-section-title p { color: #8a9f8b; }

[data-bs-theme="dark"] .fp-about { background: #111814; }
[data-bs-theme="dark"] .fp-about-content h2 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-about-content > p { color: #9ab09b; }
[data-bs-theme="dark"] .fp-timeline-content h4 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-timeline-content p { color: #8a9f8b; }

[data-bs-theme="dark"] .fp-mission-vision {
  background: #1c2b1e;
  border-top-color: #e8720c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .fp-mission-vision h3 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-mission-vision p { color: #9ab09b; }
[data-bs-theme="dark"] .fp-mission { border-bottom-color: #243024; }

[data-bs-theme="dark"] .fp-value-card {
  background: #1c2b1e;
  border-color: transparent;
}
[data-bs-theme="dark"] .fp-value-card:hover {
  background: #243024;
  border-color: #e8720c;
}
[data-bs-theme="dark"] .fp-value-card h4 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-value-card p { color: #8a9f8b; }
[data-bs-theme="dark"] .fp-core-values > h3 { color: #a8d5aa; }

[data-bs-theme="dark"] .fp-programs { background: #141f16; }
[data-bs-theme="dark"] .fp-program-banner { background: #1c2b1e; }
[data-bs-theme="dark"] .fp-banner-info .fp-program-header h3 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-banner-info > p { color: #9ab09b; }
[data-bs-theme="dark"] .fp-detail-item { color: #9ab09b; }

[data-bs-theme="dark"] .fp-program-item { background: #1c2b1e; }
[data-bs-theme="dark"] .fp-item-content h4 { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-item-content p { color: #8a9f8b; }

/* ── RECENT NEWS ─────────────────────────────────────────────────────────────── */

.fp-news {
  padding: 80px 0;
  background: var(--thg-body-bg);
}

/* "View all" link button — shared by news & events */
.fp-view-all-btn {
  display: inline-flex;
  align-items: center;
  color: var(--thg-green-forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border: 2px solid var(--thg-green-forest);
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.fp-view-all-btn:hover {
  background: var(--thg-green-forest);
  color: white;
}

/* News card — horizontal: image left, content right */
.fp-news-card {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.fp-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.fp-news-card__image {
  width: 200px;
  min-height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.fp-news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fp-news-card:hover .fp-news-card__image img {
  transform: scale(1.05);
}

.fp-news-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.fp-news-card__category {
  margin-bottom: 8px;
}

.fp-news-card__category a,
.fp-news-card__category span {
  display: inline-block;
  background: rgba(232, 114, 12, 0.1);
  color: var(--thg-orange);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fp-news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 8px;
  line-height: 1.4;
}

.fp-news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-news-card__title a:hover {
  color: var(--thg-orange);
}

.fp-news-card__excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.fp-news-card__meta {
  margin-top: auto;
}

.fp-news-card__date {
  font-size: 0.8rem;
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fp-news-card__date i {
  color: var(--thg-orange);
}

/* Mobile: stack news cards vertically */
@media (max-width: 575px) {
  .fp-news-card {
    flex-direction: column;
  }

  .fp-news-card__image {
    width: 100%;
    min-height: 160px;
    max-height: 200px;
  }
}

/* ── UPCOMING EVENTS ─────────────────────────────────────────────────────────── */

.fp-events {
  padding: 80px 0;
  background: #fff;
}

/* Event card — vertical: image + date overlay, category, title, excerpt, location, CTA */
.fp-event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.fp-event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.fp-event-card__image {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.fp-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fp-event-card:hover .fp-event-card__image img {
  transform: scale(1.05);
}

.fp-event-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--thg-green-forest) 0%, #4a8c4f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Date badge overlay on image */
.fp-event-card__date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--thg-orange);
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 56px;
  box-shadow: 0 4px 12px rgba(232, 114, 12, 0.3);
}

.fp-event-card__day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.fp-event-card__month {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Card details area */
.fp-event-card__details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fp-event-card__category-row {
  margin-bottom: 10px;
}

.fp-event-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category color variants */
.fp-event-card__badge--school    { background: rgba(45, 90, 48, 0.1);   color: var(--thg-green-forest); }
.fp-event-card__badge--sports    { background: rgba(30, 136, 229, 0.1); color: #1e88e5; }
.fp-event-card__badge--arts      { background: rgba(156, 39, 176, 0.1); color: #9c27b0; }
.fp-event-card__badge--academic  { background: rgba(232, 114, 12, 0.1); color: var(--thg-orange); }
.fp-event-card__badge--community { background: rgba(0, 150, 136, 0.1);  color: #009688; }
.fp-event-card__badge--parents   { background: rgba(233, 30, 99, 0.1);  color: #e91e63; }
.fp-event-card__badge--guests    { background: rgba(121, 85, 72, 0.1);  color: #795548; }

.fp-event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--thg-green-forest);
  margin-bottom: 8px;
  line-height: 1.4;
}

.fp-event-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-event-card__title a:hover {
  color: var(--thg-orange);
}

.fp-event-card__excerpt {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.fp-event-card__info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 16px;
}

.fp-event-card__info-row i {
  color: var(--thg-orange);
  font-size: 0.9rem;
}

.fp-event-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.fp-event-card__cta {
  display: inline-flex;
  align-items: center;
  background: var(--thg-green-forest);
  color: white !important;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.fp-event-card__cta:hover {
  background: var(--thg-orange);
  color: white !important;
}

.fp-event-card__cta--outline {
  background: transparent;
  color: var(--thg-green-forest) !important;
  border: 2px solid var(--thg-green-forest);
  padding: 7px 18px;
}

.fp-event-card__cta--outline:hover {
  background: var(--thg-green-forest);
  color: white !important;
}

/* Registration link wrapper (preserves Drupal's <a> tag) */
.fp-event-card__cta-wrap {
  display: inline-flex;
  align-items: center;
}

.fp-event-card__cta-wrap .field,
.fp-event-card__cta-wrap .field__item {
  display: inline-flex;
  align-items: center;
}

.fp-event-card__cta-wrap a {
  display: inline-flex;
  align-items: center;
  background: var(--thg-green-forest);
  color: white !important;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
  /* Override .view-content a inherited underline/padding */
  background-image: none;
  padding-bottom: 9px;
}

.fp-event-card__cta-wrap a:hover {
  background: var(--thg-orange);
  color: white !important;
}

/* ── DARK MODE — News & Events ───────────────────────────────────────────────── */

[data-bs-theme="dark"] .fp-news { background: #141f16; }
[data-bs-theme="dark"] .fp-news-card { background: #1c2b1e; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); }
[data-bs-theme="dark"] .fp-news-card__title { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-news-card__excerpt { color: #9ab09b; }
[data-bs-theme="dark"] .fp-news-card__date { color: #7a8f7b; }
[data-bs-theme="dark"] .fp-news-card__category a,
[data-bs-theme="dark"] .fp-news-card__category span {
  background: rgba(232, 114, 12, 0.2);
}

[data-bs-theme="dark"] .fp-events { background: #111814; }
[data-bs-theme="dark"] .fp-event-card { background: #1c2b1e; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3); }
[data-bs-theme="dark"] .fp-event-card__title { color: #a8d5aa; }
[data-bs-theme="dark"] .fp-event-card__excerpt { color: #9ab09b; }
[data-bs-theme="dark"] .fp-event-card__info-row { color: #7a8f7b; }
[data-bs-theme="dark"] .fp-event-card__placeholder { background: linear-gradient(135deg, #1c2b1e 0%, #2d5a30 100%); }

[data-bs-theme="dark"] .fp-event-card__badge--school    { background: rgba(45, 90, 48, 0.25); }
[data-bs-theme="dark"] .fp-event-card__badge--sports    { background: rgba(30, 136, 229, 0.2); }
[data-bs-theme="dark"] .fp-event-card__badge--arts      { background: rgba(156, 39, 176, 0.2); }
[data-bs-theme="dark"] .fp-event-card__badge--academic  { background: rgba(232, 114, 12, 0.2); }
[data-bs-theme="dark"] .fp-event-card__badge--community { background: rgba(0, 150, 136, 0.2); }
[data-bs-theme="dark"] .fp-event-card__badge--parents   { background: rgba(233, 30, 99, 0.2); }
[data-bs-theme="dark"] .fp-event-card__badge--guests    { background: rgba(121, 85, 72, 0.2); }

[data-bs-theme="dark"] .fp-event-card__cta--outline {
  color: #a8d5aa !important;
  border-color: #a8d5aa;
}
[data-bs-theme="dark"] .fp-event-card__cta--outline:hover {
  background: #2d5a30;
  color: white !important;
  border-color: #2d5a30;
}

[data-bs-theme="dark"] .fp-view-all-btn {
  color: #a8d5aa;
  border-color: #a8d5aa;
}
[data-bs-theme="dark"] .fp-view-all-btn:hover {
  background: var(--thg-green-forest);
  color: white;
  border-color: #2d5a30;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEACHER COMPACT FRONT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Teacher bar — greeting + logout ───────────────────────────────────── */
.fp-teacher-bar {
  background: var(--thg-green-deep, #1a3a1c);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--thg-orange, #e8720c);
}

.fp-teacher-greeting {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.fp-teacher-bar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.fp-teacher-bar-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.fp-teacher-bar-btn--edit {
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.fp-teacher-bar-btn--edit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.fp-teacher-bar-btn--logout {
  background: var(--thg-orange, #e8720c);
  color: white;
}
.fp-teacher-bar-btn--logout:hover {
  filter: brightness(1.1);
  color: white;
}

/* ── Hero reduced for teacher view ─────────────────────────────────────── */
.fp-hero--teacher {
  padding-top: 0 !important;
  padding-bottom: 40px;
}

/* ── Quick links section ───────────────────────────────────────────────── */
.fp-teacher-links {
  padding: 50px 0;
  background: var(--bs-body-bg, #f8f7f4);
}

.fp-quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--thg-green-forest, #2d5a30);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
  height: 100%;
  text-align: center;
}
.fp-quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--thg-orange, #e8720c);
  color: var(--thg-green-forest, #2d5a30);
  text-decoration: none;
}

.fp-quick-link-favicon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.fp-quick-link-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.fp-teacher-edit-links-btn {
  display: inline-flex;
  align-items: center;
  color: var(--thg-green-forest, #2d5a30);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--thg-green-forest, #2d5a30);
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}
.fp-teacher-edit-links-btn:hover {
  background: var(--thg-green-forest, #2d5a30);
  color: white;
  text-decoration: none;
}

/* ── Mobile — teacher bar ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .fp-teacher-bar .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .fp-teacher-bar-actions {
    justify-content: center;
  }
}

/* ── Dark mode — teacher sections ──────────────────────────────────────── */
[data-bs-theme="dark"] .fp-teacher-bar {
  background: #0d1a0f;
}

[data-bs-theme="dark"] .fp-teacher-links {
  background: #111814;
}

[data-bs-theme="dark"] .fp-quick-link-card {
  background: #1c2b1e;
  color: #a8d5aa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
[data-bs-theme="dark"] .fp-quick-link-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--thg-orange, #e8720c);
  color: #a8d5aa;
}

[data-bs-theme="dark"] .fp-teacher-edit-links-btn {
  color: #a8d5aa;
  border-color: #a8d5aa;
}
[data-bs-theme="dark"] .fp-teacher-edit-links-btn:hover {
  background: var(--thg-green-forest, #2d5a30);
  color: white;
  border-color: var(--thg-green-forest, #2d5a30);
}
