* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Header */
header {
    background-color: rgb(116, 61, 61);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    max-width: 150px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

/* Navbar */
nav.navbar {
    background-color: #444;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
}

.nav-links a:hover {
    background-color: #00695c;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Responsive menu */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
        background-color: #444;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Slider */
.slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(209, 169, 59, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* Flexbox responsive 3-column */
.flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;                 /* space between cards */
  padding: 20px;
  align-items: stretch;      /* makes all items the same height if content allows */
  box-sizing: border-box;
}

/* Each item tries to take 1/3 of the row minus gaps */
.flex-item {
  flex: 1 1 calc(33.333% - 20px); /* grow | shrink | base-width */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 220px;           /* prevents shrinking too much on narrow screens */
}

/* Media: tablet (2 columns) */
@media (max-width: 992px) {
  .flex-item {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Media: phone (1 column) */
@media (max-width: 600px) {
  .flex-item {
    flex: 1 1 100%;
  }
}

/* Optional inner styling */
.flex-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.flex-item h3 {
  margin: 12px 16px 6px;
  font-size: 1.05rem;
}

.flex-item p {
  margin: 0 16px 16px;
  color: #444;
  line-height: 1.5;
  flex-grow: 1; /* keep paragraph area flexible so cards align */
}
.flex-container {
  display: flex;
  margin: 20px;
}

/*additional*/
/* Flex container */
.flex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* spacing between items */
  justify-content: center;
  padding: 10px;
}

/* Each flex item */
.flex-item {
  flex: 1 1 calc(33.333% - 20px); /* 3 columns on desktop */
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Adjust grid on smaller screens */
@media (max-width: 900px) {
  .flex-item {
    flex: 1 1 calc(50% - 20px); /* 2 columns on tablet */
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .flex-item {
    flex: 1 1 100%; /* 1 column on mobile */
    max-width: 100%;
  }
}

/* Image styling */
.flex-item img {
  width: 100%;
  height: 250px;  /* fixed height for uniformity */
  object-fit: cover; /* crop & keep aspect ratio */
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.flex-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.flex-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

/*video extension*/
/* Video section */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px;
}

/* Each video */
.video-item {
  flex: 1 1 calc(50% - 20px); /* 2 per row on desktop */
  max-width: calc(50% - 20px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 800px) {
  .video-item {
    flex: 1 1 100%; /* 1 per row */
    max-width: 100%;
  }
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Hover effect */
.video-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.video-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

/* footer*/
.three-column-footer {
  display: flex;
  flex-wrap: wrap; /* Allows columns to wrap to the next line on smaller screens */
  justify-content: space-around; /* Distributes space between and around items */
  padding: 20px;
  background-color: rgb(116, 61, 61);
  color: #fff;
  height: 310px;
}