
/* ==========================================
   CODING TOWERS NEWS & EVENTS
   Brand colours: Navy, Gold, White, Green
========================================== */

:root {
  --navy: #102b4e;
  --blue: #174b7b;
  --gold: #e4b64e;
  --green: #087b4c;
  --dark: #172338;
  --muted: #6c788a;
  --light: #f3f7fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
}

.news-page {
  width: 100%;
  overflow: hidden;
}

.container {
  width: min(1160px, calc(100% - 44px));
  margin: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.eyebrow.green {
  color: var(--green);
}

.eyebrow.green::before {
  background: var(--green);
}

/* HERO */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  color: white;
  background: linear-gradient(
    115deg,
    #0d2340,
    #123b65,
    #15517a
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 55px 55px;
}

.hero-content {
  position: relative;
  padding: 80px 0;
}

.hero h1 {
  margin: 22px 0 15px;
  color: white;
  font-size: clamp(48px, 7vw, 78px);
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-content > p {
  max-width: 630px;
  color: #d6e1ed;
  font-size: 18px;
  line-height: 1.8;
}

.hero-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  background: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.hero-button {
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
}

.hero-button:hover {
  background: var(--gold);
  color: var(--navy);
}

.primary-button:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.hero-brand {
  position: absolute;
  right: 0;
  bottom: 75px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dce7f1;
  font-size: 11px;
}

.hero-brand strong {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 15px;
}

.hero-brand div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-brand b {
  color: white;
}

/* SECTION HEADINGS */

.news-section {
  padding-top: 85px;
  padding-bottom: 90px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}

.section-heading h2,
.award-description h2,
.news-cta h2 {
  margin: 14px 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 43px);
  letter-spacing: -1.5px;
}

.section-heading p,
.news-cta p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  padding: 0 12px;
  border: 1px solid #e1e7ed;
  border-radius: 5px;
}

.search-box span {
  font-size: 25px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  padding: 13px 0;
  border: none;
  outline: none;
  font-size: 12px;
}

/* FILTERS */

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 32px 0 25px;
}

.filter-btn {
  padding: 10px 17px;
  border: 1px solid #e2e8ee;
  border-radius: 30px;
  color: #58677a;
  background: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

/* FEATURED STORY */

.featured-story {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(16,43,78,.07);
}

.featured-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  color: white;
  background: linear-gradient(140deg, #0e2b4b, #176149);
}

.featured-image::before,
.featured-image::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.featured-image::after {
  width: 420px;
  height: 420px;
  border-color: rgba(228,182,78,.3);
}

.featured-label,
.featured-watermark {
  position: absolute;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
}

.featured-label {
  top: 25px;
  left: 25px;
  color: var(--gold);
}

.featured-watermark {
  bottom: 22px;
  color: rgba(255,255,255,.55);
}

.featured-image-text {
  position: relative;
  text-align: center;
  z-index: 1;
}

.featured-image-text span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
}

.featured-image-text h2 {
  margin: 10px 0;
  color: white;
  font-size: 55px;
}

.featured-image-text p {
  font-size: 12px;
  letter-spacing: 2px;
}

.featured-content {
  padding: clamp(25px, 4vw, 45px);
}

.story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #8490a0;
  font-size: 10px;
}

.category-tag {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 3px;
  color: var(--green);
  background: #edf7f1;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.small-heading {
  display: block;
  margin: 22px 0 8px;
  color: #ad8328;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}

.featured-content h2 {
  color: var(--navy);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.25;
}

.featured-content > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.impact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 25px 0;
  padding: 18px 0;
  border-top: 1px solid #e9edf1;
  border-bottom: 1px solid #e9edf1;
}

.impact-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.impact-stats strong {
  color: var(--blue);
  font-size: 23px;
}

.impact-stats span {
  color: var(--muted);
  font-size: 10px;
}

/* EXPANDABLE STORIES */

.story-details {
  margin-top: 15px;
}

.story-details summary {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.details-content {
  margin-top: 15px;
  padding: 15px;
  border-left: 3px solid var(--gold);
  background: #f7f9fb;
}

.details-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.read-link {
  color: var(--green);
  font-size: 12px;
  font-weight: bold;
}

/* NEWS GRID */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 23px;
  margin-top: 27px;
}

.news-card {
  overflow: hidden;
  border: 1px solid #e7ecf1;
  border-radius: 10px;
  background: white;
  transition: .25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(16,43,78,.09);
}

.news-card[hidden],
.featured-story[hidden] {
  display: none;
}

.card-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 195px;
  overflow: hidden;
  color: white;
}

.card-image::before,
.card-image::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.card-image::after {
  width: 280px;
  height: 280px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 24px;
}

.news-category {
    color: #00a3e8;
    font-size: 13px;
    font-weight: 700;
}

.news-content h3 {
    color: #1a1d3d;
    margin: 12px 0;
}

.news-content p {
    line-height: 1.7;
    color: #555;
}

.read-more {
    color: #3d4492;
    font-weight: 700;
    text-decoration: none;
}

.training-image {
  background: linear-gradient(135deg,#12375e,#087b65);
}

.workshop-image {
  background: linear-gradient(135deg,#233c65,#6a5b38);
}

.partnership-image {
  background: linear-gradient(135deg,#12375e,#245c83);
}

.impact-image {
  background: linear-gradient(135deg,#174b7b,#087b4c);
}

.image-category,
.image-bottom {
  position: absolute;
  left: 18px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.image-category {
  top: 18px;
}

.image-bottom {
  bottom: 18px;
}

.image-icon {
  position: relative;
  z-index: 1;
  font-size: 70px;
  font-weight: 300;
}

.card-content {
  padding: 22px;
}

.card-content h3 {
  margin: 16px 0 10px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.4;
}

.card-content > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.no-results {
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: var(--light);
}

/* AWARD DOCUMENT */

.award-section {
  padding: 80px 0;
  background: var(--light);
}

.award-layout {
  display: grid;
  grid-template-columns: 1fr .8fr;
  align-items: center;
  gap: 60px;
}

.award-description p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.award-document {
  padding: 18px;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(16,43,78,.07);
}

.document-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 9px;
}

.document-heading span {
  color: var(--muted);
}

.award-document img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #edf0f3;
}

.award-document p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.document-link {
  color: var(--green);
  font-size: 12px;
  font-weight: bold;
}

/* CLOSING CTA */

.news-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 65px;
  padding-bottom: 65px;
}

.news-cta p {
  max-width: 600px;
}

/* RESPONSIVE */

@media(max-width: 800px) {

  .hero-brand {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    max-width: 400px;
  }

  .featured-story {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 270px;
  }

  .award-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .award-document {
    max-width: 550px;
  }
}

@media(max-width: 560px) {

  .container {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 370px;
  }

  .hero h1 {
    font-size: 49px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .news-section {
    padding-top: 55px;
    padding-bottom: 60px;
  }

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

  .featured-content {
    padding: 23px;
  }

  .impact-stats {
    gap: 15px;
  }

.ct-news-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
}

.ct-news-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.ct-news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ct-news-figure {
  margin: 0;
}

.ct-news-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ct-news-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.ct-news-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
}

.ct-news-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.ct-news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.ct-news-figure {
  margin: 0;
}

.ct-news-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ct-news-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4b5563;
}


  .news-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
