/* 
--------------------------------------------------------
Global Reset & Base Styles
--------------------------------------------------------
*/
html,
body {
  font-size: 14px;
  color: #797979;
  width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
}


/* Viewport settings for mobile devices */
@-ms-viewport {
  width: device-width;
}

@-o-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}

/*
--------------------------------------------------------
General Page Content Styles
--------------------------------------------------------
*/
.page-content,
section {
  overflow: hidden;
  /* Prevents content overflow */
}

/*
--------------------------------------------------------
Spacing & Alignment Utilities
--------------------------------------------------------
*/

/* Vertical spacing for sections */
.roomy-80 {
  padding-top: 100px;
  padding-bottom: 80px;
}

.roomy-70 {
  padding-top: 70px;
  padding-bottom: 70px;
}

/*
--------------------------------------------------------
Text Colors
--------------------------------------------------------
*/
.text-primary {
  color: #00a885 !important;
}

.text-finence {
  color: #13A0B2 !important;
}

.text-mega {
  color: #00a885 !important;
}

.text-white {
  color: #fff !important;
}

.text-black {
  color: #000 !important;
}

/* Disabled state */
.disabled {
  cursor: not-allowed;
}

/*
--------------------------------------------------------
Background Colors
--------------------------------------------------------
*/
.lightbg {
  background-color: #f2f2f2;
}

.bg-primary {
  background-color: #00a885;
}

.bg-finence {
  background-color: #13A0B2;
}

.bg-mega {
  background-color: #1b1b1b;
}

.bg-grey {
  background-color: #f5f5f5;
}

.bg-black {
  background-color: #222222;
}

.bg-white {
  background-color: #fff;
}

/* Image Settings */
img {
  -user-select: none;
  -webkit-user-drag: none;
  -user-drag: none;
  max-width: 100%;
  /* Ensures images scale responsively */
}

/* Hyperlink & Button Styles */
a,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  outline: none;
}

a,
button,
a span {
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

/* Button focus and active state */
.btn:focus,
.btn:active {
  outline: inherit;
  background-color: transparent;
}

/* Global Box-Sizing */
*,
*:before,
*:after {
  box-sizing: border-box;
}

/* General Paragraph Styles */
p {
  margin: 0 0 15px;
}

/* Clears floated elements */
.clear {
  clear: both;
}

/* Form Control Styling */
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  outline: none;
}

/* Autofill Styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: transparent;
  background-image: none;
  color: rgb(0, 0, 0);
}

/* Form Control Styles */
.form-control {
  border-radius: 0px;
  border: 1px solid #ccc;
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, .075);
  width: 100%;
  height: 50px;
}

/* Focused form control */
.form-control:focus {
  border-color: #bcefeb;
  outline: 0;
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, .075), 0 0 0px rgba(102, 175, 233, .6);
}

/*
--------------------------------------------------------
Heading Styles
--------------------------------------------------------
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: #1a1a1a;
  margin-bottom: 10px;
}

/* Heading Sizes */
h1 {
  font-size: 3rem;
  line-height: 4rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 3rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 2rem;
}

h4 {
  font-size: 1.6rem;
  line-height: 2.2rem;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.575rem;
}

h6 {
  font-size: 1rem;
}

/* Paragraph line-height */
p {
  line-height: 1.5rem;
}

/* Remove margin from last paragraph */
p:last-child {
  margin-bottom: 0px;
}

/* Font Weight Utilities */
.w100 {
  font-weight: 100;
}

.w200 {
  font-weight: 200;
}

.w300 {
  font-weight: 300;
}

.w400 {
  font-weight: 400;
}

.w500 {
  font-weight: 500;
}

.w600 {
  font-weight: 600;
}

.w700 {
  font-weight: 700;
}

.w800 {
  font-weight: 800;
}

/*
--------------------------------------------------------
List & Overlay Styles
--------------------------------------------------------
*/
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Utility Classes for Padding */
.no-padding {
  padding: 0 !important;
  margin: 0 !important;
}

.left-no-padding {
  padding-left: 0 !important;
}

.right-no-padding {
  padding-right: 0 !important;
}

/* Fluid Layout Column Adjustments */
.fluid-blocks-col {
  padding: 70px 40px 0 80px;
}

.fluid-blocks-col-right {
  padding: 70px 80px 0 40px;
}

/*
--------------------------------------------------------
Hero Section Styles
--------------------------------------------------------
*/
.hero-section {
  background-image: url('../../assets/images/rotary/background-header/overview-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 350px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlays {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(74, 74, 77, 0.9), transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
}
.overlayses {
  position: absolute;
  top: 0;               /* Cover from top */
  left: 0;
  width: 100%;          /* Full width */
  height: 100%;         /* Full height */
  background: rgba(0, 0, 0, 0.6); /* Solid transparent overlay */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none; /* So it doesn't block clicks */
  z-index: 1;
}


/* Hero Overlay Text */
.overlays h1 {
  color: white;
  font-size: 450%;
  font-weight: 300;
  margin: 0;
  text-align: center;
}

/*
--------------------------------------------------------
Button Styles
--------------------------------------------------------
*/
.btn {
  display: inline-flex;
  /* Ensures flexible layout */
  align-items: center;
  /* Vertically center text */
  justify-content: center;
  /* Horizontally center text */
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  padding: 1rem 4rem;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  transition: all 0.6s;
  text-decoration: none;
}

/* Primary Button Styles */
.btn-primary {
  color: #fff;
  background-color: #0c3c7c;
  border-color: #0c3c7c;
}

.btn-primary:hover {
  background-color: #eee;
  border-color: #0c3c7c;
  color: #00a885;
}

/* Default Button Styles */
.btn-default {
  color: #fff;
  background-color: transparent;
  border-color: #b6b6b6;
}

.btn-default:hover {
  color: #fff;
  background-color: #0050a2;
  border-color: #0050a2;
}

/* Login Button Styles */
.btn-login {
  color: #000000;
  background-color: transparent;
  border-color: #b6b6b6;
}

.btn-login:hover {
  color: #fff;
  background-color: #00a885;
  border-color: #00a885;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .btn {
    font-size: 13px;
    padding: 0.8rem 3rem;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 12px;
    padding: 0.6rem 2rem;
  }
}

@media (max-width: 320px) {
  .btn {
    font-size: 11px;
    padding: 0.5rem 1.5rem;
  }
}

/* 
--------------------------------------------------------
Spacing Utilities
--------------------------------------------------------
*/

/* Margin Utilities */
.m-0 {
  margin: 0 !important;
}

.m-top-0 {
  margin-top: 0;
}

.m-r-0 {
  margin-right: 0;
}

.m-l-0 {
  margin-left: 0;
}

.m-b-0 {
  margin-bottom: 0;
}

.m-r-15 {
  margin-right: 15px;
}

.m-l-15 {
  margin-left: 15px;
}

.m-top-10 {
  margin-top: 10px;
}

.m-top-20 {
  margin-top: 20px;
}

.m-top-30 {
  margin-top: 30px;
}

.m-top-40 {
  margin-top: 40px;
}

.m-top-50 {
  margin-top: 50px;
}

.m-top-60 {
  margin-top: 60px;
}

.m-top-70 {
  margin-top: 70px;
}

.m-top-80 {
  margin-top: 80px;
}

.m-top-90 {
  margin-top: 90px;
}

.m-top-100 {
  margin-top: 100px;
}

.m-top-110 {
  margin-top: 110px;
}

.m-top-120 {
  margin-top: 120px;
}

/* Vertical Margin Utilities */
.m-t-b-80 {
  margin-top: 80px;
  margin-bottom: 80px;
}

.m-t-b-120 {
  margin-top: 120px;
  margin-bottom: 120px;
}

/* Bottom Margin Utilities */
.m-bottom-10 {
  margin-bottom: 10px;
}

.m-bottom-20 {
  margin-bottom: 20px;
}

.m-bottom-30 {
  margin-bottom: 30px;
}

.m-bottom-40 {
  margin-bottom: 40px;
}

.m-bottom-60 {
  margin-bottom: 60px;
}

.m-bottom-70 {
  margin-bottom: 70px;
}

.m-bottom-80 {
  margin-bottom: 80px;
}

.m-bottom-90 {
  margin-bottom: 90px;
}

.m-bottom-100 {
  margin-bottom: 100px;
}

.m-bottom-110 {
  margin-bottom: 110px;
}

.m-bottom-120 {
  margin-bottom: 120px;
}

/* Custom Margin */
.m_t__b {
  margin: 14rem 0;
}

/* Custom Padding */
.p_t__b {
  padding: 6rem 0;
}

/*
--------------------------------------------------------
Padding Utilities
--------------------------------------------------------
*/
.p-0 {
  padding: 0 !important;
}

.p-l-15 {
  padding-left: 15px;
}

.p-r-15 {
  padding-right: 15px;
}

