/*!
Theme Name: william
Author: William Jeffree
Author URI: http://websitewilliam.co.uk/
Description: A custom Wordpress theme for Friends of Fortismere
Version: 1.2.6

william is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/

Color Variables:
- Main Light Blue: #0CB1E1
- Dark Accent Blue: #0B3367
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
	- Ninja Forms
## Layouts
# Components
	- Header & Logo Area
	- Navigation
	- Home Banner Styles
	- Posts and pages
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/


@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:wght@300;400;700&display=swap');

/*--------------------------------------------------------------
# Generic


Green No.1 : #64a243
Green No.2 : #528636
Main Navy : #0B3367


--------------------------------------------------------------*/





/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	background-color: #f4f4f4; /* Base background color */
    /* background-image: url('/wp-content/uploads/2025/05/Textured-Background-1.jpg'); Removed */
    /* background-size: cover; Removed */
    /* background-attachment: fixed; Removed */
    /* background-position: center center; Removed */
    /* background-repeat: no-repeat; Removed */
    position: relative; /* Helps with z-index stacking for pseudo-elements */
    z-index: 0; /* Ensures body content is above the pseudo-element */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/wp-content/uploads/2025/05/Textured-Background-1.jpg');
    background-size: cover;
    background-attachment: fixed; /* This will be fixed relative to the viewport */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5; /* Control the background image opacity here */
    z-index: -1; /* Places the pseudo-element behind the body's content */
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}


/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #4c4f4e;
	font-family: "Raleway", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

/* Fix for numeral alignment in telephone numbers */
.contact-number,
.contact-number a,
a[href^="tel:"] {
    font-feature-settings: "tnum" on, "lnum" on !important;
    font-variant-numeric: tabular-nums !important;
    -webkit-font-feature-settings: "tnum" on, "lnum" on !important;
    -moz-font-feature-settings: "tnum" on, "lnum" on !important;
    font-family: "Raleway", sans-serif !important;
}

/* Additional fix for any numbers in Raleway */
[class*="raleway"] *,
[class*="Raleway"] * {
    font-feature-settings: "tnum" on, "lnum" on !important;
    font-variant-numeric: tabular-nums !important;
    -webkit-font-feature-settings: "tnum" on, "lnum" on !important;
    -moz-font-feature-settings: "tnum" on, "lnum" on !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	color: #0B3367;
	font-weight: normal;
	line-height: 1;
}
h1 {
	font-size: 2em;
	margin: 0.67em 0;
	font-weight: normal;
}


p {
	margin-bottom: 1.5em;
	color: #0B3367;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
/* body {
	background: #ffffff;
} */

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 1.5em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #0B3367;
	transition: all linear 0.25s;
	text-decoration: none;
}

a:visited {
	color: #0B3367;
}

a:hover,
a:focus,
a:active {
	color: #0a1f5a;
}

a:focus {
	outline: none;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}



/* Ninja Forms */
.nf-form-cont {
    margin-top: 30px;
    width: 100%;
    position: relative;
    overflow: hidden;
    clear: both;
}

.nf-form-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
}

.nf-form {
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
}

.nf-form-title, .nf-before-form-content, .nf-field-label {
    display: none;
}

/* privacy policy label */
.nf-field-label label {
    font-weight: 300 !important;
    font-size: 0.85em !important;
}

.nf-field input[type="submit"] {
    background: transparent !important;
    color: white !important;
    font-size: 40px !important;
    padding: 0 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: -0.05em !important;
    border: 0px !important;
    transition: all linear 0.3s;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 300 !important;
    opacity: 0.85;
}

.nf-field input[type="submit"]:hover {
    border: 0px !important;
    opacity: 1;
}

.nf-element {
    border: 0px !important;
    font-size: 16px;
    font-weight: 400;
    border-radius: 0px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.85);
}

.nf-field input, .nf-field input::placeholder, .nf-field-element textarea, .nf-field-element textarea::placeholder {
    color: #0B3367 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.nf-field-container {
    margin-bottom: 15px !important;
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
}

.nf-error-msg {
    font-size: 12px;
    color: red !important;
    font-weight: 500;
}

