/* =========================================
    STRUCTURE OF THE CSS FILE:
========================================= */

/* 1. GLOBAL (reset + base styles) */
/* 2. LAYOUT (container, sections, footer) */
/* 3. NAVIGATION */
/* 4. SHARED COMPONENTS (buttons, tables, dropdowns, etc.) */
/* 5. HOME PAGE */
/* 6. PARTNERS PAGE */
/* 7. EVENTS PAGE */
/* 8. KNOWLEDGE BASE PAGE */
/* 9. CONTACT PAGE */
/* 10. MEDIA QUERIES */

/* =========================================
   1. GLOBAL (reset + base styles)
========================================= */

/* === LAYOUT BASIS (sticky footer fix) === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;        /* was 18px */
  line-height: 1.5;       /* was 1.7 */
  background: #f7f5f2;
  color: #2b2b2b;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* === TITELS & TEKST === */
h1, h2, h3, h4, h5, h6 {
  text-align: left;
}

h2 {
  font-size: 30px;
}

p {
  color: #555;
}

a {
  color: #ffb766;
  text-decoration: none;
}

a:hover {
  color: #f43a09;
}


/* =========================================
   2. LAYOUT (container, sections, footer)
========================================= */

.container {
  width: min(95%, 1400px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* === SECTIONS === */
section {
  max-width: 1400px;
  width: 95%;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  box-sizing: border-box;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

/* === FOOTER === */
footer {
  background: #222;
  color: #ddd;
  padding: 40px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

footer h3 {
  color: #ffb766;
  margin-bottom: 10px;
}

footer p {
  margin: 5px 0;
  color: #ccc;
}

.footer-right {
  align-self: flex-end;
  text-align: right;
  font-size: 16px;
}


/* =========================================
   3. NAVIGATION
========================================= */

/* === NAVBAR === */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  background: #444;
  padding: 15px;
}

nav a {
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: #ffb766;
}

.nav-home span {
  font-size: 42px;
}

/* CONTACT BUTTON */
.nav-contact {
  background: #ffb766;
  color: #2b2b2b !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-contact:hover {
  background: #f43a09;
  color: white !important;
}


/* =========================================
   4. SHARED COMPONENTS
========================================= */

/* Figures */
figure {
  text-align: center;
  margin: 30px 0;
}

figure img {
  max-width: 100%;
  border-radius: 10px;
}

figcaption {
  font-size: 16px;
  color: #777;
  margin-top: 10px;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #444;
  min-width: 220px;
  top: 100%;
  left: 0;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  color: #f5f5f5;
}

.dropdown-content a:hover {
  background: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 8px 14px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: #005fa3;
}

.btn-more-info {
  display: inline-block;
  padding: 8px 16px;
  background: #444;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.btn-more-info:hover {
  background: #222;
  color: #ffb766;
}

.btn-register {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffb766;
  color: #2b2b2b;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.btn-register:hover {
  background: #f43a09;
  color: white;
}

/* === TABLE STYLING === */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 10px;
}

.table-caption {
  font-size: 16px;
  color: #777;
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  font-size: 17px;
}

table thead {
  background: #444;
  color: #f5f5f5;
}

table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

table tbody tr:nth-child(even) {
  background: #fafafa;
}

table tbody tr:hover {
  background: #fff3e0;
}

table td:first-child {
  font-weight: 600;
  color: #444;
}


/* =========================================
   5. HOME PAGE
========================================= */

/* === HERO === */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: min(90%, 900px);
}

.hero-text h1 {
  font-size: 44px;
  margin: 0;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  margin-top: 10px;
}

/* === OBJECTIVES === */
#objectives {
  padding: 4rem 2rem;
  background-color: #f7f8f3;
}

#objectives h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2f3319;
  font-size: 2rem;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.objective-card {
  background: linear-gradient(145deg, #7b823d, #686e30);
  color: #010101;
  padding: 2.2rem 1.6rem;
  min-height: 230px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(47, 51, 25, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.objective-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(47, 51, 25, 0.28);
}

.objective-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: #ffffff;
  text-align: center;
}

.objective-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #f7f8f3;
  text-align: justify;
}

