/* Main Slider Styles */
.main-slider .item {
  position: relative;
  min-height: 500px;
  height: 731px;
  max-height: 731px;
  overflow: hidden;
}

.main-slider .item-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .main-slider .item {
    height: 400px;
    max-height: 400px;
  }
}

/* Service Card Styles */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex-grow: 1;
}

/* News Card Styles */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.news-card-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-card-content p {
  flex-grow: 1;
}

/* Event Card Styles */
.event-card {
  height: 100%;
  display: flex;
  margin-bottom: 30px;
}

/* Gallery Card Styles */
.gallery-card {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-bottom: 30px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Department Section Styles */
.department-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.department-card {
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.department-card:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.department-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f8f9fa;
  padding: 10px;
}

.department-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.department-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.department-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.department-slider .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-main) !important;
  color: #fff !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
}

.department-slider .owl-nav button.owl-prev {
  left: -20px;
}

.department-slider .owl-nav button.owl-next {
  right: -20px;
}

.department-slider .owl-dots {
  text-align: center;
  margin-top: 30px;
}

.department-slider .owl-dot {
  width: 12px;
  height: 12px;
  background: #ddd;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
}

.department-slider .owl-dot.active {
  background: var(--clr-main);
}

/* Event Section Styles */
.event-section {
  padding: 80px 0;
  background: #f8f9fa;
  margin-top: 80px;
}

.event-section-inner {
  position: relative;
}

/* Event Calendar Styles */
.calendar-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.event-list-sidebar {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.event-list-sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.event-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item:hover {
  background: #f8f9fa;
  border-radius: 8px;
}

.event-date-badge {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--clr-main);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.event-date-badge .day {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.event-info h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.event-info h5 a {
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.event-info h5 a:hover {
  color: var(--clr-main);
}

.event-info ul {
  margin: 0;
}

.event-info ul li {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.event-info ul li i {
  color: var(--clr-main);
  margin-right: 5px;
  width: 15px;
}

/* Footer Logo Styles */
.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-logo img {
    max-width: 140px;
  }
}

@media (max-width: 576px) {
  .footer-logo img {
    max-width: 120px;
  }
}

/* Responsive iframe/maps */
iframe {
  max-width: 100%;
  height: auto;
}

.map-container,
.maps-wrapper,
.contact-map {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.map-container iframe,
.maps-wrapper iframe,
.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* General content iframe */
.page-content iframe,
.content iframe {
  max-width: 100%;
  height: auto;
  min-height: 400px;
}

@media (max-width: 768px) {
  .page-content iframe,
  .content iframe {
    min-height: 300px;
  }
}
