/* content.css - Article Page Styling for Life Below Water SDG 14 */

/* Hero Section with Video Background */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alice-blue);
  text-align: center;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 5, 20, 0.6);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--alice-blue);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeIn 1.2s ease-out;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1.5s ease-out;
}

.hero-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--alice-blue);
  border: 2px solid var(--alice-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: all 0.3s ease;
}

.work-btn::before {
  background-color: var(--success);
}

.about-btn::before {
  background-color: var(--pacific-cyan);
}

.focus-btn::before {
  background-color: var(--info);
}

.hero-btn:hover {
  color: var(--rich-black);
  border-color: transparent;
}

.hero-btn:hover::before {
  width: 100%;
}

/* Scroll Indicator */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
}

.scroll-down-indicator svg {
  width: 100%;
  height: 100%;
  fill: var(--alice-blue);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

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

/* Content Sections */
.content-section {
  padding: 4rem 2rem;
  background-color: rgb(95, 168, 211, 0.5) ;
}

.alt-bg {
  background: linear-gradient(180deg, var(--alice-blue) 0%, var(--picton-blue) 100%);
  color: var(--rich-black);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tagline {
  color: var(--pacific-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-heading {
  color: var(--yale-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--pacific-cyan);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Articles Container */
.articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

.content-article {
  display: flex;
  margin-bottom: 4rem;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
  flex: 0 0 40%;
  overflow: hidden;
}

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

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

.article-content {
  flex: 0 0 60%;
  padding: 2rem;
}

.article-content h3 {
  color: var(--yale-blue);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.key-insight {
  background-color: rgba(0, 116, 194, 0.1);
  padding: 1rem;
  border-left: 4px solid var(--pacific-cyan);
  border-radius: 0 5px 5px 0;
}

.insight-label {
  font-weight: 700;
  color: var(--yale-blue);
  display: block;
  margin-bottom: 0.5rem;
}

.more-link-container {
  text-align: center;
  margin-top: 2rem;
}

.more-link {
  display: inline-block;
  color: var(--pacific-cyan);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: var(--yale-blue);
}

.more-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.more-link:hover i {
  transform: translateX(5px);
}

/* Focus Areas Grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.focus-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.focus-image {
  height: 250px;
  overflow: hidden;
}

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

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

.focus-content {
  padding: 2rem;
}

.focus-content h3 {
  color: var(--yale-blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.focus-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.impact-stat {
  background-color: rgba(46, 204, 113, 0.1);
  padding: 1rem;
  border-left: 4px solid var(--success);
  border-radius: 0 5px 5px 0;
}

.impact-label {
  font-weight: 700;
  color: var(--yale-blue);
  display: block;
  margin-bottom: 0.5rem;
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(rgba(0, 53, 102, 0.85), rgba(0, 53, 102, 0.85)),
              url('../../images/dilshan/earth_ocean_lifeline.jpg');
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  text-align: center;
  color: var(--alice-blue);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--alice-blue);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button.primary {
  background-color: var(--success);
  color: white;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--alice-blue);
  border: 2px solid var(--alice-blue);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
  background-color: #26ae60; /* Darker green */
}

.cta-button.secondary:hover {
  background-color: var(--alice-blue);
  color: var(--yale-blue);
}

/* Responsive Design */
@media (max-width: 992px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .content-article {
    flex-direction: column;
  }

  .article-image {
    flex: 0 0 100%;
    height: 250px;
  }

  .article-content {
    flex: 0 0 100%;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-btn {
    width: 100%;
  }

  .content-section {
    padding: 4rem 1rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .article-content h3 {
    font-size: 1.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }
}
