/*
Theme Name: clicc-theme
Theme URI: https://www.communitylinkchildcare.org.uk
Author: Sandra Martinez
Author URI: https://sandramtzd.github.io/
Description: A responsive, customised theme for Community Link Childcare, based on Figma wireframes.
Version: 1.0
Tags: custom-colors, custom-menu, featured-images, theme-options, translation-ready, wide-blocks
Text Domain: clicctheme
*/

:root {
  /* Main Colors */
  --color-blue-sky: #6ec1e4;
  --color-soft-purple: #a28ad6;
  --color-leaf-green: #88c070;
  --color-warm-yellow: #f3c969;
  --color-coral: #f67280;
  --color-charcoal: #333333;
  --color-white: #ffffff;

  /* 70% Opacity Versions */
  --blue-sky-70: rgba(110, 193, 228, 0.7);
  --soft-purple-70: rgba(162, 138, 214, 0.7);
  --leaf-green-70: rgba(136, 192, 112, 0.7);
  --warm-yellow-70: rgba(243, 201, 105, 0.7);
  --coral-70: rgba(246, 114, 128, 0.7);

  /* 10% Opacity Versions for Backgrounds */
  --blue-sky-10: rgba(110, 193, 228, 0.1);
  --soft-purple-10: rgba(162, 138, 214, 0.1);
  --leaf-green-10: rgba(136, 192, 112, 0.1);
  --warm-yellow-10: rgba(243, 201, 105, 0.1);
  --coral-10: rgba(246, 114, 128, 0.1);

   /* Other colors... */
  --color-footer-text: #AEACA7;

  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Catamaran', sans-serif;

}

/* Reset & Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%; /* 16px base */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-family: var(--font-primary);
}

/* Responsive typography base */
body {
  font-size: 1rem; /* 16px */
}


/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;      
  margin: 0 auto; 
  box-sizing: border-box;
}

.section {
  padding: 3rem 1rem; 
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2rem 0;
  }

}

section + section {
  margin-top: 2rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  font-family: var(--font-primary);
  text-align: center;
  margin-bottom: 0.8em;
  line-height: 1.2;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Utility Classes - Buttons */
.btn {
  display: inline-block;
  margin-top: 1.5em;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  padding: 0.5em 1em;
  background-color: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  width: max-content;
}

.btn:hover {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-secondary {
  display: inline-block;
  margin-top: 1.5em;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  padding: 0.5em 1em;
  background-color: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  border: 1px solid var(--color-white);
  cursor: pointer;
  text-align: center;
  width: max-content;
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-white);
}


/* Responsive media queries (min-width: 768px) */
@media (min-width: 768px) {
  html {
    font-size: 112.5%; /* ~18px */
  }
}

/* ========== Header Section ========== */

.site-header {
  position: fixed;
  padding: 0em 1em;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--color-charcoal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0;
}

.site-logo svg {
  height: 2.8em;
  width: auto;
}

.site-navigation {
  display: block;
}


/* ========== Navigation Section ========== */


.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  font-family: var(--font-primary);
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--color-soft-purple);

}

.site-header .scrolled .nav-menu li a {
  color: white;
  transition: color 0.3s ease;

}

.site-header .scrolled .nav-menu li a:hover {
  color: var(--color-soft-purple);
  transition: color 0.3s ease;
}

/* ========== Mobile Header Section ========== */

.mobile-header-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.mobile-header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0) invert(1);
}

.icon-fade {
  opacity: 0;
  transition: opacity 0.15s ease;
}


.menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#menu-toggle img {
  width: 40px;
  height: 40px;
  display: block;
  filter: brightness(0) invert(1);
}

@media (min-width: 769px) {
  .mobile-header-right {
    display: none;
  }
}

/* ========== Mobile Navigation-Dropdown Section ========== */

@media (max-width: 768px) {

  .site-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 70vh;
    width: 200px;
    background-color: #2d2d2d;
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 0;
  }

  body.menu-open .phone-icon {
  display: none;
}

  
  .site-navigation.open {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .site-header-right {
    display: flex;
  }
}

/* ========== Hero Section ========== */

.hero-section {
  position: relative;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-overlay .container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1em;

}

