/* SeaChange Project - Recreated CSS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== TOP BAR (Crab Watch) ===== */
.top-bar {
  background: #1a2744;
  text-align: right;
  padding: 8px 40px;
}

.top-bar a {
  color: #fff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar .crab-watch-badge {
  background: #e8a420;
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}

.top-bar .download-btn {
  background: #e85a2a;
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: #fff;
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  color: #1a2744;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 10px 18px;
  display: block;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.main-nav > ul > li > a:hover {
  color: #e85a2a;
}

/* Dropdown */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 3px solid #e85a2a;
  z-index: 200;
}

.main-nav li:hover .dropdown {
  display: block;
}

.main-nav .dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #1a2744;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.main-nav .dropdown li a:hover {
  background: #f5f5f5;
  color: #e85a2a;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(180deg, #d4c4a8 0%, #a8d4d0 30%, #4fb8a8 50%, #2a8fa0 70%, #1a6878 100%);
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image: url('../images/ocean-background-top.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(180, 160, 130, 0.3) 0%, rgba(40, 140, 160, 0.5) 50%, rgba(20, 100, 120, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .logo {
  width: 250px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 15px;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 18px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===== RESOURCE BUTTONS ===== */
.resource-categories {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.resource-cat {
  text-align: center;
  color: #fff;
}

.resource-cat .icon-circle {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  background: rgba(255,255,255,0.1);
}

.resource-cat .icon-circle svg {
  width: 50px;
  height: 50px;
  fill: #fff;
}

.resource-cat .icon-circle img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
}

.btn-orange {
  display: inline-block;
  background: #e85a2a;
  color: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-orange:hover {
  background: #d04a1a;
  transform: translateY(-2px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: #fff;
  padding: 80px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-section .wave-icon {
  width: 120px;
  margin-bottom: 30px;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.project-link {
  text-align: center;
  max-width: 150px;
}

.project-link img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.project-link span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a2744;
}

/* ===== OUR OCEAN OUR HEALTH ===== */
.ocean-health {
  background: linear-gradient(135deg, #f0e6d0 0%, #e8d8c0 30%, #d0c0a0 100%);
  background-image: url('../images/ocean-background-bottom.jpg');
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.ocean-health::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
}

.ocean-health .content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 60px 80px;
}

.ocean-health h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  font-style: italic;
  color: #1a2744;
  margin-bottom: 20px;
}

.ocean-health p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

/* ===== CONSORTIUM SECTION ===== */
.consortium-section {
  background: #fff;
  padding: 80px 40px;
  text-align: center;
}

.consortium-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-style: italic;
  color: #c0392b;
  margin-bottom: 20px;
}

.consortium-section > p {
  max-width: 900px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.consortium-grid {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-list {
  list-style: none;
  text-align: left;
  flex: 0 0 300px;
}

.partner-list li {
  background: #1a2744;
  margin-bottom: 2px;
}

.partner-list li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}

.partner-list li a:hover {
  background: #2a3754;
}

.consortium-map {
  flex: 1;
  min-width: 300px;
  min-height: 400px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* ===== CONTACT / FOOTER ===== */
.contact-section {
  background: #1a2744;
  color: #fff;
  padding: 60px 40px;
}

.contact-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.contact-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-col {
  flex: 1;
  min-width: 200px;
}

.contact-col h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.contact-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #b0b8c8;
  margin-bottom: 15px;
}

.contact-col a.btn-orange {
  font-size: 13px;
  padding: 8px 20px;
}

.connect-section {
  background: #1a2744;
  padding: 0 40px 60px;
  color: #fff;
}

.connect-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.connect-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.connect-col {
  flex: 1;
  min-width: 200px;
}

.connect-col h3 {
  font-size: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.connect-col .social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.social-icon.twitter { background: #1da1f2; }
.social-icon.facebook { background: #3b5998; }
.social-icon.vimeo { background: #1ab7ea; }

.connect-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #b0b8c8;
  margin-bottom: 15px;
}

/* ===== PRIVACY BAR ===== */
.privacy-bar {
  background: #e85a2a;
  text-align: center;
  padding: 15px;
}

.privacy-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== EU FOOTER ===== */
.eu-footer {
  background: #0a1a2e;
  color: #b0b8c8;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  line-height: 1.5;
}

.eu-footer img {
  width: 60px;
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Resources Page */
.resources-page .hero {
  min-height: 400px;
}

.resources-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.resources-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-style: italic;
  color: #1a2744;
  margin-bottom: 30px;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.resource-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.resource-card .card-image {
  height: 180px;
  background: linear-gradient(135deg, #2a8fa0, #1a6878);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
}

.resource-card .card-body {
  padding: 20px;
}

.resource-card h3 {
  font-size: 18px;
  color: #1a2744;
  margin-bottom: 10px;
}

.resource-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.resource-card .tag {
  display: inline-block;
  background: #e8f4f8;
  color: #2a8fa0;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
}

/* Project page */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-style: italic;
  color: #1a2744;
  margin-bottom: 30px;
}

.page-content h2 {
  font-size: 24px;
  color: #1a2744;
  margin: 30px 0 15px;
}

.page-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
  }

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

  .resource-categories {
    gap: 20px;
  }

  .resource-cat .icon-circle {
    width: 80px;
    height: 80px;
  }

  .contact-grid,
  .connect-grid {
    flex-direction: column;
  }

  .consortium-grid {
    flex-direction: column;
    align-items: center;
  }

  .ocean-health .content {
    padding: 40px 20px;
  }
}
