/**
 * Theme Name: Bloomfield Collegiate
 * Template:  twentytwentyfive
 *Version:      1.0.0
 */

html {scroll-behavior: smooth;}

h1 {
   padding-top: 20px;
   padding-bottom: 30px;
}


h2 {
   padding-top: 50px;
   padding-bottom: 20px;
}

grid-heading {padding-top: 0px !important;
}

h3 {
   padding-top: 40px;
   padding-bottom: 20px;
}

/* ==============================
   Navigation Menu Breakpoint
   ============================== */

body .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: block !important;
}
body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none !important;
}

@media (min-width: 1050px) {
	body .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;;
	}
	body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block !important;
	}
}

/* End Navigation Menu Breakpoint */


/* Learn More Section */

.image-overlay-wrapper {
  position: relative;
}

.image-overlay-wrapper {
  position: relative;
  display: block;
  padding: 0 !important;
}

.overlay-content {
  position: absolute !important;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 2;
  color: white;
  text-align: left;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 90%;
}

.overlay-content.is-layout-constrained,
.overlay-content.has-global-padding {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.image-overlay-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-content p {
  margin-bottom: 0.25rem;
}

.overlay-content .wp-block-button {
  margin-top: 0;
}

.overlay-content .wp-block-button__link {
  background-color: red;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none !important;
  border-radius: 4px;
  display: inline-block;
}


/* =======================
   ICON DISPLAY TOP
   ======================= */

/* Hide icons on mobile and tablet */
@media (max-width: 654px) {
  .hide-on-mobile {
    display: none !important;
  }
}


/* =======================
   DARK MODE TOGGLE SWITCH
   ======================= */

.dark-mode-switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 32px; /* Match or exceed thumb size */
  margin-left: 1rem;
  vertical-align: middle;
}

.dark-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background-color: #e0e0e0;
  transition: background-color 0.4s;
  border-radius: 34px;
  height: 20px; /* Thinner track */
}

.slider::before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #006EB9;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  transition: transform 0.3s, background-image 0.3s;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"/><g stroke="%23ffffff" stroke-width="2"><line x1="12" y1="1" x2="12" y2="4"/><line x1="12" y1="20" x2="12" y2="23"/><line x1="1" y1="12" x2="4" y2="12"/><line x1="20" y1="12" x2="23" y2="12"/><line x1="4.22" y1="4.22" x2="6.34" y2="6.34"/><line x1="17.66" y1="17.66" x2="19.78" y2="19.78"/><line x1="4.22" y1="19.78" x2="6.34" y2="17.66"/><line x1="17.66" y1="6.34" x2="19.78" y2="4.22"/></g></svg>');
}

input:checked + .slider {
  background-color: #e0e0e0;
}

input:checked + .slider::before {
  transform: translate(30px, -50%);
  background-color: #555;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.6); /* white glow */
    
}

/* =======================
   DARK MODE STYLING
   ======================= */

body.dark-mode {
  background-color: #222222;
  color: #e0e0e0;
}

body.dark-mode a {
  color: #e0e0e0;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e;
}

body.dark-mode .wp-block-navigation__responsive-container {
    background-color: #222222 !important;
    color: #fff !important;
}

body.dark-mode .wp-block-navigation__responsive-container a {
    color: #fff !important;
}

body.dark-mode .wp-block-navigation__responsive-container a:hover {
    color: #ccc !important;
}

body.dark-mode .wp-block-navigation-submenu {
  background-color: #222222 !important; /* or your preferred dark background */
  color: #e0e0e0; /* light text */
}




/* =======================
   Back to Top Button
   ======================= */

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: white;
  color: #222;
  border-radius: 12px;
  text-align: center;
  line-height: 45px;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: none;
  z-index: 9999;
}

#backToTop:hover {
  background: #f0f0f0;
}
