* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  /* font-family: 'Titillium Web', sans-serif; */
}
/* Donation for short time */
.donation_section {
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 4rem;
}
.donation_text h1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #9b1811;
}
.donation_image img {
  width: 550px;
  box-shadow: 0px 0px 10px 2px #000;
  /* max-width: 100%; */
}

/*  */

p {
  font-weight: 500;
}

/*  */
.social_links {
  background: transparent linear-gradient(90deg, #9b1811 30%, #73151e 90%) 0% 0%
    no-repeat padding-box;
  height: max-content;
  font-family: "Poppins", sans-serif;
}

.link_flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 3rem;
}

.links {
  margin: 0.5rem 0rem;
  display: flex;
  gap: 1rem;
}

.number h2 {
  font-size: 1rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.links img {
  width: 20px;
  margin-left: 1rem;
}

/*  */
header {
  border: black;
  border-width: 2px;
  box-shadow: 0px 3px 20px 3px rgba(0, 0, 0, 0.06);
  font-family: "Poppins", sans-serif;
  width: 100%;
  transition: all 0.3s ease;
}

.head_container {
  padding: 20px;
  height: auto;
}

.logo img {
  height: 55px;
  width: 500px;
  cursor: pointer;
}

.logo {
  padding: 0.5rem 1rem;
  /* background-color: #fff; */
  border-radius: 4px;
}

.menu {
  margin-top: 5px;
}

.menu ul {
  list-style-type: none;
}

.menu li {
  display: inline;
}

.sticky {
  width: 100%;
}

.fixed {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;
  border-bottom: 1px solid #f1f1f1;
}

.list a {
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  color: #000;
  padding: 0rem 0.4rem;
  transition: color 0.3s ease;
  position: relative;
}

.list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0.4rem;
  width: 0;
  height: 2px;
  background: #9b1811;
  transition: width 0.3s ease;
}

.list a:hover {
  color: #9b1811;
}

.list a:hover::after {
  width: calc(100% - 0.8rem);
}

.icon {
  display: none;
}

menu.responsive {
  position: relative;
}

menu.responsive {
  float: none;
  display: block;
  text-align: left;
}

@media screen and (max-width: 835px) {
  .logo img {
    height: 40px;
  }

  .menu {
    margin: 0;
  }

  .sidenav {
    width: 250px;
  }
}

@media screen and (max-width: 1430px) {
  .menu li {
    display: none;
  }

  .icon {
    font-weight: 900 !important;
    font-size: 27px !important;
    padding: 0;
    margin: 0;
    margin-top: -22px;
    display: flex;
  }
  .donation_section {
    flex-direction: column;
  }
  .donation_image img {
    max-width: 100%;
  }
}

.sidenav {
  margin-top: 0rem;
  font-family: "Poppins", sans-serif;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0px;
  left: 0;
  background-color: #f1f1f1;
  overflow-x: hidden;
  transition: 0.2s;
  padding-top: 60px;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

a {
  text-decoration: none;
}

.sidenav li a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  margin-top: 0rem;
  /* border-bottom: 1px solid #000; */
  font-size: 20px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav li:hover {
  background-color: #f2f2f2;
}

.sidenav a:hover,
.offcanvas a:focus {
  /* color: #F7CA18; */
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: #818181;
}

/*  */
.image {
  background-image: url(Home-pictures/Home\ page\ pic\ 1.jpg);
  height: 85vh;
  background-size: cover;
  max-width: 100%;
}

.image2 {
  background-image: url(Home-pictures/Home\ page\ pic\ 2.jpg);
  height: 85vh;
  background-size: cover;
  max-width: 100%;
}

/* Ramadan Popup Modal */
.ramadan_modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ramadan_modal_content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  margin: 10% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideDown 0.4s ease;
  box-sizing: border-box;
}

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

.ramadan_modal_decorative {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 400px;
  height: 600px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300"><path d="M30,150 Q100,50 170,150" stroke="rgba(255,255,255,0.04)" stroke-width="8" fill="none" stroke-linecap="round"/><circle cx="30" cy="150" r="8" fill="rgba(255,255,255,0.05)"/><circle cx="170" cy="150" r="8" fill="rgba(255,255,255,0.05)"/><path d="M30,150 L50,120 L70,150" stroke="rgba(255,255,255,0.03)" stroke-width="4" fill="none"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  filter: blur(50px);
  transform: rotate(-10deg);
  z-index: 1;
  pointer-events: none;
}

.ramadan_modal_close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.ramadan_modal_close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.ramadan_modal_text {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  text-align: center;
}

.ramadan_modal_headline {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  letter-spacing: -1px;
}

