/* =========================
   GLOBAL RESET & BASE STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: linear-gradient(205deg, #0077b6, #003049);
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: relative;
  width: 100%;
  height: 70px;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: transparent; */
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  z-index: 1000;
  transition: 
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* Sticky state */
.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  /* background-color: transparent; */
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.6);
  transform: translateY(-10px);
  opacity: 0;
}

/* After sticky is applied, we animate it in */
.navbar.sticky.show {
  transform: translateY(0);
  opacity: 1;
}

body.navbar-active {
  padding-top: 70px;
}

.logo img {
  max-height: 55px; /* fits cleanly inside 70px navbar */
  width: auto;
  display: block;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #4da6ff;
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s ease;
}

@media (max-width: 820px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 1100;
  }

  /* Hide desktop nav */
  .navbar nav ul {
    display: none;
  }
}

@media (max-width: 820px) {
  .navbar nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    padding: 2rem;
    transition: right 0.35s ease;
  }

  .navbar nav.open {
    right: 0;
  }

  .navbar nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}




/* =========================
   BUTTONS
========================= */
.btn {
  background: rgba(90, 170, 200, 0.25);
  color: rgb(255, 255, 255);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}



.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn:hover::after {
  left: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.involved {
  margin-top: 2rem;
}

.btn.donate {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}



/* Container for the whole module */
.oceanary-news {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
  padding: 2rem;
}




/* Breaking News Banner */
.breaking-banner {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #00b4d8, #0077b6);
  color: #fff;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 2rem);
  line-height: 1.2;
  animation: pulse 2s infinite;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.85; }
  100% { opacity: 1; }
}

/* Featured Articles Grid */
.featured-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Article Card Base */
.article-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  height: 320px;
  transition: transform 0.3s ease;
  color: #fff;
}

.article-card:hover {
  transform: translateY(-5px);
}

/* Wide article */
.article-card.wide {
  grid-column: 1 / -1;
  height: 380px;
}

/* Image */
.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

/* Dark overlay */
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

/* Text on top of image */
.article-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}

.article-meta {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}

