/* Base Styles */
:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --secondary: #f0f0f0;
  --text: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --background-gray: #f5f5f5;
  --border: #e0e0e0;
  --accent: #f59e0b;
  --error: #ef4444;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Layout */
.flex-container {
  display: flex;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* Reduced padding on mobile */
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem; /* Restore original padding on desktop */
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.font-medium {
  font-weight: 500;
}

/* Mobile Toggle Button */
.mobile-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
}

.toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 16rem;
  height: 100vh;
  background-color: #222;
  color: white;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
}

/* Sidebar Header - Altındaki çizgiyi kaldır */
.sidebar-header {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: none; /* Çizgiyi kaldır */
}

.logo {
  margin-bottom: 0.5rem;
  /* Removed the invert filter since the new logo has its own colors */
}

.sidebar-title {
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
}

.sidebar-nav {
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.sidebar-nav ul {
  list-style: none;
}

/* Sidebar Navigation - Menü öğeleri arasındaki boşluğu artır ve çizgileri kaldır */
.sidebar-nav li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem; /* Dikey padding'i artır */
  color: white;
  background: none;
  border: none; /* Çizgiyi kaldır */
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1.1rem;
  margin-bottom: 0.25rem; /* Öğeler arasında ek boşluk ekle */
}

.sidebar-nav li button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Language Toggle Container - Üstündeki çizgiyi kaldır */
.language-toggle-container {
  padding: 1.5rem;
  border-top: none; /* Çizgiyi kaldır */
}