.hero-overlay h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.hero-overlay h2 {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.hero-overlay h3 {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.2;

}

/* ========== Hero Scroll Arrow ========== */
.scroll-down-arrow {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bounce 4s infinite;
  z-index: 10;
}

.scroll-down-arrow img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1); /* makes it white on dark backgrounds */
  transition: transform 0.3s ease;
}

.scroll-down-arrow:hover img {
  transform: translateY(5px);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========== Clubs Section ========== */

.clubs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.club-card {
  flex: 1;
  min-height: clamp(280px, 40vw, 350px);
  width: 100%;
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease;
}


.club-breakfast { background-color: var(--color-leaf-green);}
.club-holiday { background-color: var(--color-warm-yellow);}
.club-creche { background-color: var(--color-soft-purple);}


.club-card h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

.club-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #000;
  position: relative;
  overflow: hidden;
}

.club-link .link-text {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.club-link .icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 0.3s ease;
}

.club-link:hover .link-text {
  transform: translateX(10px);
  color: var(--color-white);

}

.club-link:hover .icon {
  transform: translateX(10px);
  color: var(--color-white);
}


/* Row layout for desktop */
@media (min-width: 768px) {
  .clubs-grid {
    flex-direction: row;
  }
}

/* ========== Services Section ========== */

/* Scroll container */
.services-scroll-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 1em;
}

.services-scroll-container::-webkit-scrollbar {
  height: 10px;
   
}

.services-scroll-container::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
 
}

.services-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--coral-70);
  border-radius: 6px;


}

/* Card track */
.services-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  padding-inline: 1rem;
  justify-content: flex-start;
}

/* Cards */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 350px;
  max-width: 250px;
  flex: 0 0 auto;
  padding: 2rem 1rem;
  border-radius: 12px;
  text-align: center;
  scroll-snap-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #000;
}

.service-card .btn {
  margin-top: auto;
  align-self: center;
  width: max-content;

}

/* Service background colors */
.service-consulting { background-color: var(--blue-sky-70);}
.service-pvg { background-color: var(--leaf-green-70);}
.service-pool { background-color: var(--warm-yellow-70);}
.service-creche { background-color: var(--soft-purple-70);}


.service-card h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 25px;

}


@media (min-width: 768px) {
  .service-card {
    flex: 0 0 auto;
    max-width: 300px;
  }


  .services-scroll-container {
    overflow-x: auto;
    padding: 0 1em 2em 1em;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    justify-content: center; 
  }
}

/* ========== News Section ========== */

/* Scroll-Snap container */
#news-section .news-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Enables snapping effect */
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 20px; /* Space for dots and potential scrollbar */
    scrollbar-width: thin; 
    gap: 20px; 
    margin: 0 -15px; 
    padding-left: 15px; 
    padding-right: 15px; 
    box-sizing: border-box; 
}

#news-section .news-carousel::-webkit-scrollbar {
    height: 10px;
}

#news-section .news-carousel::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

#news-section .news-carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-coral);
    border-radius: 6px;
}

/* Individual News Cards */

#news-section .news-card {
    flex: 0 0 85%; /* Mobile: Each card takes up 85% of container width */
    max-width: 350px; /* Max width for individual cards */
    scroll-snap-align: center; /* Snap to the center of each card */
    border-radius: 8px;
    overflow: hidden; /* Keep this to prevent image overflow */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    color: #000;
    height: 100%;
}

#news-section .news-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
}

#news-section .news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transition: transform 0.3s ease;
    padding: 1em 1em 0em 1em;
}

#news-section .news-card-image img:hover {
    transform: scale(1.05);
}

#news-section .news-card-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    color: #444;
}

#news-section .news-card-content {
    padding: 1em;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to push button to bottom */
}


#news-section .news-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 1vw, 1rem);
    font-weight: 700;
    line-height: 1.3em;
    margin: 0 0 0.5em;
    color: #333;
}

#news-section .news-card-meta {
    font-family: var(--font-secondary);
    font-size: 0.9em;
    color: #777;

}

#news-section .news-card-excerpt {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1em;
    flex-grow: 1;
}

#news-section .news-card .read-more-button {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: auto;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

#news-section .news-card .read-more-button:hover {
    color: var(--color-leaf-green);
}

#news-section .news-card .read-more-button svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

#news-section .news-card .read-more-button:hover svg {
    transform: translateX(5px);
}

