/*
Theme Name: KCH
Theme URI:
Author: Gemini
Author URI:
Description: A custom theme for Kiveton Community Hub.
Version: 1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kch
*/

/* General Styles */
body {
    font-family: sans-serif;
    margin: 0;
    /** background-color: #f8f8f8; **/
    background-color: #FFF;
    line-height: 1.6;
    overflow-x: hidden;
}

.accent-strip {
    width: 100%;
    background-color: #527d78;
    height: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    overflow: hidden;
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); */
    min-height:800px;
}

/* Header Styles */
header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 25px;
    font-size: small;
    font-family: 'Roboto Condensed', sans-serif;
}

.header-info a {
    color: #888;
    text-decoration: none;
    margin: 2px 0;
}

.logo-container {
    flex-grow: 1;
    margin-left:20px;
}

.logo-container img {
    height: auto;
    display: block;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    position: relative;
    margin-right:5px;
}

nav a {
    display: block;
    text-decoration: none;
    padding: 10px 15px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #527d78;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius:8px;
}

nav a:hover,
nav li.current-menu-item > a {
    background-color: #527d78;
    color: #fff;
    border-radius:8px;
}

/* Dropdown Styles */
nav ul li.menu-item-has-children > a:after {
    content: "\f107"; /* Unicode for down arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    display: inline-block; /* Important for proper spacing */
    vertical-align: middle; /* Align icon vertically */
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #527d78;
    box-shadow: none;
    z-index: 10;
    list-style: none;
    padding: 0;
    min-width: 220px;
    border-radius:8px;
    padding-bottom:5px;
    padding-top:5px;
    border: 2px solid #76a29d;
}

nav li:hover > ul {
    display: block;
}

nav ul ul li a {
    display: block;
    color: #eee;
    margin-left:5px;
    margin-right:5px;
}

nav ul ul li a:hover {
    background-color: #8cb0ac;
    color: #fff;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 400px;
}

/* Content Styles */
main {
    padding: 20px;
    margin: 0;
    border-radius: 0;
    margin-top:30px;
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    color: #8cb0ac;
    font-weight: bold;
}

h1 {
    font-size:2em;
}

p {
    margin-bottom: 15px;
}

.container p {
    color: #333;
}

a {
    color: #dc725a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #99bcb8;
}

/* Footer Widget Area Styles */
.footer-container {
    background-color: #1e1e1e;
    border-top:5px solid #353535;
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #a3a3a3;
    padding: 20px 80px;
    max-width:1200px;
    margin:0 auto;
}

.footer-widgets ul {
    list-style-type: none;
    list-style-position: unset;
    margin:0;
    padding:0;
}

.footer-widgets ul li a {
    color:#a3a3a3;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
}

.widget p {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size:14px;
}

.footer-column {
    flex-basis: 25%; /* Each column takes up 25% of the width */
    max-width: 25%;
    padding: 10px;
    box-sizing: border-box; /* Ensures padding does not overflow */
}

.footer-column .widget-title {
    font-size: 1.2em;
    color: #eee !important;
    margin-bottom: 10px;
}

.partners-container {
    height:110px;
}

.partners {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 768px) {
    .footer-column {
        flex-basis: 100%; /* Stack widgets on smaller screens */
        max-width: 100%;
        padding: 10px 0;
    }
}


/* Footer Styles */
footer {
    width: 100%;
    background-color: #111111;
    color: #eee;
    padding: 20px;
    text-align: center;
    border-top:15px solid #353535;
}

.article-heading {
    width:100% !important;
    background:red;
}

article h2 {
    color:#5f7e91;
}

/* News Section */

.news-section-title {
    text-align: left;
    font-size: 1.5em;
    color:#FFF;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    padding-top:5px;
}

.news-section {
    padding-top:20px;
    padding-bottom:20px;
}

.news-banner {
    background-color: #527d78;
    background-image: url(images/icon.png);
    background-repeat: no-repeat;
    background-position: left 10px top 12px;
    border-radius:6px;
    padding-left:55px;
    padding-bottom:10px;
    margin-bottom: 20px;
    height:36px;
    border-bottom:4px solid #739b97;
}

/* News Grid */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Ensures items are aligned to the left */
}

/* News Item */
.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    max-width: calc(25% - 20px); /* Three items per row */
    flex-basis: calc(25% - 20px);
    box-sizing: border-box;
    transition: transform 0.2s ease-in-out;
    border-bottom:8px solid #8cb0ac;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom:3px solid #a2b9b6;
}

.news-title {
    font-size: 1.2em;
    margin: 15px 10px;
    color: #6da5ae;
    font-weight: bold;
}

.news-excerpt {
    font-size: 0.9em;
    color: #666;
    padding: 0 10px 15px;
    padding-bottom: 18px;
}

