/* Basic Styles
================================================== */
.wrapper {
  overflow: hidden;
  position: relative;
}

html * {
  outline: 0 !important;
}

body {
  background: #fff;
  -webkit-font-smoothing: antialiased;
  /* Fix for webkit rendering */
  -webkit-text-size-adjust: 100%;
  height: 100%;
  font-family: "Lato", sans-serif;
  color: #666;
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0;
}

ul {
  margin: 0;
  padding: 1rem;
  list-style: none;
}

/* Typography
================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Permanent Marker", cursive;
  line-height: 1.35;
  margin: 4rem 0 2rem;
  text-transform: capitalize;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  font-weight: inherit;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.2rem;
}

strong {
  font-family: "Lato", sans-serif;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.fa {
  margin-right: 0.5rem;
}

/* Images
================================================== */
img {
  border-style: none;
}

/* Link
================================================== */
a {
  color: #b61416;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: #000;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

/* Input textarea select
================================================== */
input,
textarea,
select {
  font-size: 100%;
  font-family: "Lato", sans-serif;
  vertical-align: middle;
  color: #666;
  font-weight: 300;
}

textarea {
  resize: vertical;
}

/* Form
================================================== */
form,
fieldset {
  margin: 0;
  padding: 0;
  border-style: none;
}

::-moz-selection {
  background: #b61416;
  color: #fff;
}

::selection {
  background: #b61416;
  color: #fff;
}

.clear:after, .clear:before {
  content: " ";
  display: table;
}

.clear:after {
  clear: both;
}

.header {
  position: relative;
  z-index: 9999 !important;
}

.top-nav {
  background: linear-gradient(to right, #e51a24, #b61416); /* Gradient from lighter to darker red */
  padding: 0.8em 0;
}

.top_nav_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.top_nav_wrap .social {
  margin-right: 1em;
}

.top_nav_wrap .social a {
  width: 25px;
  display: block;
  line-height: 1;
}

.top_nav_wrap .social img {
  width: 100%;
}

.top_nav_wrap .top-link {
  color: #fff;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.top_nav_wrap .top-link a {
  color: #fff;
}

.logo {
  margin: 0;
  line-height: 0;
}

.navbar {
  min-height: 5em;
  background: rgba(206, 206, 206, 0.5);
  font-size: 1.2rem;
}

.navbar-light .navbar-nav .active > .nav-link {
  color: #000;
}

.navbar-light .navbar-nav .nav-link {
  padding-top: 0;
  color: #fff;
  padding-left: 1em;
  padding-right: 1em;
  text-transform: capitalize;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #000;
}

.dropdown-menu {
  right: 0;
  left: auto;
  font-size: 0.9rem;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: transparent;
  color: #b61416;
}

.navbar-toggler {
  background: #b61416;
  color: #fff !important;
}

.navbar-toggler .fa {
  margin: 0;
}

.fixed-nav {
  -webkit-box-shadow: 0 0 3px 0 #ddd;
  box-shadow: 0 0 3px 0 #ddd;
  border-bottom: 1px solid #ccc;
  font-weight: 400;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999 !important;
}

.fixed-nav .navbar-brand {
  width: 7em;
  background: transparent;
  padding: 0;
}

.fixed-nav .navbar-brand img {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.fixed-nav .navbar {
  background: #fff;
  font-size: 1.1rem;
  padding: 0.5em 1.5em;
  min-height: 3em;
}

.fixed-nav .nav-link {
  color: #000 !important;
}

.fixed-nav .active .nav-link {
  color: #b61416 !important;
}

.fixed-nav .navbar-nav {
  padding: 0;
  background: transparent;
}

.section {
  padding: 0.5em 0;
}

.mb-6 {
  margin-bottom: 5em;
}

.btn {
  border-radius: 2px;
}

.btn-sm {
  padding: .4rem 1rem;
}

.bg-black {
  background: #181818;
  color: #fff;
}

.text-dark {
  color: #000 !important;
}

.btn-black:hover {
  background-color: #000;
  border-color: #000;
}

.btn-dark {
  background-color: #222;
  border-color: #000;
  border-radius: 9px;
}

.btn-danger {
  background-color: #e51a24;
  border-color: #e51a24;
  border-radius: 9px;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: #e51a24;
  border-color: #e51a24;
}

.btn-outline-danger {
  color: #e51a24;
  border-color: #e51a24;
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
  background-color: #d6181a;
  border-color: #d6181a;
}

.title {
  text-transform: uppercase;
  text-align: center;
  font-family: "Permanent Marker", cursive;
  position: relative;
  color: #000;
}

.titlepp {
  text-transform: uppercase;
  text-align: center;
  font-family: "Playpen Sans", cursive;
  position: relative;
  color: #000;
  font-weight:bold;
}

.titlew {
  padding-top: 1em;
  text-transform: uppercase;
  text-align: center;
  font-family: "Permanent Marker", cursive;
  position: relative;
  color: #fff;
}

.title:after {
  position: absolute;
  width: 80%;
  height: 2px;
  background: #333;
  content: '';
  bottom: 0;
  left: -3px;
  right: -3px;
  margin: -0.8rem auto;
}

.title span {
  font-weight: 400;
}

.title-border {
  text-align: left;
  text-transform: none;
  line-height: 1.15;
  font-size: 1.6rem;
}

.title-border:after {
  left: 0;
  margin: 0;
  bottom: -12px;
}

.columns {
  -webkit-column-count: 3;
  column-count: 3;
}

.overlay, .overlay1 {
  background: rgba(47, 47, 47, 0.28);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay1 {
  background: rgba(47, 47, 47, 0.28);
}

.bg1 {
  background: #b61416;
  color: #fff;
}

.hide {
  display: none !important;
}

/* Archive Event Modal Styling
================================================== */
.modal {
  padding-top: 175px !important; /* Push modal down below navigation */
  z-index: 9998; /* Below navigation but above content */
}

.modal-dialog {
  margin-top: 2em;
  margin-bottom: 2em;
}

.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  position: relative;
  padding: 2em;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  font-weight: 300;
  color: #000;
  opacity: 0.7;
  z-index: 10;
  background: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content .close:hover {
  opacity: 1;
  background: #f8f9fa;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1em;
}

.modal-body .heading {
  font-family: "Permanent Marker", cursive;
  font-size: 2rem;
  margin-bottom: 1em;
  color: #000;
}

.modal-body .blog_img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5em;
  border-radius: 10px;
}

.modal-body .group_wrap {
  margin-bottom: 1.5em;
}

.modal-body .group_wrap span {
  color: #666;
  font-size: 0.95rem;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

/* Update sidebar archive links to show date */
.more_blogs_wrap li a span {
  display: block;
  font-size: 0.7rem;
  color: #c3bdbd;
  margin-top: 0.3em;
  font-weight: normal;
}

.list-wrap li {
  position: relative;
  padding-left: 1.5em;
}

.list-wrap .fa {
  position: absolute;
  left: 0;
  top: 7px;
  color: #b61416;
}

.highlight {
  color: #b61416;
}

label {
  font-size: 1.05rem;
  line-height: 1.5;
}

.form-check {
  line-height: 1;
  margin: 0.8em 0;
}

.text-sm {
  font-size: 1.05rem;
  line-height: 1.5;
}

.banner-wrap {
  position: relative;
  color: #fff;
  margin-top: -7em;
}

.carousel-item {
  padding: 8.5em 0;
  height: 76vh;
}

.carousel-item img {
  height: 100vh;
  -o-object-fit: cover;
  object-fit: cover;
}

.carousel-inner {
  background: rgba(161, 13, 15);
  text-align: center;
  font-weight: 600;
  font-size: 1.5rem;
}

.carousel-inner h1 {
  text-transform: capitalize;
  margin: 0.3em 0;
  font-size: 2.5rem;
}

.carousel-inner h1 span {
  text-shadow: 0 0 3px #333;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.carousel-inner .btn {
  font-size: 1.5rem;
  padding: 1em 1em;
}

.controler {
  opacity: 0;
}

.controler .holder {
  background: #000;
  width: 45px;
  height: 45px;
  padding: 0.8em;
  border-radius: 100%;
}

.carousel-indicators .active {
  background-color: #ed5c5e;
}

.carousel-indicators {
  z-index: 1;
}

/* 1) Container: column flex, push content to bottom-left */
.inner-banner.banner-wrap .container {
  display: flex;
  flex-direction: column;         /* stack children vertically */
  justify-content: center;      /* move them down to the bottom */
  align-items: flex-start;        /* keep them left-aligned */
  padding: 0 2rem;       /* control spacing from edges */
  height: 100%;                   /* fill the banner height */
  text-align: left;
}

/* 2) Banner-text block: no extra padding/margin */
.banner-text {
  margin: 0;
  padding: 0;
  max-width: 700px;               /* optional for line length */
}

/* 3) Tighten up the three lines */
.banner-text h2.banner-small,
.banner-text h1.banner-marker {
  margin: 0.1em 0 !important;
  line-height: 1.1;
}

/* 4) Use Playpen Sans for the small lines */
.banner-text h2.banner-small {
  font-family: 'Playpen Sans', cursive !important;
  font-size: clamp(1.25rem, 4vw, 2rem);
}

/* 5) Permanent Marker for the big line */
.banner-text h1.banner-marker {
  font-family: 'Permanent Marker', cursive !important;
  font-size: clamp(2rem, 10vw, 3.25rem); 
}

/* 6) Ensure overlay still sits behind */
.inner-banner.banner-wrap .overlay {
  z-index: 1;
  pointer-events: none;
}
.inner-banner.banner-wrap .container,
.inner-banner.banner-wrap .banner-text {
  position: relative;
  z-index: 2;
}


.footer-wrap {
  font-family: "Lato", sans-serif;
  padding-top: 3em;
  color: #fff;
  font-weight: 400;
  background: linear-gradient(to right, #e51a24, #b61416); /* Gradient from lighter to darker red */
  -webkit-box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 0px 3px 0 rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
}

.footer-wrap h4, h5, h6 {
font-family: "Playpen Sans", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-wrap a {
  color: #fff;
}

.footer-wrap a:focus, .footer-wrap a:hover {
  color: #f5a1a2;
}

.footer-wrap .address p {
  position: relative;
  padding-left: 30px;
}

.footer-wrap .address .fa {
  position: absolute;
  top: 6px;
  left: 0;
}

.footer-wrap .address a {
  color: inherit;
}

.footer-wrap .address a:hover {
  color: #b61416;
}

.footer-wrap .form-control {
  font-size: 0.85rem;
}

.fservices a {
  color: inherit;
}

.fservices a:hover {
  color: #b61416;
}

.footer-top .infos > li:first-child {
  padding-top: 0;
}

.footer-btm {
  font-size: 0.88rem;
  padding: 1em 0;
  background: #b61416;
}

.footer-btm p {
  margin: 0;
}

.footer-btm a:hover {
  color: #000;
}

.social {
  font-size: 1.3rem;
}

.social li {
  display: inline-block;
  vertical-align: top;
  margin: 0.3em 0.3em;
}

.social li:first-child {
  margin-left: 0;
}

div.ctct-form-embed div.ctct-form-defaults h2.ctct-form-header {
  font-size: 1.4rem !important;
}

div.ctct-form-embed div.ctct-form-defaults p.ctct-form-text {
  font-size: 0.9rem !important;
  margin-bottom: 1em !important;
}

div.ctct-form-embed div.ctct-form-defaults * {
  font-size: 13px !important;
}

div.ctct-form-embed form.ctct-form-custom input.ctct-form-element {
  height: 38px !important;
}

div.ctct-form-embed form.ctct-form-custom div.ctct-form-field {
  margin-bottom: 1em !important;
}

.ctct-form-embed.form_0 .ctct-form-custom .ctct-form-button {
  background-color: #333 !important;
  border-color: #333 !important;
}

.ctct-form-embed.form_0 .ctct-form-custom .ctct-form-button:hover {
  background-color: #f73f41 !important;
  border-color: #f73f41 !important;
}

/* bulletin start */
.bulletin_wrap {
  padding: 1.5em;
  background: linear-gradient(to right, #e51a24, #b61416);
  color: #fff;
  font-size: 1.1rem;
}
.bulletin_wrap_ec {
  padding: 1.5em;
  background: #f77737;
  color: #fff;
  font-size: 1.1rem;
}
.bulletin_wrap_cy {
  padding: 1.5em;
  background: #FCAF45;
  color: #fff;
  font-size: 1.1rem;
}
.bulletin_wrap_ad {
  padding: 1.5em;
  background: #5851d8;
  color: #fff;
  font-size: 1.1rem;
}
.bulletin_wrap_lib {
  padding: 1.5em;
  background: #833ab4;
  color: #fff;
  font-size: 1.1rem;
}

/* bulletin end */
/* welcome wrap start*/
.welcome_wrap .title {
  text-align: left;
  font-family: "Lato", sans-serif;
  font-weight: bold;
}

.welcome_wrap .title:after {
  display: none;
}

.welcome_wrap1 .title {
  text-align: left;
  font-family: "Playpen Sans", sans-serif;
  font-weight: bold;
}

.welcome_wrap1 .title:after {
  display: none;
}

/* welcome wrap end*/
/* cta wrap start */
/* == CTA WRAP TIGHTER LAYOUT == */
.cta-wrap {
  /* shorten the vertical space around the whole block */
  padding: 1rem 0 !important;   
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  background-attachment: fixed !important;  /* keep your parallax */
}

/* shrink the gap inside the inner .cta */
.cta-wrap .cta {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* collapse margins and control line-height on all titles in here */
.cta-wrap .cta .titlepp {
  margin: 0.2em 0;      /* very small top/bottom margins */
  line-height: 1.2;     /* tighter lines */
  color: #fff;          /* reinforce white text */
}
.cta-wrap .cta h1.titlepp,
.section .heading-wrap h1.titlepp {
  font-family: 'Permanent Marker', cursive;
}
/* if you have inline pt-5 pb-5, override them too */
.cta-wrap .cta.pt-5 { padding-top: 1rem !important; }
.cta-wrap .cta.pb-5 { padding-bottom: 1rem !important; }

/* tweak your button spacing so it sits snug */
.cta-wrap .btn {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* responsive: remove fixed bg on mobile for performance & consistency */
@media (max-width: 768px) {
  .cta-wrap { background-attachment: scroll !important; }
  .cta-wrap .titlepp { font-size: 1.1em !important; }
  .cta-wrap .cta .btn { padding: 0.75rem 1.5rem; }
}


.cta-wrap:after {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  content: '';
  width: 100%;
  height: 100%;
}

.cta-wrap .container {
  position: relative;
  z-index: 1;
}

.cta-wrap.no-after {
  color: #000;
}

.cta-wrap.no-after:after {
  background-color: transparent;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  width: 80%;
  margin: 0 auto;
  left: -1px;
  right: -1px;
}

/* cta wrap end */
/* general section start */
.general-section img {
  height: 40rem;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center 30%;
  object-position: center 30%;
  width: 100%;
}

.link-wrap {
  padding: 1em;
  text-transform: uppercase;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.link-wrap a {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.5em 1.3em;
  margin: 0.3em;
  min-width: 15rem;
  text-align: center;
  -webkit-transition: all 0.4s;
  -o-transition: all 0.4s;
  transition: all 0.4s;
}

.link-wrap a:hover {
  background: #fff;
  color: #000;
}

/* general section end */
/* early childhood section start */
.section.early_childhood_wrap {
  background-color: #f8f8f8;
}

.section.early_childhood_wrap .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section.early_childhood_wrap .card {
  background-color: #fff;      /* keep the card white */
  box-shadow: none;            /* remove the outer glow */
  border: none;                /* optional: remove any border */
  border-radius: 8px;          /* optional: soften the corners */
  padding: 2rem;               /* give the “card” some inner padding */
}

.section.early_childhood_wrap .row {
  align-items: stretch;  /* instead of center */
}

.section.early_childhood_wrap .eimage {
  display: flex;
}

.section.early_childhood_wrap .eimage img {
  flex: 1 1 auto;
  width: 100%;
  object-fit: cover;     /* cover the full column */
}

.section.early_childhood_wrap .col-md-6 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section.early_childhood_wrap .card .card-body {
  flex: 1 0 auto;
}

.section.early_childhood_wrap .titlepp {
  margin-top: 0;
}
/* early childhood section end */
/* children youth and family start */
.section.children_wrap {
  background-color: #ffffff;
}
.section.children_wrap .heading-wrap {
  background-color: #ffffff;    /* keep the panel white */
  border: 1px solid #e0e0e0;    /* light gray outline */
  border-radius: 8px;           /* match your existing radius */
  padding: 2rem;                /* give it some breathing room */
}
.section.children_wrap .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.section.children_wrap .card {
  background-color: #fff;      /* keep the card white */
  box-shadow: none;            /* remove the outer glow */
  border: none;                /* optional: remove any border */
  border-radius: 8px;          /* optional: soften the corners */
  padding: 2rem;               /* give the “card” some inner padding */
}
.section.children_wrap .row {
  align-items: stretch;  /* instead of center */
}
.section.children_wrap .eimage {
  display: flex;
}
.section.children_wrap.eimage img {
  flex: 1 1 auto;
  width: 100%;
  object-fit: cover;     /* cover the full column */
}
.section.children_wrap .col-md-6 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section.children_wrap.card .card-body {
  flex: 1 0 auto;
}
.section.children_wrap .titlepp {
  margin-top: 0;
}
/* children youth and family end */
/* adult development start */
.section.adult_development_wrap {
  background-color: #f8f8f8;
}
.section.adult_development_wrap .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.section.adult_development_wrap .card {
  background-color: #fff;      /* keep the card white */
  box-shadow: none;            /* remove the outer glow */
  border: none;                /* optional: remove any border */
  border-radius: 8px;          /* optional: soften the corners */
  padding: 2rem;               /* give the “card” some inner padding */
}
.section.adult_development_wrap .row {
  align-items: stretch;  /* instead of center */
}
.section.adult_development_wrap .eimage {
  display: flex;
}
.section.adult_development_wrap .eimage img {
  flex: 1 1 auto;
  width: 100%;
  object-fit: cover;     /* cover the full column */
}
.section.adult_development_wrap .col-md-6 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section.adult_development_wrap .card .card-body {
  flex: 1 0 auto;
}
.section.adult_development_wrap .titlepp {
  margin-top: 0;
}
/* adult development end */
/* children library start */
.section.childrens_library_wrap {
  background-color: #ffffff;
}
.section.childrens_library_wrap .heading-wrap {
  background-color: #ffffff;    /* keep the panel white */
  border: 1px solid #e0e0e0;    /* light gray outline */
  border-radius: 8px;           /* match your existing radius */
  padding: 2rem;                /* give it some breathing room */
}
.section.childrens_library_wrap .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.section.childrens_library_wrap .card {
  background-color: #fff;      /* keep the card white */
  box-shadow: none;            /* remove the outer glow */
  border: none;                /* optional: remove any border */
  border-radius: 8px;          /* optional: soften the corners */
  padding: 2rem;               /* give the “card” some inner padding */
}
.section.childrens_library_wrap .row {
  align-items: stretch;  /* instead of center */
}
.section.childrens_library_wrap .eimage {
  display: flex;
}
.section.childrens_library_wrap.eimage img {
  flex: 1 1 auto;
  width: 100%;
  object-fit: cover;     /* cover the full column */
}
.section.childrens_library_wrap .col-md-6 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.section.childrens_library_wrap.card .card-body {
  flex: 1 0 auto;
}
.section.childrens_library_wrap .titlepp {
  margin-top: 0;
}

/* children library end */
/* many faces start */
.many_face_fig {
  font-size: 1.05rem;
}

.many_face_fig .heading {
  color: #000;
  font-family: "Playpen Sans", cursive;
  font-weight: 700;
}
.many_faces_wrap .many_face_fig {
  overflow: hidden;       /* ensure child img is clipped */
  border-radius: 10px;    
}

.many_faces_wrap .many_face_fig img {
  display: block;         /* remove any inline‐image gaps */
  width: 100%;            /* make sure it fills the figure */
  height: auto;
  border-radius: 10px;    /* soft corners on the image itself */
}
/* 1) Make each column a flex container */
.three-wrap .col-md-6,
.three-wrap .col-lg-4 {
  display: flex;
  flex-direction: column;
}

/* 2) Stretch the figure to fill the column */
.three-wrap .many_face_fig {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  overflow: hidden; /* keeps your 10px radius from earlier */
}

/* 3) Stretch the caption and stack its contents */
.three-wrap .many_face_fig figcaption {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

/* 4) Push the button to the bottom */
.three-wrap .many_face_fig figcaption .btn {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;         /* pushes it down in the flex layout */
}

/* many faces end */
/*.testimonial{
	background-size: cover;
	position: relative;
	.overlay{
		position: absolute;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.55);
		top: 0;
		left: 0;
	}
	.container{
		position: relative;
	}
	.title{
		color: $white;
	}
}
.testimonial-txt-wrap{
	margin-bottom: 10px;
	
	blockquote{
		margin: 0;
		border: none;
		padding: 1.8em 1.8em 2em 6.5em;
		background: rgba(42, 147, 189, 0.68);
		color: #eceff3;
		&:before{
			font-family: FontAwesome;
			content: "\f10d";
			background-color: $white;
			opacity: 0.75;
			color: #111;
			padding-bottom: 10px;
			font-size: 20px;
			display: inline-block;
			padding: 10px 20px 10px 20px;
			font-style: normal;
			position: absolute;
			left: 15px;
		}
	}
	.text-dark{ font-weight: 500; }
}
.owl-carousel {
	.owl-dots{
		display: block;
		text-align: center;
	}
	.owl-dot{
		display: inline-block;
		margin: 0 0.3em;
		span{
			width: 5px;
			height: 5px;
			background: #000;
			display: block;
		}
	}
	.active{
		span{
			background: #fff;
		}
	}
}*/
.service-wrap .card {
  height: 100%;
  -webkit-box-shadow: 0 0 30px 0 #fff;
  box-shadow: 0 0 30px 0 #fff;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.service-wrap .card:hover {
  -webkit-box-shadow: 0 0 30px 0 #ccc;
  box-shadow: 0 0 30px 0 #ccc;
}

.service-wrap .card-body {
  font-size: 0.95rem;
}

.service-wrap .card-body p {
  font-weight: 500;
  color: #6b6b6b;
}

.service-wrap .card-image {
  width: 6em;
  height: 6em;
  -o-object-fit: cover;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 100%;
}

.service-wrap .card-profile-image {
  width: 100%;
  max-height: 312px;
}

.service-wrap .highlight p {
  color: #fff;
}

.service-wrap .btn-wrap a {
  margin: 0 0 0.5em;
}

.yes_form {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  opacity: 0;
  -webkit-transform: translateY(-180%);
  -ms-transform: translateY(-180%);
  transform: translateY(-180%);
  position: absolute;
  z-index: -10;
}

.yes_form.active {
  opacity: 1;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  z-index: 1;
  position: relative;
}

.contact_form_wrap {
  position: relative;
  color: #fff;
}

.contact_form_wrap .title {
  color: #fff;
  margin-bottom: 2.5em;
}

.contact_form_wrap .title:after {
  background: #fff;
}

.contact_form_wrap label {
  color: #fff;
}

.contact_form_wrap .form-control {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}

.contact_form_wrap .form-control:focus, .contact_form_wrap .form-control:active {
  background: rgba(0, 0, 0, 0.1);
}

.contact_form_wrap .form-control {
  padding-top: 1rem;
}

.contact_form_wrap .form-group {
  position: relative;
}

.contact_form_wrap .form-group label {
  position: absolute;
  top: 25px;
  left: 16px;
  font-size: 13px;
  pointer-events: none;
  z-index: 9;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}

.contact_form_wrap .form-group label.focus {
  top: 3px;
  -webkit-transform: scale(0.8) translateY(0);
  -ms-transform: scale(0.8) translateY(0);
  transform: scale(0.8) translateY(0);
}

.contact_form_wrap .overlay, .contact_form_wrap .overlay1 {
  background: rgba(16, 16, 16, 0.75);
}

.contact-infos .address p {
  position: relative;
  padding-left: 30px;
}

.contact-infos .address .fa {
  position: absolute;
  top: 6px;
  left: 0;
}

.map-wrap {
  overflow: hidden;
}

.map-wrap img {
  -webkit-transform: scale(1.3);
  -ms-transform: scale(1.3);
  transform: scale(1.3);
}

/* secion_box-wrap start*/
.secion_box-wrap .box {
  margin: 1em 0;
}

.secion_box-wrap .box:hover .box-hold {
  -webkit-transform: translateY(-20px);
  -ms-transform: translateY(-20px);
  transform: translateY(-20px);
}

.secion_box-wrap .box-hold {
  border-top: 6px solid #b61416;
  -webkit-box-shadow: 0 0 15px 0 rgba(208, 208, 208, 0.72);
  box-shadow: 0 0 15px 0 rgba(208, 208, 208, 0.72);
  padding: 2.5em 1.2em;
  border-radius: 2px 2px 60px 2px;
  text-align: center;
  font-weight: 300;
  font-size: 1rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.secion_box-wrap .box-hold strong {
  color: #b61416;
}

.secion_box-wrap img {
  width: 7rem;
  height: 7rem;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 0 auto 1em;
  display: block;
}

.secion_box-wrap .heading {
  font-size: 1.4rem;
  margin: 0 0 0.5em;
  color: #222;
}

/* secion_box-wrap end*/
/* publication start */
.publication_box-wrap img {
  width: 100%;
  height: 30rem;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  overflow: hidden;
}

.publication_box-wrap a {
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.publication_box-wrap .box a img {
  display: block;
  width: 100%;
  height: 30rem;           /* preserve your existing height */
  object-fit: cover;       /* preserve your existing cover behavior */
  border-radius: 10px;     /* extra safety for the img itself */
}

.publication_box-wrap a:hover img {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.links-holder {
  font-size: 1.08rem;
}

/* publication end */
/* team wrap start */
.team_wrap {
  font-size: 1rem;
}

.team_wrap .card-profile-image {
  width: 100%;
  max-height: 20rem;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center 30%;
  object-position: center 30%;
}

.team_wrap a {
  word-break: break-word;
}

.team_wrap .card-title {
  color: #b61416;
}

.team_wrap .card-title,
.team_wrap p {
  margin-bottom: 0.3em;
}

/* team wrap end */
/* sponsor start */
.sponsor_box-wrap img {
  width: 9rem;
  height: 12rem;
  -o-object-fit: contain;
  object-fit: contain;
  margin: 0 auto 1em;
  display: block;
}

/* sponsor end */
/* time start */
.time-wrap {
  background: #eee;
  padding: 1.5em;
  font-size: 1rem;
}

.time-wrap p {
  margin: 0 0 0.3em;
}

/* time end */
/* calender start */
.calender blockquote {
  text-align: right;
}

/* calender end */
/* children library start */
.childrens_library-card .card-body {
  padding: 0.7em;
}

.childrens_library-card img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  margin: 0;
  height: 18rem;
}

.indent {
  display: block;
  padding-left: 2em;
}

/* children library end */
/* give start */
.benefit_box {
  border: 1px solid #000;
}

.benefit_box_hold {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.benefit_box_hold .figure {
  -webkit-box-flex: 50%;
  -ms-flex: 50%;
  flex: 50%;
  width: 50%;
}

.benefit_box_hold img {
  width: 100%;
  height: 14rem;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center top;
  object-position: center top;
}

.benefit_content {
  -webkit-box-flex: 50%;
  -ms-flex: 50%;
  flex: 50%;
  width: 50%;
  padding: 0.3em 1em;
  color: #000;
}

.benefit_content .big-text {
  font-size: 3em;
  line-height: 1;
  margin-top: 0.8em;
  word-break: break-word;
}

/* give end */
/* gallery start */
.gallery img {
  height: 30em;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center 30%;
  object-position: center 30%;
}

.gallery .owl-nav {
  position: absolute;
  top: 25px;
  right: 0;
  width: 10rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.gallery .owl-nav .owl-next,
.gallery .owl-nav .owl-prev {
  color: #fff;
  background: #222;
  padding: 0.2em 1em;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0.3em;
}

.gallery .owl-nav .fa {
  margin: 0;
}

.gallery:hover .owl-nav {
  opacity: 1;
}

/* gallery end */
.TopButton {
  background: #b61416;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  border-radius: 100%;
  bottom: 5rem;
  -webkit-box-shadow: 0 0 5px 0 rgba(48, 114, 172, 0.3);
  -moz-box-shadow: 0 0 5px 0 rgba(48, 114, 172, 0.3);
  -ms-box-shadow: 0 0 5px 0 rgba(48, 114, 172, 0.3);
  -o-box-shadow: 0 0 5px 0 rgba(48, 114, 172, 0.3);
  box-shadow: 0 0 5px 0 rgba(48, 114, 172, 0.3);
  color: #fff;
  display: none;
  height: 45px;
  padding: 10px;
  position: fixed;
  right: 1rem;
  text-align: center;
  text-decoration: none;
  width: 45px;
  z-index: 999;
}

.TopButton:hover {
  color: #fff;
}

.TopButton i {
  font-size: 1.8rem;
  line-height: 0.75;
  margin: 0;
}

.calendar-wrapper {
    width: 75%;
    margin: 0 auto;
    min-height: 70vh; /* ⬅ minimum 70% of the viewport height */
    padding-bottom: 1em;
}

/* Reduce font and spacing on mobile */
@media (max-width: 768px) {
  .fc .fc-toolbar-title {
    font-size: 16px;
    white-space: normal;
  }

  .fc .fc-button {
    padding: 0.3em 0.5em;
    font-size: 12px;
  }

  .fc-header-toolbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .fc .fc-toolbar-chunk {
    margin-bottom: 0.5rem;
  }
}

.news .news_events_wrapper .row {
		gap: 40px 25px;
		flex-wrap: wrap
	}

	.news_sec {
		flex-basis: 29.74%;
		width: 29.74%;
		margin:1em;
		border: 1px solid rgb(125 125 125 / .16);
		box-shadow: 0 1px 4px #7d7d7d1c;
		border-radius: 10px;
		text-align: center;
		transition: width .1s cubic-bezier(.4, 0, .2, 1);
		padding-bottom: 3.5rem;
		position: relative
	}

	.news_sec figure {
		margin: 0.5em
	}

	.news_sec figure a {
		display: block;
		overflow: hidden;
		width: 100%;
		border-radius: 10px;
	}

	.news_sec .blog_img {
		transition: transform .5s cubic-bezier(0, 0, .2, 1);
		transform: scale(1.25);
		height: 100%;
		max-height: 100%;
		object-fit: cover
	}

	.news_sec .blog_img:hover {
		transform: scale(1.5)
	}

	.new_sec_content {
		padding: 1.125rem
	}

	.new_sec_content h2 {
		font-size: 1.28125rem;
		letter-spacing: .02em;
		margin-bottom: 0
	}

	.new_sec_content h2 a {
		color: #000
	}

	.new_sec_para {
		font-size: 15px;
		height: 250px;
		overflow: hidden
	}
	.new_sec_content .btn-wrap{
	    position: absolute;
        bottom: 15px;
        left: -1px;
        right: -1px;
        margin: auto;
        padding: 0 1rem;
	}
	.news_events_holder{gap: 40px 25px;}
    .news_events_holder .float__btn{
    border: 1px solid rgb(125 125 125 / .16);
    box-shadow: 0 1px 4px #7d7d7d1c;
}
    .news__content{
    padding: 0 1.125rem;
    font-size: 15px;
}
    .news__content .heading{
    font-weight: normal;
    margin-bottom: 1.2rem;
}
    .news__content .float--btn{
    left: 1.125rem;
}
/* Base: let the row actually flex & wrap */
.news_events_wrapper .row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 25px; /* keep your existing gap */
}

/* Mobile-first: full-width cards */
.news_sec {
  flex: 1 1 100%;
  width: 100%;
  margin: 5px;                 /* gap handles spacing */
}

/* If the absolute-positioned button overlaps on narrow screens,
   make it flow normally on mobile */
@media (max-width: 767.98px) {
  .new_sec_content .btn-wrap {
    position: static;
    margin-top: 1rem;
    padding: 0;
  }
  .new_sec_para {
    height: auto; /* let text expand on mobile */
  }
}

/* Tablet: 2-up if you want (optional) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .news_sec {
    flex: 1 1 calc(50% - 25px);
    max-width: calc(50% - 25px);
  }
}

/* Desktop: 3-up */
@media (min-width: 992px) {
  .news_sec {
    flex: 1 1 calc(33.333% - 25px);
    max-width: calc(33.333% - 25px);
  }
}


/* Mobile-first: full width */
.content-wrap .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 2%;
  padding-right: 2%;
  margin: 0 auto;
}

/* Desktop+: optionally narrow to 75% */
@media (min-width: 992px) {
  .content-wrap .container {
    width: 75% !important;
    max-width: none !important;
  }
}
/*news & events end*/

/* --- Upcoming Events Section (replacing plainness) --- */
.upcoming-events-section {
    background-color: #f8f8f8; /* Very light grey */
    padding: 4em 0; /* Generous vertical padding */
}

.upcoming-events-section .container {
    /* Ensures content is centered and has appropriate max-width */
    max-width: 1200px; /* Example max-width */
}

/* Left Column: Programs & Events Title */
.upcoming-events-section .section-title {
    font-family: "Permanent Marker", cursive; /* Existing font */
    color: #000;
    font-size: 2.25rem; /* Larger, more impactful */
    line-height: 1.1;
    margin-top: 0; /* Remove default h2 margin */
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.upcoming-events-section .section-subtitle {
    font-family: "Lato", sans-serif;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2em;
}

.upcoming-events-section .view-full-calendar-link {
    display: flex; /* Align icon and text */
    align-items: center;
    color: #000;
    font-family: "Lato", sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.upcoming-events-section .view-full-calendar-link:hover {
    color: #707070;
}

.upcoming-events-section .arrow-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #707070;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.upcoming-events-section .view-full-calendar-link:hover .arrow-circle {
    background-color: #e51a24; /* Change color on hover */
}

/* --- Event Cards Grid (Updated for no images, red gradient, shorter height) --- */
.event-card {
    /* Full card gradient background */
    background: linear-gradient(to bottom right, #e51a24, #b61416); /* Red gradient */
    color: #fff; /* White text for contrast on red background */
    border: none; /* Remove border as gradient acts as background */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    border-radius: 10px; /* Rounded corners, similar to CTA */
    overflow: hidden;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 250px; /* Significantly reduced fixed height to make cards shorter */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content vertically */
    position: relative; /* For date overlay positioning */
}

.event-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Stronger lift on hover */
    transform: translateY(-8px); /* More pronounced lift effect */
}

/* Remove image-related styling as there are no images */
.event-card-image-wrapper {
    display: none; /* Hide the image wrapper completely */
}

/* Date Overlay (Adjusted for placement on a card without an image) */
.event-date-overlay {
    position: absolute; /* Position relative to the .event-card */
    top: 15px;
    right: 15px; /* Moved to top right corner as seen in image_1930b3.png */
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white background */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: "Lato", sans-serif;
    font-weight: bold;
    font-size: 1.0rem;
    text-align: center;
    line-height: 1.2;
    box-shadow: none; /* Removed shadow, relying on card's shadow */
    z-index: 2; /* Ensure it's above content if there's overlap */
}

.event-date-overlay span {
    display: block;
    font-size: 0.8em;
}

.event-card-content {
    padding: 1.5em; /* Adjusted padding to fill the shorter card better */
    flex-grow: 1; /* Allow content to take remaining height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out title, description, and link */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* Subtle text shadow for readability */
}

.event-card-content h3 {
    font-size: 1.5rem; /* Slightly larger title for impact */
    margin: 0 0 0.5em; /* Adjusted margin */
    line-height: 1.3;
    color: #fff; /* Ensure title is white on red background */
}

.event-card-content p {
    font-size: 0.95rem; /* Adjusted font size */
    margin-bottom: 0.5em; /* Adjusted margin */
    line-height: 1.5; /* Good line height for readability */
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for main text */
}

.event-card-content .event-location {
    font-size: 0.9rem; /* Adjusted font size for location */
    font-style: normal; /* Remove italic as per image_1930b3.png */
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white for location */
}

.event-card-link-text {
    margin-top: auto; /* Pushes the "Learn More" link to the bottom */
    padding-top: 0.8em; /* Add more padding above the link */
    font-size: 1rem; /* Slightly larger font for "Learn More" */
    color: #fff; /* White link text */
    font-weight: bold; /* Make it bold */
}

.event-card-link-text .arrow {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.event-card:hover .event-card-link-text .arrow {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .event-card {
        height: 280px; /* Adjust height for medium screens */
    }
    .event-card-content h3 {
        font-size: 1.3rem;
    }
    .event-card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .event-card {
        height: auto; /* Allow height to adjust on mobile */
        min-height: 260px; /* Set a minimum height */
    }
    .event-card-content {
        padding: 1em; /* Adjust padding for small screens */
    }
    .event-card-content h3 {
        font-size: 1.2rem;
    }
    .event-card-content p {
        font-size: 0.85rem;
    }
    .event-date-overlay {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}
/* --- "But wait, THERE'S MORE" CTA Section --- */
.more-cta-section {
    /* Original background-color removed, replaced with gradient */
    background: linear-gradient(to right, #e51a24, #b61416); /* Gradient from lighter to darker red */
    color: #fff;
    padding: 2.5em 0; /* Reduced padding to make it shorter */
    text-align: center;

    border-radius: 10px; /* Optional: Slightly rounded corners for a softer look */
    overflow: hidden; /* Ensures gradient and content stay within rounded corners */
    position: relative; /* For potential overlay effects or precise control */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow to make it pop */
}

.more-cta-section .more-cta-title {
    font-family: "Permanent Marker", cursive; /* From your existing CSS */
    font-size: 2.8rem; /* Slightly reduced font size to fit shorter height */
    margin-top: 0;
    margin-bottom: 0.8em; /* Adjusted margin */
    color: #fff;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Add subtle text shadow for better contrast on gradient */
}

.more-cta-section .more-cta-button {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white for button on gradient */
    border: 2px solid #fff; /* White border */
    color: #fff;
    padding: 0.8em 2em; /* Adjusted padding */
    font-size: 1.1rem; /* Slightly smaller font for button */
    font-weight: bold;
    border-radius: 9px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.more-cta-section .more-cta-button:hover,
.more-cta-section .more-cta-button:focus,
.more-cta-section .more-cta-button:active,
.more-cta-section .more-cta-button.active {
    background-color: #fff; /* Solid white */
    color: #e51a24;        /* Brand red text */
    border-color: #fff;    /* White border */
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .more-cta-section .more-cta-title {
        font-size: 2.2rem; /* Further reduce on smaller screens */
    }
}

@media (max-width: 767.98px) {
    .more-cta-section {
        padding: 2em 1em; /* Further reduce padding */
        border-radius: 5px; /* Less rounded on smaller screens */
    }
    .more-cta-section .more-cta-title {
        font-size: 1.8rem;
    }
    .more-cta-section .more-cta-button {
        padding: 0.7em 1.2em;
        font-size: 0.95rem;
    }
}

/* --- Welcome Section Improvements (from previous suggestions) --- */
.welcome-title {
    font-family: "Permanent Marker", cursive;
    font-size: 2.8rem; /* Make it impactful */
    margin-bottom: 1.5em;
    color: #000;
    text-transform: uppercase;
}

.welcome-content-container {
    /* flexbox properties already applied in HTML via Bootstrap classes */
   /* gap: 40px; /* Space between text and video columns */
}

.welcome-text {
    font-size: 1.1rem; /* Slightly larger body text */
    line-height: 1.7; /* Improve readability */
    color: #444; /* Slightly darker text for readability */
}

.welcome-text p {
    margin-bottom: 1.5em; /* Space between paragraphs */
}

.rounded-video {
    border-radius: 8px; /* Rounded corners for video */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Subtle shadow */
    width: 100%; /* Ensure responsiveness */
    height: 315px; /* Or adjust as needed */
}

.video-icons-grid {
    /* flexbox properties already applied in HTML via Bootstrap classes */
    margin-top: 2em; /* Space above icons */
}

.video-icon-item {
    text-align: center;
    color: #666; /* Default icon color */
}

.video-icon-item img {
    width: 60px; /* Larger icon size */
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px; /* Space between icon and text */
}

.video-icon-item p {
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
    color: #333; /* Darker text for icon labels */
}

/* Responsive adjustments */
@media (max-width: 991.98px) { /* Medium devices and down */
    .upcoming-events-section .section-title {
        font-size: 2.2rem;
        text-align: center;
    }
    .upcoming-events-section .section-subtitle,
    .upcoming-events-section .view-full-calendar-link {
        text-align: center;
        display: block; /* Make link block-level to center */
        margin: 0 auto 1.5em auto; /* Center and add margin */
    }
    .upcoming-events-section .arrow-circle {
        margin: 0 10px 0 0; /* Adjust margin for centering */
    }
    .event-cards-grid {
        justify-content: center; /* Center cards if not full row */
    }
    .event-card {
        min-width: unset; /* Allow cards to shrink on smaller screens */
        flex-basis: calc(50% - 12.5px); /* Two columns */
        max-width: calc(50% - 12.5px);
    }
    .welcome-content-container {
        flex-direction: column; /* Stack text and video */
    }
    .welcome-text, .welcome-video-section {
        max-width: 100%; /* Take full width when stacked */
    }
    .more-cta-section .more-cta-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) { /* Small devices and down */
    .upcoming-events-section .section-title {
        font-size: 1.8rem;
    }
    .event-card {
        flex-basis: 100%; /* Single column */
        max-width: 100%;
    }
    .more-cta-section {
        padding: 3em 1em; /* Reduce padding on small screens */
    }
    .more-cta-section .more-cta-title {
        font-size: 2rem;
    }
    .more-cta-section .more-cta-button {
        padding: 0.8em 1.5em;
        font-size: 1rem;
    }
    .rounded-video {
        height: 250px; /* Adjust video height for smaller screens */
    }
}

.foundation_secion-wrap .item img {
    width: 70%;
    height: auto;
}

/* Events Listing Page - 2 Column Grid with Sidebar
================================================== */
.news_events_wrapper .content-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.news_events_wrapper .row {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 -15px;
}

.news_events_wrapper .col-xl-9 {
  flex: 0 0 70%;
  max-width: 70%;
  padding-left: 15px;
  padding-right: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-content: flex-start;
}

.news_events_wrapper .col-xl-3 {
  flex: 0 0 30%;
  max-width: 30%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Events in 2-column grid */
.news_events_wrapper .col-xl-9 .news_sec {
  width: calc(50% - 10px);
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Responsive - Single column on tablet */
@media (max-width: 1199.98px) {
  .news_events_wrapper .row {
    flex-wrap: wrap;
  }
  
  .news_events_wrapper .col-xl-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .news_events_wrapper .col-xl-9 .news_sec {
    width: calc(50% - 10px);
  }
  
  .news_events_wrapper .col-xl-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 3em;
  }
}

/* Responsive - Single column on mobile */
@media (max-width: 767.98px) {
  .news_events_wrapper .col-xl-9 .news_sec {
    width: 100%;
  }
}

.news_sec {
  margin-bottom: 2em;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.news_sec:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.news_events_cover {
  width: 100%;
  overflow: hidden;
  max-height: 250px;
}

.news_events_cover figure {
  margin: 0;
  width: 100%;
  line-height: 0;
}

.news_events_cover a {
  display: block;
  width: 100%;
}

.news_events_cover img,
.img-100,
.blog_img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.new_sec_content {
  padding: 1.5em;
}

.new_sec_content p {
  margin-bottom: 0.5em;
}

.new_sec_content strong a {
  font-size: 1.3rem;
  color: #000;
  text-decoration: none;
  font-family: "Permanent Marker", cursive;
  line-height: 1.3;
}

.new_sec_content strong a:hover {
  color: #b61416;
}

.new_sec_para {
  margin: 1em 0;
}

.new_sec_para p {
  color: #666;
  line-height: 1.5;
  font-size: 1rem;
}

.btn-wrap {
  margin-top: 1em;
}

.underline-link {
  color: #b61416;
  text-decoration: none;
  border-bottom: 2px solid #b61416;
  padding-bottom: 2px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.underline-link:hover {
  color: #000;
  border-bottom-color: #000;
}

/* Event Detail Page - Sidebar Archives
================================================== */
.sidebar {
  padding-left: 2em;
}

.aside_cont_holder {
  background: #f8f9fa;
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 2em;
}

.aside_cont_holder .title,
.aside_cont_holder .titlepp {
  font-family: "Permanent Marker", cursive;
  font-size: 1.5rem;
  margin-bottom: 1em;
  color: #000;
}

.more_blogs_wrap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more_blogs_wrap li {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #ddd;
}

.more_blogs_wrap li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.more_blogs_wrap li a {
  color: #666;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.more_blogs_wrap li a:hover {
  color: #c3bdbd;
  padding-left: 5px;
}

.more_blogs_wrap li a strong {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Blog Detail Content */
.blog_section {
  margin-bottom: 3em;
}

.blog_section .heading {
  font-family: "Playpen Sans", cursive;
  font-size: 2.2rem;
  margin-bottom: 1em;
  color: #000;
}

.blog_section .blog_img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5em;
  border-radius: 10px;
}

.blog_section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5em;
}

.no-events-text {
  text-align: center;
  padding: 3em 0;
  color: #999;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .sidebar {
    padding-left: 0;
    margin-top: 3em;
  }
}

/* Events Listing Page with Sidebar Layout
================================================== */
.news_events_wrapper .row {
  display: flex;
  flex-wrap: wrap;
}

.news_events_wrapper .col-xl-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding-right: 15px;
}

.news_events_wrapper .col-xl-3 {
  flex: 0 0 22%;
  max-width: 22%;
  padding-left: 15px;
}

/* Adjust news_sec to fit in column */
.news_events_wrapper .col-xl-9 .news_sec {
  width: 100%;
  max-width: 100%;
}

/* Responsive - Stack on mobile */
@media (max-width: 1199.98px) {
  .news_events_wrapper .col-xl-9,
  .news_events_wrapper .col-xl-3 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .news_events_wrapper .col-xl-3 {
    margin-top: 2em;
  }
}

/* Event Modal Styles */
.event-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

.event-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
    flex: 1;
}

.event-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.event-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.event-modal-body {
    padding: 24px;
}

.event-modal-body p {
    margin: 0 0 16px 0;
    color: #374151;
    line-height: 1.6;
}

.event-modal-body p:last-child {
    margin-bottom: 0;
}

.event-modal-body strong {
    color: #111827;
    font-weight: 600;
}

.event-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.event-modal-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.event-modal-btn-primary {
    background: #007bff;
    color: white;
}

.event-modal-btn-primary:hover {
    background: #0056b3;
}

.event-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.event-modal-btn-secondary:hover {
    background: #e5e7eb;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .event-modal {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .event-modal-header h2 {
        font-size: 20px;
    }
    
    .event-modal-footer {
        flex-direction: column-reverse;
    }
    
    .event-modal-btn {
        width: 100%;
        text-align: center;
    }
}
.event-url-btn:hover {
    background: #8f0f11 !important;
    color: white !important;
    text-decoration: none !important;
}

.event-calendar-link:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
}