/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
  padding-bottom: 80px;
}

/* === NAVBAR === */
header {
  background-image: url('../media/ant-rozetsky-q-DJ9XhKkhA-unsplash.jpg');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  color: white;
  padding: 1.2em 2em;
  text-align: center;
  
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}

nav {
  margin-top: 0.5em;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1em;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700;
}

/* === MAIN CONTENT === */
main {
  max-width: 900px;
  margin: 2em auto;
  padding: 1em;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* === HEADINGS === */
h1, h2 {
  color: #d40000;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* === FORMS === */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
}

form label {
  font-weight: 600;
}

form input,
form textarea,
form button {
  padding: 0.75em;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form textarea {
  resize: vertical;
}

form button {
  background-color: #d40000;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #aa0000;
}

/* === FOOTER === */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 2em 1em;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer i {
  font-size: 1.6em;
  margin: 0 0.5em;
  transition: color 0.3s;
}

/* Social Media Brand Colors */
footer a:link i.fa-instagram,
footer a:visited i.fa-instagram {
  color: #e1306c;
}
footer a:link i.fa-facebook,
footer a:visited i.fa-facebook {
  color: #3b5998;
}
footer a:link i.fa-youtube,
footer a:visited i.fa-youtube {
  color: #ff0000;
}

/* Hover effects */
footer a:hover i.fa-instagram {
  color: #ff66a3;
}
footer a:hover i.fa-facebook {
  color: #6d84b4;
}
footer a:hover i.fa-youtube {
  color: #ff3333;
}

/* Newsletter Styles */
#newsletter {
  background-color: #fff7f7;
  padding: 2em;
  margin-top: 2em;
  text-align: center;
  border-top: 3px solid #d40000;
  border-radius: 12px;
}

#newsletter h2 {
  color: #d40000;
  margin-bottom: 0.5em;
}

#newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
  margin: auto;
}

#newsletter input[type="email"] {
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#newsletter button {
  padding: 0.75em;
  font-size: 1em;
  background-color: #d40000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#newsletter button:hover {
  background-color: #aa0000;
}

.form-wrapper {
  display: flex;
  justify-content: center;
}

.form-wrapper form {
  width: 100%;
  max-width: 700px;
}

/* === MEDIA CAROUSEL === */
#media-carousel {
  text-align: center;
  margin-top: 2em;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.carousel-track img {
  max-height: 70vh;
  width: auto;
  height: auto;
  flex-shrink: 0;
  margin: auto;
  object-fit: contain;
}
/* this addition?! */
.carousel-slide img {
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  margin: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.3em 0.6em;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 2em;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 1em;
  left: 1em;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: black;
  margin: 4px 0;
  transition: 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: white;
  width: 39px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: white;
  width: 39px;
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    padding: 1em 0;
    text-align: center;
    z-index: 1000;
    transition: max-height 0.4s ease;
    overflow: hidden;
    max-height: 0;
  }

  .nav-links.show {
    display: flex;
    max-height: 500px;
  }

  .nav-links li {
    margin: 0.5em 0;
  }
}

.calendar-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* Adjust the height ratio as needed (75% = 4:3 ratio) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-top: 1em;
}

.calendar-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.5em;
  }

  form {
    padding: 1em;
  }

  .carousel-container {
    max-width: 100%;
  }

  .carousel-track img {
    max-height: 70vh;
    width: auto;
  }
  
}