/* Slider Dots Styling */
.news-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--color-coral);
}


/* Desktop-specific styles */
@media (min-width: 768px) {
    .news-carousel {
        overflow-x: auto; 
        padding-left: 0;
        padding-right: 0;
        gap: 30px;
        scroll-snap-type: x mandatory; 
    }

    .news-carousel ::-webkit-scrollbar {
       display: none;
    }

    .news-card {
        flex: 0 0 300px;
        height: 450px;
        transform: scale(0.9); 
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* Ensure smooth transition */
    }
    
    .news-card.is-active {
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .news-carousel-dots {
        display: flex;
    }
}



/* ========== Form Section ========== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
  margin: auto;
  padding: 1rem;
}

.contact-form .form-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
}

.contact-form .btn {
  align-self: center;
  width: max-content;
}

.contact-form .btn:hover {
  background-color: var(--color-charcoal);

}
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .contact-form .form-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .g-recaptcha {
    transform: scale(0.85);
  }
}

/* ========== About Page ========== */


/* About us description */
#about-page .wp-block-media-text {
  margin-bottom: 2rem;
  margin-top: 2rem;
  border-radius: 18px;
}

#about-page .wp-block-media-text__media img{
 border-top-left-radius: 18px;
 border-bottom-left-radius: 18px;
}

#about-page .wp-block-media-text h2{
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 1rem;

}

#about-page .wp-block-media-text p{
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 3vw, 1rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  color: black;

}


@media (min-width: 768px) {
  #about-page .wp-block-columns {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 768px) {
  #about-page .wp-block-media-text__media img{
    border-top-right-radius: 18px;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 18px;
  }

}




/* Differentiators description */

#about-page .wp-block-columns {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
  margin-top: 3rem;
}


#about-page .wp-block-columns {
  text-align: center;
}

#about-page .wp-block-columns img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  align-items: center;
}

#about-page .wp-block-columns p {
  font-size: 1rem;
  font-family: var(--font-secondary);
  color: black;
}

@media (min-width: 768px) {
  #about-page .wp-block-columns {
    grid-template-columns: repeat(3, 1fr);
  }

}



/* ========== Clubs Page ========== */


/* Club Card Grid */
#clubs-page .club-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2em;
}

@media (min-width: 768px) {
  #clubs-page .club-card-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Individual Club Card */
#clubs-page .club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 300px;
  width: 100%;
}


#clubs-page .club-card-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#clubs-page .club-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay on the image */
#clubs-page .club-card-thumbnail::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 60%;
  background: rgba(0, 0, 0, 0.5);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transform: translateX(-50%);
  width: calc(100% - 1rem);
  
}

/* Content Area */
#clubs-page .club-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#clubs-page .club-card-info {
  position: relative;
  width: 100%;
  padding: 0rem 1rem 0rem 1rem;

}

/* Card Title */
#clubs-page .club-card-info h3 {
  font-family: var(--font-primary);
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1em;
  letter-spacing: -0.05em;
  margin-bottom: 0.25em;
  padding: 0;
}

/* Club type */
#clubs-page .club-card-type {
  font-family: var(--font-secondary);
  font-size: clamp(1.5rem, 1vw, 1rem);
  line-height: 0.9em;
  margin-bottom: 1em;
  color: var(--color-white);
  letter-spacing: -0.05em;

}

/* Card Details */
#clubs-page .club-card-details {
  text-align: center;
  align-items: center;
}

/* Card Button */
#clubs-page .club-card-details .btn {
  margin: 0;
  align-items: center;
}

/* Club Divider */

#clubs-page .club_divider  {
  display: flex;
  grid-template-columns: 40% auto;
  grid-template-rows: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 1.5em;

}


#clubs-page .club_divider_content{
  padding: 0 20%;
  text-align: center ;

}

#clubs-page .club_divider h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

#clubs-page .club_divider p {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 3vw, 1rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  color: black;

}

#clubs-page .club_divider_button {
  display: flex;
  justify-content: center;
  margin-bottom: 1em;

}

#clubs-page .club_divider_button .btn-secondary {
  margin-top: 0;

}

@media (min-width: 768px) {
  #clubs-page .club-card {
    width: 28rem;
  }
}