.language-toggle-button {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.language-toggle-button:hover {
  background-color: #444;
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 30;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 636px; /* Set exact height for mobile */
  width: 360px; /* Set exact width for mobile */
  max-width: 100%; /* Ensure it doesn't overflow on very small screens */
  margin: 0 auto; /* Center the hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    height: 600px;
    width: 100%; /* Full width on desktop */
    max-width: none;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/mobbackground.png?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: -1;
}

@media (min-width: 768px) {
  .hero-section {
    height: 600px;
  }

  .hero-background {
    background-image: url("images/background.png?v=2");
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 184, 166, 0);
  z-index: -1;
}

@media (min-width: 768px) {
  .hero-section::before {
    background-color: rgba(20, 184, 166, 0.3);
  }
  .hero-section {
    height: 600px;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(0, 0, 0, 0);
  padding: 1.5rem; /* Reduced padding on mobile */
  border-radius: var(--radius);
  width: 95%; /* Control width more precisely */
  max-width: 95%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-content {
    max-width: 80%;
    padding: 3rem;
    margin-top: 3rem; /* Position content lower on desktop */
  }
}

/* Add these styles for the event logos */
.event-logos {
  width: 100%;
  margin-bottom: 1.5rem;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin: 0.5rem;
}

@media (min-width: 768px) {
  .logo-container {
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .partner-logo {
    height: 60px;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .partner-logo {
    height: 70px;
  }
}

.event-logo {
  margin-bottom: 1.5rem;
}

.event-logo-circle {
  width: 6rem;
  height: 6rem;
  background-color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-symbol {
  filter: invert(1);
}

.hero-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.event-date {
  color: white;
  font-weight: 700;
  font-size: 1.0rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  display: none; /* Hide on mobile */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow to text */
}

@media (min-width: 768px) {
  .event-date {
    font-size: 1.3rem;
    width: auto;
    display: block; /* Show on desktop */
  }
}

.event-location {
  color: white;
  font-weight: 700;
  font-size: 1.0rem;
  margin-bottom: 1.5rem;
  width: 100%;
  display: none; /* Hide on mobile */
}

@media (min-width: 768px) {
  .event-location {
    font-size: 1.3rem;
    width: auto;
    display: block; /* Show on desktop */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add shadow to text */
  }
}

.apply-button {
  background-color: white;
  color: var(--primary);
  border: none;
  font-weight: 700;
  font-size: 0.875rem; /* Smaller font size for mobile */
  padding: 0.6rem 1.2rem; /* Smaller padding for mobile */
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: var(--radius);
  margin-top: 20rem; /* Position button more downward on mobile */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add subtle shadow to button */
}

@media (min-width: 768px) {
  .apply-button {
    font-size: 1rem; /* Original font size for desktop */
    padding: 0.75rem 1.5rem; /* Original padding for desktop */
    margin-top: 0.5rem; /* Original margin for desktop */
  }
}

/* Section Styles */
.section {
  padding: 3rem 0; /* Slightly reduced padding on mobile */
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.bg-gray {
  background-color: var(--background-gray);
}

.section-title {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.sub-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.prose {
  max-width: none;
  color: var(--text);
  overflow-wrap: break-word; /* Ensure text wraps properly */
  word-break: break-word; /* Help with long words */
}

/* Congress Image Styles */
.congress-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Reduced gap on mobile */
}

.congress-images {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Reduced gap on mobile */
  width: 100%;
}

.congress-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px; /* Limit height on mobile */
}

.congress-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure images cover their container */
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.congress-image.loaded {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .congress-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .congress-images {
    flex: 0 0 45%;
    margin-right: 2rem;
    height: auto; /* Let height be determined by JS */
    gap: 1.5rem;
  }

  .congress-image-container {
    height: auto; /* Let height be determined by JS */
    position: relative;
    max-height: none; /* Remove max-height limitation on desktop */
  }

  .congress-image {
    position: relative; /* Change from absolute to relative */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .congress-text {
    flex: 1;
  }
}

/* Lists */
.numbered-list {
  list-style-position: inside;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.numbered-list li {
  margin-bottom: 0.25rem;
}

.numbered-list.spaced li {
  margin-bottom: 0.5rem;
}

.bullet-list {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
  margin-top: 1.5rem;
  font-weight: 500;
}

.email-link {
  color: var(--primary);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* Topics Container */
.topics-container {
  margin-top: 2rem;
}

/* Mobile Topics */
.mobile-topics {
  display: block;
}

@media (min-width: 768px) {
  .mobile-topics {
    display: none;
  }
}

/* Mobil görünümde topic-accordion çerçevesini kaldır */
.topic-accordion {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.topic-summary {
  background-color: #e6f7f5;
  padding: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius);
}

.topic-content {
  padding: 1rem;
  background-color: white;
}

.topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  color: var(--text);
  padding-left: 0.5rem; /* Add some padding */
}

/* Desktop Topics */
.desktop-topics {
  display: none;
}

@media (min-width: 768px) {
  .desktop-topics {
    display: block;
  }
}

.tabs {
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-trigger {
  padding: 0.75rem;
  background-color: var(--secondary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.tab-trigger:hover {
  background-color: #e5e5e5;
}

.tab-trigger.active {
  background-color: var(--primary);
  color: white;
}

.tab-content {
  display: none;
  padding: 1rem;
  border: none;
}

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

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.topic-title {
  font-size: 1.125rem;
  font-weight: 500;
}

.topic-list-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  color: var(--text);
}

/* Committee Details */
.committee-details {
  margin-bottom: 2rem;
}

.committee-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}

.committee-list {
  list-style: none;
  padding: 1rem;
  margin-top: 0.5rem;
  overflow-wrap: break-word; /* Ensure text wraps properly */
}

.committee-list li {
  margin-bottom: 0.5rem;
}

.committee-content {
  padding: 1rem;
  margin-top: 0.5rem;
}

.committee-subtitle {
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

/* Awards Grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.award-card {
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem; /* Slightly reduced padding on mobile */
  word-break: break-word;
}

.award-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.award-amount {
  font-size: 1.875rem;
  font-weight: 700;
}

/* Dates Table */
.table-container {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 -1rem; /* Negative margin to allow full width scrolling */
  padding: 0 1rem; /* Add padding back */
}

.dates-table {
  width: 100%;
  border-collapse: collapse;
}

.dates-table th,
.dates-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.dates-table th {
  background-color: #f0f0f0;
}

.date-cell {
  text-align: center;
}

.location-info {
  margin-top: 1.5rem;
}

/* FAQ Container */
.faq-container {
  margin-top: 1.5rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  background-color: #f0f0f0;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding-left: 3rem;
}

/* Ensure no chevron icons in FAQ section */
.faq-item .chevron-icon,
.faq-question .chevron-icon,
.faq-question svg {
  display: none !important;
}

/* Strengthen the plus/minus styling */
/* Remove the plus/minus signs from FAQ items */
.faq-question::before {
  display: none; /* Hide the plus sign */
  content: none; /* Ensure no content is displayed */
}

.faq-item[open] .faq-question::before {
  display: none; /* Hide the minus sign */
  content: none; /* Ensure no content is displayed */
}

/* Adjust padding since we no longer need space for the plus/minus */
.faq-question {
  padding-left: 1rem; /* Reduce left padding since we don't have the plus/minus anymore */
}

.faq-question::before {
  content: "+";
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: bold;
}

.faq-item[open] .faq-question::before {
  content: "-";
  font-size: 2rem;
}

.faq-question::before {
  content: "+";
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: bold;
}

.faq-item[open] .faq-question::before {
  content: "-";
}

.faq-question svg {
  display: none;
}

.faq-answer {
  padding: 1rem;
  background-color: white;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.contact-intro {
  margin-bottom: 1.5rem;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  background-color: #222;
  color: white;
  padding: 1.5rem;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  body {
    padding-top: 4rem; /* Increase top padding to account for mobile toggle */
  }

  .sidebar {
    transform: translateX(-100%);
    width: 85%; /* Make sidebar slightly narrower on mobile */
    max-width: 300px;
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  body {
    padding-left: 16rem;
    padding-top: 0; /* Remove the top padding that was causing white space */
  }

  .mobile-toggle {
    display: none;
  }
}

/* Chevron Icons */
.chevron-icon {
  transition: transform 0.3s ease;
}

details[open] .chevron-icon {
  transform: rotate(180deg);
}

.chevron-right-icon,
.chevron-down-icon {
  transition: transform 0.3s ease;
}

/* Utility Classes */
.mb-8 {
  margin-bottom: 2rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* Fix mobile sidebar */
@media (max-width: 767px) {
  body {
    padding-top: 4rem; /* Increase top padding to account for mobile toggle */
  }

  .sidebar {
    width: 85%; /* Make sidebar wider on mobile */
    max-width: 300px;
  }
}

/* Fix topic lists on mobile */
@media (max-width: 767px) {
  .topic-list {
    padding-left: 1rem;
  }

  .topic-list li {
    margin-bottom: 0.75rem;
  }
}

/* Fix award cards on mobile */
@media (max-width: 767px) {
  .award-card {
    padding: 1rem;
  }

  .award-amount {
    font-size: 1.5rem;
  }
}

/* Fix committee details on mobile */
@media (max-width: 767px) {
  .committee-list {
    padding: 0.75rem;
  }
}

/* Fix FAQ items on mobile */
@media (max-width: 767px) {
  .faq-question {
    padding-right: 2.5rem; /* Ensure space for the plus/minus sign */
  }
}
