:root {
  --navy-blue: #00285e;
  --royal-blue: #0d5c9e;
  --tag-cyan: #38a6dd;
  --bg-cream: #f7fbfe;
  --card-bg: #ffffff;
  --sky-blue-bg: #eaf7fd;
  --yellow-footer-bg: #f5fbff;
  --postit-yellow: #dff3fc;
  --pill-orange: #dff3fc;
  --pill-gold: #d5edfa;
  --text-dark: #172a46;
  --text-muted: #5f6d7e;
  --border-light: rgba(0, 40, 94, 0.12);
  --shadow-soft: 0 18px 42px rgba(0, 40, 94, 0.09);
  --radius-xl: 22px;
  --radius-md: 14px;
}

.news-events-page {
  background: radial-gradient(circle at 86% 14%, rgba(56, 166, 221, 0.13), transparent 21rem), var(--bg-cream);
  color: var(--text-dark);
}

/* EXPANDED CONTAINER WIDTH */
.journal-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 70px clamp(20px, 4vw, 48px) 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

/* TYPOGRAPHY HELPERS */
.sub-tagline {
  font-family: var(--montserrat), sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--tag-cyan);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.serif-italics {
  font-family: var(--playfair), serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

.pill-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: var(--navy-blue);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pill-orange {
  background-color: var(--pill-orange);
}

.pill-gold {
  background-color: var(--pill-gold);
}

/* CIRCLE BUTTONS */
.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.circle-btn:hover {
  background: var(--blue);
  transform: translateX(3px) scale(1.04);
  box-shadow: 0 8px 16px rgba(0, 40, 94, 0.18);
}

.circle-btn.light {
  background: #ffffff;
  color: var(--navy-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.circle-btn.light:hover {
  background: var(--navy-blue);
  color: #ffffff;
}

/* ==========================================================================
       1. HERO SECTION WITH SKETCHES & BRUSH EDGE
       ========================================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 30px;
  align-items: center;
  position: relative;
  padding: clamp(16px, 3vw, 36px) 0 clamp(24px, 4vw, 48px);
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--montserrat), sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.1;
  color: var(--navy-blue);
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  line-height: 1.6;
}

/* Paper Plane Doodle */
.doodle-plane {
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 200px;
  height: 150px;
  opacity: 0.7;
}

.hero-right {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* Background Clocktower Sketch */
.sketch-clocktower {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 220px;
  height: 260px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

/* Brush Masked Image Wrapper */
.hero-image-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.hero-img {
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  object-fit: cover;
  /* Soft rounded brush corners simulating mockup cut */
  border-top-left-radius: 120px 40px;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 24px 52px rgba(0, 40, 94, 0.18);
  display: block;
}

/* Post-it Note Badge */
.postit-badge {
  position: absolute;
  bottom: -15px;
  right: 35px;
  background-color: var(--postit-yellow);
  width: 130px;
  height: 135px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 8px 12px 26px rgba(0, 40, 94, 0.18);
  z-index: 3;
  border-radius: 2px 2px 14px 2px;
}

.paperclip-icon {
  position: absolute;
  top: -16px;
  left: 42%;
  width: 20px;
  height: 34px;
  z-index: 4;
}

.postit-num {
  font-family: var(--playfair), serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 0.9;
  margin-bottom: 4px;
}

.postit-text {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy-blue);
  letter-spacing: 1px;
  line-height: 1.2;
}

/* ==========================================================================
       2. MIDDLE SECTION (MILESTONE + STACKED CARDS)
       ========================================================================== */
.grid-middle {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

/* Milestone Card */
.milestone-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 390px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}

.milestone-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(145deg, #ffffff 0%, #f4fbff 100%);
}

.school-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-icon {
  width: 46px;
  height: 44px;
  background: linear-gradient(135deg, var(--dark-blue), var(--blue));
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.brand-text h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-blue);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 5 Years Moss/Leaf Badge */
.years-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px 0;
}

.num-5-leaf {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.8;
  /* Leaf texture effect */
  background: linear-gradient(135deg, var(--dark-blue), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0px rgba(11, 30, 56, 0.2));
}

.years-tag-box {
  display: flex;
  flex-direction: column;
}

.years-tag-box .yrs {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--navy-blue);
  letter-spacing: 1px;
}

.years-tag-box .badge-blue {
  background: var(--royal-blue);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.competencies-text h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 4px;
}

.competencies-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.milestone-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.milestone-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Organic angle cut divider */
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.milestone-bar {
  background: linear-gradient(110deg, var(--dark-blue), #09598f);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.milestone-bar-text span {
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  opacity: 0.7;
  text-transform: uppercase;
  display: block;
}

.milestone-bar-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Stacked Cards Right */
.stacked-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.horizontal-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 58px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.horizontal-card:hover .card-hover-bar,
.horizontal-card:focus .card-hover-bar,
.horizontal-card:focus-within .card-hover-bar {
  transform: translateY(0);
  opacity: 1;
}

.stacked-cards .horizontal-card:hover .card-hover-bar {
  display: none;
}

.horizontal-card:focus-visible {
  outline: 3px solid rgba(56, 166, 221, 0.45);
  outline-offset: 3px;
}

.h-card-content {
  flex: 1;
}

.h-card-content h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 6px;
  line-height: 1.3;
}

.h-card-content p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.h-card-media {
  position: relative;
  width: 160px;
  height: 110px;
  flex-shrink: 0;
}

.h-card-media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.h-card-media .circle-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stacked-cards .h-card-media .circle-btn{
background: #fff;
    color: var(--dark-blue);
}
.stacked-cards .h-card-media .circle-btn:hover{
background: var(--dark-blue);
    color: #fff;
}

/* ==========================================================================
       3. THREE-COLUMN MINI CARDS
       ========================================================================== */
.grid-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-card-info {
  flex: 1;
}

.mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mini-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: white;
}

.icon-blue {
  background: var(--blue);
}

.icon-purple {
  background: #0d5c9e;
}

.icon-pink {
  background: var(--dark-blue);
}

.mini-tag {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--navy-blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mini-card-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-blue);
  margin-bottom: 4px;
  line-height: 1.25;
}