/* Make the block stack on mobile for better readability */
@media (max-width: 767px) {
  #clubs-page .club_divider {
    grid-template-columns: 100%;
  }

}


/* ========== Services Page ========== */

#services-page .container {
  max-width: 800px;
  align-items: center;
}


#services-page .wp-block-media-text {
  margin: 2em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

}

#services-page .wp-block-media-text__media img {
  border-radius: 30px;
  padding: 1em;

}

#services-page .wp-block-media-text__content {
  padding-right: 3em;
  padding-left: 3em;
}

#services-page .wp-block-media-text h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 1vw, 1.5rem);
  line-height: 1.2em;
  margin: 0.5em 0;

}
#services-page .wp-block-media-text p {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 1vw, 1.5rem);
  line-height: 1.2em;

}

#services-page .wp-block-buttons {
  display:flex;
  justify-content: center;
  margin-bottom: 1em;

}

#services-page .wp-block-button__link {
  all: unset;
  display: flex;
  margin-top: 1.5em;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  padding: 0.3em 1em;
  background-color: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  width: max-content !important;

}

#services-page .wp-block-button__link:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  border: 1px solid var(--color-white);
}













/* ========== News Page ========== */


#news-page .news-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    padding: 2em 0;
}

#news-page .news-page-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
    display: flex;
    flex-direction: column; 
    height: 100%; 
}

#news-page .news-page-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%; 
    overflow: hidden;
}

#news-page .news-page-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-top-left-radius: 30px; 
    border-top-right-radius: 30px;
    padding: 1em;
}

#news-page .news-page-card-content {
    padding: 1.5em;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

#news-page .news-page-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3em;
    margin-bottom: 0.5em;
    color: #333;
}

#news-page .news-page-card-meta {
    font-family: var(--font-secondary);
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1em;
}

#news-page .news-page-card-excerpt {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5em;
    flex-grow: 1; 
}

#news-page .news-page-card .read-more-button {
    all: unset; /* Reset default button styles */
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 0.5em; /* Space between text and icon */
    margin-top: auto; /* Push to bottom of flex container */
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-coral); 
    text-decoration: none;
    transition: color 0.3s ease;
}

#news-page .news-page-card .read-more-button:hover {
    color: var(--color-leaf-green); 
}

#news-page .news-page-card .read-more-button svg {
    width: 1em;
    height: 1em;
    stroke: currentColor; 
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    #news-page .news-page-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 1.5em;
    }
}


/* Custom styles for single posts */

.single-post-container {
  max-width: 800px; /* Max width for content, similar to Medium */
  margin: 0 auto; 
  padding: 2rem 1.5rem; 
}

/* Post Excerpt */
.single-post-excerpt {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
  color: #555;
  margin-bottom: 1.5em;
}

/* Author and Meta Info */
.author-meta-info {
  display: flex;
  align-items: center;
  margin-bottom: 2em;
}

.author-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 0.8em; /* Space between elements */
}

.author-avatar img {
  border-radius: 50%; /* Make avatar round */
  width: 48px; /* Defined size in PHP */
  height: 48px;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: #777;
  line-height: 1.4;
}

.author-name {
  font-weight: 600;
  color: #333; /* Darker color for author name */
}

.author-name a {
  text-decoration: none;
  color: inherit;
}

.author-name a:hover {
  text-decoration: underline;
}

.post-meta-divider {
  margin: 0 0.4em;
  color: #bbb;
}

.post-reading-time,
.post-date {
  white-space: nowrap; /* Prevent breaking reading time/date */
}

/* Post Content */
.single-post-content {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.8;
  color: #333;
}

.single-post-content p {
  margin-bottom: 1.5em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
  font-family: var(--font-primary);
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  color: #333;
}

.single-post-content h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.single-post-content h3 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }

.single-post-featured-image {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  margin: 2em 0;
  display: block; /* Remove extra space below image */
  object-fit: cover; /* Ensure image covers space responsively */
}


.single-post-footer {
  border-top: 1px solid #eee;
  padding-top: 2em;
  margin-top: 3em;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: #777;
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .author-details {
        flex-direction: column; /* Stack details vertically */
        align-items: flex-start;
        gap: 0.2em; /* Reduce gap */
    }
    .post-meta-divider {
        display: none; /* Hide dividers when stacked */
    }
}





/* ========== Contact Page ========== */

