/* Fonts & Global Variables */
:root {
  /* Fonts */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Open Sans", sans-serif;

  /* Global Colors */
  --background-color: #ffffff;   /* Page background */
  --default-color: #444444;      /* Body text */
  --heading-color: #222222;      /* Headings */
  --accent-color: #0C3C87;       /* Rotary Blue as accent */
  --surface-color: #ffffff;      /* Card/box background */
  --contrast-color: #ffffff;     /* Contrast text */

  /* Nav Menu Colors */
  --nav-color: #222222;
  --nav-hover-color: #F7A81B;    /* Rotary Gold hover */
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #1B2A4E; /* Rotary Navy dropdown */
  --nav-dropdown-color: #ffffff;
  --nav-dropdown-hover-color: #F7A81B;

  /* Rotary D3830 Palette */
  --rotary-blue: #0C3C87;
  --rotary-gold: #F7A81B;
  --rotary-sky: #86C8E2;
  --rotary-navy: #1B2A4E;
  --rotary-gray: #E6E6E6;

  /* SB Admin 2 Overrides */
  --primary: var(--rotary-blue);
  --secondary: var(--rotary-gray);
  --success: #1cc88a;
  --warning: var(--rotary-gold);
  --danger: #e74a3b;
  --info: var(--rotary-sky);
  --light: #f8f9fc;
  --dark: var(--rotary-navy);

  /* Smooth Scroll */
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  background: linear-gradient(90deg, #0C3C87, #1B2A4E); /* Rotary blue gradient */
  color: #fff;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header .topbar {
  background-color: #F7A81B; /* Rotary gold accent strip */
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
  color: #0C3C87;
}

.header .topbar .contact-info i,
.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  color: #0C3C87;
}

@media (max-width: 575px) {
  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: #0C3C87;
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: rgba(12, 60, 135, 0.7);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: #0C3C87;
}

.header .branding {
  min-height: 70px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 70px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
}

/* Sidebar background fix */
.sidebar {
  background: #0d47a1; /* Rotary deep blue */
}

/* Gradient option */
.bg-gradient-primary {
  background: linear-gradient(180deg, #0d47a1 0%, #1565c0 100%);
}

/* Active nav item */
.sidebar .nav-item.active .nav-link {
  background-color: #f7a81b; /* Rotary gold */
  color: #0d47a1;
  border-radius: 0.35rem;
}

/* Hover states */
.sidebar .nav-link:hover {
  background-color: rgba(247, 168, 27, 0.2);
  color: #fff;
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #fff; /* white text for links */
    padding: 18px 15px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #F7A81B; /* Rotary gold hover/active */
    border-bottom: 2px solid #F7A81B; /* gold underline effect */
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: #1B2A4E; /* navy dropdown */
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: #fff;
  }

  .navmenu .dropdown ul a:hover {
    color: #F7A81B;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: #1B2A4E; /* navy mobile menu */
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: #fff;
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #F7A81B;
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: #0C3C87; /* deep blue dropdown */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul a {
    color: #fff;
  }

  .navmenu .dropdown ul a:hover {
    color: #F7A81B;
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(255,255,255,0.05);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(12, 60, 135, 0.9); /* Rotary blue overlay */
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  background: #0C3C87; /* Rotary blue */
  color: #fff;
  font-size: 14px;
  padding: 40px 0 50px 0;
  position: relative;
}

.footer a {
  color: #F7A81B; /* light gray links */
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #E6E6E6; /* gold hover */
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  color: #F7A81B; /* Gold headings */
  padding-bottom: 12px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul a {
  color: #E6E6E6; /* light gray links */
  transition: color 0.3s ease;
}

.footer .footer-links ul a:hover {
  color: #F7A81B; /* gold hover */
}

.footer .social-links a {
  background: #1B2A4E; /* navy circle */
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer .social-links a:hover {
  background: #F7A81B; /* gold hover */
  color: #0C3C87; /* blue icon */
}

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
}
/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader div {
  width: 13px;
  height: 13px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
  position: absolute;
  left: 50%;
}

#preloader div:nth-child(1) {
  left: calc(50% + 8px);
  animation: animate-preloader-1 0.6s infinite;
}

#preloader div:nth-child(2) {
  left: calc(50% + 8px);
  animation: animate-preloader-2 0.6s infinite;
}