/* remove the final error notice */
.nf-error-field-errors {
    display: none;
}

.nf-field-element textarea {
    height: 280px !important;
    padding: 10px 10px !important;
    border-radius: 0px !important;
}

.ninjaFormContainer {
    float: left;
    margin: 10px 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    width: 100%;
    position: relative;
    overflow: hidden;
    clear: both;
}

.ninjaFormContainer h1 {
    color: white;
    font-size: 50px;
}

.nf-fields-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    clear: both;
}

.nf-fields-wrap div {
    clear: both;
}

.nfLeft {
    float: left;
    width: 49%;
    margin-right: 2%;
    clear: none !important;
}

.nfRight {
    float: right;
    width: 49%;
    clear: none !important;
}

.nf-field-element input:focus, .nf-field-element textarea:focus {
    outline: none !important;
}

.nf-field-element textarea:focus {
}

.nf-field input[type="submit"]:focus {
    border: 0px !important;
}

.nf-response-msg {
    border: 0px !important;
}

.nf-response-msg p {
	color: white !important;
    font-size: 1.25em;
}


/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* Special styling for home page to accommodate absolute header */
.home .wrap {
    padding-top: 0;
}


.site-content {
    display: flex;
    gap: 2rem;
    background: transparent; /* Added to ensure body background shows */
}

#primary {
    width: 100%;
    background: transparent; /* Ensured this is transparent */
}

#secondary {
    width: 500px;
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    #primary,
    #secondary {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/


/* Header & Logo Area
--------------------------------------------- */

.site-header {
    position: relative;
    background: transparent;
    padding: 1rem 0;
    z-index: 100;
}
.site-branding {
    max-width: 160px;
    margin: 0px 0 0 15px;
}






/* 
--------------------------------------------- 
MAIN SITE NAVIGATION
--------------------------------------------- */

/* Burger Menu */
.menu-toggle {
    position: absolute;
    top: 60px;
    right: 40px;
    z-index: 1000;
    width: 50px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: position 0.3s ease;
}

.menu-toggle[aria-expanded="true"] {
    position: fixed;
}

.burger-icon {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0B3367;
    transition: transform 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #0B3367;
    transition: transform 0.3s ease;
    left: 0;
}

.burger-icon::before { 
    top: -8px; 
}

.burger-icon::after { 
    bottom: -8px; 
}

.menu-toggle[aria-expanded="true"] .burger-icon,
.menu-toggle[aria-expanded="true"] .burger-icon::before,
.menu-toggle[aria-expanded="true"] .burger-icon::after {
    background-color: #ffffff;
}

.menu-toggle.active .bar {
    background-color: #ffffff;
}

.menu-toggle[aria-expanded="true"] .burger-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .burger-icon::before {
    transform: rotate(45deg) translate(0px, 0px);
    top: 0;
    background-color: #ffffff;
}

.menu-toggle[aria-expanded="true"] .burger-icon::after {
    transform: rotate(-45deg) translate(1px, -1px);
    bottom: 0;
    background-color: #ffffff;
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -340px; /* Initially off-screen (300px content + 2*20px padding) */
    width: 340px;  /* Width for one column (300px content + 2*20px padding) */
    height: 100vh;
    background: #0CB1E1;
    z-index: 999;
    transition: right 0.3s ease-in-out, width 0.3s ease-in-out; /* Added width transition */
    padding: 80px 20px 20px;
    overflow: hidden; /* Add overflow hidden to clip columns */
}

.slide-menu.is-active, /* Same as level-1 */
.slide-menu.level-1 {
    right: 0; /* Show first 300px column */
    width: 340px; /* 300px content + 2*20px padding */
}

.slide-menu.level-2 {
    right: 0; /* Show first two columns */
    width: 640px; /* (2 * 300px content) + 2*20px padding */
}

.slide-menu.level-3 {
    right: 0; /* Show all three columns */
    width: 940px; /* (3 * 300px content) + 2*20px padding */
}

/* Menu Structure */
.menu-columns-wrapper {
    display: flex;
    height: 100%;
    position: relative;
    will-change: transform;
}

