/*
Theme Name: UKCCB Professional
Theme URI: https://ukccb.ac.uk/
Author: The True Creators
Author URI: https://thetruecreators.com/
Description: A clean, responsive and secure starter WordPress theme for UKCCB. Built for easy customisation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ukccb
*/

:root{--ukccb-primary:#0866b3;--ukccb-dark:#082b50;--ukccb-accent:#f0b429;--ukccb-light:#f5f9fd;--ukccb-text:#465563;--ukccb-border:#e3ebf2;--ukccb-white:#fff;--ukccb-container:1200px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ukccb-text);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.7}
a{color:var(--ukccb-primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
.container{width:min(100% - 40px,var(--ukccb-container));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--ukccb-border);position:relative;z-index:100}
.site-header__inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.site-branding{display:flex;align-items:center;gap:12px}
.site-branding img{max-height:58px;width:auto}
.site-title{font-size:22px;font-weight:800;color:var(--ukccb-dark)}
.site-description{margin:0;font-size:12px;color:#71808d}
.primary-menu{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}
.primary-menu a{color:var(--ukccb-dark);font-weight:600;font-size:14px}
.primary-menu a:hover{color:var(--ukccb-primary);text-decoration:none}
.menu-toggle{display:none;background:var(--ukccb-primary);color:#fff;border:0;border-radius:6px;padding:9px 12px;cursor:pointer}
.site-main{min-height:55vh}
.hero{padding:100px 20px;background:linear-gradient(135deg,#f5f9fd,#fff)}
.hero__inner{width:min(100%,var(--ukccb-container));margin:auto}
.hero h1{font-size:clamp(38px,5vw,64px);line-height:1.1;color:var(--ukccb-dark);max-width:800px;margin:0 0 20px}
.hero p{max-width:720px;font-size:18px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border-radius:6px;font-weight:700;border:1px solid transparent}
.btn-primary{background:var(--ukccb-primary);color:#fff}
.btn-primary:hover{background:var(--ukccb-dark);color:#fff;text-decoration:none}
.page-header{padding:70px 20px;background:var(--ukccb-light)}
.page-header h1{margin:0;color:var(--ukccb-dark);font-size:clamp(32px,4vw,50px)}
.content-area{padding:70px 0}
.entry-title{color:var(--ukccb-dark);line-height:1.2}
.entry-content{max-width:850px}
.entry-content h2,.entry-content h3{color:var(--ukccb-dark)}
.entry-content img{border-radius:10px}
.site-footer{background:var(--ukccb-dark);color:#d9e3eb;margin-top:60px}
.footer-widgets{padding:60px 0 35px;display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.site-footer h2,.site-footer h3{color:#fff}
.site-footer a{color:#d9e3eb}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:20px 0;font-size:13px}
.footer-bottom__inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;left:10px;top:10px;width:auto;height:auto;padding:10px;background:#fff;color:#000;z-index:99999;clip:auto}
.alignwide{max-width:var(--ukccb-container);margin-inline:auto}
.alignfull{width:100%;max-width:none}
.wp-caption{max-width:100%}
blockquote{margin:25px 0;padding:20px;border-left:4px solid var(--ukccb-primary);background:var(--ukccb-light)}
.error-404{text-align:center;padding:100px 20px}
@media(max-width:900px){
 .menu-toggle{display:block}
 .primary-navigation{display:none;position:absolute;left:20px;right:20px;top:82px;background:#fff;border:1px solid var(--ukccb-border);box-shadow:0 12px 30px rgba(8,43,80,.12);padding:15px;border-radius:8px}
 .primary-navigation.is-open{display:block}
 .primary-menu{flex-direction:column;align-items:flex-start;gap:0}
 .primary-menu li{width:100%}
 .primary-menu a{display:block;padding:11px 5px}
 .footer-widgets{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
 .container{width:min(100% - 30px,var(--ukccb-container))}
 .site-header__inner{min-height:70px}
 .primary-navigation{top:70px;left:15px;right:15px}
 .hero{padding:70px 15px}
 .content-area{padding:50px 0}
 .footer-widgets{grid-template-columns:1fr}
}
/* =========================================================
   UKCCB PAGE CONTENT
   Keeps custom WordPress page designs clean
========================================================= */

.ukccb-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ukccb-page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ukccb-page-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Remove unwanted theme spacing around custom HTML sections */

.ukccb-page-inner > * {
    margin-top: 0;
}

/* Make WordPress images responsive */

.ukccb-page-inner img {
    max-width: 100%;
    height: auto;
}

/* Prevent WordPress editor from creating unwanted
   spacing inside your custom sections */

.ukccb-page-inner p:empty {
    display: none;
}

/* Full-width custom sections */

.ukccb-page-inner .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Wide sections */

.ukccb-page-inner .alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   WORDPRESS BLOCK EDITOR COMPATIBILITY
========================================================= */

.ukccb-page-inner .wp-block-group,
.ukccb-page-inner .wp-block-columns,
.ukccb-page-inner .wp-block-cover {
    margin-top: 0;
    margin-bottom: 0;
}


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

@media (max-width: 600px) {

    .ukccb-page-inner {
        width: 100%;
    }

}
/* =========================================================
   UKCCB MOBILE NAVIGATION - FINAL FIX
========================================================= */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #0056b3;
    color: #ffffff;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10001;
}


/* DESKTOP */

@media (min-width: 769px) {

    #mainNav {
        display: block !important;
    }

    #mainNav ul {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

}


/* MOBILE */

@media (max-width: 768px) {

    header {
        position: sticky;
        top: 0;
        z-index: 10000;
        width: 100%;
        background: #ffffff;
    }

    .nav-container {
        position: relative;
        width: 92%;
        min-height: 72px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo img {
        height: 58px !important;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    .nav-apply {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }


    /* IMPORTANT:
       Override the old "nav { display:none; }"
    */

    header nav#mainNav {
        display: none !important;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        max-height: calc(100vh - 72px);

        background: #ffffff;

        box-shadow: 0 12px 30px rgba(0,0,0,0.15);

        overflow-y: auto;
        overflow-x: hidden;

        z-index: 9999;
    }


    header nav#mainNav.active {
        display: block !important;
    }


    header nav#mainNav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100%;
        margin: 0;
        padding: 8px 0;

        gap: 0 !important;
        list-style: none;
    }


    header nav#mainNav ul li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }


    header nav#mainNav ul li a {
        display: block !important;

        width: 100%;

        padding: 15px 22px;

        color: #012b5d !important;

        background: #ffffff;

        font-size: 15px;
        font-weight: 600;

        text-decoration: none;

        border-bottom: 1px solid #eeeeee;
    }


    header nav#mainNav ul li a:hover {
        background: #f1f7ff;
        color: #0056b3 !important;
    }

}


/* SMALL PHONES */

@media (max-width: 480px) {

    .nav-container {
        width: 90%;
        min-height: 68px;
    }

    .logo img {
        height: 52px !important;
        max-width: 165px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

}