.ramadan_modal_subheadline {
  font-family: 'Titillium Web', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #32ff7e;
  line-height: 1.3;
  margin: 0 0 3rem 0;
}

.ramadan_modal_buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.ramadan_modal_btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.ramadan_modal_btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Ramadan Message Page CTA Button */
.ramadan_message_cta {
  margin-top: 3rem;
  text-align: center;
}

.ramadan_cta_btn {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 1.2rem 3rem;
  border: 2px solid #9b1811;
  border-radius: 6px;
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(155, 24, 17, 0.3);
}

.ramadan_cta_btn:hover {
  background: linear-gradient(135deg, #73151e 0%, #9b1811 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 24, 17, 0.4);
}

/* Ramadan Message Page - Single Column Layout */
.ramadan_message_container {
  grid-template-columns: 1fr !important;
  max-width: 900px !important;
}

.image3 {
  background-image: url(Home-pictures/Home\ page\ pic\ 3.jpg);
  height: 105vh;
  background-size: cover;
  max-width: 100%;
}

.image4 {
  background-image: url(Home-pictures/Home\ page\ pic\ 4.jpg);
  height: 105vh;
  background-size: cover;
  max-width: 100%;
}

.image5 {
  background-image: url(Home-pictures/Home\ page\ pic\ 5.jpg);
  height: 105vh;
  background-size: cover;
  max-width: 100%;
}

.image6 {
  background-image: url(Home-pictures/Home\ page\ pic\ 6.jpg);
  height: 105vh;
  background-size: cover;
  max-width: 100%;
}
.image7 {
  background-image: url(Home-pictures/Home\ page\ pic\ 0.jpg);
  height: 105vh;
  background-size: cover;
  max-width: 100%;
}

/* Slider Container */
.w3-content {
  position: relative;
  
  /* width: 100%; */
  overflow: hidden;
  max-width: 100%;
}

.w3-content .mySlides {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.w3-content .mySlides > div {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero_content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.8s ease-out;
  text-align: left;
  margin: 4rem 2rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero_divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #9b1811 0%, #73151e 100%);
  margin: 1rem 0 1.5rem 0;
  border-radius: 2px;
}

.position h1 {
  color: #013243;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.position p {
  text-align: justify;
  color: #4a5764;
  font-weight: 400;
  padding: 1rem 0rem;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.sm_btn {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  width: fit-content;
  margin: 3rem 0rem;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 24, 17, 0.3);
}

.sm_btn:hover {
  background: linear-gradient(135deg, #73151e 0%, #9b1811 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 24, 17, 0.4);
}

/*  */
/* Certificates Section - Enhanced Design */
.certificates_section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 2rem;
  margin: 3rem 0;
}

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

.certificates_header {
  text-align: center;
  margin-bottom: 3rem;
}

.certificates_header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #9b1811;
  font-family: "Titillium Web", sans-serif;
  margin-bottom: 1rem;
}

.certificates_header_divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #9b1811 0%, #73151e 100%);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.certificates_subtitle {
  color: #4a5764;
  font-size: 1.1rem;
  font-style: italic;
}

.certificates_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}


.certificate_card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border-top: 3px solid transparent;
}

.certificate_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(155, 24, 17, 0.2);
  border-top-color: #9b1811;
}