.mini-card-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.mini-card-media {
  position: relative;
  width: 100px;
  height: 105px;
  flex-shrink: 0;
}

.mini-card-media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.mini-card-media .circle-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
       4. PHOTO GALLERY SECTION WITH CAMERA DOODLE
       ========================================================================== */
.photo-journal-card {
  background: var(--sky-blue-bg);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(56, 166, 221, 0.22);
}

/* Camera Doodle Outline */
.doodle-camera {
  position: absolute;
  bottom: -70px;
  left: 10px;
  width: 180px;
  height: 180px;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.gallery-left {
  position: relative;
  z-index: 1;
}

.gallery-title {
  font-family: var(--montserrat), sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy-blue);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.gallery-left p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.primary-btn {
  background: var(--dark-blue);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--montserrat), sans-serif;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 40, 94, 0.2);
}

/* 5x3 Photo Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item {
  aspect-ratio: 1.1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ==========================================================================
       5. FOOTER BANNER WITH BOOKS & GLOBE DOODLES
       ========================================================================== */
.banner-footer {
  background: var(--yellow-footer-bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(56, 166, 221, 0.26);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Left Doodle: Books + Apple */
.doodle-books {
  position: absolute;
  bottom: 12px;
  left: 40px;
  width: 130px;
  height: 110px;
  opacity: 0.2;
  pointer-events: none;
}

/* Right Doodle: Globe + Pencil */
.doodle-globe {
  position: absolute;
  bottom: 12px;
  right: 40px;
  width: 140px;
  height: 110px;
  opacity: 0.2;
  pointer-events: none;
}

.banner-title {
  font-family: var(--montserrat), sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy-blue);
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.milestone-card:hover,
.horizontal-card:hover,
.mini-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 166, 221, 0.52);
  box-shadow: 0 24px 50px rgba(0, 40, 94, 0.14);
}

.circle-btn:focus-visible,
.primary-btn:focus-visible {
  outline: 3px solid rgba(56, 166, 221, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-left {
    animation: news-slide-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-right {
    animation: news-fade-in 0.95s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .doodle-plane {
    animation: news-float 3.8s ease-in-out infinite;
  }
}

@keyframes news-slide-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes news-fade-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes news-float {
  50% {
    transform: translate(9px, -8px) rotate(3deg);
  }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-right {
    justify-content: center;
  }

  .sketch-clocktower {
    display: none;
  }

  .grid-middle,
  .grid-three-col,
  .photo-journal-card {
    grid-template-columns: 1fr;
  }

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

  .journal-container {
    padding-top: 126px;
  }
}

@media (max-width: 600px) {
  .journal-container {
    padding: 112px 18px 64px;
    gap: 28px;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .postit-badge {
    right: 16px;
    width: 112px;
    height: 116px;
  }

  .postit-num {
    font-size: 2.75rem;
  }

  .milestone-body {
    grid-template-columns: 1fr;
  }

  .milestone-img-wrapper {
    min-height: 210px;
  }

  .milestone-img-wrapper img {
    clip-path: none;
  }

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

  .horizontal-card,
  .mini-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .h-card-media,
  .mini-card-media {
    width: 100%;
    height: 160px;
  }

  .doodle-books,
  .doodle-globe {
    display: none;
  }
}