#preloader div:nth-child(3) {
  left: calc(50% + 32px);
  animation: animate-preloader-2 0.6s infinite;
}

#preloader div:nth-child(4) {
  left: calc(50% + 56px);
  animation: animate-preloader-3 0.6s infinite;
}

@keyframes animate-preloader-1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes animate-preloader-3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes animate-preloader-2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 600;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 78px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

.section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.section-title p .description-title {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 85vh;
  position: relative;
  padding: 60px 0;
  display: flex;
  align-items: center;
  background: url("../img/hero-bg.jpg") no-repeat center center;
  background-size: cover;       /* scales image to fill */
  background-attachment: scroll;/* avoids fixed issues on mobile */
}

/* Overlay */
.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
}

/* Content stays above */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 5px 0 30px 0;
  font-size: 20px;
  font-weight: 400;
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero {
    background-position: center top; /* shift focus for tablets */
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;              /* shorter hero on mobile */
    background-position: center;   /* keep focal point centered */
  }

  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 13px;
    padding: 10px 24px;
  }
}

@keyframes up-down {
  0% { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1);
  padding: 50px 30px;
  transition: all 0.3s ease-in-out;
  height: 100%;
  position: relative;
  z-index: 1;
}

.featured-services .service-item:before {
  content: "";
  position: absolute;
  background: var(--accent-color);
  inset: 100% 0 0 0;
  transition: all 0.3s;
  z-index: -1;
}

.featured-services .service-item .icon {
  margin-bottom: 10px;
}

.featured-services .service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: ease-in-out 0.3s;
}

.featured-services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.featured-services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.featured-services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  transition: ease-in-out 0.3s;
}

.featured-services .service-item:hover h4 a,
.featured-services .service-item:hover .icon i,
.featured-services .service-item:hover p {
  color: var(--contrast-color);
}

.featured-services .service-item:hover:before {
  background: var(--accent-color);
  inset: 0;
  border-radius: 0px;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .about-content h3 {
  font-weight: 700;
  font-size: 26px;
}

.about .about-content ul {
  list-style: none;
  padding: 0;
}

.about .about-content ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 35px;
}

.about .about-content ul li:first-child {
  margin-top: 35px;
}

.about .about-content ul i {
  background: var(--surface-color);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  font-size: 24px;
  margin-right: 15px;
  color: var(--accent-color);
  border-radius: 50px;
}

.about .about-content ul h4 {
  font-size: 18px;
  font-weight: 600;
}

.about .about-content ul p {
  font-size: 15px;
}

.about .about-content p:last-child {
  margin-bottom: 0;
}

/* About Us Carousel Styling */
#aboutCarousel {
  max-width: 900px;   /* keeps carousel centered and not too wide */
  margin: 0 auto 40px auto;     /* centers it horizontally */
}

#aboutCarousel .carousel-inner {
  height: 500px;      /* moderate height for balance */
}

#aboutCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* ensures images fill frame without distortion */
  border-radius: 6px; /* optional: adds rounded corners for a softer look */
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  #aboutCarousel .carousel-inner {
    height: 250px;    /* smaller height on mobile */
  }
}

/* Club Directory Styling */

#clubSearch {
  max-width: 300px;
  border-radius: 20px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease;
}

#clubSearch:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(16, 110, 234, 0.4);
  border-color: var(--accent-color, #106eea);
}

#club-directory .card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#club-directory .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#club-directory .club-logo {
  max-height: 150px;
  object-fit: contain;
  padding: 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

#club-directory .card-title {
  font-weight: 600;
  color: var(--accent-color, #106eea);
}

#club-directory .social-links a {
  font-size: 1.2rem;
  color: #555;
  margin: 0 6px;
  transition: color 0.3s ease;
}

#club-directory .social-links a:hover {
  color: var(--accent-color, #106eea);
}

#clubFilters .nav-link {
  border-radius: 20px;
  padding: 6px 16px;
}

#clubFilters .nav-link.active {
  background-color: var(--accent-color, #106eea);
  color: #fff;
}

/* District Events Styling */
#eventFilters .nav-link {
  border-radius: 20px;
  padding: 6px 16px;
}

#eventFilters .nav-link.active {
  background-color: var(--accent-color, #106eea);
  color: #fff;
}

