/* General Reset */
/* body,
h1,
h3,
p {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

body {
  padding: 20px;
  background-color: #f8f9fa;
} */

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

/* General Title (Heading) */
.events-heading {
  font-size: 2rem; /* Adjust the font size to your preference */
  text-align: center; /* Centers the title */
  margin-bottom: 20px; /* Adds space below the title */
  color: #264475; /* Title color, you can customize this */
  font-weight: bold; /* Makes the title bold */
  text-transform: capitalize; /* Capitalizes the first letter of each word */
  letter-spacing: 1px; /* Adds a bit of space between letters for a clean look */
  font-family: "Poppins", sans-serif; /* You can change the font family */
}

/* Stylish Underline with Gradient */
.events-heading::after {
  content: "";
  display: block;
  width: 50%; /* Adjust the length of the underline */
  height: 5px; /* Thickness of the underline */
  margin: 10px auto 0; /* Centers the underline under the title */
  background: linear-gradient(
    to right,
    #007bff,
    #ff6f61
  ); /* Stylish gradient effect */
  border-radius: 5px; /* Optional: rounded corners for the underline */
}

/* Alternative Stylish Underline with Dotted Line */
.events-heading.dotted::after {
  content: "";
  display: block;
  width: 50%; /* Adjust the length of the underline */
  margin: 10px auto 0; /* Centers the underline */
  border-bottom: 3px dotted #007bff; /* Dotted line style */
}

/* Events Container */
.events-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px; /* Space between items */
  padding: 20px;
}

/* Event Card */
.event-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: auto;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Image styling */
.event-card img {
  width: 100%;
  height: 100%; /* Let the height be dynamic, fills parent */
  object-fit: cover; /* Ensures the image covers the container */
}

/* Hide titles and dates */
.event-card h3,
.event-card p {
  display: none; /* Remove the title and date/time */
}

/* Responsive Design */
@media (max-width: 768px) {
  .events-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
  }
}

@media (max-width: 480px) {
  .events-container {
    grid-template-columns: 1fr; /* 1 column for very small screens */
  }
}

/* Youtube Videos Start */

.videos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 videos per row */
  gap: 20px; /* Space between videos */
  padding: 20px;
}

.video iframe {
  width: 100%; /* Ensures the iframe takes the full width of its container */
  aspect-ratio: 16 / 9; /* Maintains the aspect ratio of the video */
  border: none;
}

.caption {
  margin-top: 10px; /* Adds space between the video and the caption */
  font-size: 16px; /* Caption text size */
  color: #555; /* Caption text color */
  text-align: center; /* Center-align the caption */
  font-style: italic; /* Italicize the caption */
}

/* Responsive Design */
@media (max-width: 768px) {
  .videos-container {
    grid-template-columns: 1fr; /* Stack videos vertically on smaller screens */
  }
}

/* Youtube Videos End */