/* Navigation Columns */
.nav-column {
    min-width: 300px; /* Was 360px */
    width: 300px;    /* Was 360px */
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    background: transparent;
}

.nav-column.visible .nav-menu {
    opacity: 1;
}

/* Column Headers */
.column-header {
    padding: 65px 20px 60px;
    text-align: center;
    border-bottom: 0px solid white;
    background: transparent;
    position: sticky;
    top: 0;
	z-index: 2;
}

.back-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    z-index: 2;
	text-transform: uppercase;
}

/* Remove animations from back button */
.back-button,
.back-button * {
    transition: none;
}

.column-title {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Menu Items */
.nav-menu {
    list-style: none;
    padding: 5px; /* Was 20px */
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: right;
}

.nav-menu-item {
    margin-bottom: 10px;
}

.nav-menu-link {
    display: block;
    padding: 0px 23px;
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1.45rem;
}

.nav-menu-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.has-children > .nav-menu-link::after {
    content: '>';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /*
    .slide-menu {
        width: 100%;
        right: -100%;
        background: #0B3367;
    }

    .slide-menu.is-active,
    .slide-menu.level-1,
    .slide-menu.level-2,
    .slide-menu.level-3 {
        right: 0;
    }

    .menu-columns-wrapper {
        width: 300%;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-wrap: nowrap;
    }

    .slide-menu.level-2 .menu-columns-wrapper {
        transform: translateX(-33.33%);
    }

    .slide-menu.level-3 .menu-columns-wrapper {
        transform: translateX(-66.66%);
    }

    .nav-column {
        width: 33.33%;
        min-width: 33.33%;
        border-right: none;
        opacity: 1;
        visibility: visible;
        display: block;
        flex: 0 0 33.33%;
        background: transparent;
    }

    .nav-menu {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-column.visible .nav-menu {
        opacity: 1;
    }

    .column-header {
        padding: 65px 20px 60px;
        text-align: center;
        min-height: auto;
        display: block;
    }

    .back-button {
        position: absolute;
        bottom: 20px;
        left: 20px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .nav-menu {
        padding: 15px 20px;
    }

    .nav-menu-item {
        margin-bottom: 10px;
    }

    .nav-menu-link {
        padding: 0px 23px;
        font-size: 1.45rem;
        border-radius: 0;
        color: white !important;
    }

    .has-children > .nav-menu-link::after {
        right: 10px;
        color: white;
    }

    .menu-toggle {
        top: 40px;
        right: 40px;
        width: 40px;
        height: 35px;
    }
    */
}

@media (max-width: 500px) {
    .site-branding {
        max-width: 130px; /* Was 163px - User change, keeping this */
    }

    /*
    .menu-toggle {
        top: 27px;
        right: 23px;
    }
    */
}



/* Remove default display: none from navigation
--------------------------------------------- */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

@media screen and (min-width: 37.5em) {
    /* Keep menu toggle visible at all screen sizes */
    .menu-toggle {
        display: block;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #primary-menu {
        gap: 1rem;  /* Reduce gap on smaller screens */
    }
    
    #primary-menu > li > a {
        font-size: 1.1rem;  /* Slightly smaller on mobile */
    }
    
    #primary-menu .sub-menu a {
        font-size: 0.9rem;  /* Slightly smaller on mobile */
    }
}



/* -----------------------------
   Core Banner Structure
----------------------------- */
.home-banner-container {
    margin: 0;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    overflow: visible;
    background-size: cover;
    background-position: center;
}

.home-banner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    max-height: none;
    overflow: hidden;
}

/* Base banner styles with shared gradient */
.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent
    );
    z-index: 1;
}

/* Regular page banner gradient */
.page-banner:not(.home-banner)::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent
    );
}

/* Home banner specific styles */
.home-banner .swiper-slide {
    position: relative;
}

/* Removing the overlay pseudo-element as requested */
/* .home-banner .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent
    );
    z-index: 1;
} */

.home-banner .banner-content {
    position: relative;
    width: 100%;
    max-width: 1160px;
    padding: 0 20px;
    text-align: left;
    z-index: 2;
    margin-bottom: -150px;
}