.article-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.article-description {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.trending-news {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* height: 100%; */
}

.trending-news h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Bigger, more dominant cards */
.trending-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 14px;
  min-height: 160px;
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.trending-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Image fills more space and feels more premium */
.trending-thumb {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

/* Text container */
.trending-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Trend number badge */
.trend-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Meta text */
.trending-meta {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Title */
.trending-info {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: #ffffff;
}


.oceanary-news {
  align-items: stretch;
}

/* .featured-articles,
.trending-news {
  height: 100%;
}
 */


@media (max-width: 900px) {
  .oceanary-news {
    display: block;
  }

  .featured-articles {
    grid-template-columns: 1fr !important;
  }

  .article-card.wide {
    grid-column: span 1 !important;
  }

  /* Hide trending on all mobile/tablet sizes */
  .trending-news {
    display: none;
  }

  /* Give Impact Tracker breathing room from above */
  .impact-tracker {
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  /* Slightly more space on iPhone where everything is tighter */
  .impact-tracker {
    margin-top: 2.5rem;
    padding: 1.5rem;
  }
}




/* ================= QUICK READ SECTION ================= */



.quick-read h2 {
  text-align: center;
  padding: 1rem 0 2.5rem;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
}

.quick-read__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 3rem;
}

.quickeyebrow-line {
  flex: 1;
  height: 1px;
  background: rgb(255, 254, 254);
}

.quickeyebrow-text {
  white-space: nowrap;
}


/* ================= CUSTOM SWIPER ================= */

.quick-read-swiper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.swiper-viewport {
  overflow: hidden;
  width: 100%;
}

.swiper-track {
  display: flex;
  transition: transform 0.4s ease;
}

.article {
  flex: 0 0 calc(100% / 3);
  display: flex;
  flex-direction: column;
  height: 420px;              /* lock card height */
  background: #0b3f6b;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.article:hover {
  transform: translateY(-6px);
}

/* ================= IMAGE ================= */


.quick-image {
  width: 100%;
  height: 200px;              /* lock image height */
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;             /* fixes iPhone gaps */
  display: block;
  transition: transform 0.5s ease;
}
.article:hover .quick-image {
  transform: scale(1.05);
}

/* ================= TEXT AREA ================= */

.article-data-container {
  flex: 1;                    /* fills remaining space */
  padding: 1rem;
  background: #072f52;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Date + read time */
.article-data {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.article-data-spacer {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  margin: 0 0.5rem;
}

/* Title */
.article-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
  text-align: left;
}

/* ================= CONTROLS ================= */

.swiper-btn {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.65);
  color: #fdfdfd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-btn.prev {
  left: 10px;
}

.swiper-btn.next {
  right: 10px;
}


/* Tablet */
@media (max-width: 900px) {
  .article {
    flex: 0 0 50%;   /* 2 cards */
  }
}

/* Mobile portrait */
@media (max-width: 600px) {
  .article {
    flex: 0 0 100%;  /* 1 card */
  }

  .swiper-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}






/* =========================
   HERO SECTION
========================= */
.hero {
  min-height: 100vh;
  height: 100svh;
  background-image: url("coral test.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 0;
}
@media (max-width: 550px) {
  .hero {
    height: 50vh;        /* much shorter */
    min-height: 50vh;

    background-image: url("coral test.jpg");
    background-size: cover;
    background-repeat: no-repeat;

    /* Pull focus strongly to the left */
    background-position: 20% center;

    overflow: hidden;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .hero-logo img {
    max-width: 220px;
  }

  .hero p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 0rem;
}

.hero-logo img {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.5rem auto;
  display: block;
}

/* Shop Section */
.section2.about {
  min-height: 100svh;
  background: 
    linear-gradient(
      to right,
      rgba(10, 25, 47, 0.85) 0%,
      rgba(10, 25, 47, 0.75) 40%,
      rgba(10, 25, 47, 0.3) 65%,
      rgba(10, 25, 47, 0.05) 100%
    ),
    url('storebackground.png') center/cover no-repeat;
    
  color: #f5f5ff;
  padding: 6rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}


.section2-different {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section2-h3 {
  font-size: 2.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.section-aboutintro {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
  opacity: 0.85;
}


.coming-soon-badge {
  display: inline-block;
  background: rgba(90, 170, 200, 0.25);
  color: #bfefff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.waitlist-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #4fd1c5, #63b3ed);
  color: #05202e;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


.waitlist-btn {
  width: auto;
  max-width: 260px;
  text-align: center;
}

.coming-soon-badge {
  width: auto;
  max-width: 180px;
  text-align: center;
}

/* mobile override */
@media (max-width: 600px) {
  .section2.about {
    min-height: 70vh;          /* shorter than full screen */
    padding: 3rem 2rem;

    background:
      linear-gradient(
        to right,
        rgba(10, 25, 47, 0.9) 0%,
        rgba(10, 25, 47, 0.85) 45%,
        rgba(10, 25, 47, 0.4) 70%,
        rgba(10, 25, 47, 0.1) 100%
      ),
      url('storebackground.png') 70% center / cover no-repeat;
      /* 70% pushes focus right so shop items stay visible */
  }

  .section2-different {
    font-size: 2.4rem;
  }

  .section2-h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }

  .section-aboutintro {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .coming-soon-badge {
    font-size: 0.75rem;
    max-width: 150px;
  }

  .waitlist-btn {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    max-width: 220px;
  }
}

/* @media (max-width: 600px) {
  .hero,
  .section2.about {
    background-size: 180%; 
    background-position: center top;
  }
} */



/* About teaser section */

.about-teaser {
  padding: clamp(2rem, 8vw, 3rem) 0;
  background: radial-gradient(circle at 30% 20%, rgba(23, 137, 194, 0.486), rgba(4, 40, 77, 0.842));
  color: #fff;
}

.about-teaser__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(3rem, 1vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 3rem;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.eyebrow-text {
  white-space: nowrap;
}

.about-teaser__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 6rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.about-teaser__logo img {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  opacity: 0.95;
  flex-shrink: 0;
}

.about-teaser__text {
  flex: 1;
  max-width: 650px;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  line-height: 1.75;
  opacity: 0.85;
}

.about-teaser__link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

/* Pillars */
.about-teaser__pillars {
  font-size: clamp(0.8rem, 1vw, 1rem);
  opacity: 0.8;
  margin-top: 1rem;
}

.about-teaser__pillars-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.about-teaser__pillars-item,
.about-teaser__pillars-separator {
  margin-right: 0.35rem;
}


@media (max-width: 600px) {
  .about-teaser {
    padding: 2rem 0;
    text-align: center;
  }

  .about-teaser__eyebrow {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }

  .about-teaser__content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.25rem;
  }

  .about-teaser__logo img {
    width: 120px;
  }

  .about-teaser__text {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .about-teaser__link {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .about-teaser__pillars {
    font-size: 0.75rem;
    margin-top: 0.75rem;
  }

  .about-teaser__pillars-item,
  .about-teaser__pillars-separator {
    margin-right: 0.25rem;
  }
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.impact-tracker {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.impact-tracker h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.impact-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.impact-stat {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.impact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.impact-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trending-news {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}