/* ============================================================
   Home.css  —  RF Consulting / LegalSlot
   ============================================================ */

:root {
  --font-main: "Garet", sans-serif;
  --font-heading: "Garet", sans-serif;
  --text-base: 16px;
  --text-sm: 14px;
  --blue-deep: #0b409c;
  --blue-mid: #1950a1;
  --blue-light: #dae5ff;
  --blue-accent: #0061a9;
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-mid: #555;
  --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 15px 40px rgba(11, 64, 156, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
button,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
strong {
  font-family: var(--font-main) !important;
}

body {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
strong {
  font-weight: 700;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.main-container {
  overflow-x: hidden;
}

/* ============================================================
   BANNER
   ============================================================ */
.banner-section {
  width: 100%;
  height: 460px;
  position: relative;
  overflow: hidden;
  background-image: url("https://images.pexels.com/photos/5668484/pexels-photo-5668484.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 64, 156, 0.92) 0%,
    rgba(0, 97, 169, 0.78) 100%
  );
}

.banner-section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.banner-section-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 750px;
  margin-top: -12px;
  padding: 0 20px;
  animation: fadeUp 0.65s ease both;
}

.banner-line-1 {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a8c4ff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0.32rem 1rem;
  border: 1px solid rgba(168, 196, 255, 0.4);
  border-radius: 20px;
}

.banner-line-2 {
  font-size: clamp(1.65rem, 3.1vw, 2.7rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.banner-line-3 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.06;
  white-space: nowrap;
  color: #a8c4ff;
}

.banner-subtext {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   PROMISE STRIP
   ============================================================ */
.promise-strip {
  background: var(--blue-deep);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.promise-item {
  text-align: center;
  padding: 2rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.promise-item:last-child {
  border-right: none;
}
.promise-item:hover {
  background: var(--blue-mid);
}

.promise-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 196, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}
.promise-icon svg {
  width: 22px;
  height: 22px;
  stroke: #a8c4ff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.promise-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.promise-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ============================================================
   CLIENT ENGAGEMENT / HOW IT WORKS
   ============================================================ */
.client-engagement {
  max-width: 1100px;
  margin: 90px auto;
  padding: 0 30px;
}

.client-engagement-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.client-engagement-heading {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.client-engagement-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--blue-deep);
  margin: 12px auto 0;
  border-radius: 2px;
}

.client-engagement-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 55px;
  line-height: 1.7;
}

.client-engagement-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.client-engagement-timeline::after {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  width: calc(75% - 40px);
  height: 2px;
  background: linear-gradient(
    to right,
    var(--blue-light),
    var(--blue-deep),
    var(--blue-light)
  );
  border-radius: 2px;
  z-index: 0;
}

.client-engagement-timeline > div {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.client-engagement-timeline h1 {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid #fff;
  outline: 3px solid var(--blue-deep);
  box-shadow: 0 6px 20px rgba(11, 64, 156, 0.3);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-engagement-timeline > div:hover h1 {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 12px 28px rgba(11, 64, 156, 0.42);
}

.client-engagement-timeline > div p:first-of-type {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.client-engagement-timeline > div p:last-of-type {
  color: var(--text-mid);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.Home_Carousel {
  padding: 80px 20px;
  background-color: var(--blue-light);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -10px 20px rgba(0, 0, 0, 0.18);
}

.Home_Carousel .container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.carousel-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.Home_Carousel h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.carousel-subtext {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 40px;
}

.peek-carousel {
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 40px;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
  justify-content: center;
  align-items: center;
}

/* Feedback carousel: track is JS-translated, so don't auto-center via flex */
.Home_Carousel .carousel-track {
  justify-content: flex-start;
}

.review-card {
  flex: 0 0 400px;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.6rem;
  box-shadow: 0 4px 24px rgba(11, 64, 156, 0.1);
  color: #1a2a3a;
  opacity: 0.35;
  transform: scale(0.88);
  transition:
    opacity 0.4s,
    transform 0.4s,
    box-shadow 0.4s;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #1e3a8a;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
}

.review-card-quote-icon {
  font-size: 1.4rem;
  color: #3b82f6;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.review-card.active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
  pointer-events: none;
  box-shadow: 0 12px 40px rgba(11, 64, 156, 0.18);
}

.review-card:not(.active):hover {
  transform: scale(0.94);
  opacity: 0.55;
}

.review-card p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #334155;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0 0 1.4rem;
  font-style: italic;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e8eef6;
}

.review-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.review-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: 0.02em;
}

.review-card h4 {
  display: none;
}

.review-card > h1 {
  display: none;
}

/* ============================================================
   AREAS OF PRACTICE  — redesigned 3×2 grid
   ============================================================ */
.areas-of-practice {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 30px;
}

.areas-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.areas-title {
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.areas-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--blue-deep);
  margin: 14px auto 0;
  border-radius: 2px;
}

.areas-intro {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* 3-column grid */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.practice-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--blue-deep);
  transition:
    transform 0.28s,
    box-shadow 0.28s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.practice-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  transform: translate(28px, 28px);
  transition: transform 0.35s;
  pointer-events: none;
}

.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.practice-card:hover::after {
  transform: translate(14px, 14px);
}

.practice-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.practice-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-deep);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-accent);
  margin: 0;
}

.practice-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.practice-card ul li {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}

.practice-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-deep);
}

