@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bodoni+Moda+SC:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,800;1,800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Quicksand:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Matemasie&display=swap');

/* ===== MOBILE ZOOM OUT SYSTEM ===== */
/* Make webpage open zoomed out by default on mobile */
@media (max-width: 768px) {
  body {
    zoom: 0.8; /* Zoom out to 80% on mobile */
    -webkit-text-size-adjust: 100%; /* Prevent text size adjustment */
  }
  
  /* Alternative zoom method for better compatibility */
  html {
    font-size: 80%; /* Reduce base font size to 80% */
  }
  
  /* Ensure all elements scale proportionally */
  * {
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  body {
    zoom: 0.7; /* Zoom out to 70% on small mobile */
  }
  
  html {
    font-size: 70%; /* Reduce base font size to 70% */
  }
}

@media (max-width: 360px) {
  body {
    zoom: 0.6; /* Zoom out to 60% on very small mobile */
  }
  
  html {
    font-size: 60%; /* Reduce base font size to 60% */
  }
}

/* ===== TEXT SIZE INCREASES ===== */
/* Make all text bigger throughout the page */
body {
  font-size: 1.1rem; /* Increase base font size */
}

h1, .h1 {
  font-size: 2.5rem !important;
}

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

h3, .h3 {
  font-size: 1.5rem !important;
}

p, .p {
  font-size: 1.1rem !important;
  line-height: 1.6;
}

/* Mobile text size adjustments */
@media (max-width: 768px) {
  body {
    font-size: 1.2rem; /* Even bigger on mobile */
  }
  
  h1, .h1 {
    font-size: 2.2rem !important;
  }
  
  h2, .h2 {
    font-size: 1.8rem !important;
  }
  
  p, .p {
    font-size: 1.2rem !important;
  }
}


#loaderSVG #path1 {
  animation: rotate 2s linear infinite;
  transform-origin: center;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loaderSVG {
  width: 220px;
  height: 220px;
  opacity: 0;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

#loaderWrapper {
  transition: opacity 1s ease;
}

#mainContent {
  transition: opacity 1s ease;
}

.parallax-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

.parallax-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
}


.matemasie-regular {
  font-family: "Matemasie", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.swiper-slide {
    position: relative;
    text-align: center;
    color: white;
  }
  .event-details {
    position: relative;
  }
  .event-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
  }
  .event-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
  }
  .event-date, .event-venue {
    margin: 0;
    font-size: 0.9em;
  }
/* Swiper Container */
.events-slider .swiper-container {
  width: 100%;
  height: 40vh; /* Increased height to show more events */
  position: relative;
  overflow: hidden; /* Hide overflow for cleaner appearance */
}