.p-top-10 {
  padding-top: 10px;
}

.p-top-20 {
  padding-top: 1.33rem;
}

.p-bottom-20 {
  padding-bottom: 1.33rem;
}

.p-top-30 {
  padding-top: 1.875rem;
}

.p-bottom-30 {
  padding-bottom: 1.875rem;
}

.p-top-40 {
  padding-top: 2.66rem;
}

.p-bottom-40 {
  padding-bottom: 2.66rem;
}

.p-top-60 {
  padding-top: 5rem;
}

.p-bottom-60 {
  padding-bottom: 5rem;
}

.p-top-80 {
  padding-top: 5.714rem;
}

.p-bottom-80 {
  padding-bottom: 5.714rem;
}

.p-top-90 {
  padding-top: 6.429rem;
}

.p-bottom-90 {
  padding-bottom: 6.429rem;
}

.p-top-100 {
  padding-top: 100px;
}

.p-bottom-100 {
  padding-bottom: 100px;
}

.p-top-110 {
  padding-top: 110px;
}

.p-bottom-110 {
  padding-bottom: 110px;
}

.p-bottom-0 {
  padding-bottom: 0;
}

.p_l_r {
  padding-left: 5.714rem;
  padding-right: 5.714rem;
}

/* Padding Utilities with Specific Sizes */
.padding-twenty {
  padding: 10px 0;
}

.padding-fourty {
  padding: 20px 0;
}

.padding-sixty {
  padding: 30px 0;
}

.padding-eighty {
  padding: 40px 0;
}

/*
--------------------------------------------------------
Border Utilities
--------------------------------------------------------
*/
.no-border-top {
  border-top: 0px solid transparent !important;
}

.no-border-right {
  border-right: 0px solid transparent !important;
}

/*
--------------------------------------------------------
Placeholder Styling
--------------------------------------------------------
*/

/* Placeholder color customization */
input[type="email"].form-control::-webkit-input-placeholder {
  color: #797979;
  background-color: transparent;
}

input::placeholder,
input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder {
  color: #cdcdcd;
}

textarea::placeholder,
textarea::-webkit-input-placeholder,
textarea::-moz-placeholder,
textarea::-ms-input-placeholder {
  color: #cdcdcd;
  padding: 5px;
}

/*
--------------------------------------------------------
Image Hover Transform (Scale & Rotate)
--------------------------------------------------------
*/
.transform_scal_rotate:hover img {
  -webkit-transform: scale(1.1) rotate(4deg);
  transform: scale(1.1) rotate(4deg);
}

/*
--------------------------------------------------------
General Container Layout
--------------------------------------------------------
*/
.culmn {
  width: 100%;
  overflow: hidden;
  /* keep if needed */
  min-height: 100vh;
  /* or enough height */
}

.fix {
  overflow: hidden;
}

/*
--------------------------------------------------------
Heading Title Styling
--------------------------------------------------------
*/
.head_title {
  padding-bottom: 2.143rem;
  overflow: hidden;
}

.head_title h2 {
  font-weight: 700;
  font-size: 2.250rem;
}

.head_title h5 {
  font-weight: 400;
  font-size: 1.125rem;
  color: #999999;
}

/*
--------------------------------------------------------
BACKGROUND HEADERS MOBILE VIEW STYLE
--------------------------------------------------------
*/
@media (max-width: 768px) {
  .rcbg-img1 {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    height: 300px;
    /* or adjust as needed */
  }

  .rcshort-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/*
--------------------------------------------------------
Home Section Styles
--------------------------------------------------------
*/

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 6, 148, 0.9), transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.home {
  background: url(../images/rotary/about_us/Rotary\ SJDM_Outdoor-116.jpg) no-repeat center center;
  background-size: cover;
  position: relative;
  padding-top: 300px;
  padding-bottom: 190px;
  width: 100%;
}

.main_home .home_text h1 {
  font-size: 48px;
  font-weight: 700;
  position: relative;
  z-index: 3;
}

.main_home .home_text h2 {
  font-size: 36px;
  font-weight: 400;
  position: relative;
  z-index: 3;
}

.main_home .home_text h3 {
  font-size: 24px;
  font-weight: 400;
  position: relative;
  z-index: 3;
}

.paddingtop {
  padding-top: 200px;
}

.home_btns {
  margin-left: -10px;
  position: relative;
  /* Ensure button is above overlay */
  z-index: 3;
  /* Higher z-index to place it in front of the overlay */
}

.home_btns a {
  margin-left: 10px;
}

/*
--------------------------------------------------------
Business Section Styles
--------------------------------------------------------
*/
.business_item {
  max-width: 800px;
  max-height: 350px;
  margin: 0 auto;
  text-align: left;
  padding: 20px;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

.business_item h1,
.business_item h3 {
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.business_item h2 {
  font-size: 26px;
  font-weight: 800;
}

.business_item p {
  color: #333;
  line-height: 2rem;
  font-size: 14px;
  font-weight: 500;
}

.business_item ul {
  padding-left: 20px;
  list-style-type: disc;
}

.business_item li {
  font-size: 18px;
  font-weight: 300;
  line-height: 2rem;
}

.business_item li i {
  font-size: 12px;
  margin-right: 5px;
}

.business_item .business_btn {
  margin-left: 10px;
}

.business_item .business_btn a {
  margin-left: 10px;
}

.business_item .business_btn .btn-default {
  color: #444;
}
.business_item .business_btn .btn-default:hover {
  color: #ccc;
}
.business_item .business_btn .btn-primary:hover {
  color: #0c3c7c;
}

@media (max-width: 767px) {
  .business_item .business_btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-left: 0;
  }

  .business_item .business_btn a {
    margin-left: 0;
    white-space: normal;
  }
    .business_item {
    max-height: none; 
  }

  .business_img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

/*
--------------------------------------------------------
Project Carousel Styles
--------------------------------------------------------
*/
.main_project .carousel-control {
  background-color: #fff;
  color: #333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1rem;
  text-align: center;
  top: 30%;
}

.main_project .carousel-control:hover {
  background-color: #00a885;
  color: #fff;
}

.main_project .carousel-control.left {
  left: -1.4%;
  box-shadow: -1px 0 0 0;
}

.main_project .carousel-control.right {
  right: -1.4%;
  box-shadow: 1px 0 0 0;
}

.main_project .port_img {
  position: relative;
  overflow: hidden;
}

.main_project .port_img img {
  width: 100%;
}

.main_project .port_overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 168, 133, 0.6);
  position: absolute;
  left: 0;
  top: 0;
  padding-top: 35%;
  opacity: 0;
  transition: all 0.2s;
}

.main_project .port_overlay a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-block;
  font-size: 2rem;
  bottom: -150px;
  position: relative;
}

.main_project .port_img:hover .port_overlay {
  opacity: 1;
}

.main_project .port_img:hover .port_overlay a {
  bottom: 0;
}

/*
--------------------------------------------------------
Error 404 Page Styles
--------------------------------------------------------
*/
.error-404 {
  padding: 80px 0;
  margin: 0 auto;
}

.error-404 .error-icon {
  font-size: 5rem;
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  font-family: var(--heading-font);
  line-height: 1;
}

.error-404 .error-title {
  font-size: 2rem;
  color: var(--heading-color);
  font-weight: 600;
}

.error-404 .error-text {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .search-box {
  max-width: 500px;
  margin: 0 auto;
}

.error-404 .search-box .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-404 .search-box .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 50px;
}

.error-404 .search-box .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.error-404 .search-box .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.error-404 .search-box .search-btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.error-404 .search-box .search-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-action .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background-color: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.error-404 .error-action .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .error-404 {
    padding: 60px 0;
  }

  .error-404 .error-code {
    font-size: clamp(4rem, 12vw, 8rem);
  }

  .error-404 .error-title {
    font-size: 1.5rem;
  }

  .error-404 .error-text {
    font-size: 1rem;
    padding: 0 20px;
  }

  .error-404 .search-box {
    margin: 0 20px;
  }
}

/*
--------------------------------------------------------
Footer Section Styles
--------------------------------------------------------
*/

.footer {
  border-top: 1px solid #efefef;
  background-color: #0c3c7c;
  font-family: "Poppins", sans-serif;
  padding: 1rem 0;
}

.footer .container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.footer .site-logo {
  color: #fff;
  width: 20px;
}

.footer .site-logo img {
  max-width: 2000%;
  height: 60px;
  display: block;
  margin-top: 15px;
}


.footer .social-icons li {
  display: inline-block;
  margin-left: 0px;
}

.footer .social-icons li:first-child {
  margin-left: 0;
}

.footer .social-icons li a {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 18px;
}

.footer a,
p {
  color: white;
}

.footer .social-icons li a.dr {
  background: #ff2e6e;
}

.footer .social-icons li a.be {
  background: #394cff;
}

.footer .social-icons li a.tw {
  background: #00a0fb;
}

