/*************************************/
/************ GLOBAL CSS *************/
/*************************************/
:root {
  --primary-color: #e63946;
  --primary-hover-color: #c02634;
  --secondary-color: #555;
  --background-color: #f9f9f9;
  --card-background: #fff;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --animation-timing: 0.3s ease-in-out;
}

body.dark-mode{
  --background-color:#191919;
  --card-background:#212121;
  --primary-background:#121212;
  --input-background:#000000;
  --text-color:#FFFFFF;
  --text-muted:#DDDDDD;
}


body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
}

.hero {
  margin-top: 10vh !important;
}

/*************************************/
/************* MAIN TITLE ************/
/*************************************/
.header {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--primary-color);
  color: #fff;
}

.header h1 {
  font-size: 36px;
  margin: 0;
}

/*************************************/
/*********** EVENT DETAILS ***********/
/*************************************/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.main-content {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--card-shadow);
}

.main-content img.header-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.main-content h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.main-content h2 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.main-content h3 {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.main-content p {
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--card-shadow);
  transition: transform var(--animation-timing), box-shadow var(--animation-timing);
}

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

.card p,
.card a {
  color: var(--secondary-color);
  font-size: 14px;
}

.card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

.register-btn {
  display: block;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: transform var(--animation-timing);
}

.register-btn:hover {
  transform: scale(1.05);
}

.card:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/*************************************/
/************ NEWSLETTER *************/
/*************************************/
.newsletter {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--card-shadow);
  text-align: center;
  margin-top: 20px;
}

.newsletter p {
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.newsletter input {
  padding: 10px;
  width: 70%;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 14px;
}

.newsletter button {
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background var(--animation-timing);
  margin-top:15px;
}

.newsletter button:hover {
  background: #0056b3;
}

.map {
  height: 200px;
  background: url('https://via.placeholder.com/350x200') no-repeat center center/cover;
  border-radius: 8px;
}

.organizers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.organizer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.organizer img {
  width: 60px;
  height: 60px;
  border-radius: 10%;
  object-fit: cover;
}

.organizer .details {
  font-size: 14px;
}

li::marker {
  color: var(--primary-color);
}

.list {
  line-height: 40px;
  color: var(--secondary-color);
  list-style: none;
}

/*************************************/
/************** FOOTER ***************/
/*************************************/
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer p,
.footer ul,
.footer a {
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  color: #ccc;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a:hover {
  color: #fff;
}

.footer-socials a {
  margin-right: 10px;
  color: #ccc;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}

/* Media Queries for Tablets */
@media (max-width: 768px) {

  /*************************************/
  /*********** EVENT DETAILS ***********/
  /*************************************/
  .container {
    width: 90%;
    margin: 20px auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Media Queries for Small devices (phones) */
@media (max-width: 480px) {

  /*************************************/
  /*********** EVENT DETAILS ***********/
  /*************************************/
  .container {
    width: 100%;
    margin: 20px 0;
    padding: 0 !important;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-content {
    padding: 10px;
    width: 98vw;
  }

  .main-content h2 {
    font-size: 2rem !important;
  }

  .card {
    padding: 10px;
    width: 98vw;
  }

  .map {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .map iframe {
    width: 95% !important;
  }

  /*************************************/
  /************ NEWSLETTER *************/
  /*************************************/
  .newsletter {
    padding: 20px 5px;
  }

  .newsletter input {
    margin-bottom: 15px;
    width: 100%;
  }

  .newsletter button {
    padding: 8px 16px;
  }
}

.dark-mode .main-content,.dark-mode .card,.dark-mode .newsletter{
  background-color:var(--card-background);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .newsletter p,.dark-mode .card p, .dark-mode .card a,.dark-mode ul li, .dark-mode .main-content p{
  color: var(--text-muted);
}
.dark-mode .organizer .details,.dark-mode .card h3,.dark-mode .main-content h2,.dark-mode .main-content h3{
  color:var(--text-color) !important;
}

.dark-mode .newsletter input{
  background-color: var(--input-background);
  color: var(--text-color);
  border: 1px solid var(--text-muted);
}