/* Mobile Events Section Fixes */
@media (max-width: 768px) {
  .events-slider .swiper-container {
    height: 25vh; /* Reduce height on mobile */
  }
  
  .events-slider .swiper-slide {
    width: 100% !important; /* Show 2 events at a time on mobile */
    margin: 0 5px;
  }
  
  .event-title {
    font-size: 1em;
    padding: 3px 8px;
  }
  
  .event-info {
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .events-slider .swiper-container {
    height: 20vh;
  }
  
  .events-slider .swiper-slide {
    width: 80% !important; /* Show 1 event at a time on small mobile */
  }
  
  .event-title {
    font-size: 0.9em;
    padding: 2px 6px;
  }
}

/* Swiper Wrapper */
.events-slider .swiper-wrapper {
  display: flex;
}

.events-slider .swiper-slide {
  flex: 0 0 auto;
  width: 20%; /* ✅ default: 5 slides on big screens */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 5px;
  align-items: center;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Ensure proper event display on all screen sizes */
@media (max-width: 1200px) {
  .events-slider .swiper-slide {
    width: 25%; /* Show 4 events on medium screens */
  }
}

@media (max-width: 992px) {
  .events-slider .swiper-slide {
    width: 33.33%; /* Show 3 events on small screens */
  }
}

/* Swiper Slide Image */
.events-slider .swiper-slide img {
  width: 100%; /* Ensure image covers the slide */
  height: 100%; /* Maintain aspect ratio and fit the slide */
  object-fit: cover; /* Crop the image to fit the slide */
}


/* Scroll Arrows */
.events-slider .scroll-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10; /* Ensure arrows are above other content */
}

.events-slider .scroll-arrows button {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.events-slider .scroll-arrows button:hover {
  background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .events-slider .swiper-slide {
    width: 25%; /* Adjust for smaller screens */
  }
}

@media (max-width: 480px) {
  .events-slider .swiper-slide {
    width: 33.33%; /* Adjust further for very small screens */
  }
}


/* General Styles */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: Arial, sans-serif;
  background-color: #0C1644;
  color: white;
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Swiper Container */
.membership-section .swiper-container {
  overflow: hidden; /* Prevents content from overflowing */
}

.events-slider {
  margin-bottom: 2rem; /* Space between the two sections */
}

.membership-section {
  padding: 20px;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 1200px;
}

.membership-section .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Default/Desktop sizes - larger boxes for computer */
.membership-section .swiper-slide {
  background-color: #d8d8d868;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 4, 255, 0.402);
  transition: transform 0.3s ease;
  height: 450px; /* ✅ Larger height for desktop */
  width: 300px;  /* ✅ Larger width for desktop */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tablet sizes - medium reduction */
@media (max-width: 1024px) {
  .membership-section .swiper-slide {
    height: 350px;
    width: 280px;
    padding: 18px;
  }
}

/* Mobile sizes - smaller boxes for phone */
@media (max-width: 768px) {
  .membership-section .swiper-slide {
    height: 280px; /* ✅ Smaller height for mobile */
    width: 220px;  /* ✅ Smaller width for mobile */
    padding: 15px;
  }
  
  .membership-section .swiper-slide h3 {
    font-size: 1.1rem; /* Slightly smaller title on mobile */
  }
  
  .membership-section .swiper-slide p {
    font-size: 0.9rem; /* Smaller text on mobile */
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
  
  .membership-section .swiper-slide img {
    max-width: 80px;
    max-height: 80px;
    margin: 10px 0;
  }
}

/* Small mobile sizes - even smaller for very small phones */
@media (max-width: 480px) {
  .membership-section .swiper-slide {
    height: 250px; /* ✅ Even smaller for small phones */
    width: 200px;
    padding: 12px;
  }
  
  .membership-section .swiper-slide h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .membership-section .swiper-slide p {
    font-size: 0.85rem;
  }
  
  .membership-section .swiper-slide img {
    max-width: 70px;
    max-height: 70px;
    margin: 8px 0;
  }
}

/* Extra small mobile - for very small screens */
@media (max-width: 360px) {
  .membership-section .swiper-slide {
    height: 220px;
    width: 180px;
    padding: 10px;
  }
}
.membership-section .swiper-slide:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 10px rgba(0, 251, 209, 0.37);
}

.membership-section .swiper-slide img {
  max-width: 100px;
  max-height: 100px;
  margin: 15px 0;
  border-radius: 50%;
  object-fit: cover;
}

.membership-section .swiper-slide h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.membership-section .swiper-slide p {
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 15px;
}

/* Scroll Arrows */
.scroll-arrows {
  text-align: center;
  margin-top: 10px;
}

.scroll-arrows button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scroll-arrows button:hover {
  background-color: #0056b3;
}



/* Calendar Section Styles */
.calendar-section {
  background: linear-gradient(135deg, rgba(12, 27, 58, 0.9), rgba(0, 123, 255, 0.8));
  border-radius: 20px;
  margin: 40px auto;
  max-width: 1200px;
  overflow: hidden; /* Prevent horizontal overflow */
}

.calendar-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* Prevent content overflow */
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

/* Ensure proper arrow positioning */
.calendar-header .calendar-nav-btn:first-child {
  order: 1; /* Left arrow */
}

.calendar-header .calendar-title {
  order: 2; /* Month title in center */
}

.calendar-header .calendar-nav-btn:last-child {
  order: 3; /* Right arrow */
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.calendar-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 15px;
  min-width: 0; /* Prevent grid overflow */
}

.weekday {
  color: #ffd700;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  min-width: 0; /* Prevent grid overflow */
}

.calendar-day {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 10px;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.calendar-day.today {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  font-weight: bold;
}

.calendar-day.event {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  font-weight: bold;
}

.calendar-day.today.event {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  font-weight: bold;
  border: 3px solid #007bff;
}

.calendar-day.other-month {
  opacity: 0.5;
  color: #ccc;
}

.calendar-day.event::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ffd700;
  border-radius: 50%;
}

/* Upcoming Events Styles */
.upcoming-events {
  margin-top: 40px;
}

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

.event-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.event-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.event-date {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  color: white;
  min-width: 80px;
  margin-right: 20px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.event-details p {
  color: #e0e0e0;
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.event-time {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 500;
}

.event-time i {
  margin-right: 5px;
}

/* Responsive Calendar */
@media (max-width: 768px) {
  .calendar-container {
    padding: 20px;
  }
  
  .calendar-title {
    font-size: 1.4rem;
  }
  
  .calendar-day {
    padding: 10px 5px;
    min-height: 40px;
    font-size: 0.9rem;
  }
  
  .event-item {
    flex-direction: column;
    text-align: center;
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* Mobile Calendar Fixes */
@media (max-width: 576px) {
  .calendar-container {
    padding: 15px;
    margin: 20px 10px;
  }
  
  .calendar-header {
    flex-direction: row; /* Keep arrows on sides even on mobile */
    gap: 10px;
    text-align: center;
    justify-content: space-between;
  }
  
  .calendar-title {
    font-size: 1.2rem;
    order: 2;
    flex: 1; /* Take remaining space */
    text-align: center;
  }
  
  .calendar-nav-btn {
    padding: 8px 12px;
    font-size: 14px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
  }
  
  .calendar-weekdays {
    gap: 2px;
  }
  
  .weekday {
    padding: 8px 2px;
    font-size: 0.8rem;
  }
  
  .calendar-days {
    gap: 2px;
  }
  
  .calendar-day {
    padding: 8px 2px;
    min-height: 35px;
    font-size: 0.8rem;
  }
}

/* Extra Small Mobile Calendar */
@media (max-width: 480px) {
  .calendar-container {
    padding: 10px;
    margin: 15px 5px;
  }
  
  .calendar-header {
    gap: 5px;
  }
  
  .calendar-title {
    font-size: 1.1rem;
    padding: 0 5px;
  }
  
  .calendar-nav-btn {
    width: 35px;
    height: 35px;
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .weekday {
    padding: 6px 1px;
    font-size: 0.75rem;
  }
  
  .calendar-day {
    padding: 6px 1px;
    min-height: 30px;
    font-size: 0.75rem;
  }
  
  /* Ensure calendar fits on very small screens */
  .calendar-section .col-md-8 {
    padding: 0 5px;
  }
}

/* Landscape Mobile Calendar */
@media (max-width: 768px) and (orientation: landscape) {
  .calendar-container {
    padding: 15px;
  }
  
  .calendar-day {
    min-height: 30px;
    padding: 5px 2px;
  }
  
  .weekday {
    padding: 8px 2px;
  }
}

/* Office Bearers and Senior Coordinators Grid Styles */
.office-bearers-grid,
.senior-coordinators-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Mobile Grid Fixes for Both Grids */
@media (max-width: 768px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on tablet */
    gap: 15px;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns on mobile */
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns even on small mobile */
    gap: 10px;
    padding: 10px;
  }
}

.bearer-box {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
  height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.bearer-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.bearer-image {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #007bff;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bearer-box:hover .bearer-image {
  transform: scale(1.05);
  border-color: #ffd700;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.bearer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.bearer-info h3 {
  color: white;
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bearer-info h4 {
  color: #ffd700;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bearer-info p {
  color: #f0f0f0;
  font-size: 0.95rem;
  margin: 8px 0;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Social Links Styles */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: #ffd700;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.2);
  border: 2px solid rgba(255, 215, 0, 0.3);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: white;
  background: #007bff;
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}



/* Popup Modal Styles */
.popup-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.popup-content {
  background: linear-gradient(135deg, rgba(12, 27, 58, 0.95), rgba(0, 123, 255, 0.9));
  margin: 5% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid #007bff;
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: #ffd700;
}

.popup-content .bearer-details {
  text-align: center;
  color: white;
}

.popup-content .bearer-details img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #ffd700;
  margin-bottom: 20px;
  object-fit: cover;
}

.popup-content .bearer-details h2 {
  color: #ffd700;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.popup-content .bearer-details h3 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.popup-content .bearer-details p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1rem;
}

.popup-content .bearer-details .contact-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-content .bearer-details .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.popup-content .bearer-details .social-links a {
  color: #ffd700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.popup-content .bearer-details .social-links a:hover {
  color: white;
  background: #007bff;
  transform: scale(1.1);
}

/* Responsive Design for Office Bearers */
@media (max-width: 1200px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .bearer-box {
    height: 400px;
    padding: 20px 15px;
  }

  .bearer-image {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

  .bearer-info h3 {
    font-size: 1.1rem;
  }

  .bearer-info h4 {
    font-size: 1rem;
  }

  .bearer-info p {
    font-size: 0.85rem;
  }

  .popup-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
  }

  .popup-content .bearer-details img {
    width: 120px;
    height: 120px;
  }

  .popup-content .bearer-details h2 {
    font-size: 1.5rem;
  }

  .popup-content .bearer-details h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .office-bearers-grid,
  .senior-coordinators-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
  }

  .bearer-box {
    height: 380px;
    padding: 15px;
  }

  .bearer-image {
    width: 90px;
    height: 90px;
    margin-bottom: 12px;
  }

  .bearer-info h3 {
    font-size: 1rem;
  }

  .bearer-info h4 {
    font-size: 0.9rem;
  }

  .bearer-info p {
    font-size: 0.8rem;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .events-slider .swiper-slide {
    height: 20vh; /* Further adjust height for very small screens */
  }
  h3 {
    font-size: 1rem;
  }

  p {
    font-size: 0.85rem;
  }
}

/* Other Styles */
.crop-square {
  width: 12em; /* Fixed width for the square crop */
  height: 12em; /* Fixed height for the square crop */
  overflow: hidden; /* Hide the overflow to crop the image */
  border-radius: 20%; /* Optional: Add rounded corners to the square */
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image covers the square area */
}

.bodoni-moda-sc-mbhead {
  font-family: "Bodoni Moda SC", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.ofcbr-2 img {
  max-width: 12em; 
  height: 12em; 
  border-radius: 50%; 
  background-color: rgb(10, 107, 191);
  border: 5px solid black;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.in-view {
  animation: fadeIn 1s ease-out forwards;
}

/* Additional Styles */
.imp-date-box {
  position: relative;
  overflow: hidden;
  height: 25em; /* Fixed height for the container */
}

.imp-dates {
  position: relative;
  overflow-y: auto;
  max-height: calc(23em - 56px); /* Subtract the header height */
  padding-right: 10px; /* Space for scrollbar */
}

.imp-dates::-webkit-scrollbar {
  width: 8px; /* Custom scrollbar width */
}

.imp-dates::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3); /* Custom scrollbar color */
  border-radius: 10px;
}

.imp-dates::-webkit-scrollbar-track {
  background: transparent;
}

.video-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
}

.content {
  position: absolute;
  top: 80%;
  left: 5%;
  transform: translateY(-50%);
  color: aliceblue;
  z-index: 1;
  text-align: left;
  max-width: 600px;
  padding: 0 20px;
}

.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Transparent background */
  transition: background-color 0.5s ease;
  z-index: 1000;
  padding-left: 5%;
}

.custom-navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8); /* Darker background when scrolled */
}

/* Navbar transition effect */
.navbar-nav .nav-link {
  color: aliceblue !important;
  text-shadow: 0px 0px 0px #77ffff;
  transition: text-shadow 0.3s ease;
}

.navbar-nav .nav-link:hover {
  text-shadow: 1px 1px 15px #eeeeee;
}

.navbar-brand img {
  transition: transform 0.5s ease;
}

.navbar-toggler {
  border-color: aliceblue;
}

/* Adjust the position and size of content for better visual appeal */
.content h1 {
  font-size: 2.5rem;
}

/* Carousel container height */
.carousel {
  height: 50vh;
}

.carousel-caption h5, p {
  color: whitesmoke;
}

.carousel-control-prev, .carousel-control-next {
  background-color: rgba(141, 234, 240, 0.395);
  width: 3em;
}

.carousel-control-prev {
  border-top-left-radius: 1em;
  border-bottom-left-radius: 1em;
}

.carousel-control-next {
  border-top-right-radius: 1em;
  border-bottom-right-radius: 1em;
}

.carousel-inner {
  border-radius: 1em;
}

.carousel-item img {
  height: 50vh; /* Set image height to 50% of the carousel height */
  width: 100%; /* Ensure the image takes up the full width of the carousel */
  object-fit: cover;
  filter: brightness(0.4);
}

/* Adjust previous section to fit content */
#hm {
  padding-top: 50px;
  padding-bottom: 50px;
  min-height: 100vh; /* Ensures section takes up full height but adjusts with content */
}

/* Add margin to the about section */
#about {
  padding-top: 50px;
  padding-bottom: 50px;
}

@media (max-width: 768px) {
  .content h1 {
    font-size: 1.8rem;
  }
}

/* Achievements Section Styles */
.achievements-section {
  display: flex;
  align-items: center;
}

.achievements-slider {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  display: inline-block;
}

.achievement-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.achievements-content {
  padding: 20px;
}

.achievement-highlights {
  margin: 20px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.highlight-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  min-width: 30px;
}

.highlight-item span {
  font-size: 1rem;
  line-height: 1.4;
}

/* Achievements Slider Navigation */
.achievements-next,
.achievements-prev {
  color: #fff !important;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.achievements-next:hover,
.achievements-prev:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.achievements-pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.achievements-pagination .swiper-pagination-bullet-active {
  background: #007bff;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .achievements-section {
    padding: 20px !important;
  }
  
  .achievement-img {
    height: auto;
  }
  
  .achievements-content {
    margin-top: 30px;
  }
}

/* Achievements text alignment */
.achievements-content {
  text-align: left;
}

.achievements-content p {
  text-align: justify;
}

@media (max-width: 768px) {
  .achievements-content {
    text-align: left;
  }
  .achievements-content p {
    text-align: justify;
  }
}

/* Office Bearers: 2 items on first row (spanning), 4 on next row */
.office-bearers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  overflow: visible;
}

.office-bearers-grid .bearer-box:nth-child(-n+2) {
  grid-column: span 2;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .office-bearers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .office-bearers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .office-bearers-grid .bearer-box:nth-child(-n+2) {
    grid-column: span 2; /* First two take full width on tablet */
  }
}

@media (max-width: 576px) {
  .office-bearers-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on mobile */
    gap: 15px;
  }
  .office-bearers-grid .bearer-box:nth-child(-n+2) {
    grid-column: auto; /* Reset spanning on mobile */
  }
}