.objectives-text {
  max-width: 950px;
  margin: 2rem auto 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: #2f3319;
  text-align: justify;
}


/* =========================================
   6. PARTNERS PAGE
========================================= */

/* === PARTNERS === */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.partner-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.card-img-holder {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.card-img-holder img {
  max-height: 80px;
  max-width: 100%;
}

.partner-card p {
  font-weight: 500;
  margin-bottom: 10px;
}


/* =========================================
   7. EVENTS PAGE
========================================= */

/* === EVENTS / TIMELINE === */
.deo-timeline {
  position: relative;
  width: min(100%, 1200px);
  margin: 60px auto;
  padding: 20px 20px 20px 90px;
  box-sizing: border-box;
}

.deo-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 35px;
  width: 3px;
  background: #ddd;
}

.deo-entry {
  position: relative;
  width: 100%;
  margin-bottom: 34px;
  box-sizing: border-box;
}

.deo-entry::before {
  content: "";
  position: absolute;
  left: -63px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: white;
  border: 3px solid #bbb;
  border-radius: 50%;
  z-index: 2;
}

.deo-card {
  width: 100%;
}

.deo-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.deo-content:hover {
  transform: translateY(-5px);
}

.deo-text {
  min-width: 0;
}

.deo-text h3 {
  font-size: 15px;
  color: #777;
  margin: 0;
}

.deo-text h4 {
  font-size: 19px;
  color: #444;
  margin: 6px 0;
}

.deo-location {
  margin-top: 8px;
  font-size: 15px;
}

.deo-location a {
  color: #ffb766;
}

.deo-location a:hover {
  color: #f43a09;
}

.deo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.deo-image {
  height: 100%;
}

.deo-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.deo-entry.past .deo-content {
  opacity: 0.99;
  filter: grayscale(60%);
}

.deo-entry.past::before {
  border-color: #ccc;
}

.deo-entry.past h4 {
  color: #888;
}

.deo-entry.past .deo-image img {
  filter: grayscale(80%);
}


/* =========================================
   8. KNOWLEDGE BASE PAGE
========================================= */

.file-link {
  color: #444;
  text-decoration: underline;
  font-size: 15px;
}

.file-link:hover {
  color: #f43a09;
}
/* KB PAGE */
.kb-article {
  width: min(900px, 95%);
  margin: 0 auto;
}

.kb-intro {
  font-size: 20px;
  color: #666;
}

.kb-summary {
  background: #fff3e0;
  padding: 20px;
  border-radius: 8px;
}

/* BACK BUTTON */
.btn-back {
  display: inline-block;
  background: #eee;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
}

/* TOGGLE */
.kb-toggle {
  margin-top: 10px;
  background: #444;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.kb-details {
  display: none;
  margin-top: 15px;
}

.kb-details.open {
  display: block;
}

/* SOURCES BLOCK */
.kb-sources {
  width: min(900px, 95%);
  margin: 40px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.kb-sources h3 {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
}

.kb-sources ul {
  list-style-type: none;
  padding: 0;
}

.kb-sources li {
  font-size: 15px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.5;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.kb-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.kb-card:hover {
  transform: translateY(-5px);
}
.kb-card p {
  font-weight: 500;
  margin-bottom: 10px;
}

/* =========================================
   9. CONTACT PAGE
========================================= */

/* (empty for now) */


/* =========================================
   10. MEDIA QUERIES
========================================= */

/* === MOBILE === */
@media screen and (max-width: 900px) {
  .deo-timeline {
    width: min(100%, 700px);
    padding: 20px 15px 20px 58px;
  }

  .deo-timeline::before {
    left: 20px;
  }

  .deo-entry::before {
    left: -42px;
  }

  .deo-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .deo-image img {
    min-height: 200px;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .objective-card {
    min-height: auto;
  }

  .footer-right {
    text-align: left;
  }
}