.certificate_img_wrapper {
  position: relative;
  height: 250px;
  background: rgba(155, 24, 17, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.certificate_img_wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.certificate_card:hover .certificate_img_wrapper img {
  transform: scale(1.05);
}

.certificate_overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(155, 24, 17, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate_card:hover .certificate_overlay {
  opacity: 0;
  display: none;
}

.view_icon {
  font-size: 2.5rem;
  color: #fff;
  display: none;
}

.certificate_info {
  padding: 1.5rem;
}

.certificate_info h3 {
  color: #9b1811;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-family: "Titillium Web", sans-serif;
}

.certificate_info p {
  color: #4a5764;
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}

/* Legacy certificate classes for backward compatibility */
.certificate_image {
  background-image: url(footer-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.certificate_section {
  text-align: center;
  width: 1000px;
  max-width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 5rem 1rem;
}
.certificate_section p {
  padding: 1rem 0rem;
}
.certificate {
  width: 100%;
  transition: all 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
}

.certificate:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.certificate_im {
  transition: all 0.3s ease;
}

.certificate_im:hover {
  transform: translateY(-5px);
}

.certificate_text {
  transition: all 0.3s ease;
}

.certificate_text:hover {
  transform: translateY(-5px);
}

.certificate_text h1 {
  color: #73151e;
  line-height: 1.2;
  /* border-bottom: 1px solid #000; */
  padding: 0.2rem 0rem;
}

.border {
  border: 1px solid #000;
  border-style: none none solid none;
  width: 92%;
  margin: 1rem 0rem;
}

/*  */
.save_primary {
  text-align: center;
  font-weight: 600;
  padding: 2rem;
}

.blog_logo_image {
  width: 60px;
  padding-bottom: 0.2rem;
  color: #fff;
}

/* Mission Statement Section - Enhanced Design */
.mission_section {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.mission_section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.mission_section:hover::before {
  left: 100%;
}

.mission_container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mission_header {
  text-align: center;
  margin-bottom: 3rem;
}

.mission_header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mission_header_divider {
  width: 100px;
  height: 4px;
  background: #fff;
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.mission_subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-style: italic;
}

.mission_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}


.mission_card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid transparent;
}

.mission_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-top-color: #9b1811;
}

.mission_card h3 {
  color: #9b1811;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: "Titillium Web", sans-serif;
}

.mission_card p {
  color: #4a5764;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Legacy blog class for backward compatibility */
.blog {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  text-align: center;
  width: 100%;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.blog:hover::before {
  left: 100%;
}
.blog li {
  width: fit-content;
  margin: auto;
  color: #fff;
}
li {
  text-decoration: none;
}

.blog:hover {
  /* box-shadow: 1px 2px 5px #00000026; */
}

.blog h1 {
  font-size: 1.2rem;
  padding: 0rem 0.5rem;
  letter-spacing: 0px;
  color: #fff;
}

.blog p {
  color: #fff;
  width: 1200px;
  margin: auto;
  padding: 1rem 0.5rem 0rem 0.5rem;
  max-width: 100%;
}

.blog_btn {
  background-color: #fff;
  padding: 0.5rem 1.5rem;
  width: fit-content;
  border-radius: 4px;
  margin: auto;
}

/*  */
.chairman_img {
  width: 400px;
  border: 3px solid #120a8f;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chairman:hover .chairman_img {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* President Section - Enhanced Design */
.president_section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 2rem;
  margin: 3rem 0;
}

.president_container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 5rem;
  align-items: start;
}

.president_image_wrapper {
  position: sticky;
  top: 100px;
  text-align: center;
}

.president_badge {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 8px 25px rgba(155, 24, 17, 0.3);
  transition: all 0.3s ease;
}

.president_badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(155, 24, 17, 0.4);
}

.president_badge h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.president_badge p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0.3rem 0;
}

.president_content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.president_header {
  margin-bottom: 2rem;
}

.president_header h2 {
  color: #9b1811;
  font-size: 2.2rem;
  font-weight: 700;
  font-family: "Titillium Web", sans-serif;
  margin-bottom: 1rem;
}

.president_divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #9b1811 0%, #73151e 100%);
  border-radius: 2px;
}

.president_para {
  line-height: 1.9;
}

.president_para p {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1rem;
  text-align: justify;
}

.president_para strong {
  color: #9b1811;
  font-weight: 600;
}

.president_para .highlight_text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #9b1811;
  text-align: center;
  font-style: italic;
  padding: 1rem;
  background: rgba(155, 24, 17, 0.05);
  border-left: 4px solid #9b1811;
  border-radius: 6px;
  margin: 2rem 0;
}

.president_para .call_to_action {
  font-size: 1.1rem;
  font-weight: 600;
  color: #013243;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(155, 24, 17, 0.05) 0%, rgba(115, 21, 30, 0.05) 100%);
  border-radius: 8px;
  margin-top: 2rem;
}

/* Legacy chairman class for backward compatibility */
.chairman {
  margin: 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0rem;
  border-bottom: 1px solid #999;
  transition: all 0.3s ease;
}

.chairman:hover {
  padding: 2.2rem 0rem;
}

.chairman_para h2 {
  color: #9b1811;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Titillium Web", sans-serif;
}

.chairman_para h3 {
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 0.5rem;
  color: #013243;
  font-size: 1.1rem;
}

.chairman_para p {
  text-align: justify;
  line-height: 1.8;
  color: #333;
  /* width: 100%; */
}

.fight_flex {
  width: fit-content;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  background-color: #120a8f;
}

.background .chairman_para p {
  color: #fff;
  padding: 0rem 2rem;
  width: 900px;
  margin: auto 1rem;
}

/* Team Section */
.medical-team-section,
.team-section {
  margin: 2rem 0;
}

