/* ========= Base ========= */
html, body { margin:0; padding:0; font-family: Arial, Helvetica, sans-serif; color:#333; }
a { color:#3156a3; text-decoration:none; }
a:hover { text-decoration:underline; }

.clearfix::after { content:""; display:block; clear:both; }
.relative { position:relative; }
.noborder { border:none !important; }

/* ========= Site Container ========= */
.site_container { width:100%; background:#fff; }

/* ========= Background Slider ========= */
.slider {
  list-style:none; margin:0; padding:0;
  height:420px; width:100%;
  position:relative; overflow:hidden;
  background:#000;
}
.slider li {
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity .8s ease;
}
.slider li.active { opacity:1; }

/* Overlaid page container like theme */
.theme_page {
  width:980px;
  margin:-140px auto 0 auto;      /* pulls content over slider like original */
  background:#fff;
  box-shadow:0 0 0 rgba(0,0,0,0);
  padding:0 0 25px 0;
}
.slider_content_box { height:20px; }

/* ========= Home Boxes (3 gradient panels) ========= */
.home_box_container_list {
  list-style:none; margin:0; padding:0;
  display:flex; gap:0;
}
.home_box_container {
  flex:1;
  min-height:210px;
  color:#fff;
}
.home_box_container:nth-child(1) {
  background: linear-gradient(#42b3e5, #2aa3dc);
}
.home_box_container:nth-child(2) {
  background: linear-gradient(#0384ce, #0269a5);
}
.home_box_container:nth-child(3) {
  background: linear-gradient(#3156a3, #274785);
}
.home_box { padding:18px 18px 14px 18px; }
.home_box h2 {
  margin:0 0 10px 0;
  font-size:20px; font-weight:bold;
  text-transform:uppercase;
}
.news .text { font-size:13px; line-height:18px; }
.items_list { list-style:none; margin:0; padding:0; }
.items_list li { padding:6px 0; border-bottom:1px solid rgba(255,255,255,.25); }
.items_list li:last-child { border-bottom:none; }
.items_list .value { float:right; }

/* ========= Buttons ========= */
.mc_button {
  display:inline-block;
  padding:8px 12px;
  border:2px solid rgba(255,255,255,.6);
  color:#fff;
  font-weight:bold;
  font-size:12px;
  text-transform:uppercase;
}
.mc_button.more.light { border-color:rgba(255,255,255,.75); }
.mc_button.medium { padding:10px 16px; font-size:13px; }
.mc_button:hover { text-decoration:none; opacity:.95; }

/* ========= “VC rows/cols” grid (like WPBakery) ========= */
.vc_row { margin:0; padding:0; }
.vc_col-sm-6 { width:50%; float:left; padding:15px 18px; box-sizing:border-box; }
.vc_col-sm-12 { width:100%; float:left; padding:0 18px; box-sizing:border-box; }

.wpb_text_column p { margin:10px 0; font-size:13px; line-height:18px; }
.alignleft { float:left; margin:2px 10px 8px 0; }

/* ========= Section headers ========= */
.page_margin_top_section { margin-top:18px; }
.header_left { float:left; }
.header_right { float:right; }

.box_header {
  margin:0;
  padding:0;
  font-size:16px;
  font-weight:bold;
  color:#3156a3;
  text-transform:uppercase;
}

/* ========= Facilities Horizontal Carousel ========= */
.horizontal_carousel_wrap {
  position:relative;
  overflow:hidden;
  width:100%;
  padding-bottom:10px;
}
.mc_gallery.horizontal_carousel {
  list-style:none;
  margin:10px 0 0 0;
  padding:0;
  display:flex;
  gap:10px;
  transition: transform .4s ease;
  will-change: transform;
}
.gallery_box {
  width:225px;
  border:1px solid #e5e5e5;
  background:#fff;
  flex:0 0 auto;
}
.gallery_box img { width:225px; height:150px; display:block; object-fit:cover; }
.gallery_box .description {
  padding:10px 10px 12px 10px;
}
.gallery_box .description h3 {
  margin:0; font-size:13px; color:#3156a3; text-transform:uppercase;
}
.gallery_box .description h5 {
  margin:4px 0 0 0; font-size:12px; color:#888; font-weight:normal;
}

/* Carousel Controls */
.scrolling_list_control_left,
.scrolling_list_control_right {
  display:inline-block;
  width:28px; height:28px;
  line-height:28px;
  text-align:center;
  background:#3156a3;
  color:#fff;
  font-weight:bold;
  border-radius:2px;
  margin-left:6px;
}
.scrolling_list_control_left:hover,
.scrolling_list_control_right:hover { text-decoration:none; opacity:.95; }

/* ========= Announcement bar ========= */
.announcement {
  margin:18px 0 0 0;
  background:#f6f6f6;
  border:1px solid #e5e5e5;
  padding:14px 16px;
}
.columns { list-style:none; margin:0; padding:0; display:flex; align-items:center; }
.columns .column_left { flex:1; }
.columns .column_right { flex:0; }

/* ========= Inner pages ========= */
.page_title {
  margin:0;
  padding:14px 18px;
  border-bottom:1px solid #e5e5e5;
  font-size:18px;
  font-weight:bold;
  color:#3156a3;
  text-transform:uppercase;
}
.page_content { padding:16px 18px; font-size:13px; line-height:19px; }
.page_content h3 { margin:14px 0 8px 0; font-size:14px; color:#3156a3; text-transform:uppercase; }
.page_content ul { margin:8px 0 12px 18px; }

/* ========= Contact Form ========= */
.form_row { display:flex; gap:12px; margin-bottom:10px; }
.form_row input, .form_row textarea, .form_row select {
  width:100%;
  border:1px solid #dcdcdc;
  padding:9px 10px;
  font-size:13px;
  box-sizing:border-box;
}
.form_row textarea { height:120px; resize:vertical; }

/* ========= Footer ========= */
.footer {
  width:980px;
  margin:0 auto;
  border-top:1px solid #e5e5e5;
  padding:12px 18px 24px 18px;
  font-size:12px;
  color:#777;
}

/* ========= Responsive ========= */
@media (max-width:1020px){
  .theme_page, .footer { width:95%; }
}
@media (max-width:860px){
  .slider { height:320px; }
  .theme_page { margin-top:-90px; }
  .home_box_container_list { flex-direction:column; }
  .vc_col-sm-6 { width:100%; }
  .form_row { flex-direction:column; }
}


/* =========================
   HEADER (as screenshot)
========================= */
.site_header {
  width: 980px;
  margin: 0 auto;
  padding: 12px 0 10px 0;
  position: relative;
  background: #fff;
}

.header_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand_block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand_logo {
  width: 64px;
  height: 64px;
  display: block;
}

.brand_text {
  line-height: 1;
}
.brand_text .small {
  display: block;
  font-size: 14px;
  color: #2aa3dc;
  margin-left: 2px;
}
.brand_text .big {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #1b4f99;
}

.header_cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.epilepsy_awareness {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3aaadf;
  color: #fff;
  padding: 7px 12px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
}
.epilepsy_awareness .play {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e53935;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}
.epilepsy_awareness:hover { text-decoration: none; opacity: .95; }

.prayer_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3aaadf;
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0,0,0,.1);
}
.prayer_btn .hand {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1b4f99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.prayer_btn:hover { text-decoration: none; opacity: .95; }

/* Menu row */
.main_nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main_nav a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 12px;
  color: #6b6b6b;
  text-transform: uppercase;
  border-radius: 2px;
}

.main_nav a.active {
  background: #3aaadf;
  color: #fff;
}
.main_nav a:hover { text-decoration: none; color: #3156a3; }
.main_nav a.active:hover { color:#fff; }

/* Make slider start AFTER header (like screenshot) */
.slider { margin-top: 0; }

/* =========================
   FOOTER (as screenshot)
========================= */
.site_footer {
  width: 100%;
  background: #1f1f1f;
  margin-top: 0;
}

.footer_top_boxes {
  width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer_top_boxes .box {
  padding: 18px 22px;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
}
.footer_top_boxes .box small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  opacity: .95;
  margin-top: 10px;
}
.footer_top_boxes .box .arrow {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  opacity: .9;
}

.footer_top_boxes .b1 { background: #42b3e5; }
.footer_top_boxes .b2 { background: #0384ce; }
.footer_top_boxes .b3 { background: #3156a3; }

.footer_main {
  width: 980px;
  margin: 0 auto;
  padding: 22px 0 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  color: #d7d7d7;
  font-size: 13px;
}

.footer_col h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}
.footer_col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #3aaadf;
}

.footer_contact_name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 6px 0;
}

.footer_muted { color:#9c9c9c; font-size:12px; }

.footer_links a {
  display: block;
  padding: 4px 0;
  color: #3aaadf;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer_links a:hover { text-decoration: none; opacity:.95; }

.footer_info_list {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer_info_item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  align-items: center;
}
.footer_icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 2px;
}

.footer_bottom {
  width: 980px;
  margin: 0 auto;
  padding: 10px 0 18px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #9c9c9c;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back_to_top {
  color: #9c9c9c;
  font-size: 12px;
}
.back_to_top:hover { text-decoration:none; color:#fff; }

/* Responsive */
@media (max-width: 1020px) {
  .site_header, .footer_top_boxes, .footer_main, .footer_bottom { width: 95%; }
}
@media (max-width: 860px) {
  .header_row { flex-direction: column; gap: 10px; }
  .header_cta { justify-content:center; flex-wrap: wrap; }
  .main_nav { flex-wrap: wrap; }
  .footer_top_boxes { grid-template-columns: 1fr; }
  .footer_main { grid-template-columns: 1fr; }
}


/* ===== CLICK-ONLY DROPDOWNS (no hover) ===== */
.main_nav .nav_item.has_dropdown .dropdown{
  display:none;
}

/* If you currently have hover rules, override them */
.main_nav .nav_item.has_dropdown:hover .dropdown{
  display:none !important;
}

/* Open state (toggled by JS) */
.main_nav .nav_item.has_dropdown.open .dropdown{
  display:block;
}

/* Optional: keep dropdown positioned exactly like your current CSS expects */
.main_nav .nav_item.has_dropdown{
  position:relative;
}
.main_nav .nav_item.has_dropdown .dropdown{
  position:absolute;
  left:0;
  top:100%;
  z-index:9999;
}

/* ===== DROPDOWN PANEL LOOK (solid white + border + shadow) ===== */
.main_nav .nav_item.has_dropdown .dropdown{
  background:#fff !important;
  border:1px solid #e6e6e6;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  min-width:260px;
  padding:8px 0;
}

/* make sure dropdown sits above banner/slider */
.main_nav .nav_item.has_dropdown .dropdown{
  z-index:99999;
}

/* dropdown links like reference (full width rows) */
.main_nav .nav_item.has_dropdown .dropdown a{
  display:block;
  padding:12px 16px;
  color:#555;
  text-decoration:none;
  font-size:13px;
  line-height:1.15;
  background:#fff;
}

/* blue separators between items */
.main_nav .nav_item.has_dropdown .dropdown a + a{
  border-top:1px solid #2f78d6;
}

/* hover */
.main_nav .nav_item.has_dropdown .dropdown a:hover{
  background:#f7fbff;
}

/* IMPORTANT: ensure parents allow overlay */
.site_header,
.header_row,
.main_nav{
  position:relative;
  z-index:100000;
}

/* if slider/banner was on higher z-index, force it lower */
.slider{
  position:relative;
  z-index:1;
}


/* ===== HOME BOXES (ORIGINAL LOOK: overlap banner at TOP of content) ===== */

/* keep slider behind */
.slider{ position:relative; z-index:1; }

/* IMPORTANT: remove the previous absolute/bottom logic if you added it */
.slider + .theme_page{ padding-top:0 !important; }

/* allow overlap (no clipping) */
.theme_page,
.theme_page.relative,
.theme_page.relative.noborder,
.slider_content_box{
  overflow:visible !important;
  position:relative;
  z-index:2;
}

/* THIS is the original behaviour: pull boxes UP over the banner */
.home_box_container_list{
  position:relative !important;
  z-index:9999 !important;
  margin-top:-155px !important;   /* adjust: -140 to -180 */
  margin-bottom:25px !important;
}

/* make sure list is actually visible */
.home_box_container_list,
.home_box_container_list *{
  visibility:visible !important;
  opacity:1 !important;
}

/* if any empty overlay is creating a white slab, neutralize it */
.slider_content_box{
  background:transparent !important;
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
}

/* mobile tuning */
@media (max-width: 900px){
  .home_box_container_list{ margin-top:-95px !important; }
}
@media (max-width: 600px){
  .home_box_container_list{ margin-top:-45px !important; }
}