.footer .social-icons li a.in {
  background: #c31574;
}

.footer .social-icons li a.fb {
  background: #3b579b;
}

.footer .social-icons li a.yt {
  background: #fa2614;
}

.footer .nav-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer .nav-links li {
  display: inline-block;
  margin-left: 15px;
}

.footer .nav-links li:first-child {
  margin-left: 0;
}

.footer .nav-links li a {
  font-size: 14px;
  color: #ffffff;
  padding: 10px 0;
  display: inline-block;
}

.footer .row.mb-5 {
  margin-bottom: 1.5rem;
}

.footer .copyright {
  border-top: 1px solid #efefef;
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

@media (max-width: 1199.98px) {
  .footer .nav-links {
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping */
    justify-content: center;
    /* center the links */
    padding-left: 0;
    margin: 0 auto;
  }

  .footer .nav-links li {
    flex: 0 0 auto;
    /* prevent stretching */
    margin: 5px 10px;
    /* spacing between items */
  }

  .footer .social-icons li a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 16px;
  }

  .footer .site-logo {
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer .site-logo img {
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .footer .social-icons {
    justify-content: center !important;
  }

  .footer .social-icons li a {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin: 4px;
  }
}

/*
--------------------------------------------------------
Overview Section Styles
--------------------------------------------------------
*/

.overviewbg {
  background-image: url('../../assets/images/rotary/background-header/tarp.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.obtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #c00045;
  border-radius: 40px;
  background-color: transparent;
  color: #c00045;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.obtn:hover {
  background-color: #c00045;
  color: #fff;
}

.oheader {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 1s ease-in;
}

.oheader h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #222;
}

.oheader h2 {
  color: #6f6e6e;
}

.oheader p {
  font-size: 1.1em;
  color: #666;
}

.ocontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 60px;
}

.about-section {
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in;
}

.obg-section {
  background-image: url('../../assets/images/rotary/background-header/structure-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otext-content {
  text-align: center;
  color: white;
  z-index: 1;
}

.otext-content p {
  font-size: 2rem;
  color: white;
  max-width: 100%;
}

.about-section h2 {
  font-size: 2em;
  color: #141414;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.about-section h4 {
  color: #6f6e6e;
  font-size: large;
}

.about-section p {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444;
}

ul.bullets {
  margin-top: 15px;
  margin-left: 20px;
  color: #555;
}

ul.bullets li {
  margin-bottom: 10px;
  list-style-type: disc;
  font-size: large;
}

/*
--------------------------------------------------------
Overview Carousel Styles
--------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans HK', sans-serif;
  background: #fff;
}

.slider {
  margin-bottom: 30px;
  position: relative;
}

.slider .owl-item.active.center .slider-card {
  transform: scale(1.15);
  opacity: 1;
  background: #ffffff;
  color: #fff;
}

.slider-card {
  width: 100%;
  height: 50%;
  background: #fff;
  padding: 0px 0px;
  margin: 50px 0px 90px 0px;
  border-radius: 5px;
  box-shadow: 0 15px 45px -20px rgb(0 0 0 / 73%);
  transform: scale(0.9);
  opacity: 0.5;
  transition: all 0.3s;
}

.slider-card h5 {
  color: white;
  padding: 10px;
  margin: 0;
}

.slider-card p {
  color: rgb(0, 0, 0);
  padding: 20px 40px;
}

.slider-card img {
  border-radius: 5px 5px 0px 0px;
  width: 150px;
  height: 400px;
}

@media (max-width: 768px) {
  #slider .slider-card img {
    width: 100%;
    /* make the image take full width of its container */
    height: 300px;
    /* fixed height to keep images uniform */
    object-fit: cover;
    /* maintain aspect ratio, cropping if necessary */
  }
}

.owl-nav .owl-prev {
  position: absolute;
  top: calc(50% - 25px);
  left: 0;
  opacity: 1;
  font-size: 30px !important;
  z-index: 1;
}

.owl-nav .owl-next {
  position: absolute;
  top: calc(50% - 25px);
  right: 0;
  opacity: 1;
  font-size: 30px !important;
  z-index: 1;
}

