:root {
  --primary-blue: #073f88;
  --accent-red: #e00001;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Glassmorphic Navigation */
.glassmorphic-nav {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.glassmorphic-nav .navbar-brand {
  color: var(--white) !important;
}

.glassmorphic-nav .navbar-brand img {
  /* background: rgba(255, 255, 255, 0.6); */
  height: 50px;
  padding: 0.1rem;
  /*border-radius: 10px;*/
  backdrop-filter: blur(10px);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--white);
}

.brand-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.glassmorphic-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  /*margin: 0 0.5rem;*/
  padding: 0.5rem 1rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.glassmorphic-nav .nav-link:hover,
.glassmorphic-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transform: translateY(-2px);
}

.join-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid var(--white) !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  margin-left: 1rem !important;
}

.join-btn:hover {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Hero Section */
.hero-section {
  margin-top: 80px;
  height: 70vh;
  position: relative;
}

.carousel-item img {
  height: 70vh;
  object-fit: cover;
  /* filter: brightness(0.7); */
}

.carousel-item .sponsor-img {
  height: 50vh;
  object-fit: contain;
  /* filter: brightness(0.7); */
}




.img-sponsor {
  object-fit: contain;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  bottom: 20%;
}

.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.feature-card .card-body {
  padding: 2rem;
}

.feature-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.text-primary {
  color: var(--primary-blue) !important;
}

/* Calendar Styles */
.calendar-container {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.calendar-day-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.calendar-day {
  background: var(--white);
  min-height: 120px;
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-day:hover {
  background: #f8f9fa;
}

.calendar-day-number {
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.calendar-event {
  background: var(--accent-red);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-event:hover {
  background: var(--primary-blue);
  transform: scale(1.05);
}

/* Make calendar horizontally scrollable on small screens */
.calendar-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll for iOS */

}

.calendar-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.calendar-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(7, 63, 136, 0.5);
  border-radius: 4px;
}

/* Contact Form Styles */
.contact-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(7, 63, 136, 0.25);
}

.map-container {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 40vh;
  }

  .carousel-item img {
    height: 40vh;
    
  }

  .carousel-item .sponsor-img {
  height: 30vh;
  object-fit: contain;
  /* filter: brightness(0.7); */
}

  .carousel-caption {
    bottom: 10%;
    padding: 1rem;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    min-width: 700px; /* ensures horizontal scroll appears if it doesn't fit */
  }

  .calendar-day {
    min-height: 80px;
    padding: 0.25rem;
  }

  .calendar-day-header {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .glassmorphic-nav .navbar-brand {
  color: var(--white) !important;
}

  .glassmorphic-nav .navbar-brand img {
    /* background: rgba(255, 255, 255, 0.6); */
    height: 30px;
    padding: 0.1rem;
    /*border-radius: 10px;*/
    backdrop-filter: blur(10px);
  }

  .brand-title {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--white);
  }

  .brand-subtitle {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Animation Classes */
/* .fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Added btn-join-us class for consistent styling across all pages */
.btn-join-us {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid var(--white) !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  color: var(--white) !important;
  margin-left: 1rem !important;
  padding: 0.5rem 1.5rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.btn-join-us:hover {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-join-us.active {
  background: var(--white) !important;
  color: var(--primary-blue) !important;
}

/* Added styles for organizational chart member cards */
.member-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

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

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #e0e0e0;
}

.adviser-card {
  border-left: 4px solid var(--accent-red);
  cursor: pointer;
}

.adviser-card:hover {
  /* transform: translateY(-8px); */
  transform: scale(1.5);
  box-shadow: 0 15px 35px var(--accent-red);
}

.director-card {
  border-left: 4px solid var(--primary-blue);
}

.director-card:hover {
  /* transform: translateY(-8px); */
  transform: scale(1.5);
  box-shadow: 0 15px 35px var(--primary-blue);
}

.committee-card {
  border-left: 4px solid #28a745;
}

.committee-card:hover {
  /* transform: translateY(-8px); */
  transform: scale(1.5);
  box-shadow: 0 15px 35px #28a745;
}

.member-card h5 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.member-card .position {
  color: var(--accent-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-card .role {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Added styles for project cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.publication-item {
  transition: all 0.3s ease;
}

.publication-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Added styles for newsletter flipbook */
.flipbook-container {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

#flipbook {
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

/* Added styles for form tabs */
.nav-pills .nav-link {
  border-radius: 25px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  border: none;
}

.nav-pills .nav-link:not(.active) {
  background: #f8f9fa;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.nav-pills .nav-link:not(.active):hover {
  background: var(--primary-blue);
  color: white;
}

/* Added styles for contact page map */
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contact-info h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateX(5px);
}

.contact-info .contact-item i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.map-placeholder {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.map-pin {
  position: absolute;
  background: var(--accent-red);
  color: white;
  border-radius: 50% 50% 50% 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
}

.map-pin i {
  transform: rotate(45deg);
}

.map-pin:nth-child(1) {
  top: 20%;
  left: 30%;
}
.map-pin:nth-child(2) {
  top: 40%;
  left: 60%;
}
.map-pin:nth-child(3) {
  top: 60%;
  left: 25%;
}
.map-pin:nth-child(4) {
  top: 30%;
  left: 70%;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }
  40% {
    transform: rotate(-45deg) translateY(-10px);
  }
  60% {
    transform: rotate(-45deg) translateY(-5px);
  }
}

/* Sponsors Footer */
.sponsors-footer {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 3rem 0 2rem 0;
  border-top: 1px solid #e0e0e0;
  margin-top: 4rem;
}

.sponsors-footer h3 {
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

.sponsors-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(150px, 0.1fr));
  /* gap: 2rem; */
  align-items: center;
  justify-items: center;
  /* max-width: 1200px;*/
  margin: 0; 

}

.sponsor-logo {

  /* padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50%;
  max-width: 200px;
  margin-top: 5px; 
}

.sponsor-logo:hover {
  transform: translateY(-10px);
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
  transform: translateY(-8px); */
  box-shadow: 0 15px 35px #FFFF00;;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.sponsor-logo:hover img {
  transform: scale(2);
}


.diamond-card:hover {
  transform: translateY(-10px);
  background: #B7F1FD;
}

.gold-card:hover {
  transform: translateY(-10px);
  background: #FFD700;
}

.silver-card:hover {
  transform: translateY(-10px);
  background: #C0C0C0;
}

.bronze-card:hover {
  transform: translateY(-10px);
  background: #CD7F32;
}

