/* BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.75;
}

a {
  color: #ff6018;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ff7b3e;
  text-decoration: underline;
}

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

/* BANNER */
.banner-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 300px;
  display: block;
}

.banner-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(255,255,255,0.82) 10%, transparent 100%);
}

.site-title {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.site-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.3rem;
}

/* NAVIGATION */
#main-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.9rem 0.4rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #444;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

#main-nav ul li {
  display: flex;
}

.nav-link {
  display: inline-block;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: #ff6018;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ff6018;
  text-decoration: none;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* SECTIONS */
.section {
  padding: 4rem 1.5rem;
}

section[id] {
  scroll-margin-top: 55px;
}

.section-alt {
  background: #faf9f7;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e8d5c0;
}

.section-intro {
  color: #555;
  font-size: 0.97rem;
  margin-bottom: 2rem;
  font-style: italic;
}

p {
  margin-bottom: 1rem;
}

/* TOPIC */
.highlight-box {
  background: #fff8f3;
  border-left: 4px solid #ff6018;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 4px 4px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 0.97rem;
  color: #3a2a20;
}

.project-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e0d8;
  font-size: 0.9rem;
  color: #666;
}

/* KEYNOTES */

.keynote-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.speaker-card {
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 6px;
  padding: 1.8rem 1.2rem 1.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.speaker-avatar {
  margin-bottom: 0.8rem;
  opacity: 1;
}

.speaker-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.speaker-affil {
  font-size: 0.83rem;
  color: #777;
}

.speaker-bio {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

.speaker-link {
  color: #000000;
}

/* SCHEDULE */
.day-block {
  margin-bottom: 2.5rem;
}

.day-title {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ff6018;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid #ff6018;
}

.schedule-list {
  list-style: none;
  border: 1px solid #e8e0d6;
  border-radius: 4px;
  overflow: hidden;
}

.schedule-list li {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid #f0eae2;
  transition: background 0.2s ease;
}

.schedule-list li:last-child {
  border-bottom: none;
}

.schedule-list li:hover {
  background: #fff8f3;
}

.time {
  font-weight: 600;
  color: #ff6018;
  white-space: nowrap;
  min-width: 120px;
  font-size: 0.87rem;
}

/* APPLY SECTION */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.apply-box {
  background: #fff8f3;
  border: 1px solid #e8d5c0;
  border-radius: 6px;
  padding: 1.5rem 1.4rem;
}

.apply-box-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.9rem;
}

.deadline-badge {
  display: inline-block;
  margin-top: 1rem;
  background: #ff6018;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.apply-info-list {
  list-style: none;
  font-size: 0.92rem;
  color: #3a2a20;
}

.apply-info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8d5c0;
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
}

.apply-info-list li:last-child {
  border-bottom: none;
}

.apply-info-label {
  font-weight: 600;
  color: #ff6018;
  min-width: 70px;
  flex-shrink: 0;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* MATERIALS */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.material-card {
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 6px;
  padding: 1.6rem 1.3rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.material-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: #ff6018;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.material-card h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}

.material-card p {
  font-size: 0.87rem;
  color: #666;
  margin-bottom: 1rem;
}

.btn-download {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #ff6018;
  color: #fff;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-download:hover {
  background: #ff7b3e;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ══ ZAGREB TIPS ══ */
.zagreb-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e8d5c0;
}

.zagreb-sub-subtitle {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.4rem 0 0.4rem;
}

/* Hotels */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.hotel-card {
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 6px;
  overflow: hidden;
}

.hotel-photo {
  width: 100%;
  height: 160px;
  background: #ede9e3;
  border-bottom: 1px solid #e8e0d6;
  overflow: hidden;
}

.hotel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotel-name {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  padding: 0.9rem 1.2rem 0.25rem;
}

.hotel-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
  padding: 0 1.2rem 0.8rem;
  margin: 0;
}

.hotel-meta {
  list-style: none;
  border-top: 1px solid #f0ece6;
  padding: 0.6rem 1.2rem 0.9rem;
  font-size: 0.82rem;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Restaurants & drinks */
.resto-list {
  list-style: none;
  margin: 0.2rem 0 1.2rem;
}

.resto-list li {
  font-size: 0.92rem;
  color: #3a2a20;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ebe3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resto-list li:last-child {
  border-bottom: none;
}

.resto-list a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #ccc;
}

.resto-list a:hover {
  color: #ff6018;
  text-decoration-color: #ff6018;
}

.tag-vegan {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #edfaef;
  color: #2a7a35;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.tag-location {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f5f0ea;
  color: #999;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

.food-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .food-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Getting There */
@media (max-width: 640px) {
  .hotel-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT */
.email-link {
  color: #ff6018;
}

address {
  font-style: normal;
}

/* FOOTER */
footer {
  background: #2c2217;
  color: #b5a898;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
  line-height: 1.9;
}

footer a {
  color: #e8a07a;
}

footer a:hover {
  color: #fff;
}

/* SCROLL ANIMATIONS */
.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .site-title { font-size: 1.6rem; }
  .banner-overlay { padding: 1.2rem; }
  .banner-wrap { height: 200px; }

  .nav-inner { padding: 0 1rem; }

  .nav-toggle { display: flex; }

  #main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #f0f0f0;
  }

  #main-nav ul.open { display: flex; }

  #main-nav ul li { width: 100%; }

  .nav-link {
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
    border-bottom: 1px solid #f5f0ea;
  }

  .nav-link:hover,
  .nav-link.active { background: #fff8f3; }

  /* Disable the underline animation on mobile — not needed */
  .nav-link::after { display: none; }

  .apply-grid { grid-template-columns: 1fr; }
  .time { min-width: 90px; }
}

/* SCHEDULE TABS */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e0d6;
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.75rem 1.4rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: #ff6018;
}

.tab-btn.active {
  color: #ff6018;
  border-bottom-color: #ff6018;
}

.tab-panel {
  display: none;
  animation: tabFade 0.25s ease;
}

.tab-panel.active {
  display: block;
}

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

.tab-panel .schedule-list {
  border-top: none;
  border-radius: 0 0 4px 4px;
}