@media (max-width: 480px) {
  .office-bearers-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Keep 2 columns even on small mobile */
    gap: 10px;
  }
}

/* Society Section Styles */
.society-section {
  background-color: #0C1644;
  color: white;
  margin: 2rem auto;
}

.society-section h2 {
  font-family: inherit;
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.society-container {
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
}

.search-container .input-group-text {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.search-container .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.search-container .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  color: white;
}

.societies-box {
  max-height: 500px;
  overflow: hidden;
}

.societies-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.societies-list::-webkit-scrollbar {
  width: 8px;
}

.societies-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.societies-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.societies-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.society-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  margin: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.society-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.society-name {
  font-size: 1.1rem;
  font-weight: normal;
  color: white;
  margin: 0;
  font-family: inherit;
}

.society-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.society-link:hover {
  color: #ffed4e;
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  text-decoration: none;
  transform: scale(1.05);
}

.society-item.hidden {
  display: none;
}

/* Responsive adjustments for society section */
@media (max-width: 768px) {
  .society-section {
    margin: 1rem;
    padding: 2rem 1rem !important;
  }
  
  .societies-box {
    max-height: 400px;
  }
  
  .societies-list {
    max-height: 300px;
  }
  
  .society-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .society-name {
    font-size: 1rem;
  }
}
h1 {
  font-size: 3em;
  font-weight: 600;
  margin-top: 50px;
  text-transform: uppercase;
}

/* Container for Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card Styling */
.cards {
  position: relative;
  width: 20%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cards:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

/* Image Styling */
.cards img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.cards:hover .cards--two__rect{
  display: block;
}

.cards--two .card-title{
  color: rgb(101, 101, 101);
}

.cards--two li{
    display: inline;
    font-size: 2em;
}
.cards--two__rect{
  display: none;
}
.cards--two .cards--two__tri p, .name{
  background-color: rgba(22,45,56,1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.cards--two .name{
  background-color: rgb(32, 129, 173)
  
}
/* Default link color */
.cards--two a:link {
  color: rgb(139, 90, 0);
}

/* Active state (when clicked) */
.cards--two li a:active {
  color: rgb(139, 90, 0);
}

h1 {
  font-size: 3em;
  font-weight: 600;
  margin-top: 50px;
  text-transform: uppercase;
}

/* Container for Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card Styling */
.cards {
  position: relative;
  width: 20%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cards:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Image Styling */
.cards img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-bottom: 5px solid #007bff;
}

/* Text Rectangle Styling */
.cards--three__rect-1, .cards--three__rect-2 {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 15px;
  text-align: center;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  background-color: rgba(7, 100, 199, 1);
  letter-spacing: 1px;
}

.cards--three__rect-1 {
  bottom: 85px;
  font-size: 1.5em;
}

.cards--three__rect-2 {
  bottom: 40px;
  font-size: 1.1em;
  background-color: rgba(0, 123, 255, 1);
}

.shadow-1, .shadow-2 {
  position: relative;
  z-index: 2;
}

/* Circle Overlay for Design */
.cards--three__circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

/* Social Icons */
.cards--three__list {
  list-style: none;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  margin: 0;
  background-color: #f7f7f7;
  border-top: 1px solid #ddd;
}

.cards--three__list li {
  margin: 0 15px;
}

.cards--three__list a {
  font-size: 1.8em;

  transition: color 0.3s ease;
}

.cards--three__list a:hover {
  color: #007bff;
}

.fa-envelope.fa-shake {
  animation: shake 1s infinite alternate;
}

/* Hover animation for envelope icon */
@keyframes shake {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(10deg); }
}

/* Animation for Cards Hover */
.cards--three__circle {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cards {
      width: 45%;
  }
}

@media (max-width: 768px) {
  .cards {
      width: 60%;
  }

  h1 {
      font-size: 2.5em;
  }
}

@media (max-width: 480px) {
  .cards {
      width: 90%;
  }

  h1 {
      font-size: 2em;
  }
}