#contact-page .wp-block-columns h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2vw, 2rem); 
  font-weight: 700;
  line-height: 1.2em;
  color: black;
  margin-bottom: 0.5em;
}

#contact-page .wp-block-columns p {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 1vw, 1.2rem);
  font-weight: 400;
  color: black;
  line-height: 1.5;
  margin-bottom: 1em;

}

#contact-page .wp-block-columns p a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease, color 0.3s ease;
}

#contact-page .wp-block-columns p a:hover {
  color: var(--color-coral);
}

/* Desktop styles with vertical dividers */
#contact-page .wp-block-columns .wp-block-column:not(:last-child) {
  border-right: 1px solid #ccc;
  padding-right: 45px;
}

/* Mobile styles with horizontal dividers */
@media (max-width: 768px) {
  #contact-page .wp-block-columns .wp-block-column {
    /* Remove vertical borders and padding */
    border-right: none !important;
    padding-right: 0 !important;

    /* Add horizontal border at the bottom */
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  
  /* Remove the border from the very last column */
  #contact-page .wp-block-columns .wp-block-column:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* Google maps */
#contact-page iframe {
  position: relative;
  height: 0;
  overflow: hidden;
  max-width: 100%;
 
  
}

#contact-page iframe {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 2rem;
}

@media (min-width: 768px) {
    #contact-page iframe {
        height: 500px;
    }
}

/* ========== Page CTA Section ========== */
.page-cta {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 1em; 

}

.page-cta .container {
  max-width: 800px;
  margin: 0 auto;
}

.page-cta h2 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 3rem);;
  margin-bottom: 1rem;
  line-height: 1.3em;
}

.page-cta p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 500px;
  margin: 0 auto 1.5rem auto;
}

/* ========== Footer Section ========== */

/* === Accreditation Section === */

#colophon .accreditation {
  text-align: center;
  margin-bottom: 2.5rem;
}

#colophon .accreditation .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

#colophon .accreditation .logos img {
  max-height: 150px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

#colophon .accreditation .logos img:hover {
  transform: scale(1.05);
}

/* === Footer Links Grid === */

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  column-gap: 1rem;
  row-gap: 1rem;
  text-align: left;
  justify-content: center; 
}

.footer-links h4 {
  font-size: 1rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
}

/* ===== Color Branding ===== */
.footer-links h4.sitemap { color: var(--soft-purple-70); }
.footer-links h4.company { color: var(--blue-sky-70); }
.footer-links h4.useful-links { color: var(--leaf-green-70); }
.footer-links h4.legal { color: var(--warm-yellow-70); }

/* === Links & Address === */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin-left: 0.3rem;
}

.footer-links li {
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: 23px;
  letter-spacing: -0.015em;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-footer-text);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-coral);
  text-decoration: none;
}

/* Contact Details */

.footer-contact-us h4 {
  font-size: 1rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  color: var(--coral-70);
  margin-bottom: 0.5rem;
}


.footer-contact-us {
  text-align: center;
  max-width: 600px;
  margin: 2.5rem auto 2.5rem auto;
  font-family: var(--font-secondary);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.015em;
  color: var(--color-footer-text);
}

.footer-contact-us a {
  color: var(--color-footer-text);
  text-decoration: none;
}

.footer-contact-us a:hover {
  text-decoration: none;
  color: var(--color-coral);
}


/* Bottom Legal Info */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.footer-bottom .registers {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 20px;
  letter-spacing: -0.015em;
  margin: 1rem;
  color: var(--color-footer-text);
}

.footer-bottom .site-by {
  padding: 1rem;
  font-size: 0.75rem;
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.015em;
  margin: 1rem;
  color: var(--color-footer-text);
}

.footer-bottom .site-by a {
  color: var(--color-footer-text);
  text-decoration: none;

}

.footer-bottom .site-by a:hover {
  text-decoration: none;
  color: var(--color-coral);
}

/* Responsiveness */

@media (max-width: 768px) {
  #colophon {
    padding: 3rem 1.5rem;
    font-size: 0.85rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    justify-items: start;
  }

  .footer-links h4 {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1rem;
  }

  #colophon .accreditation .logos img {
    max-height: 40px;
  }

  .footer-contact-section {
    text-align: center;
    padding: 1rem 0;
  }
}