/* District Events Styling */
#projectFilters .nav-link {
  border-radius: 20px;
  padding: 6px 16px;
}

#projectFilters .nav-link.active {
  background-color: var(--accent-color, #106eea);
  color: #fff;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: 6px solid var(--surface-color);
  width: 64px;
  height: 64px;
  font-size: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  margin-top: -32px;
  padding: 40px 30px 35px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Sponsors Section
--------------------------------------------------------------*/
.sponsors {
  padding: 25px 0;
}

.sponsors .swiper {
  padding: 10px 0;
}

.sponsors .swiper-wrapper {
  height: auto;
}

.sponsors .swiper-slide img {
  transition: 0.3s;
}

.sponsors .swiper-slide img:hover {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Completed Project Details
--------------------------------------------------------------*/

/* Carousel Styling */
#projectCarousel {
  max-width: 900px;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

#projectCarousel .carousel-inner {
  height: 500px;
}

#projectCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#projectCarousel .carousel-item img:hover {
  transform: scale(1.05); /* subtle zoom effect */
}

#projectCarousel .carousel-control-prev-icon,
#projectCarousel .carousel-control-next-icon {
  background-color: rgba(12, 60, 135, 0.8); /* Rotary blue overlay */
  border-radius: 50%;
  padding: 10px;
}

/* Responsive carousel height */
@media (max-width: 768px) {
  #projectCarousel .carousel-inner {
    height: 250px;
  }
}

/* Project Info Sidebar */
.project-info {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0C3C87; /* Rotary blue */
  margin-bottom: 15px;
}

.project-info .list-group-item {
  border: none;
  padding: 10px 0;
  font-size: 15px;
}

.project-info .list-group-item strong {
  color: #F7A81B; /* Rotary gold highlight */
}

/* Title Styling */
.project-details  .section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.project-details  .section-title h2 {
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 20px;
  margin: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: inline-block;
  text-transform: uppercase;
  border-radius: 50px;
  font-family: var(--default-font);
}

.project-details  .section-title p {
  color: var(--heading-color);
  margin: 10px 0 0 0;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
}

.project-details .section-title p .description-title {
  color: var(--accent-color);
}

/* Description Styling */
.project-details h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0C3C87;
}

.project-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Project Cover Image */
.project-cover {
  display: block;
  max-width: 800px;   /* limits width so it doesn’t span full page */
  width: 100%;        /* responsive scaling */
  height: auto;       /* keeps original aspect ratio */
  margin: 0 auto;     /* centers image */
  border-radius: 8px; /* optional rounded corners */
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* subtle shadow */
}

/* Partner Modal Styling */
#partnerModal .modal-header {
  background: #0d6efd;     /* same as primary button */
  color: #fff;             /* white text */
}

#partnerModal .modal-header h5 {
  color: #fff;             /* white text */
}

#partnerModal .modal-dialog {
  max-width: 1000px; /* wider modal */
}

#partnerModal .modal-body {
  max-height: 70vh; /* shorter height */
  overflow-y: auto; /* scroll if content exceeds */
}

#partnerModal .form-label {
  font-weight: 600;
  color: #0C3C87; /* Rotary blue accent */
}

#partnerModal .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#partnerModal .btn-primary:hover {
  background-color: #F7A81B;
  border-color: #F7A81B;
  color: #0C3C87;
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--contrast-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}


/*--------------------------------------------------------------
# Contact Us Section
--------------------------------------------------------------*/
/* Contact Us Form Styling */
.contact-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 12px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #0C3C87; /* Rotary blue */
  box-shadow: 0 0 8px rgba(12, 60, 135, 0.2);
  outline: none;
}

.contact-form select {
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #0C3C87; /* Rotary blue */
  border: none;
  border-radius: 6px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #F7A81B; /* Rotary gold */
  color: #0C3C87;
}

/* Rotary Blue Primary Button */
.btn-primary {
  background-color: var(--rotary-blue); /* #0C3C87 */
  border-color: var(--rotary-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 24px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rotary-gold); /* Gold hover accent */
  border-color: var(--rotary-gold);
  color: var(--rotary-navy);
  box-shadow: 0 0 10px rgba(247, 168, 27, 0.4);
}

/* Rotary Blue Text Utility */
.text-primary {
  color: var(--rotary-blue) !important; /* #0C3C87 */
}
