/*
Theme Name: Open Newtown
Theme URI: https://opennewtown.org.uk/
Description: Custom child theme for Open Newtown
Author: Blue Dawn Commercial
Author URI: https://bluedawncommercial.co.uk/
Template: kadence
Version: 1.0
*/

/* Open Newtown custom styles */
/* Open Newtown gradient headings */
.gradient-heading,
.gradient-heading h1,
.gradient-heading h2,
.gradient-heading h3,
.gradient-heading .kt-adv-heading {
    background-image: linear-gradient(
        90deg,
        #0755A0 0%,
        #15945C 100%
    ) !important;

    background-clip: text !important;
    -webkit-background-clip: text !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.custom-logo {
    transform: translateY(-20px);
	 margin-bottom: -60px;
}

/* Remove logo offset on tablet and mobile */
@media (max-width: 1024px) {
    .custom-logo {
        transform: none;
		margin-top:30px;
		 margin-bottom: -60px;
    }
}
/* Compact Open Newtown main header */
.site-main-header-inner-wrap {
    min-height: 90px !important;
}

.site-main-header-wrap {
	margin-top: -25px;}

.site-header {
    border-bottom: 1px solid #e5eeee;
}

/* Keep centred logo above the other header rows */
.site-branding {
    position: relative;
    z-index: 20;
}

.site-header-row-container {
    position: relative;
    z-index: 1;
}
.site-top-header-wrap {
    position: relative;
    z-index: 100 !important;
}

/* Desktop header positioning */
@media (min-width: 1318px) {
    .site-main-header-wrap {
        margin-top: 10px;
    }
}

/* Tablet and smaller laptop header */
@media (max-width: 1317px) {
    .site-main-header-wrap {
        margin-top: 0px;
    }
}
.quick-card {
    min-height: 160px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.quick-card-row .wp-block-kadence-column {
    flex-direction: row;
}
.quick-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

/* Disable hover movement on touch devices */
@media (hover: none) {
    .quick-card:hover {
        transform: none;
        box-shadow: inherit;
    }
}

.quick-card:focus-within {
    outline: 3px solid #006699;
    outline-offset: 4px;
}

/* Allow cards to size naturally on mobile */
@media (max-width: 767px) {
    .quick-card {
        height: auto;
        min-height: 150px;
    }
}

.leaflet-container {
    border-radius: 10px;
    overflow: hidden;
}

/* ========================================
   REPORT A PROBLEM MODAL
   ======================================== */

.report-problem-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    padding: 30px;
    overflow-y: auto;
}

.report-problem-modal.is-open {
    display: block;
}

/* Dark background overlay */
.report-problem-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* Main popup */
.report-problem-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Close button */
.report-problem-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #006699;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}

.report-problem-close:hover {
    opacity: 0.7;
}

/* Popup heading */
.report-problem-header {
    margin-bottom: 25px;
    padding-right: 30px;
}

.report-problem-header h2 {
    margin: 0 0 12px;
    color: #006699;
}

.report-problem-header p {
    margin: 0 0 10px;
}

/* Managed spaces guidance */
.report-problem-guidance {
    padding: 12px 15px;
    background: rgba(102, 204, 153, 0.15);
    border-left: 4px solid #66cc99;
}

/* Prevent page behind popup from scrolling */
body.report-problem-open {
    overflow: hidden;
}

/* Forminator dropdowns */
.report-problem-dialog .forminator-select {
    position: relative;
    z-index: 10;
}

.report-problem-dialog .select2-container {
    z-index: 100001 !important;
}

.report-problem-dialog .select2-dropdown {
    z-index: 100002 !important;
}
/* Match dropdown text to other Forminator fields */
.report-problem-dialog .select2-selection__rendered {
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #76839a !important;
}
/* Mobile */
@media (max-width: 767px) {

    .report-problem-modal {
        padding: 15px;
    }

    .report-problem-dialog {
        padding: 30px 20px 25px;
        border-radius: 8px;
    }

    .report-problem-close {
        top: 8px;
        right: 10px;
    }

}
@media (pointer: coarse) {
    .leaflet-container {
        touch-action: pan-y !important;
    }
}

/* Event date on individual event page */

.single-event-date {
      display: inline-block;
    width: auto;
    margin: 0 0 20px 0 !important;
    padding: 0 60px 10px 0 !important;
    border-bottom: 2px solid #66CC99;
}


.single-event-date-label {
    display: block !important;
    margin: 0 0 4px 0 !important;
    
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    
    color: #3569a3 !important;
}

.single-event-date-value {
    display: block !important;
    
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    
    color: #145642 !important;
}
/* =========================================================
   SINGLE EVENT LAYOUT
   ========================================================= */

.single-event-layout {
    display: block;
}

/* Featured event image */

.single-event-image-wrap {
    float: left;
    width: 38%;
    max-width: 540px;
    margin: 0 36px 24px 0 ;

    overflow: hidden;
    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(20, 45, 55, 0.15),
        0 2px 6px rgba(20, 45, 55, 0.08);
}

.single-event-image {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
}

/* Prevent the float escaping the content area */

.single-event-layout::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile */

@media (max-width: 767px) {

    .single-event-image-wrap {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 24px 0;
    }
}
/* Event page title gradient */

h1.entry-title {
    display: inline-block !important;

    background: linear-gradient(
        90deg,
        #3569a3 0%,
        #66CC99 100%
    ) !important;

    background-clip: text !important;
    -webkit-background-clip: text !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
/* News category navigation */
ul.wp-block-categories.news-category-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 12px;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

ul.wp-block-categories.news-category-nav > li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.wp-block-categories.news-category-nav > li::marker {
    content: "" !important;
}

ul.wp-block-categories.news-category-nav > li > a {
    display: block;
    padding: 9px 18px;
    border: 1px solid #00689d;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
}
.news-category-nav li:has(a[href*="/category/newsletter/"]),
.news-category-nav li:has(a[href*="/category/uncategorized/"]) {
    display: none !important;
}
/* Category button hover */
.news-category-nav a {
    transition: all 0.25s ease;
}

.news-category-nav a:hover {
    background-color: #00689d;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
/* =========================================================
   NEWS & UPDATES CARDS
========================================================= */

/* Grid spacing */
.news-updates-grid {
    gap: 32px !important;
    align-items: start !important;
}

/* Individual post card */
.news-updates-grid article {
    position: relative;
    overflow: hidden !important;

    background: rgba(255, 255, 255, 0.97) !important;

    border: 1px solid rgba(53, 105, 163, 0.08);
    border-radius: 20px !important;
	

    box-shadow:
        0 10px 30px rgba(20, 45, 55, 0.10),
        0 2px 8px rgba(20, 45, 55, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Subtle lift on hover */
.news-updates-grid article:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 38px rgba(20, 45, 55, 0.15),
        0 4px 10px rgba(20, 45, 55, 0.07);
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.news-updates-grid .post-thumbnail {
    margin: 0 !important;
	  border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
}

.news-updates-grid .post-thumbnail img {
    display: block;
    width: 100%;
    height: 240px;

    object-fit: cover;
   border-radius: 20px 20px 0 0 !important;
    transition: transform 0.4s ease;
}

/* Very subtle image movement */
.news-updates-grid article:hover .post-thumbnail img {
    transform: scale(1.025);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.news-updates-grid .entry-content-wrap {
    padding: 26px 28px 30px !important;
}

/* Category */
.news-updates-grid .entry-taxonomies,
.news-updates-grid .entry-taxonomies a {
    margin-bottom: 10px;

    color: #3569a3 !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}


/* =========================================================
   TITLES
========================================================= */

.news-updates-grid .entry-title {
    margin: 0 0 16px !important;

    font-size: 28px !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

/* Same Open Newtown gradient */
.news-updates-grid .entry-title a {
    color: #3569a3;

    background: linear-gradient(
        90deg,
        #3569a3 0%,
        #3569a3 35%,
        #55b88b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-decoration: none !important;
}


/* =========================================================
   EXCERPT
========================================================= */

.news-updates-grid .entry-summary {
    margin-top: 0 !important;

    font-size: 15px;
    line-height: 1.55;

    color: #4b5960;
}

.news-updates-grid .entry-summary p {
    margin-bottom: 18px;
}


/* =========================================================
   READ MORE
========================================================= */

.news-updates-grid .more-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 4px;

    color: #234f7e !important;

    font-size: 12px !important;
    font-weight: 700 !important;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    text-decoration: none !important;

    transition:
        gap 0.2s ease,
        color 0.2s ease;
}

.news-updates-grid .more-link:hover {
    gap: 11px;
    color: #55a986 !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .news-updates-grid {
        gap: 24px !important;
    }

    .news-updates-grid .post-thumbnail img {
        height: 220px;
    }

    .news-updates-grid .entry-title {
        font-size: 25px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .news-updates-grid {
        gap: 22px !important;
    }

    .news-updates-grid article {
        border-radius: 0px !important;
    }

    .news-updates-grid .post-thumbnail img {
        height: 220px;
    }

    .news-updates-grid .entry-content-wrap {
        padding: 22px 22px 26px !important;
    }

    .news-updates-grid .entry-title {
        font-size: 24px !important;
    }
}
/* =========================================================
   NEWS & UPDATES HERO
========================================================= */

.hero-banner-mobile {
    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(35, 79, 126, 0.92) 0%,
            rgba(35, 79, 126, 0.78) 32%,
            rgba(35, 79, 126, 0.32) 62%,
            rgba(35, 79, 126, 0.04) 100%
        ),
        url('/wp-content/uploads/2026/09/aerial-view.webp') !important;

    background-size: cover !important;
    background-position: 49% 27% !important;
    background-repeat: no-repeat !important;
}
/* Jagged bottom edge */
.hero-banner-mobile::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 42px;
    z-index: 2;

    background: #ffffff;

    clip-path: polygon(
        0 72%,
        12% 82%,
        25% 70%,
        38% 86%,
        52% 74%,
        66% 88%,
        80% 72%,
        91% 84%,
        100% 70%,
        100% 100%,
        0 100%
    );

    pointer-events: none;
}
.volunteer-card {
    min-height: 160px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.volunteer-card-row .wp-block-kadence-column {
    flex-direction: column;
}
.volunteer-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}
/* Individual newsletter cards */
.newsletter-grid .wp-block-post {
    border: 1px solid #dce5eb;
    border-radius: 10px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

/* Subtle hover effect */
.newsletter-grid .wp-block-post:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Newsletter cover */
.newsletter-grid .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Newsletter date */
.newsletter-grid .wp-block-post-date {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #687b89;
    font-size: 14px;
}

/* Newsletter title */
.newsletter-grid .wp-block-post-title {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.4;
}
/* Newsletter PDF button */
.newsletter-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin-top: 12px;
    background-color: #245578;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.newsletter-pdf-link:hover {
    background-color: #183d59;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.newsletter-pdf-link:focus-visible {
    outline: 3px solid #183d59;
    outline-offset: 3px;
}
/* Make newsletter cards feel clickable */
.newsletter-grid .wp-block-post {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-grid .wp-block-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