.areas-note {
  text-align: center;
  color: #777;
  margin-top: 50px;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .review-card {
    flex-basis: 340px;
  }

  .promise-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .promise-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .client-engagement-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 55px;
  }
  .client-engagement-timeline::after {
    display: none;
  }

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

@media (max-width: 580px) {
  .review-card {
    flex-basis: 300px;
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .promise-strip {
    grid-template-columns: 1fr;
  }
  .client-engagement-timeline {
    grid-template-columns: 1fr;
  }
  .banner-section {
    height: auto;
    padding: 70px 20px 90px;
  }
  .banner-section-text {
    margin-top: -8px;
  }
  .banner-line-1 {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    padding: 0.24rem 0.72rem;
  }
  .banner-line-2 {
    font-size: clamp(1.15rem, 4.7vw, 1.65rem);
  }
  .banner-line-3 {
    font-size: clamp(1.55rem, 5.8vw, 2.2rem);
  }
  .banner-subtext {
    font-size: 16px;
    margin-top: 0.6rem;
  }
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANNOUNCEMENTS SECTION — ENHANCED
   ============================================================ */

.announcements-section {
  padding: 48px 20px 40px;
  background: linear-gradient(135deg, #f0f4f9 0%, #e5ecf4 50%, #f0f4f9 100%);
  margin: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.announcements-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(11, 64, 156, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.announcements-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(25, 80, 161, 0.02) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.announcements-section > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.announcements-header {
  text-align: center;
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.announcements-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--blue-deep) 0%,
    var(--blue-mid) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.announcements-subtitle {
  font-size: 1.05rem;
  color: #5a6b7f;
  line-height: 1.7;
  font-weight: 500;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ann-card-home {
  background: #0d1b35;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(11, 64, 156, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 480px;
  border: none;
  cursor: pointer;
  position: relative;
}

.ann-card-home::before {
  display: none;
}

.ann-card-home:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 56px rgba(11, 64, 156, 0.22);
}

.ann-card-home:hover::before {
  display: none;
}

.ann-card-banner,
.ann-card-banner-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ann-card-home:hover .ann-card-banner {
  transform: scale(1.04);
}

/* Permanent dark gradient — deepens on hover */
.ann-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 12, 40, 0.92) 0%,
    rgba(5, 12, 40, 0.68) 35%,
    rgba(5, 12, 40, 0.18) 65%,
    transparent 100%
  );
  opacity: 1;
  transition: opacity 0.35s ease;
}

.ann-card-home:hover .ann-card-banner::after {
  opacity: 1;
}

.ann-card-banner-placeholder {
  background: linear-gradient(135deg, #1a3060 0%, #0d1b35 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.ann-card-banner-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ann-card-home:hover .ann-card-banner-placeholder i {
  transform: scale(1.1);
}

/* Text overlay floats above the gradient */
.ann-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 56px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.ann-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: color 0.28s;
}

.ann-card-home:hover .ann-card-title {
  color: #fff;
}

.ann-card-summary {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ann-card-link {
  display: none;
}

@media (max-width: 768px) {
  .announcements-section {
    padding: 36px 12px 28px;
  }

  .announcements-section::before {
    width: 400px;
    height: 400px;
  }

  .announcements-section::after {
    width: 300px;
    height: 300px;
  }

  .announcements-header {
    margin-bottom: 20px;
  }

  .announcements-title {
    font-size: 1.8rem;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ann-card-banner,
  .ann-card-banner-placeholder {
    height: 100%;
  }

  .ann-card-home {
    height: 360px;
  }

  .ann-card-body {
    padding: 48px 18px 18px;
  }
}

/* ============================================================
   ANNOUNCEMENT DETAIL MODAL — ENHANCED
   ============================================================ */

.ann-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.ann-detail-modal.active {
  display: flex;
}

.ann-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.ann-detail-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: min(92vw, 1000px);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.ann-detail-top-bar {
  height: 50px;
  background: #0f4c81;
  border-bottom: 1px solid #062d4a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 16px;
  z-index: 100;
}

.ann-detail-top-bar-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ann-detail-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  opacity: 0.8;
}

.ann-detail-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
  opacity: 1;
}

.ann-detail-close:active {
  transform: scale(0.95);
}

/* Scrollable Content Container — two-column horizontal layout */
.ann-detail-scroll-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* LEFT: image + thumbnails */
.ann-detail-left {
  width: 55%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #0d1b35;
  border-right: 1px solid #e0e8f0;
}

/* RIGHT: title + text */
.ann-detail-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Main Display Area */
.ann-detail-display {
  flex: 1;
  min-height: 0;
  width: 100%;
  background-color: #0d1b35;
  overflow: hidden;
}

.ann-detail-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ann-detail-display-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f0f8 0%, #dce8f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa3c7;
  font-size: 4rem;
  opacity: 0.4;
}

/* Thumbnails Strip */
.ann-detail-thumbnails {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f4f9;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid #dde6f0;
  max-height: 90px;
}

.ann-thumb-item {
  width: 68px;
  height: 68px;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e0e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.ann-thumb-item:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--blue-accent);
}