/* Remove the gradient from the home-banner container since we're applying it to slides */
.home-banner::before {
    content: none;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -----------------------------
   Banner Content Styles
----------------------------- */
.banner-content {
    position: absolute;
    bottom: 50px;
    width: 100%;
    padding: 0 20px;	
    color: white;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.banner-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	color: white;
    max-width: 980px;
}

/* Horizontal line between title and content */
/* .banner-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 1rem 0;
} */

.banner-excerpt {
    max-width: 750px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-read-more {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #0B3367;
    color: white !important;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.banner-read-more:hover {
    background-color: #0a1f5a;
    color: white;
    transform: scale(1.05);
}


/* -----------------------------
   Pagination - Updated
----------------------------- */
.swiper-pagination {
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    width: auto !important;
    text-align: right;
}

.swiper-pagination-bullet {
    width: 25px !important; /* Increased size */
    height: 25px !important; /* Increased size */
    display: inline-block;
    background-color: #0B3367 !important; /* Dark Accent Blue for standard state */
    background-image: none !important; /* Ensure no interfering image/gradient */
    margin: 0 8px; /* Adjusted spacing if needed */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    border: none !important; /* Remove border for a flat look */
}

.swiper-pagination-bullet-active {
    background-color: #0CB1E1 !important; /* Main Light Blue for active state */
    background-image: none !important; /* Ensure no interfering image/gradient */
    transform: scale(1.1); /* Optional: keep or remove active scale effect */
}

/* -----------------------------
   Responsive Styles - Updated
----------------------------- */
@media screen and (max-width: 768px) {
    .home-banner {
        height: 75vh;
        min-height: 400px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-excerpt {
        font-size: 1rem;
    }

    .banner-read-more {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .banner-content {
        padding: 0 30px; /* Added padding for mobile */
        bottom: 100px; /* Moved up slightly to make room for pagination */
    }

    /* Hide navigation arrows on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 20px !important;
        right: 20px !important;
    }
}



/*
---------------------------------------------
Posts and pages
--------------------------------------------- */



/* Homepage */

/* Make title visible and style like .section-title */
.home .entry-title {
    display: block;
    margin: 4rem auto;
    color: #0B3367;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: left;
}

/* Responsive styling for home entry-title */
@media screen and (max-width: 768px) {
    .home .entry-title {
        font-size: 2rem;
        margin: 3rem auto;
    }
    /* Note: If .section-title also had other responsive changes, they would need to be mirrored here or .home .entry-title grouped with .section-title in responsive block */
}


.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}



/* Treatments Portals Styles */
.treatments-section {
    margin: 4rem 0;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    margin: 4rem auto;
    color: #0B3367;
    font-size: 2.5rem;
    font-weight: 400;
}

.treatments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 0 auto;
}

.treatment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 300px;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.treatment-content {
    padding: 1.5rem;
}

.treatment-title {
    color: #040F30;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.treatment-excerpt {
    color: #4c4f4e;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.treatment-link {
    display: inline-block;
    color: #040F30;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.treatment-link:hover {
    color: #0a1f5a;
}

@media screen and (max-width: 768px) {
    .treatments-section {
        margin: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}



/* Archive Page Styles */
.posts-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 2rem;
   margin: 2rem 0;
}

.post-card {
   background: white;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
   width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
}

.post-card:hover {
   transform: translateY(-5px);
}

.post-image img {
   width: 100%;
   height: 200px;
   object-fit: cover;
}

.post-content {
   padding: 1.5rem;
   flex: 1;
   display: flex;
   flex-direction: column;
}

.post-title {
   color: #040F30;
   margin: 0 0 0.5rem;
   font-size: 1.5rem;
   font-weight: 400;
}

.post-meta {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.post-excerpt {
   color: #4c4f4e;
   margin-bottom: 1.5rem;
   line-height: 1.6;
   flex: 1;
}

.post-link {
   display: inline-block;
   color: #040F30;
   text-decoration: none;
   font-weight: 500;
   transition: color 0.3s ease;
}

.post-link:hover {
   color: #0a1f5a;
}

/* Load More Button */
.load-more-container {
   text-align: center;
   margin: 2rem 0;
}

.load-more-button {
   background: #040F30;
   color: white;
   border: none;
   padding: 1rem 2.5rem;
   border-radius: 15px;
   font-size: 1.1rem;
   cursor: pointer;
   transition: all 0.3s ease;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.load-more-button:hover {
   background: #0a1f5a;
   transform: scale(1.05);
}

/* Archive Header */
.page-header {
   text-align: center;
   margin-bottom: 2rem;
}

.page-title {
   color: #040F30;
   font-size: 2.5rem;
   font-weight: 400;
   margin: 0;
}

.archive-description {
   max-width: 800px;
   margin: 1rem auto;
   color: #4c4f4e;
}

@media screen and (max-width: 768px) {
   .posts-grid {
       grid-template-columns: 1fr;
   }
}



/* Footer
--------------------------------------------- */
#colophon {
    background: #0CB1E1;
    margin-top: 80px;
    padding: 30px 0;
    color: #ffffff;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f5;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Services Circles Styles */
.services-circles-section {
    margin: 4rem 0;
    padding: 0 20px;
    text-align: center;
}

.services-circles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin: 2rem auto;
}

.service-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-circle:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-circle-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-circle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: opacity 0.3s ease;
}

.service-circle:hover .service-circle-overlay {
    opacity: 0.1;
}

.service-circle-title {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    text-transform: uppercase;
}

.service-circle:hover .service-circle-title {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .service-circle {
        width: 200px;
        height: 200px;
    }
    
    .service-circle-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .services-circles-grid {
        gap: 1.5rem;
    }
    
    .service-circle {
        width: 150px;
        height: 150px;
    }
    
    .service-circle-title {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Page Banner Styles */
.page-banner-container {
    margin: 0;
    position: relative;
    /* width: 100vw; */
    /* left: 50%; */
    /* right: 50%; */
    /* margin-left: -50vw; */
    /* margin-right: -50vw; */
    margin-bottom: 40px; /* This might still be useful or could be overridden by standard-banner.css */
    overflow: visible; /* Match standard-banner.css */
    background-size: cover; /* Likely handled by .standard-banner-slide now */
    background-position: center; /* Likely handled by .standard-banner-slide now */
}

/* Remove bottom margin for contact page banner */
.page-template-page-contact .page-banner-container {
    margin-bottom: 0;
}

.page-banner {
    width: 100%;
    height: 55vh;
    min-height: 300px;
    max-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.8)
    );
    z-index: 1;
}

.page-banner__content {
    position: absolute;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    color: white;
    z-index: 2;
    text-align: left;
    padding: 0 20px 80px;
    left: 0;
    bottom: 0;
}

.page-banner__title {
    color: white;
    margin: 0;
    font-size: 2.5rem;
    text-transform: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.page-banner__title::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 1rem 0;
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 50vh;
        min-height: 200px;
    }
    
    .page-banner__content {
        padding-bottom: 60px;
    }
    
    .page-banner__title {
        font-size: 2rem;
    }
}

/* Blog Archive Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card__image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__header {
    margin-bottom: 1rem;
}

.blog-card__title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.blog-card__title a {
    color: #040F30;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #0a1f5a;
}

.blog-card__meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-card__date {
    margin-right: 1rem;
}

.blog-card__categories a {
    color: #040F30;
    text-decoration: none;
}

.blog-card__categories a:hover {
    text-decoration: underline;
}

.blog-card__excerpt {
    color: #4c4f4e;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card__footer {
    margin-top: auto;
}

.blog-card__read-more {
    display: none;
}

/* Blog Pagination */
.blog-pagination {
    margin: 3rem 0;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.blog-pagination .page-numbers li {
    display: inline-block;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #040F30;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers a:hover {
    background: #040F30;
    color: white;
}

.blog-pagination .page-numbers .current {
    background: #040F30;
    color: white;
}

@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card__title {
        font-size: 1.3rem;
    }
}

/* Sidebar Contact Numbers
--------------------------------------------- */
.sidebar-contact {
    margin-bottom: 1.5rem;
}

.contact-number {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.contact-number:last-child {
    margin-bottom: 0;
}

.contact-number i {
    font-size: 2rem;
    margin-right: 0.9rem;
    color: #040F30;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.contact-number i:hover {
    transform: scale(1.1);
}

.contact-number a {
    color: #040F30;
    font-size: 1.32rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-number a:hover {
    color: #0a1f5a;
}

/* WhatsApp specific styling */
.contact-number .fa-whatsapp {
    font-size: 2.5rem;
    color: #25D366;
}

/* Specific icon styles */
.icon-phone {
    width: 24px;
    height: 24px;
}

.icon-whatsapp {
    width: 29px;
    height: 29px;
    fill: #25D366;
}

/* Add footer menu styles */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a,
.footer-menu a:visited {
    color: #ffffff;
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu a:active {
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin: 2rem 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(4, 15, 48, 0.1);
}

.accordion-item:first-child {
    border-top: 1px solid rgba(4, 15, 48, 0.1);
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem 0;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: #040F30;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 500;
    padding-right: 2rem;
}

.accordion-icon {
    fill: #040F30;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    color: #4c4f4e;
    line-height: 1.6;
    display: none; /* Hide by default */
}

@media screen and (max-width: 768px) {
    .accordion-title {
        font-size: 1.1rem;
    }
    
    .accordion-trigger {
        padding: 1.25rem 0;
    }
}

/* Testimonials Slider Styles */
.testimonials-slider-container {
    margin: 0;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-image: url('/wp-content/uploads/2025/02/Fire-Flood-Restoration-London-DSCN0467-scaled.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.testimonials-slider-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.6)
    );
}

.testimonials-slider {
    width: 100%;
    height: auto;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.testimonials-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 20px;
}

.testimonial-content {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    color: white;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.testimonial-quote-mark {
    position: absolute;
    top: -180px;
    left: -80px;
    font-size: 800px;
    opacity: 0.15;
    color: white;
    font-family: Georgia, serif;
    z-index: -1;
    line-height: 1;
}

.testimonial-quote {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: left;
    position: relative;
    color: white;
}

.testimonial-name {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    text-align: right;
    margin: 0;
    color: white;
}

/* Inherit pagination styles from home banner */
.testimonials-slider .swiper-pagination-bullet {
    /* background: white; */ /* Removed to inherit general style */
    /* opacity: 0.5; */   /* Removed to inherit general style's opacity: 1 */
}

.testimonials-slider .swiper-pagination-bullet-active {
    /* opacity: 1; */     /* Removed to inherit general style's opacity: 1 */
}

@media screen and (max-width: 768px) {
    .testimonials-slider {
        min-height: 250px;
    }

    .testimonials-slider .swiper-slide {
        padding: 2rem 15px;
    }

    .testimonial-content {
        padding: 1rem 0;
    }

    .testimonial-quote {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-name {
        font-size: 0.9rem;
    }

    .testimonial-quote-mark {
        font-size: 400px;
        top: -80px;
        left: -20px;
    }

    .testimonials-slider .swiper-pagination {
        bottom: 15px !important;
        right: 15px !important;
    }

    .testimonials-slider .swiper-pagination-bullet {
        width: 12px !important;
        height: 12px !important;
        margin: 0 4px;
    }
}

@media screen and (max-width: 480px) {
    .testimonials-slider {
        min-height: 200px;
    }

    .testimonials-slider .swiper-slide {
        padding: 1.5rem 10px;
    }

    .testimonial-quote {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .testimonial-name {
        font-size: 0.8rem;
    }

    .testimonial-quote-mark {
        font-size: 300px;
        top: -60px;
        left: -15px;
    }
}

/* Text Widget Styles */
.textwidget {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #4c4f4e;
}

/* Hide widget titles */
.widget-title {
    display: none;
}

/* Latest Project Section Styles */
.latest-project-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.latest-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.latest-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.latest-project-content {
    color: #040F30;
}

.latest-project-section-title {
    color: #040F30;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.latest-project-title {
    color: #040F30;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: none;
}

.latest-project-challenge,
.latest-project-solution {
    margin-bottom: 2rem;
}

.latest-project-challenge h3,
.latest-project-solution h3 {
    color: #040F30;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.latest-project-challenge p,
.latest-project-solution p {
    color: #040F30;
    font-size: 1.1rem;
    line-height: 1.6;
}

.latest-project-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 0;
    color: #040F30;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    border-bottom: 1px solid #040F30;
    width: fit-content;
    position: relative;
    padding-right: 2rem;
}

.latest-project-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

.latest-project-featured-image {
    position: absolute;
    bottom: 0;
    right: 50px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;
}

.latest-project-featured-image img {
    display: none;
}

@media screen and (max-width: 768px) {
    .latest-project-section {
        padding: 4rem 0;
    }
    
    .latest-project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .latest-project-title {
        font-size: 2rem;
    }
    
    .latest-project-challenge h3,
    .latest-project-solution h3 {
        font-size: 1.3rem;
    }
    
    .latest-project-challenge p,
    .latest-project-solution p {
        font-size: 1rem;
    }

    .latest-project-featured-image {
        position: relative;
        width: 80vw;
        height: 80vw;
        margin: 2rem auto;
        right: auto;
        bottom: auto;
    }

    .latest-project-supporting-images {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .latest-project-featured-image {
        width: 70vw;
        height: 70vw;
    }
}

.latest-project-supporting-images {
    display: flex;
    gap: 0rem;
    margin-top: -70px;
    margin-left: 130px;
    position: relative;
}

@media screen and (max-width: 768px) {
    .latest-project-supporting-images {
        display: none;
    }
}

.latest-project-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
}

.latest-project-image.second {
    width: 250px;
    height: 250px;
    margin-top: 60px;
}

.latest-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .latest-project-supporting-images {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .latest-project-image {
        width: 150px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    .latest-project-supporting-images {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .latest-project-image {
        width: 200px;
        height: 200px;
    }
}

/* Reusable Arrow Link Style */
.arrow-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 0;
    color: #040F30;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    border-bottom: 1px solid #040F30;
    width: fit-content;
    position: relative;
    padding-right: 2rem;
}

.arrow-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
}

.arrow-link:hover {
    color: #0a1f5a;
    border-bottom-color: #0a1f5a;
}

/* Single Post Styles */
.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
    color: #040F30;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-meta {
    color: #666;
    font-size: 1rem;
}

.post-thumbnail {
    margin: 0 0 2rem;
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4c4f4e;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #040F30;
    margin: 2rem 0 1rem;
    line-height: 1.2;
}

.entry-content h2 {
    font-size: 2rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(4, 15, 48, 0.1);
    color: #666;
    font-size: 0.9rem;
}

.entry-footer span {
    display: inline-block;
    margin-right: 1.5rem;
}

.entry-footer a {
    color: #040F30;
    text-decoration: none;
}

.entry-footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
}

/* Recent Posts Widget Styles */
.recent-posts-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recent-posts-widget .widget-title {
    color: #040F30;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(4, 15, 48, 0.1);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(4, 15, 48, 0.1);
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-thumbnail:hover img {
    transform: scale(1.05);
}

.recent-post-content {
    flex: 1;
}

.recent-post-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #040F30;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #0a1f5a;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
}

@media screen and (max-width: 768px) {
    .recent-posts-widget {
        margin-top: 2rem;
    }
    
    .recent-post-thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .recent-post-content h4 {
        font-size: 0.9rem;
    }
}

/* Latest Blogs Section */
.latest-blogs-section {
    margin: 4rem 0;
    padding: 0 20px;
}

.latest-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.latest-blogs-footer {
    text-align: center;
    margin-top: 3rem;
}

@media screen and (max-width: 768px) {
    .latest-blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-blogs-section {
        margin: 3rem 0;
    }
}

/* Footer Contact Content Styles */
.footer-contact-content {
    color: #ffffff;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-contact {
    border-top: 0px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
}

/* Hide footer contact title on contact page template */
.page-template-page-contact .footer-contact-title {
    display: none;
}

.footer-contact-title {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-contact-content p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-contact-content h1,
.footer-contact-content h2,
.footer-contact-content h3,
.footer-contact-content h4,
.footer-contact-content h5,
.footer-contact-content h6 {
    color: #ffffff;
    margin: 2rem 0 1rem;
    line-height: 1.2;
}

.footer-contact-content h2 {
    font-size: 2rem;
}

.footer-contact-content h3 {
    font-size: 1.5rem;
}

.footer-contact-content a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-contact-content a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .footer-contact-content {
        font-size: 1rem;
    }
    
    .footer-contact-content h2 {
        font-size: 1.8rem;
    }
    
    .footer-contact-content h3 {
        font-size: 1.3rem;
    }

    /* Ninja Form Mobile Styles */
    .nf-field-container {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* Footer Credits Mobile Styles */
    .footer-credits {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .copyright,
    .designer-credit {
        width: 100%;
        text-align: center;
    }
}

/* Footer Navigation Styles */
.footer-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
}

.footer-menus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-menu-column {
    text-align: left;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.6rem;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .footer-menus-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-menu-column {
        text-align: center;
    }
}

/* Footer Credits */
.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.designer-credit {
    text-align: right;
}

.designer-link,
.designer-link:visited {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
}

.designer-link:hover {
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .footer-credits {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-credits .copyright,
    .footer-credits .designer-credit {
        width: 100%;
        text-align: center;
    }
}

/* 404 Error Page Styles */
.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 8rem;
    color: #040F30;
    margin: 0;
    line-height: 1;
    font-weight: 300;
}

.error-message {
    font-size: 2rem;
    color: #040F30;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-description {
    font-size: 1.2rem;
    color: #4c4f4e;
    margin: 0;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    .error-message {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .error-title {
        font-size: 4rem;
    }
    
    .error-message {
        font-size: 1.2rem;
    }
}

/* Generic Button Style
--------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #0B3367;
    color: white !important;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0a1f5a;
    color: white;
    transform: scale(1.05);
}

.btn-light {
    background-color: #0CB1E1; /* Main Light Blue */
}

.btn-light:hover {
    background-color: #0B3367; /* Dark Accent Blue */
}

/* Responsive button styles */
@media screen and (max-width: 768px) {
    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Event Date Pill */
.event-date-pill {
    display: inline-block;
    background-color: #0B3367;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.post-title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.post-title {
    margin: 0;
    flex: 1;
    text-align: left;
}

.post-header-content {
    padding: 20px;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .post-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .post-title {
        text-align: left;
        width: 100%;
    }
    
    .event-date-pill {
        margin-left: 0;
    }
    
    .post-header-content {
        text-align: left;
    }
}

.site-main { /* Added to ensure body background shows through */
    background: transparent;
}

/* Full-size featured image below post content */
.post-featured-image-full {
    margin: 2rem 0;
    overflow: hidden;
}

.post-featured-image-full img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Footer Content Columns */
.footer-content-columns {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
}

/* Left column (contact) styling */
.footer-contact-column {
    flex-basis: 55%;
}

/* Right column (donations) styling */
.footer-donations-column {
    flex-basis: 45%;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-donations-title {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-donations-column p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-donations-column h1,
.footer-donations-column h2,
.footer-donations-column h3,
.footer-donations-column h4,
.footer-donations-column h5,
.footer-donations-column h6 {
    color: #ffffff;
    margin: 2rem 0 1rem;
    line-height: 1.2;
}

.footer-donations-column a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-donations-column a:hover {
    opacity: 0.8;
}

/* Donations button styling */
.footer-donations-button {
    margin-top: 1.5rem;
    text-align: center;
}

.donations-button-link {
    display: inline-block;
}

.donations-button-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive styles for footer columns */
@media screen and (max-width: 768px) {
    .footer-content-columns {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-column {
        flex-basis: 100%;
    }
    
    .footer-donations-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-donations-button {
        margin-top: 1.5rem;
    }
}

/* Animated Arrow Styling */
.animated-arrow-container {
    position: relative; /* Adjust as needed based on surrounding elements */
    left: 90px;
    /* Add top/z-index if necessary after reviewing its new position */
    /* e.g., top: 20px; */
    /* z-index: 10; */
}