/* All Teams Container - Reverted to original */
.all-teams-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive adjustments for the main team sections reverted */
@media (max-width: 1024px) {
  .team-category {
    flex: 1 1 calc(50% - 2rem);
  }
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.header-divider {
  width: 100px;
  height: 3px;
  background: #0078d7;
  margin: 0 auto 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.team-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-category {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 300px;
  margin-bottom: 2rem;
}

.category-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.category-divider {
  width: 60px;
  height: 2px;
  background: #0078d7;
  margin-bottom: 1rem;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.member-details {
  margin-top: 0.5rem;
}

.qualification, .specialty, .role, .location, .department {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.3rem;
}

/* Contact button - Reverted */
.contact-btn {
  /* Removed all custom styles */
}

.contact-btn:hover {
  /* Removed all custom styles */
}

/*  */
.footer_flex {
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  padding: 2rem 3rem 2rem 1rem;
  width: 100%;
  margin: auto;
  justify-content: space-evenly;
}

.footer_text {
}

.footer_flex .text h1 {
  font-size: 1.8rem;
  line-height: 1.1;
}

.footer_flex .text a {
  color: #000;
  text-decoration: none;
}
.footer_flex .text p {
  padding: 1rem 0rem;
}

.inputs .contact h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid #000;
  width: fit-content;
}

.input {
  margin: 0.7rem 0rem;
}

.input input {
  width: 250px;
  height: 40px;
  padding: 0rem 0.3rem;
  border-style: none none solid none;
  outline: none;
}

.button {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 24, 17, 0.3);
}

.button:hover {
  background: linear-gradient(135deg, #73151e 0%, #9b1811 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 24, 17, 0.4);
}

.rights {
  text-align: center;
  font-weight: bold;
  padding: 0.5rem 0rem;
}

/* Blinking */
.blinking img {
  width: 120px;
}

.blinking {
  animation: blinker 1.2s linear infinite;
}

.activities {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  margin-top: 1.5rem;
  margin-left: 0;
  width: 100%;
  text-align: left;
}

.activities h1 {
  font-size: 1rem;
  padding: 0.5rem 0.5rem;
  color: #013243;
  font-weight: 600;
  text-align: left;
  margin-bottom: 0.5rem;
}

.recent {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}
@media (max-width: 1430px) {
  .chairman_para {
    padding: 0rem;
  }
  .chairman {
    flex-direction: column;
    background-color: #fff;
  }
  .background .chairman_para p {
    color: #000;
    padding: 0rem 0rem 1rem 0rem;
    width: 95%;
    margin: auto;
    font-size: 1rem;
  }
  .chairman_img2 {
    width: 700px;
    max-width: 100%;
    padding: 0rem 1rem;
  }
  .chairman {
    /* Removed chairman related styles */
  }
  .chairman_para {
    /* Removed chairman_para related styles */
  }
  .chairman_para h2,
  .chairman_para h3,
  .chairman_para p {
    /* Removed chairman_para h2, h3, p related styles */
  }
  .chairman_para h2 {
    /* Removed chairman_para h2 specific styles */
  }
  .chairman_para h3 {
    /* Removed chairman_para h3 specific styles */
  }
  .chairman_para p {
    /* Removed chairman_para p specific styles */
  }
  .chairman_img {
    /* Removed chairman_img specific styles */
  }
}
@media (max-width: 1020px) {
  .certificate_section {
    flex-direction: column;
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
    padding: 0rem 1rem;
  }
  .certificate {
    padding: 1rem 0rem;
    width: 50%;
  }
  .chairman {
    /* Removed chairman related styles */
  }
  .team_section {
    grid-template-columns: repeat(2, 1fr);
  }
  .team {
    margin: 1rem 0rem;
  }

  /* Override to single column at 500px and below */
  @media (max-width: 500px) {
    .team_section {
      grid-template-columns: 1fr !important;
    }
  }
  .footer_flex {
    flex-direction: column;
  }
  .footer_flex .text {
    text-align: center;
  }
  .input input {
    width: max-content;
  }
  @media (max-width: 900px) {
    .link_flex {
      flex-direction: column;
    }
    .logo img {
      width: 100%;
      object-fit: contain;
    }
    .logo {
      height: 50px;
      max-height: 50%;

      text-align: center;
    }
    .number h2 {
      padding: 1rem 0rem 0rem 0rem;
    }
  }
  @media (max-width: 768px) {
    /* Slider Responsive */
    .image, .image2, .image3, .image4, .image5, .image6 {
      height: 100vh;
      min-height: 600px;
      background-position: center;
      background-size: cover;
    }

    .position {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 95%;
      max-width: 100%;
      padding: 0 1rem;
      align-items: center;
      box-sizing: border-box;
    }

    .w3-content {
      overflow-x: hidden;
      max-width: 100vw;
    }

    .w3-content .mySlides {
      max-width: 100%;
      overflow: hidden;
    }

    .hero_content {
      padding: 1.5rem;
      width: 100%;
      max-width: 100%;
      text-align: center;
    }

    .position h1 {
      font-size: 1.8rem;
      text-align: center;
      line-height: 1.3;
    }

    .position p {
      font-size: 0.9rem;
      text-align: center;
      padding: 0.8rem 0;
    }

    .hero_divider {
      margin: 1rem auto;
    }

    .sm_btn {
      margin: 1.5rem auto 0;
      width: fit-content;
    }

    .activities {
      margin-top: 1.5rem;
      width: 100%;
      text-align: center;
    }

    .activities h1 {
      font-size: 1.2rem;
    }

    .president_container {
      padding: 0 1rem;
      grid-template-columns: 1fr;
    }

    .president_image_wrapper {
      position: relative;
      top: 0;
    }

    .president_content {
      padding: 1.5rem;
    }

    .president_header h2 {
      font-size: 1.8rem;
    }

    .mission_section {
      padding: 2rem 1rem;
    }

    .mission_header h1 {
      font-size: 2rem;
    }

    /* Mission Cards - Single Column on Mobile */
    .mission_cards {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .mission_card {
      width: 100%;
      max-width: 100%;
    }

    .certificates_section {
      padding: 2rem 0 !important;
      margin: 2rem 0;
    }

    .certificates_container {
      padding: 0;
      max-width: 100%;
    }

    .certificates_header {
      padding: 0 1rem;
    }

    .certificates_header h1 {
      font-size: 2rem;
    }

    /* Certificates Grid - Single Column on Mobile */
    .certificates_grid {
      grid-template-columns: 1fr;
      gap: 0;
      padding: 0;
      margin: 0;
    }

    .certificate_card {
      width: 100%;
      max-width: 100%;
      margin: 0;
      border-radius: 0;
    }
    
    /* Ramadan Modal Responsive */
    .ramadan_modal_content {
      width: 94%;
      max-width: none;
      margin: 5vh auto;
      max-height: 90vh;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      border-radius: 12px;
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }

    .ramadan_modal_decorative {
      width: 200px;
      height: 280px;
      top: -10%;
      right: -15%;
      opacity: 0.35;
    }

    .ramadan_modal_close {
      top: 0.75rem;
      right: 1rem;
      font-size: 1.75rem;
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
    }

    .ramadan_modal_text {
      padding: 3.5rem 1.75rem 2.5rem;
    }

    .ramadan_modal_headline {
      font-size: 1.85rem;
      line-height: 1.25;
      margin-bottom: 1rem;
    }

    .ramadan_modal_subheadline {
      font-size: 1.35rem;
      margin-bottom: 2rem;
    }

    .ramadan_modal_buttons {
      flex-direction: column;
      align-items: stretch;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .ramadan_modal_btn {
      width: 100%;
      min-width: auto;
      padding: 0.9rem 1.5rem;
      font-size: 0.95rem;
    }
  }

  @media (max-width: 500px) {
    /* Ramadan Modal - Small phones */
    .ramadan_modal_content {
      width: 96%;
      margin: 3vh auto;
      max-height: 94vh;
    }

    .ramadan_modal_text {
      padding: 3rem 1.25rem 2rem;
    }

    .ramadan_modal_headline {
      font-size: 1.5rem;
    }

    .ramadan_modal_subheadline {
      font-size: 1.15rem;
      margin-bottom: 1.5rem;
    }

    .ramadan_modal_btn {
      padding: 0.85rem 1.25rem;
      font-size: 0.9rem;
    }

    /* Mission Cards - Single Column for 500px and below */
    .mission_cards {
      grid-template-columns: 1fr !important;
      gap: 1.5rem;
    }

    .mission_card {
      width: 100%;
      max-width: 100%;
    }

    /* Certificates Grid - Single Column for 500px and below */
    .certificates_section {
      padding: 2rem 1rem !important;
      margin: 2rem 0;
    }

    .certificates_container {
      padding: 0;
      max-width: 100%;
    }

    .certificates_header {
      padding: 0 1rem;
    }

    /* Team Section Padding at 500px */
    .team_primary {
      padding: 2rem 1rem 1rem 1rem;
    }

    .team_secondary {
      padding: 1.5rem 1rem 1rem 1rem;
    }

    .team_section {
      padding: 1rem 1rem;
    }

    .certificates_grid {
      grid-template-columns: 1fr !important;
      gap: 0;
      padding: 0;
      margin: 0;
    }

    .certificate_card {
      width: 100%;
      max-width: 100%;
      margin: 0;
      border-radius: 0;
    }

    /* Team Section - Single Column for 500px and below */
    .team_section {
      grid-template-columns: 1fr !important;
      gap: 1.5rem;
    }

    .team {
      width: 100%;
      max-width: 100%;
    }

    /* Slider Mobile */
    .image, .image2, .image3, .image4, .image5, .image6 {
      height: 100vh;
      min-height: 500px;
    }

    .position {
      padding: 0 0.5rem;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 98%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .w3-content {
      overflow-x: hidden;
      max-width: 100vw;
    }

    .w3-content .mySlides {
      max-width: 100%;
      overflow: hidden;
    }

    .w3-content .mySlides > div {
      max-width: 100%;
      overflow: hidden;
    }

    .position h1 {
      font-size: 1.5rem;
      text-align: center;
      line-height: 1.2;
    }

    .position p {
      text-align: center;
      font-size: 0.8rem;
      line-height: 1.5;
    }

    .hero_content {
      width: 100%;
      max-width: 100%;
      padding: 1.2rem;
    }

    .hero_divider {
      width: 60px;
      margin: 0.8rem auto;
    }

    .sm_btn {
      padding: 0.7rem 1.2rem;
      margin: 1.2rem auto 0;
      font-size: 0.85rem;
    }

    .activities {
      margin-top: 1rem;
      width: 100%;
      text-align: left;
    }

    .activities h1 {
      font-size: 1rem;
      text-align: left;
    }

    .recent {
      max-width: 120px;
      margin: 0;
    }

    /* Team Section - Single Column on Mobile */
    .team_section {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 1rem 0.5rem;
    }

    .team {
      width: 100%;
      max-width: 100%;
      margin: 0;
    }

    .president_section {
      padding: 2rem 1rem;
    }

    .president_content {
      padding: 1rem;
    }

    .president_header h2 {
      font-size: 1.5rem;
    }

    .president_para p {
      font-size: 0.9rem;
    }

    .mission_section {
      padding: 2rem 1rem;
    }

    .mission_header h1 {
      font-size: 1.8rem;
    }

    .mission_card {
      padding: 1.5rem 1rem;
      width: 100%;
      max-width: 100%;
    }

    .certificates_section {
      padding: 2rem 0 !important;
      margin: 2rem 0;
    }

    .certificates_container {
      padding: 0;
      max-width: 100%;
    }

    .certificates_header {
      padding: 0 1rem;
    }

    .certificates_header h1 {
      font-size: 1.8rem;
    }

    .certificates_grid {
      grid-template-columns: 1fr !important;
      gap: 0;
      padding: 0;
      margin: 0;
    }

    .certificate_card {
      width: 100%;
      max-width: 100%;
      margin: 0;
      border-radius: 0;
    }

    /* Social Links Mobile */
    .link_flex {
      flex-direction: column;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
    }

    .logo img {
      width: 100%;
      max-width: 300px;
      height: auto;
    }

    .number h2 {
      font-size: 0.9rem;
      text-align: center;
    }

    .social {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
    }
  }
  @media (max-width: 400px) {
    /* Ramadan Modal - Very small screens */
    .ramadan_modal_content {
      margin: 2vh auto;
    }

    .ramadan_modal_text {
      padding: 2.5rem 1rem 1.75rem;
    }

    .ramadan_modal_headline {
      font-size: 1.35rem;
    }

    .ramadan_modal_subheadline {
      font-size: 1rem;
      margin-bottom: 1.25rem;
    }

    .ramadan_modal_btn {
      padding: 0.75rem 1rem;
      font-size: 0.875rem;
    }

    .chairman {
      /* Removed chairman related styles */
    }
  }
  @media (max-width: 320px) {
    .certificate_section p {
    }
    .chairman {
      /* Removed chairman related styles */
    }
  }
}
@media (max-width: 768px) {
  .team-categories {
    flex-direction: column;
    gap: 1.5rem;
  }

  .team-category {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .section-header h1 {
    font-size: 1.8rem;
  }

  .team-members {
    grid-template-columns: 1fr;
  }
}
.blog {

  /* width: fit-content; */
  /* margin: auto; */
  text-align: center;
  width: 100%;
  padding: 1rem 1rem;
  /* border-radius: 8px; */
  transition: all 0.3s;
}
.blog li {
  width: fit-content;
  margin: auto;
  color: #fff;
}
li {
  text-decoration: none;
}

.blog:hover {
  /* box-shadow: 1px 2px 5px #00000026; */
}

.blog h1 {
  font-size: 1.2rem;
  padding: 0rem 0.5rem;
  letter-spacing: 0px;
  color: #fff;
}

.blog p {
  color: #fff;
  width: 1200px;
  margin: auto;
  padding: 1rem 0.5rem 0rem 0.5rem;
  max-width: 100%;
}

.blog_btn {
  background-color: #fff;
  padding: 0.5rem 1.5rem;
  width: fit-content;
  border-radius: 4px;
  margin: auto;
}

/*  */
.register {
  background-color: #9b1811;
  padding: 0.5rem 2rem;
}
.register a {
  color: #fff;
}
.blink-button {
  animation: blink-animation 3s infinite;
}

@keyframes blink-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

.chairman.active .chairman_img {
  width: 500px;
}

/* Mission Statement Section */
.mission-statement {
  background-color: #f8f9fa;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 1100px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mission-header h1 {
  font-size: 2.2rem;
  color: #9b1811;
  margin-bottom: 1rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 700;
}

.mission-divider {
  width: 100px;
  height: 3px;
  background: #9b1811;
  margin: 0 auto 1.5rem;
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.mission-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.mission-icon {
  font-size: 1.5rem;
  color: #9b1811;
  margin-bottom: 0.5rem;
}

.mission-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Responsive adjustments for Mission Statement Section */
@media (max-width: 992px) {
  .mission-content {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .mission-statement {
    padding: 2.5rem 1.5rem;
    margin: 1.5rem auto;
  }

  .mission-header h1 {
    font-size: 1.8rem;
  }

  .mission-content {
    grid-template-columns: 1fr; /* Stack items vertically */
    padding: 0;
  }

  .mission-item {
    padding: 1.2rem;
  }

  .mission-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .mission-statement {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }

  .mission-header h1 {
    font-size: 1.5rem;
  }

  .mission-item {
    padding: 1rem;
  }

  .mission-item p {
    font-size: 0.9rem;
  }

  .chairman.active .chairman-expandable-content h1 {
    font-size: 1.4rem;
  }

  .chairman.active .chairman-expandable-content h3 {
    font-size: 1.1rem;
  }

  .chairman.active .chairman-expandable-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .chairman.active .chairman-expandable-content {
    padding: 1rem 0.8rem;
  }
  
  .chairman_para p {
    max-width: 95%;
    margin: auto;
  }
  .chairman_para p {
    max-width: 95%;
    padding: 0 0.2rem;
  }

  /* Team Sections specific centering for max-width 480px */
  .professional-teams-container,
  .team-board,
  .plain-team-listing {
    padding: 0 0.5rem; /* Reduce padding on very small screens */
  }

  .team-header h2 {
    font-size: 1.3rem;
    flex-direction: column; /* Stack icon and title if needed */
    gap: 0.5rem;
  }

  .team-subtitle {
    font-size: 0.9rem;
  }

  .member-card,
  .member {
    padding: 1rem; /* Reduce padding for member cards/list items */
  }

  .member-card h3,
  .member strong {
    font-size: 1rem;
  }

  .qualification-badge,
  .position-line,
  .location-tag,
  .department-tag,
  .member span {
    font-size: 0.8rem;
  }

  .team-group h2 {
    font-size: 1.2rem;
  }

  .team-description {
    font-size: 0.9rem;
  }
}

/* Certificates Section */
.certificates-section {
  padding: 3rem 2rem;
  background-color: #f7f7f7;
  text-align: center;
}

.section-header h1 {
  font-size: 2.2rem;
  color: #9b1811;
  margin-bottom: 1rem;
  font-family: "Titillium Web", sans-serif;
}

.header-divider {
  width: 80px;
  height: 3px;
  background: #9b1811;
  margin: 0 auto 1.5rem;
}

.section-header p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Grid Layout for All Certificates */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.certificate-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.certificate-img-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(155, 24, 17, 0.05);
}

.certificate-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.certificate-details {
  padding: 1.5rem;
}

.certificate-details p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #9b1811;
}

.team-social {
  margin-top: 1rem;
}

.team-social a {
  color: #333;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* Medical Team Section */
.medical-team-section {
  background-color: #f8f9fa;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header h1 {
  font-size: 2.2rem;
  color: #9b1811;
  text-align: center;
  font-family: "Titillium Web", sans-serif;
  margin-bottom: 1rem;
}

.header-divider {
  width: 80px;
  height: 3px;
  background: #9b1811;
  margin: 0 auto 1.5rem;
}

.section-subtitle {
  color: #555;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Team Categories */
.team-categories {
  display: grid;
  gap: 2.5rem;
}

.team-category {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.category-divider {
  width: 60px;
  height: 2px;
  background: #9b1811;
  margin-bottom: 1.5rem;
}

/* Team Members */

.team_section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  text-align: center;
  margin: 2rem auto;
  padding: 2rem 1rem;
  max-width: 1200px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.team_subtitle {
  text-align: center;
  padding: 0rem 0rem 2rem 0rem;
  color: #4a5764;
  font-size: 1.1rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.border {
  border-bottom: 1px solid #e0e0e0;
  margin: 2rem auto;
  padding: 1rem 0rem;
  max-width: 1200px;
  width: 90%;
}
.team_primary {
  text-align: center;
  font-family: "Titillium Web", sans-serif;
  color: #9b1811;
  padding: 2rem 1rem 1rem 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  margin-bottom: 1rem;
}

.team_primary::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #9b1811 0%, #73151e 100%);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.team {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-top: 3px solid transparent;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b1811 0%, #73151e 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.team:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(155, 24, 17, 0.15);
  border-top-color: #9b1811;
}

.team:hover::before {
  transform: scaleX(1);
}

.team h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #013243;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.team:hover h1 {
  color: #9b1811;
}

.team p {
  font-size: 0.95rem;
  color: #4a5764;
  line-height: 1.6;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.team:hover p {
  color: #333;
}

.team_btn {
  background: linear-gradient(135deg, #9b1811 0%, #73151e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  padding: 1rem 2rem;
  width: 220px;
  margin: 2rem auto;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(155, 24, 17, 0.3);
}

.team_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 24, 17, 0.4);
  background: linear-gradient(135deg, #73151e 0%, #9b1811 100%);
}

.team_secondary {
  text-align: center;
  padding: 1.5rem 1rem 1rem 1rem;
  color: #9b1811;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: "Titillium Web", sans-serif;
  position: relative;
}

.team_secondary::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #9b1811;
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

@media (max-width: 1020px) {
  .president_container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .president_image_wrapper {
    position: relative;
    top: 0;
  }

  .mission_cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team_section {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.5rem;
    max-width: 100%;
  }

  /* Override to single column at 500px and below */
  @media (max-width: 500px) {
    .mission_cards {
      grid-template-columns: 1fr !important;
    }

    .certificates_grid {
      grid-template-columns: 1fr !important;
    }

    .team_section {
      grid-template-columns: 1fr !important;
    }
  }
}

@media (max-width: 700px) {
  /* Team Section - Single Column on Medium Mobile */
  .team_primary {
    padding: 2rem 1rem 1rem 1rem;
  }

  .team_secondary {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .team_section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 1rem;
    margin: 1rem auto;
  }

  .team {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Team Headers Mobile */
  .team_primary {
    font-size: 1.8rem;
    padding: 1.5rem 1rem 0.8rem;
  }

  .team_secondary {
    font-size: 1.4rem;
    padding: 1.2rem 1rem 0.8rem;
  }

  .team_subtitle {
    font-size: 1rem;
    padding: 0 1rem 1.5rem;
  }
}

/* Additional Mobile Responsive Styles */
@media (max-width: 480px) {
  /* Header Mobile */
  .head_container {
    padding: 15px;
  }

  /* Slider Mobile Small */
  .image, .image2, .image3, .image4, .image5, .image6 {
    min-height: 450px;
  }

  .position h1 {
    font-size: 1.3rem;
  }

  .position p {
    font-size: 0.75rem;
  }

  .hero_content {
    padding: 1rem;
  }

  /* Mission Cards Mobile Small - Single Column */
  .mission_cards {
    grid-template-columns: 1fr !important;
  }

  .mission_card {
    width: 100%;
    max-width: 100%;
    padding: 1.2rem 0.8rem;
  }

  .mission_card h3 {
    font-size: 1.1rem;
  }

  .mission_card p {
    font-size: 0.85rem;
  }

  /* Certificates Mobile Small - Single Column */
  .certificates_section {
    padding: 2rem 1rem !important;
    margin: 2rem 0;
  }

  .certificates_container {
    padding: 0;
    max-width: 100%;
  }

  .certificates_header {
    padding: 0 1rem;
  }

  /* Team Section Padding at 480px */
  .team_primary {
    padding: 2rem 1rem 1rem 1rem;
  }

  .team_secondary {
    padding: 1.5rem 1rem 1rem 1rem;
  }

  .team_section {
    padding: 1rem 1rem;
  }

  .certificates_header {
    padding: 0 1rem;
  }

  .certificates_grid {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .certificate_card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .certificate_img_wrapper {
    height: 200px;
  }

  /* Team Mobile Small - Single Column */
  .team_section {
    grid-template-columns: 1fr !important;
  }

  .team {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  .team h1 {
    font-size: 1.1rem;
  }

  .team p {
    font-size: 0.85rem;
  }

  .team_primary {
    font-size: 1.5rem;
  }

  .team_secondary {
    font-size: 1.2rem;
  }

  /* Footer Mobile */
  .footer_flex {
    flex-direction: column;
    gap: 2rem;
  }

  .footer_text {
    padding: 2rem 1rem;
  }

  /* Modal Mobile */
  .modal-content {
    max-width: 95%;
    max-height: 85%;
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }
}