.ann-thumb-item.active {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(11, 64, 156, 0.2);
  transform: scale(1.05);
}

.ann-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ann-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f0f8 0%, #dce8f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa3c7;
  font-size: 1.8rem;
  opacity: 0.4;
}

.ann-detail-header {
  padding: 22px 28px 8px;
  border-bottom: 1px solid #eef2f8;
  background: transparent;
  flex-shrink: 0;
}

.ann-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.ann-detail-body {
  padding: 16px 28px 24px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ann-detail-content {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.6;
  font-weight: 400;
}

.ann-detail-content p {
  margin: 0 0 12px 0;
  word-break: break-word;
}

#annDetailGalleryThumbs {
  display: contents;
}
/* carousel dot indicators ─────────────────────────────── */
.ann-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  width: 100%;
}

.ann-dot {
  display: block;
  height: 6px;
  width: 20px;
  border-radius: 3px;
  background: #b8c5d9;
  transition:
    width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.35s ease,
    opacity 0.35s ease;
  cursor: pointer;
  opacity: 0.5;
}

.ann-dot.active {
  width: 36px;
  background: #1e3a6e;
  opacity: 1;
}

@media (max-width: 768px) {
  .ann-detail-panel {
    width: 95vw;
    max-height: min(85vh, 800px);
    border-radius: 16px;
  }

  /* Stack vertically on mobile */
  .ann-detail-scroll-wrapper {
    flex-direction: column;
    overflow-y: auto;
  }

  .ann-detail-left {
    width: 100%;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid #dde6f0;
  }

  .ann-detail-display {
    height: 220px;
  }

  .ann-detail-top-bar {
    height: 44px;
    padding: 0 14px;
  }

  .ann-detail-display {
    height: 240px;
  }

  .ann-detail-thumbnails {
    gap: 6px;
    padding: 10px 12px;
    max-height: 100px;
  }

  .ann-thumb-item {
    width: 72px;
    height: 72px;
  }

  .ann-detail-header {
    padding: 14px 20px 4px;
  }

  .ann-detail-title {
    font-size: 1.1rem;
  }

  .ann-detail-body {
    padding: 0 20px 16px;
  }

  .ann-detail-close {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .ann-detail-body {
    padding: 0 24px 24px;
  }

  .ann-detail-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(11, 64, 156, 0.18);
  color: #0b409c;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 3px 12px rgba(11, 64, 156, 0.12);
  backdrop-filter: blur(6px);
}

.carousel-nav:hover {
  background: #0b409c;
  border-color: #0b409c;
  color: #fff;
  box-shadow: 0 6px 20px rgba(11, 64, 156, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-prev {
  left: calc(50% - 430px);
}

.carousel-nav-next {
  right: calc(50% - 430px);
}

/* Hide carousel arrows for feedback - only show for announcements */
.peek-carousel:not(.announcements-carousel) .carousel-nav {
  display: none;
}

/* Announcement Carousel specific styling */
.announcements-carousel {
  margin: 0;
}

.announcements-carousel .carousel-track {
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  position: relative;
}

.announcements-carousel .ann-card-home {
  flex: 0 0 800px;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  left: 50%;
  translate: -50% 0;
  pointer-events: none;
}

.announcements-carousel .ann-card-home.active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  left: auto;
  translate: none;
  pointer-events: auto;
}

.announcements-carousel .ann-card-home:not(.active):hover {
  opacity: 0;
  transform: scale(0.5);
}

@media (max-width: 768px) {
  .carousel-nav {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .carousel-nav-prev {
    left: 4px;
  }

  .carousel-nav-next {
    right: 4px;
  }

  .announcements-carousel .carousel-track {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }

  .announcements-carousel .ann-card-home {
    flex: 0 0 85vw;
    max-width: 85vw;
  }
}