.btn-news {
    display: block;
    clear:both;
    padding: 10px 25px;
    padding-left:45px;
    background-color: #527d78;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin:0 auto;
    margin-top:15px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    background-image: url(images/icon.png);
    background-repeat: no-repeat;
    background-position: left 10px top 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-item {
        max-width: calc(50% - 20px); /* Two items per row on smaller screens */
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .news-item {
        max-width: 100%; /* One item per row on small screens */
        flex-basis: 100%;
    }
}

.full-width {
   
}

.offices-footer {
    background-image: url(images/offices-overlay.png); /* Replace with your image URL */
    background-repeat: no-repeat; /* Prevent tiling */
  
    background-position: right bottom; 
    height:332px;
    background-color:#e9e6e4;
    width:100%;
}

.offices-photo {
    background-image: url(images/offices.png); /* Replace with your image URL */
    background-repeat: no-repeat; /* Prevent tiling */
    background-position: left;
    height:332px;
}

.offices-content {
    padding-left:550px;
    padding-top:1px;
    max-width:1000px;
    color:#666666;
    font-size:17px;
}

.offices-title {
    color: #6b6b6b;
    font-size:33px;
    font-weight:normal;
}

  .montserrat {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-style: normal;
  }

  .pacifico-regular {
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal;
  }

  .widget h2 {
    font-family: "Montserrat", serif;
    font-weight: 400;
    font-style: normal;
    font-size:24px;
  }

  .no-border table tr td {
    border:0 !important;
  }

/* --- Services Infoboxes Styles --- */
.kch-services-infoboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}
.kch-service-infobox {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 28px 22px 70px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.kch-service-infobox:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
}
.kch-service-image {
  width: 100%;
  max-width: none;
  margin-bottom: 18px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  display: block;
}
.kch-service-image img {
  width: 100%;
  height: auto;
  display: block;
}
.kch-service-infobox:hover .kch-service-image {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.kch-service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-align: center;
}
.kch-service-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
  text-align: center;
  padding-bottom: 18px;
}
.kch-service-btn-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.kch-service-readmore {
  background: #8cb0ac;
  color: #fff;
  padding: 10px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  display: inline-block;
  border: none;
}
.kch-service-readmore:hover {
  background: #b6e2dd;
  color: #444;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 900px) {
  .kch-services-infoboxes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .kch-services-infoboxes {
    grid-template-columns: 1fr;
  }
}
/* --- End Services Infoboxes Styles --- */

/* --- Single Service Page Styles --- */
.kch-service-single {
  max-width: 800px;
  margin: 48px auto 64px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(140,176,172,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 48px 36px 40px 36px;
  font-family: 'Montserrat', serif;
}
.kch-service-title-single {
  font-size: 2.8rem;
  font-weight: 900;
  color: #527d78;
  margin: 0 0 32px 0;
  letter-spacing: -1px;
  text-align: left;
  line-height: 1.1;
  position: relative;
}
.kch-title-effect {
  background: linear-gradient(90deg, #b6e2dd 0%, #8cb0ac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(140,176,172,0.13));
}
.kch-service-content-single {
  font-size: 1.18rem;
  color: #333;
  line-height: 1.7;
  margin-top: 12px;
}
.kch-service-content-single p {
  margin-bottom: 1.5em;
}
@media (max-width: 900px) {
  .kch-service-single {
    padding: 28px 10px 28px 10px;
  }
  .kch-service-title-single {
    font-size: 2rem;
  }
}
/* --- End Single Service Page Styles --- */

/* --- Contact Form 7 Styling --- */
.wpcf7-form {
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(140,176,172,0.10), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 36px 28px 32px 28px;
}
.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: #527d78;
  margin-bottom: 8px;
  font-family: 'Montserrat', serif;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #b6e2dd;
  border-radius: 7px;
  background: #f7faf9;
  font-size: 1rem;
  color: #333;
  margin-bottom: 22px;
  font-family: 'Montserrat', serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: #8cb0ac;
  outline: none;
  background: #fff;
}
.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}
.wpcf7-form input[type="submit"] {
  background: #8cb0ac;
  color: #fff;
  padding: 12px 38px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  font-family: 'Montserrat', serif;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.wpcf7-form input[type="submit"]:hover {
  background: #b6e2dd;
  color: #527d78;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-2px) scale(1.04);
}
.wpcf7-not-valid-tip {
  color: #dc725a;
  font-size: 0.98em;
  margin-top: -16px;
  margin-bottom: 12px;
}
.wpcf7-response-output {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 7px;
  background: #f7faf9;
  color: #527d78;
  border: 1.5px solid #b6e2dd;
  font-family: 'Montserrat', serif;
}
/* --- End Contact Form 7 Styling --- */

/* --- Partners Grid Styles --- */
.kch-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}
.kch-partner-infobox {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  padding: 28px 22px 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.kch-partner-infobox:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
}
.kch-partner-image {
  width: 100%;
  max-width: 160px;
  margin-bottom: 18px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: block;
}
.kch-partner-image img {
  width: 100%;
  height: auto;
  display: block;
}
.kch-partner-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-align: center;
  color: #6da5ae;
}
.kch-partner-content {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
  text-align: center;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .kch-partners-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .kch-partners-grid {
    grid-template-columns: 1fr;
  }
}
/* --- End Partners Grid Styles --- */

/* Team Grid Styles */
.kch-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}
.kch-team-infobox {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 1rem 1rem 1rem;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: box-shadow 0.2s;
}
.kch-team-infobox:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.kch-team-image img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #f2f2f2;
}
.kch-team-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem 0;
  color: #1a1a1a;
}
.kch-team-about {
  font-size: 1rem;
  color: #444;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .kch-team-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .kch-team-infobox {
    max-width: 90vw;
  }
}
/* End Team Grid Styles */