@media (max-width: 767px) {
  .slider {
    display: block;
    overflow: hidden;
  }

  .slider-card {
    width: 100% !important;
    height: 50%;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto 20px;
    transform: none !important;
    opacity: 1 !important;
  }

  .slider-card img {
    width: 100%;
    height: auto;
  }

  .owl-nav,
  .owl-dots {
    display: none;
  }

  .slider .owl-item .slider-card {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

/*
--------------------------------------------------------
Overview Gallery Styles
--------------------------------------------------------
*/

.ogallery {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.ogallery-item {
  width: calc(100% / 6);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ogallery-item img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
}

.ogallery-item:hover img {
  transform: scale(1.05);
}

.ogallery-item p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.ogallery p {
  text-shadow: 2px 2px 4px rgb(255, 255, 255);
  font-weight: bolder;
}

.ogallery-item p a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 18px;
}

@media (max-width: 767px) {
  .ogallery {
    flex-wrap: wrap;
  }

  .ogallery-item {
    width: 100%;
    background-color: #ffffff;
    padding: 16px 0;
    position: relative;
  }

  .ogallery-item img {
    display: none !important;
  }

  .ogallery-item p {
    position: static;
    transform: none;
  }

  .ogallery-item p a {
    color: rgb(0, 0, 0);
    font-size: 20px;
  }

  .ogallery-item:hover a {
    text-decoration: underline;
  }
}

/*
--------------------------------------------------------
Responsive Breakpoints
--------------------------------------------------------
*/

/* ===== TABLETS & UP: 768px+ ===== */
@media (min-width: 768px) {
  .ogallery-item {
    width: calc(100% / 6);
  }
}

/*
--------------------------------------------------------
History Background Image Styles
--------------------------------------------------------
*/

.hdark-bg {
  background: #323232;
  color: #fff;
}

.hbg-img1 {
  background-image: url(../images/rotary/background-header/history-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hoverlay-dark:before,
.hoverlay-light:before {
  background-color: rgba(32, 32, 32, 0.8);
  left: 0;
  top: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  content: "";
  z-index: -1;
}

.hoverlay-dark,
.hoverlay-light {
  position: relative;
  z-index: 1;
}

.hshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/*
--------------------------------------------------------
Gallery Section Styles
--------------------------------------------------------
*/

.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll if cards overflow */
}

.header {
  text-align: center;
  width: 100%;
  padding: 20px 0;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.hcontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 60px;
}

.habout-section {
  margin-bottom: 40px;
  animation: fadeIn 1.2s ease-in;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  /* Add side padding to prevent edge overflow */
}

.card {
  width: 100%;
  max-width: 300px;
  /* Prevent cards from overflowing container */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

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

.card-body {
  padding: 20px;
  text-align: center;
}

.card-body h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.card-body a {
  color: #00a0d2;
  text-decoration: none;
  font-weight: 500;
}

.hobtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #0c3c7c ;
  border-radius: 40px;
  background-color: #0c3c7c ;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.hobtn:hover {
  background-color: #fff;
  color: #0c3c7c ;
}

@media (max-width: 767px) {
  .card-wrapper {
    height: auto;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .card img {
    display: none;
  }
}

/*
--------------------------------------------------------
Timeline Picture & Description Section
--------------------------------------------------------
*/

.hrotary-timeline-section {
  padding: 20px 0;
  background-color: #ffffff;
}

.hcontainer-box {
  display: flex;
  max-width: 1000px;
  max-height: 550px;
  margin: 0 auto;
  overflow: hidden;
}

.hleft-box {
  flex: 1;
  background-color: #012c49;
  color: #fff;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-cimg1 {
  background-image: url(../images/rotary/background-image-color/bg-img-color-5.jpg);
}

.bg-cimg2 {
  background-image: url(../images/rotary/background-image-color/bg-img-color-1.jpg);
}

.bg-cimg3 {
  background-image: url(../images/rotary/background-image-color/bg-img-color-2.jpg);
}

.bg-cimg4 {
  background-image: url(../images/rotary/background-image-color/bg-img-color-3.jpg);
}

.hleft-box h2 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: bold;
  color: white;
}

.hleft-box p {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
}

.hexplore-btn {
  display: inline-block;
  padding: 14px 30px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.hexplore-btn:hover {
  background-color: #fff;
  color: #012c49;
}

.hright-box {
  flex: 1;
}

.hright-box img {
  background-image: url();
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .hcontainer-box {
    flex-direction: column;
    max-height: none;
  }

  .hleft-box,
  .hright-box {
    width: 100%;
  }

  .hleft-content {
    padding: 30px 10px;
  }

  .hright-box img {
    height: auto;
    display: block;
  }
}

/*
--------------------------------------------------------
Structure Page Styles
--------------------------------------------------------
*/

.bg-section {
  background-image: url('../../assets/images/rotary/background-header/structure-headerbg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stext-content {
  text-align: center;
  color: white;
  z-index: 1;
  margin-top: 70px;
}

.stext-content p {
  font-size: 60px;
  color: white;
}

.scontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 60px;
}

.sabout-section {
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in;
}

.sbtn:hover {
  background-color: #fff;
  color: #0a82d2;
}

.scard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll if cards overflow */
}

.scard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  /* Add side padding to prevent edge overflow */
}

.scard {
  width: 100%;
  max-width: 300px;
  /* Prevent cards from overflowing container */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.scard:hover {
  transform: scale(1.03);
}

.scard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scard-body {
  padding: 20px;
  text-align: center;
}

.scard-body h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.scard-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.scard-body a {
  color: #00a0d2;
  text-decoration: none;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .bg-section {
    height: 350px;
  }

  .stext-content p {
    font-size: 60px;
  }

  .scard-wrapper {
    height: auto;
  }

  .scard-container {
    flex-direction: column;
    align-items: center;
  }

  .scard {
    width: 90%;
  }

  .scard img {
    display: none;
  }
}

/* ------------------------ */
/* -----career bg img----- */
/* ------------------------ */
.cdark-bg {
  background: #323232;
  color: #fff;
}

.cbg-img1 {
  background-image: url(../images/rotary/background-header/career-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.cshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}


/* ------------------------------------- */
/* -----overview get involve bg img----- */
/* ------------------------------------- */
.ogbg-section {
  background-image: url('../../assets/images/rotary/background-header/get-involve-overview-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centering the header inside the wrapper with padding */
.gocard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll if cards overflow */
}

.gocontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 60px;
}

.goabout-section {
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in;
}

.goabout-section h4 {
  font-size: 1.3rem;
}

.gocard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

.gocard {
  width: 100%;
  max-width: 400px;
  /* Prevent cards from overflowing container */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}


.gocard:hover {
  transform: scale(1.03);
}

.gocard img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}


.gocard-body {
  padding: 20px;
  text-align: center;
}

.gocard-body h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.gocard-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.gocard-body a {
  color: #00a0d2;
  text-decoration: none;
  font-weight: 500;
}

.sbtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #c3068a;
  border-radius: 40px;
  background-color: #c3068a;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  /* prevents padding from increasing width */
}

@media (max-width: 767px) {
  .sbtn {
    width: 50%;
    padding: 12px 25px;
    /* reduced padding */
    font-size: 0.9rem;
    /* smaller font */
  }
}

@media (max-width: 400px) {
  .sbtn {
    padding: 10px 18px;
    /* even less padding */
    font-size: 0.8rem;
    /* even smaller font */
  }
}

.sbtn:hover {
  background-color: #fff;
  color: #c3068a;
}

/* MOBILE VIEW */
@media (max-width: 767px) {
  .gocard-wrapper {
    height: auto;
  }

  .gocard {
    width: 90%;
  }

  .gocard img {
    display: none;
  }
}

/* ---------------------------- */
/* -----Rotary club bg img----- */
/* ---------------------------- */
.rcdark-bg {
  background: #323232;
  color: #fff;
}

.rcbg-img1 {
  background-image: url(../images/rotary/background-header/rotary-club-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.rcshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.rcrotary-timeline-section {
  padding: 10px 0;
  background-color: #ffffff;
}

.rccontainer-box {
  display: flex;
  max-width: 1000px;
  max-height: 550px;
  margin: 0 auto;
  overflow: rcidden;
}

.rcleft-box {
  flex: 1;
  background-color: #012c49;
  color: #fff;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rcleft-box+.rcleft-box {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  /* This adds the divider */
}


.rcleft-box h2 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: bold;
  color: white;
}

.rcleft-box p {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
}

.rcexplore-btn {
  display: inline-block;
  padding: 14px 30px;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
}

.rcexplore-btn:hover {
  background-color: #fff;
  color: #012c49;
}

@media screen and (max-width: 768px) {
  .rccontainer-box {
    flex-direction: column;
    max-height: none;
  }

  .rcleft-box {
    width: 100%;
  }

  .rcleft-content {
    padding: 30px 10px;
  }

  .rcleft-box+.rcleft-box {
    border-left: none;
    /* Remove the desktop divider */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Add a horizontal divider instead */
  }
}

.rcbtn {
  display: block;
  /* Enables margin: auto to center */
  padding: 15px 40px;
  border: 2px solid #0a82d2;
  border-radius: 40px;
  background-color: transparent;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 10px auto;
  width: 100%;
  /* Responsive width */
  max-width: 300px;
  /* Cap width for desktop */
  box-sizing: border-box;
  /* Keep padding inside width */
}


.rcbtn:hover {
  background-color: #fff;
  color: #0a82d2;
}

/* ---------------------------- */
/* -----Rotaract club bg img----- */
/* ---------------------------- */
.rctdark-bg {
  background: #323232;
  color: #fff;
}

.rctbg-img1 {
  background-image: url(../images/rotary/background-header/rotaract-club-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.rctshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.rctrotary-timeline-section {
  padding: 10px 0;
  background-color: #ffffff;
}

.rctbtn {
  display: block;
  /* Ensures centering with margin auto */
  padding: 15px 40px;
  border: 2px solid #0a82d2;
  border-radius: 40px;
  background-color: #0a82d2;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 auto 10px auto;
  width: 100%;
  /* Responsive on smaller screens */
  max-width: 300px;
  /* Keeps it 300px max on desktop */
  box-sizing: border-box;
}

.rctbtn:hover {
  background-color: #fff;
  color: #0a82d2;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  /* Ensure it takes full height for vertical centering */
}

/* Ensure the video is responsive */
.responsive-video {
  width: 100%;
  max-width: 900px;
  /* Control the maximum width of the video */
  height: auto;
}

/* For mobile responsiveness */
@media (max-width: 767px) {
  .video-container {
    padding: 20px;
    /* Add padding to avoid video hitting the edge */
  }
}

/* ------------------------------ */
/* -----Rotaract club bg img----- */
/* ------------------------------ */
.intrdark-bg {
  background: #323232;
  color: #fff;
}

.intrbg-img1 {
  background-image: url(../images/rotary/background-header/interact-club-bg.png);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.intrshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ----------------- */
/* -----project----- */
/* ----------------- */
.pdark-bg {
  background: #323232;
  color: #fff;
}

.pbg-img1 {
  background-image: url(../images/rotary/background-header/project-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.pshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ----------------------------- */
/* -----overview our causes----- */
/* ----------------------------- */
.coverbg-section {
  background-image: url('../../assets/images/rotary/background-header/our-cause-overview-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cogocard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll if cards overflow */
}

.cogocontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 60px;
}

.cogoabout-section {
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in;
}

.cogoabout-section h4 {
  font-size: 1.3rem;
}

.cogocard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

.cogocard {
  width: 100%;
  max-width: 300px;
  /* Prevent cards from overflowing container */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}


.cogocard:hover {
  transform: scale(1.03);
}

.cogocard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


.cogocard-body {
  padding: 20px;
  text-align: center;
}

.cogocard-body h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.cogocard-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.cogocard-body a {
  color: #00a0d2;
  text-decoration: none;
  font-weight: 500;
}

/* MOBILE VIEW */
@media (max-width: 767px) {
  .cogocard-wrapper {
    height: auto;
  }

  .cogocard {
    width: 90%;
  }

  .cogocard img {
    display: none;
  }
}

/* ------------ */
/* data showing */
/* ------------ */
.polio-stats-section {
  text-align: center;
  padding: 50px 20px;
  font-family: 'Open Sans', sans-serif;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.polio-stats-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
  flex-wrap: wrap;
  /* ✅ Ensures items wrap on smaller screens */
  max-width: 100%;
  /* ✅ Avoid overflow */
}

.polio-stat-item {
  width: 200px;
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.polio-stat-item:nth-child(1) {
  animation-delay: 0.4s;
}

.polio-stat-item:nth-child(2) {
  animation-delay: 0.6s;
}

.polio-stat-item:nth-child(3) {
  animation-delay: 0.8s;
}

.counter {
  font-size: 64px;
  color: #005eb8;
  font-weight: 300;
}

.unit {
  font-size: 48px;
  color: #005eb8;
}

.polio-stat-item p {
  font-size: 16px;
  color: #003c71;
  margin-top: 10px;
}

/* ✅ Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .polio-stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .counter {
    font-size: 48px;
  }

  .unit {
    font-size: 36px;
  }

  .polio-stat-item p {
    font-size: 15px;
  }
}

/* ----------------- */
/* -----Ending polio----- */
/* ----------------- */
.epdark-bg {
  background: #323232;
  color: #fff;
}

.epbg-img1 {
  background-image: url(../images/rotary/background-header/ending-epolio-bg.webp);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.epshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.epcard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);

  height: auto;
  padding: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .epcard-wrapper {
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .epcard-wrapper {
    gap: 10px;
    padding: 10px;
  }
}

/* --------------------------------- */
/* picture with text .card-container */
/* --------------------------------- */
.goal-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  gap: 20px;
  flex-wrap: nowrap;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  margin-top: -105px;
  margin-bottom: -65px;
}

.goal-image {
  position: relative;
  top: 5px;
}

.goal-image img {
  width: 150px;
  height: 180px;
  max-width: 100%;
}

.goal-text h4 {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 800px;
  color: #6f6e6e;
  font-size: large;
}

/* Optional: make it readable on mobile */
@media (max-width: 768px) {
  .goal-text {
    font-size: 16px;
  }

  .goal-image img {
    width: 150px;
    height: 100px;
    max-width: 100%;
  }
}

/* ------------------------ */
/* picture with description */
/* ------------------------ */
.eprotary-timeline-section {
  padding: 40px 0;
}

.epcontainer-box {
  display: flex;
  max-width: 1000px;
  max-height: 550px;
  margin: 0 auto;
  overflow: hidden;
  /* Added flex-wrap to handle small screens */
  flex-wrap: wrap;
}

.epleft-box {
  flex: 1;
  background-color: #012c49;
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.epleft-box h2 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: bold;
  color: rgb(0, 0, 0);
}

.epleft-box p {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: black;
}

.epbtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #0a82d2;
  border-radius: 40px;
  background-color: #0a82d2;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  width: 250px;
  margin: 0 auto;
}

.epbtn:hover {
  background-color: #fff;
  color: #0a82d2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .epcontainer-box {
    flex-direction: column;
    max-height: none;
    /* Allow full height on mobile */
    padding: 20px;
    /* Add some padding for mobile */
  }

  .epleft-box {
    padding: 20px;
  }

  .epleft-box h2 {
    font-size: 20px;
    /* Reduce heading size */
    margin-bottom: 15px;
  }

  .epleft-box p {
    font-size: 16px;
    /* Smaller font for better readability on mobile */
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .epbtn {
    width: 100%;
    /* Make the button full-width on smaller screens */
    font-size: 1.1rem;
    /* Increase button text size on mobile */
    padding: 15px;
  }
}

/* Further adjustment for very small screens (e.g., mobile portrait) */
@media (max-width: 480px) {
  .epcontainer-box {
    padding: 10px;
  }

  .epleft-box {
    padding: 15px;
  }

  .epleft-box h2 {
    font-size: 18px;
    /* Slightly smaller font size on very small screens */
    margin-bottom: 12px;
  }

  .epleft-box p {
    font-size: 14px;
    /* Adjust for readability */
    margin-bottom: 15px;
  }

  .epbtn {
    font-size: 1rem;
    /* Adjust button size */
    padding: 12px 30px;
  }
}

/* ----------------- */
/* -----PEACE----- */
/* ----------------- */



.bg-imgpeace {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/disease.bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

.content-wrapper {
  max-width: 450px;
  text-align: left;
  margin-left: 200px;
  margin-top: 60px;
}

.content-wrapper h2 {
  padding-top: 150px;
  color: white;
}

.content-wrapper h3 {
  color: white;
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* Align left on desktop */
  gap: 20px;
  margin: 20px 0;
}

/* Mobile view: center icons */
@media (max-width: 768px) {
  .social-icons {
    justify-content: center;
  }
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 36px;
  font-size: 20px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.social-icons a:hover {
  background-color: white;
  color: #333;
}

/* Mobile view: center content */
@media (max-width: 768px) {
  .content-wrapper {
    margin: 0 auto;
    text-align: center;
  }
}

    .peacestyle {
        --accent: #003366;
        --card-bg: #ffffff;
        --muted: #555;
    }

    .rotary-blog-section {
        padding: 60px 0;
        background: transparent;
    }

    .container-centered {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .section-title {
        text-align: center;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 36px;
        color: var(--accent);
    }

.rotary-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: center;
}

/* ---- Smart Auto-Centering ---- */
/* If last row has 1 item, center it */
.rotary-masonry-grid > *:last-child:nth-child(3n+1) {
    grid-column: 2;
}

/* If last row has 2 items, center them */
.rotary-masonry-grid > *:nth-last-child(2):nth-child(3n+1),
.rotary-masonry-grid > *:nth-last-child(1):nth-child(3n+2) {
    grid-column: span 1;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .rotary-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Reset centering on tablet */
    .rotary-masonry-grid > * {
        grid-column: auto !important;
    }
}

@media (max-width: 600px) {
    .rotary-masonry-grid {
        grid-template-columns: 1fr;
    }
}

    @media (max-width: 992px) {
        .rotary-masonry-grid {
            column-count: 2;
        }
    }

    @media (max-width: 600px) {
        .rotary-masonry-grid {
            column-count: 1;
        }
    }

    .rotary-card {
        display: inline-block;
        width: 100%;
        background: var(--card-bg);
        margin: 0 0 24px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
        overflow: hidden;
        transition: transform .25s ease, box-shadow .25s ease;
        vertical-align: top;
    }

    .rotary-card .img-wrap {
        width: 100%;
        height: auto;
        overflow: hidden;
        background: #e9eef6;
    }

    .rotary-card img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 16/9;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .rotary-card:hover img {
        transform: scale(1.04);
    }

    .rotary-card-content {
        padding: 18px;
        text-align: center;
    }

    .rotary-card h3 {
        font-size: 1.125rem;
        margin: 6px 0 10px;
        line-height: 1.2;
        color: var(--accent);
        font-weight: 600;
    }

    .rotary-card p {
        font-size: 0.95rem;
        color: var(--muted);
        margin: 0 0 14px;
        line-height: 1.45;
    }

    .read-more-btn {
        display: inline-block;
        padding: 8px 16px;
        font-size: 0.9rem;
        line-height: 1;
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        transition: background .25s ease, transform .15s ease;
    }

    .rotary-card h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    a.read-more-btn:focus,
    a.read-more-btn:hover,
    .read-more-btn:hover {
        color: #0c3c7c;
        background-color: #ccc;
    }



    
/* -------------------------- */
/* -----Projects View Style----- */
/* -------------------------- */
    .blog-view-container {
        max-width: 900px;
        margin: 40px auto;
        padding: 20px;
        line-height: 1.8;
    }

    .blog-view-title {
        text-align: center;
    }

    .blog-view-image {
        width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 8px;
    }

    .blog-meta {
        color: gray;
        font-size: 14px;
    }

    .goback-btn {
        display: inline-block;
        margin-top: 20px;
        padding: 8px 15px;
        background: #004080;
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }

    .goback-btn:hover {
        background: #e4e4e4;
        font-weight: bold;
    }
    
/* -------------------------- */
/* -----FIGHTING DISEASE----- */
/* -------------------------- */
.bg-imgdisease {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/peace.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

/* ------------------------------- */
/* -----PROVIDING CLEAN WATER----- */
/* ------------------------------- */
.bg-imgwater {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/water.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

.section-container {
  max-width: 450px;
  text-align: left;
  margin-right: 200px;
  margin-left: auto;
  margin-top: 60px;
}

.section-container h2 {
  padding-top: 150px;
  color: white;
}

.section-container h3 {
  color: white;
}
.social-icons-group {
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  display: flex;
}

.social-icons-group a {
  display: inline-block;
  margin: 0 10px;
  text-decoration: none;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 36px;
  font-size: 20px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.social-icons-group a:hover {
  background-color: white;
  color: #333;
}

.call-to-action {
  margin-top: 40px;
}

.call-to-action h3 {
  margin-bottom: 20px;
  font-size: 1.2em;
}

.cta-button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.cta-button-group a {
  background-color: #D40055;
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  align-items: center;
}

.cta-button-group a:hover {
  background-color: #aa0044;
}

@media (min-width: 600px) {
  .cta-button-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* ✅ Mobile view: center content */
@media (max-width: 768px) {
  .section-container {
    margin: 0 auto;
    text-align: center;
  }
}

/* ------------------------------- */
/* -----SUPPPORTING EDUCATION----- */
/* ------------------------------- */
.sedark-bg {
  background: #323232;
  color: #fff;
}

.sebg-img1 {
  background-image: url(../images/rotary/background-header/education-bg.jpeg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.seshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.bg-imgeduc {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/education.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

/* ---------------------------------- */
/* -----SAVE MOTHER AND CHILDREN----- */
/* ---------------------------------- */
.bg-imgmother {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/mothers.7.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}
/* ----------------------------- */
/* -----HELPING THE ECONOMY----- */
/* ----------------------------- */
.bg-imgeconomy {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/economy.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}


/* ------------------------------------ */
/* -----PROTECTING THE ENVIRONMENT----- */
/* ------------------------------------ */
.bg-imgnature {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/nature.1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

/* --------------------------- */
/* -----DISASTER RESPONSE----- */
/* --------------------------- */
.drdark-bg {
  background: #323232;
  color: #fff;
}

.drbg-img1 {
  background-image: url(../images/rotary/covid.1.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.drshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.bg-imgdisaster {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/rotary/giving.2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 300px;
  width: 100%;
}

/* ---------------------------------- */
/* ------- our programs overview----- */
/* ---------------------------------- */

.programs-bg {
  background-image: url('../../assets/images/rotary/background-header/overview-bg-programs.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.proggocard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

/* MOBILE VIEW */
@media (max-width: 767px) {
  .proggocard-wrapper {
    height: auto;
    padding-bottom: 10px;
  }

  .cogocard {
    width: 90%;
  }

  .cogocard img {
    display: none;
  }
}


/* --------------------------- */
/* -------youth project page------ */
/* --------------------------- */
.youth-bg {
  background-image: url('../../assets/images/rotary/background-header/youth-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progcard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  padding: 20px;
  /* Add padding instead of fixed height */
  height: auto;
  /* Let it expand with content */
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}


@media screen and (max-width: 768px) {
  .youth-bg {
    height: 350px;
  }

  .stext-content p {
    font-size: 60px;
  }

  .progcard-wrapper {
    height: auto;
  }
}

/* ------------------------------ */
/* -----youth leadership--------- */
/* ------------------------------ */
.leadership-bg {
  background: #323232;
  color: #fff;
}

.leadbg-img1 {
  background-image: url(../images/rotary/background-header/Youth-Leadership-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.leadshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ------------------------------ */
/* -----------fellowship--------- */
/* ------------------------------ */
.fellowship-bg {
  background: #323232;
  color: #fff;
}

.fellowbg-img1 {
  background-image: url(../images/rotary/background-header/Peace-Fellowships-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.fellowshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.fellowcard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: rgb(226, 226, 226);
  height: 330px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.fellowcard-wrapperdos {
  background-image: url(../images/rotary/background-image-color/bg-img-color-4.webp);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 330px;
  padding-top: 10px;
  padding-bottom: 10px;
}


@media screen and (max-width: 768px) {
  .fellowcard-wrapper {
    height: auto;
  }

  .fellowcard-wrapperdos {
    height: auto;
  }
}


.flrotary-timeline-section {
  padding: 10px 0;
  background-color: transparent;
}

.flcontainer-box {
  display: flex;
  max-width: 1000px;
  max-height: 550px;
  margin: 0 auto;
  overflow: hidden;
}

.flleft-box {
  flex: 1;
  background-color: transparent;
  color: #fff;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flleft-box+.flleft-box {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  /* This adds the divider */
}


.flleft-box h1 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: bold;
  color: white;
}

@media screen and (max-width: 768px) {
  .flcontainer-box {
    flex-direction: column;
    max-height: none;
  }

  .column-box {
    flex-direction: column;
    max-height: none;
  }

  .flleft-box {
    width: 100%;
  }

  .flleft-content {
    padding: 30px 10px;
  }

  .flleft-box+.flleft-box {
    border-left: none;
    /* Remove the desktop divider */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Add a horizontal divider instead */
  }
}

.flbtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #0a82d2;
  border-radius: 40px;
  background-color: transparent;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  /* prevents padding from increasing width */
}

.flbtn:hover {
  background-color: transparent;
  color: #0a82d2;
}

.section-padding {
  padding: 10px 0;
  background-image: url(../images/rotary/background-image-color/bg-img-color-5.jpg);
  max-width: 2000px;
  margin: 0 25px;
}

.threecolcontainer-box {
  display: flex;
  max-width: 1000px;
  max-height: 550px;
  margin: 0 auto;
  overflow: hidden;
}

.threecolumn-box {
  flex: 1;
  background-color: transparent;
  color: #fff;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.column-box {
  display: flex;
  max-width: 2000px;
  margin: 0 auto;
  overflow: hidden;
}

.container-section {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 40px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 0;
}

.context-section {
  animation: fadeIn 1.2s ease-in;
}

.context-section h2 {
  font-size: 2em;
  color: #141414;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.context-section h4 {
  color: #6f6e6e;
  font-size: large;
}

.context-section p {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444;
}

/* -------------------------- */
/* -----------CHARTS--------- */
/* -------------------------- */

.tabs {
  margin-bottom: 20px;
  text-align: center;
}

.tab {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #eee;
  margin: 0 5px;
  border-radius: 6px 6px 0 0;
}

.tab.active {
  background-color: white;
  font-weight: bold;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: auto;
}

.chart-container {
  flex: 1;
  max-width: 500px;
}

#custom-legend {
  flex: 1;
  text-align: left;
  padding-left: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 20px;
}

.legend-color-box {
  width: 14px;
  height: 14px;
  margin-right: 10px;
  display: inline-block;
}

canvas {
  width: 100% !important;
  height: auto !important;
}

/* --------------------------------------- */
/* -----------fellowship exchange--------- */
/* --------------------------------------- */
.fex-bg {
  background: #323232;
  color: #fff;
}

.fexbg-img1 {
  background-image: url(../images/rotary/background-header/Friendship-Exchange-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.fexshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ----------------------------------- */
/* -----------community corps--------- */
/* ----------------------------------- */
.corps-bg {
  background: #323232;
  color: #fff;
}

.corpsbg-img1 {
  background-image: url(../images/rotary/background-header/comm-corps-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.corpshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

.singlecontext-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-image: url(/assets/images/rotary/background-image-color/bg-img-color-1.jpg);
  height: auto;
  /* changed from fixed height */
  padding: 20px;
  max-width: 800px;
  width: 90%;
  /* make it responsive */
  margin: 0 auto 40px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .singlecontext-container {
    padding: 15px;
    width: 95%;
    gap: 15px;
  }

  .singlecontext-container h2 {
    font-size: 1.5em;
  }

  .singlecontext-container h4 {
    font-size: 1em;
  }

  .singlecontext-container ul {
    padding-left: 10px;
  }
}

/* ----------------------------------- */
/* -----------youth corps--------- */
/* ----------------------------------- */
.youthcorps-bg {
  background: #323232;
  color: #fff;
}

.youthbg-img1 {
  background-image: url(../images/rotary/background-header/youth-exchange-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.youthshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ----------------------------------- */
/* -----------Scholarship--------- */
/* ----------------------------------- */
.scholarship-bg {
  background: #323232;
  color: #fff;
}

.scholarbg-img1 {
  background-image: url(../images/rotary/background-header/rotary-scholarship-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.scholarshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ----------------------------------- */
/* -----------OUR FOUNDATION---------- */
/* ----------------------------------- */

.foundark-bg {
  background: #323232;
  color: #fff;
}

.foundbg-img1 {
  background-image: url(../images/rotary/background-header/foundation-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.founshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}


/* ------------------------------ */
/* -----------diversity---------- */
/* ------------------------------ */

.dive-bg {
  background: #323232;
  color: #fff;
}

.divebg-img1 {
  background-image: url(../images/rotary/background-header/DEI-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.diveshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}


/* ------------------------------ */
/* -----------MEMBERSHIP---------- */
/* ------------------------------ */

.member-bg {
  background: #323232;
  color: #fff;
}

.memberbg-img1 {
  background-image: url(../images/rotary/background-header/member-bg.jpg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.membershort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}


/* ------------------------------ */
/* -----------FINANCIAL---------- */
/* ------------------------------ */

.finance-bg {
  background: #323232;
  color: #fff;
}

.financebg-img1 {
  background-image: url(../images/rotary/background-header/financial-bg.webp);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.financeshort-section {
  padding-top: 350px;
  padding-bottom: 350px;
}

/* ------------------------------ */
/* --------------------- */
/* ------------------------------ */


/* Page Container */
.tiles-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 15px;
  /* To avoid navbar overlap */
  margin-bottom: 60px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
}

/* Tile Item */
.tile {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


.tile-content {
  padding: 16px;
}

.tile-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.tile-date {
  font-size: 15px;
  color: #666;
}


/* Pagination */
.pagination {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination a {
  padding: 8px 14px;
  border: none;
  background-color: #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #d0d0d0;
}

.pagination a.active {
  background-color: #007BFF;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 600px) {
  .pagination a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* ------------------------------ */
/* ---------ROTARY BLOG ARCHIVES------------ */
/* ------------------------------ */

.rotary-section {
  font-family: Arial, sans-serif;
  padding: 100px 20px 20px;
  /* Add top padding to prevent overlap */
  background: #f5f5f5;
}

.rotary-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.rotary-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.rotary-card img {
  width: 100%;
  height: auto;
  display: block;
}

.rotary-content {
  padding: 15px;
}

.rotary-category {
  font-size: 0.9em;
  font-weight: bold;
  color: #666;
}

.rotary-title {
  font-size: 1.2em;
  margin: 0.5em 0;
}

.rotary-description {
  font-size: 0.95em;
  color: #333;
}

.rotary-readmore {
  color: #00a3e0;
  font-weight: bold;
  text-decoration: none;
}

.custom-link {
  color: black;
  text-decoration: none;
}

.custom-link:hover {
  color: blue;
}

/* Responsive layout */
@media (max-width: 1000px) {
  .rotary-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ */
/* ---------ROTARY BLOG ------------ */
/* ------------------------------ */

.rotary-blog-section {
  padding: 0;
  margin: 0;
  background: transparent !important;
  font-family: Arial, sans-serif;
  padding: 10px 20px 20px;
  /* Add top padding to prevent overlap */
  background: #f5f5f5;
}

.rotary-blog-section h2 {
  margin: 20px 10px 10px;
  font-size: 22px;
}

.rotary-blog-section hr {
  margin: 0 10px 20px;
  height: 4px;
  background-color: #000;
  border: none;
}

.rotary-blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.rotary-blog-card {
  border-radius: 8px;
  margin: 0;
  box-shadow: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rotary-blog-card img {
  width: 100%;
  object-fit: cover;
  margin: 0;
}
.rotary-blog-grid .rotary-blog-card:first-child img {
    /* Set a maximum height for the image in the first card */
    max-height: 500px; /* Adjust this value to your preferred max height */
    /* Ensure the image covers its container without being stretched */
    width: 100%;
    object-fit: cover;
}

.rotary-blog-grid .rotary-blog-card img {
    /* General styles for all blog images (optional but recommended) */
    width: 100%;
    height: auto; /* Allow non-first images to use their natural height */
    display: block;
}

.rotary-blog-content {
  padding: 15px 10px;
}

.rotary-blog-category a,
.rotary-blog-title a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  /* original color */
  transition: color 0.3s ease;
  /* smooth transition */
}

.rotary-blog-category a:hover,
.rotary-blog-title a:hover {
  color: rgb(0, 142, 237);
  /* light blue on hover */
}

.rotary-blog-category {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rotary-blog-title {
  font-size: 18px;
  margin: 0 0 8px 0;
}

.rotary-blog-description {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px 0;
}

.blogbtn {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid #0a82d2;
  border-radius: 40px;
  background-color: #0a82d2;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.blogbtn:hover {
  background-color: #fff;
  color: #0a82d2;
}

.view-more {
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .rotary-blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .rotary-blog-grid {
    grid-template-columns: 1fr;
  }

  .rotary-blog-section h2 {
    text-align: center;
    font-size: 20px;
  }

  .rotary-blog-title {
    font-size: 16px;
  }

  .rotary-blog-description {
    font-size: 13px;
  }

  .blogbtn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .rotary-blog-content {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .rotary-blog-title {
    font-size: 15px;
  }

  .rotary-blog-category {
    font-size: 12px;
  }

  .rotary-blog-description {
    font-size: 12px;
  }

  .blogbtn {
    padding: 10px 25px;
    font-size: 0.85rem;
  }
}



.youth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
  padding: 0 10px 30px;
}

.youth-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.youth-grid h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #000;
}

.youth-grid p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

@media (max-width: 1024px) {
  .youth-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .youth-grid {
    grid-template-columns: 1fr;
  }

  .rotary-blog-card img {
    height: 150px;
  }

  .rotary-blog-title {
    font-size: 16px;
  }

  .rotary-blog-category {
    font-size: 12px;
  }

  .rotary-blog-description {
    font-size: 13px;
  }

  .blogbtn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .youth-grid div {
    text-align: center;
  }
}

.rotary-blog-section:nth-of-type(2) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ------------------------------ */
/* ---------ROTARY BLOG VIEW------------ */
/* ------------------------------ */


.view-blog-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 20px;
}

.view-blog-main-content {
  flex: 3;
  padding-right: 40px;
}

.view-blog-main-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.view-blog-post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.view-blog-main-image {
  width: 100%;
  max-width: 750px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.view-blog-author {
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
}

.view-blog-sidebar {
  flex: 1;
  border-left: 2px solid #111;
  padding-left: 20px;
}

.view-blog-sidebar h3 {
  font-size: 2.1rem;
  border-bottom: 2px solid #111;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Recent posts stacked layout */
.view-blog-recent-post {
  margin-bottom: 30px;
}

.view-blog-bullet-post {
  margin-bottom: 5px;
}

.view-blog-bullet-post p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.view-blog-recent-post img {
  width: 100%;
  max-width: 350px;
  /* control max size */
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.view-blog-recent-post h4 {
  font-size: 1rem;
  margin: 0 0 5px 0;
}

.view-blog-recent-post p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .view-blog-container {
    flex-direction: column;
    padding: 20px;
  }

  .view-blog-main-content {
    padding-right: 0;
  }

  .view-blog-sidebar {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }

  .view-blog-recent-post img {
    max-width: 100%;
  }
}

.category-container {
  padding: 20px 20px 20px;

}

.category-container hr {
  height: 4px;
  background-color: #000;
  border: none;
  width: 90%;
  margin-left: 12%"

}

.category-container h2 {
  text-align: center;
}



.content {
  padding: 7rem 0;
}

.heading {
  font-size: 2.5rem;
  font-weight: 900;
}

.form-control {
  border: none;
  background: #f3f3f3;
}

.form-control:active,
.form-control:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #000;
  background: #f3f3f3;
}

.col-form-label {
  color: #000;
}

.btn,
.form-control,
.custom-select {
  height: 50px;
}

.custom-select:active,
.custom-select:focus {
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: #000;
}

.box {
  padding: 40px;
  background: #fff;
  -webkit-box-shadow: -30px 30px 0px 0 rgba(0, 0, 0, 0.08);
  box-shadow: -30px 30px 0px 0 rgba(0, 0, 0, 0.08);
}

.box h3 {
  font-size: 14px;
  margin-bottom: 30px;
  text-align: center;
}

label.error {
  font-size: 12px;
  color: red;
}

#message {
  resize: vertical;
}

#form-message-warning,
#form-message-success {
  display: none;
}

#form-message-warning {
  color: #B90B0B;
}

#form-message-success {
  color: #55A44E;
  font-size: 18px;
  font-weight: bold;
}

.submitting {
  float: left;
  width: 100%;
  padding: 10px 0;
  display: none;
  font-weight: bold;
  font-size: 12px;
  color: #000;
}


ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none
}

/*=========================================================
	NAVIGATION
===========================================================*/

#nav {
  border-bottom: 1px solid #e8eaed;
}

#nav:after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: 0.2s all;
  transition: 0.2s all;
}

#nav.shadow-active:after {
  opacity: 1;
  visibility: visible;
}

#nav-top {
  text-align: center;
}

#nav-top>.container {
  position: relative;
}

#nav-bottom {
  border-top: 1px solid #e8eaed;
}


/*----------------------------*\
	logo
\*----------------------------*/

.nav-logo {
  position: absolute;
  left: 6%;
  transform: translateX(-50%);
  max-width: 300px;  /* Increase this */
}

.nav-logo .logo {
  display: inline-block;
  line-height: 70px;
  height: 70px;
  width: 100%;
}

.nav-logo .logo>img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .nav-logo {
    left: 10%;
    max-width: 180px;
  }

  .nav-logo .logo {
    height: 60px;
  }

  .nav-logo .logo>img {
    max-height: 60px;
  }
}


/*----------------------------*\
	nav aside
\*----------------------------*/


.nav-btns {
  float: right;
  padding: 10px 0px;
}

.nav-btns>button {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border: none;
  background: transparent;
}

#nav-aside {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #1b1c1e;
  max-width: 360px;
  width: 100%;
  padding: 80px 20px;
  overflow-y: scroll;
  z-index: 99;
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  -webkit-transition: 0.4s all cubic-bezier(.77, 0, .18, 1);
  transition: 0.4s all cubic-bezier(.77, 0, .18, 1);
}

#nav-aside.active {
  -webkit-transform: translateX(0%);
  -ms-transform: translateX(0%);
  transform: translateX(0%);
}

.nav-aside-menu li a {
  display: block;
  padding: 15px 0px;
  color: #fff;
  border-bottom: 1px solid #323335;
}

.nav-aside-menu li a:hover,
.nav-aside-menu li a:focus {
  color: #ee4266;
}

.nav-aside-menu li.has-dropdown>a {
  cursor: pointer;
}

.nav-aside-menu li.has-dropdown>a:after {
  font-family: 'FontAwesome';
  content: "\f0d7";
  float: right;
}

.nav-aside-menu li.has-dropdown>.dropdown {
  display: none;
  margin-left: 30px;
  border-left: 1px solid #323335;
}

.nav-aside-menu li.has-dropdown.active>.dropdown {
  display: block;
}

.nav-aside-menu li.has-dropdown>.dropdown a {
  padding: 15px;
}

.nav-close {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: transparent;
  border: none;
}

.nav-close span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.nav-close span:before,
.nav-close span:after {
  content: "";
  display: block;
  width: 30px;
  background-color: #fff;
  height: 2px;
}

.nav-close span:before {
  -webkit-transform: translateY(0px) rotate(-135deg);
  -ms-transform: translateY(0px) rotate(-135deg);
  transform: translateY(0px) rotate(-135deg);
}

.nav-close span:after {
  -webkit-transform: translateY(-2px) rotate(135deg);
  -ms-transform: translateY(-2px) rotate(135deg);
  transform: translateY(-2px) rotate(135deg);
}

/*=========================================================
	RESPONSIVE
===========================================================*/

@media only screen and (max-width: 991px) {
  #nav-bottom {
    display: none;
  }

  .nav-logo {
    position: static;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    left: 0;
    display: inline-block;
    float: left;
  }
}



/* ------------------------- */
/* ------- press center----- */
/* ------------------------- */

.pcenter-bg {
  background-image: url('../../assets/images/rotary/background-header/press_center-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcenter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 20px; */
  background-color: rgb(226, 226, 226);
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  height: auto;
  /* Make height dynamic for responsiveness */
}

.pcentercontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 60px;
}

.pcenterabout-section {
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in;
}

.pcenterabout-section h4 {
  font-size: 1.3rem;
}

.pcentercard-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1300px;
}

.pcentercard {
  width: 300px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pcentercard:hover {
  transform: scale(1.03);
}

.pcentercard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pcentercard-body {
  padding: 20px;
  text-align: center;
}

.pcentercard-body h4 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.pcentercard-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}

.pcentercard-body a {
  color: #00a0d2;
  text-decoration: none;
  font-weight: 500;
}

.press-center-title {
  font-size: 80px;
  color: white;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
  margin: 0;
  z-index: 2;
}

/* ========== Responsive Design ========== */

/* Tablet view (landscape phones & small tablets) */
@media (max-width: 991px) {
  .pcentercard {
    width: 45%;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .pcenter-wrapper {
    height: auto;
    padding-bottom: 10px;
  }

  .pcentercard {
    width: 90%;
  }

  .pcentercard img {
    display: none;
    /* Optional: hide image on small screens */
  }

  .press-center-title {
    font-size: 40px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .pcentercard {
    width: 100%;
  }
}


.pcentercontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px;
}

.pcenterrotary-timeline-section {
  padding-bottom: 10px;
  background-color: #ffffff;
}

.pcenterhleft-box {
  flex: 1;
  background-color: #012c49;
  color: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.pcenterhleft-box h5,
.pcenterhleft-box h2 {
  color: white;
}







.pcenter-bg {
  background-color: #004f86;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

.press-center-title {
  margin: 0;
  font-size: 36px;
}

.press-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px;
}

.feature-main,
.feature-side {
  position: relative;
}

.feature-main {
  flex: 2;
  overflow: hidden;
  cursor: pointer;
}

.feature-main img,
.feature-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.feature-main:hover img,
.feature-small:hover img {
  transform: scale(1.08);
}

.feature-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-small {
  aspect-ratio: 16 / 12;
  height: auto;
  overflow: hidden;
  position: relative;
}


.overlay h2,
.overlay h3 {
  margin: 0 0 10px;
  color: white;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-bar label {
  font-weight: 500;
  font-size: 15px;
  color: #004f86;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;

  place-items: center;
}

.img-size-feature {
  height: 590px;
}

.nfcard {
  background: #fff;
  padding: 20px;
  border-top: 4px solid #ccc;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform: scale(1);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.nfcard:hover {
  transform: scale(1.03);
  background: #f9f9f9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.nfcard .tag {
  font-weight: bold;
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.nfcard h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.nfcard .date {
  font-size: 14px;
  color: #666;
}

@media (max-width: 480px) {
  .articles {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .articles .nfcard {
    width: 100%;
    max-width: 340px;
  }

  .overlay h2,
  .overlay h3 {
    font-size: 12px;
    line-height: 1.2;
  }

  .overlay p,
  .overlay span {
    font-size: 11px;
    line-height: 1.3;
  }

  .overlay {
    padding: 8px;
  }

  .nfcard h4 {
    font-size: 14px;
    line-height: 1.3;
  }

  .nfcard .tag,
  .nfcard .date {
    font-size: 11px;
  }

  .press-center-title {
    font-size: 20px;
  }

  .feature-small .overlay h3 {
    font-size: 12px;
  }

  .feature-small .overlay p {
    font-size: 10px;
  }

  .feature-small {
    aspect-ratio: auto;
    height: 150px;
    /* Optional: limit height */
  }
}

@media (max-width: 768px) {
  .press-hero {
    flex-direction: column;
  }

  .feature-side {
    flex-direction: row;
    gap: 10px;
  }

  .feature-small {
    flex: 1;
  }

  .pcenter-bg {
    padding: 40px 10px;
  }

  .press-center-title {
    font-size: 28px;
  }

  .overlay h2,
  .overlay h3 {
    font-size: 14px;
    line-height: 1.3;
  }

  .overlay p,
  .overlay span {
    font-size: 12px;
  }

  .overlay {
    padding: 10px;
  }

  .nfcard h4 {
    font-size: 16px;
  }

  .nfcard .tag,
  .nfcard .date {
    font-size: 12px;
  }

  .press-center-title {
    font-size: 24px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination button {
  background: rgb(112, 112, 112);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.3s;
}

.pagination button:hover {
  background: #0073c1;
}

.pagination button.active {
  background: #0073c1;
  font-weight: bold;
}

.filter-bar input[type="checkbox"] {
  width: 15px;
  height: 15px;
  transform: scale(1.4);
  margin-right: 8px;
  cursor: pointer;
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
    /* Align with article cards */
  }

  .filter-bar label {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .filter-bar input[type="checkbox"] {
    transform: scale(1.3);
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }
}


/* Modernized Custom Navbar */

.navbar-custom {
  background-color: #f8f6f0;
  /* Light background */
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 90px;
}

.navbar-custom .navbar-collapse {
  background-color: #f8f6f0;
}

.navbar-custom .navbar-nav>li>a {
  color: rgb(0, 0, 0);
  /* Dark text */
  font-size: 15px;
  font-weight: 500;
  padding: 15px 20px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-nav>li>a:hover,
.navbar-custom .navbar-nav>li>a:focus {
  background-color: rgb(126, 127, 127);
  /* Gray hover */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.navbar-custom .navbar-brand {
  color: #ecf0f1;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
}

.navbar-custom .navbar-brand:hover {
  color: #3498db;
  /* Bright Blue */
}

.navbar-custom .navbar-toggle {
  border: none;
  background-color: transparent;
}

/* Darker icon-bars for visibility */
.navbar-custom .navbar-toggle .icon-bar {
  background-color: #333;
}

/* Dropdown Styles */
.dropdown-menu {
  background-color: rgb(69, 69, 72);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-menu>li>a {
  color: #ecf0f1;
  padding: 10px 20px;
}


.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
  background-color: #2980b9;
  color: #fff;
}

/* Active/Selected Link Styling */
.navbar-custom .active>a,
.navbar-custom .active>a:hover {
  background-color: #2980b9;
  color: #fff;
}

.navbar-brand {
  padding: 5px 5px;
  /* adjust spacing */
}

.navbar-brand img {
  max-height: 80px;
  /* default for desktop */
  width: auto;
  display: block;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav>li>a {
  line-height: 90px;
  /* Same as navbar height */
  padding-top: 0;
  padding-bottom: 0;
  height: 90px;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {


  .navbar-brand {
    font-size: 14px;
  }

  .navbar-brand img {
    max-height: 38px;
  }
}

@media (max-width: 767px) {
  .dropdown-menu>li>a {
    color: #000 !important;
    /* black for mobile */
  }

  .dropdown-menu>li>a:hover,
  .dropdown-menu>li>a:focus {
    background-color: #ddd;
    /* lighter hover background for visibility */
    color: #000 !important;
  }

  .navbar-brand img {
    max-height: 60px;
    margin-top: 13px;
    margin-left: 10px;
    /* smaller image on mobile */
  }

  .navbar-toggle {
    margin-top: 30px;
    /* match the brand image */
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .navbar-brand {
    font-size: 14px;
    display: flex;
    /* enable flexbox */
    align-items: center;
    /* vertical center */
    height: 90px;
    /* keep full navbar height */
  }

  .navbar-brand img {
    max-height: 38px;
    width: auto;
    display: block;
  }
}

@media (max-width: 500px) {
  .navbar-brand img {
    max-height: 45px;
    margin-top: 20px;
    margin-left: 10px;
    /* smaller image on mobile */
  }
}

.marginless{
margin-top: 0;
}

.darkblack {
  font-weight: bold;
  color: #000 !important;
}
