/* SHSB Design System - Custom CSS */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --shsb-green-dark: #0F2E20;
    --shsb-green: #1F513A;
    --shsb-green-light: #3A7A5A;
    --shsb-gold: #E2AF36;
    --shsb-gold-light: #E4C681;
    --shsb-cream: #FCFDF2;
    --shsb-bg: #F4F6F4;
    --shsb-secondary: #E7EEE9;
    --shsb-text: #12211A;
    --shsb-text-light: #60766B;
    --shsb-font-display: 'Playfair Display', Georgia, serif;
    --shsb-font-body: 'Source Sans 3', system-ui, sans-serif;
}

body {
    font-family: var(--shsb-font-body);
    color: var(--shsb-text);
    background-color: var(--shsb-bg);
}

/* Top ribbon bar - design height: 36px */
.hp-ribbon {
    background-color: var(--shsb-green-dark);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 13px;
    line-height: 1;
}
.hp-ribbon .elementor-container,
.hp-ribbon .elementor-row {
    padding: 0 16px !important;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 36px;
    display: flex;
    align-items: center;
}
.hp-ribbon .elementor-widget-wrap {
    padding: 0 !important;
}
.hp-ribbon a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.hp-ribbon a:hover {
    color: #fff;
}
.hp-ribbon .fa, .hp-ribbon .fas {
    margin-right: 4px;
}

/* Navigation - design height: 64px */
.hp-nav {
    background-color: var(--shsb-green);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: sticky;
    top: 0;
    z-index: 100;
}
.hp-nav .elementor-container,
.hp-nav .elementor-row {
    padding: 0 16px !important;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
}
.hp-nav .elementor-widget-wrap {
    padding: 0 !important;
}
.hp-nav nav a,
.hp-nav .mega-menu-trigger {
    color: #fff;
    text-decoration: none;
    font-family: var(--shsb-font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 20px 10px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
    line-height: 20px;
}
.hp-nav nav a:hover {
    background-color: rgba(255,255,255,0.1);
}
.hp-nav a {
    color: #fff;
    text-decoration: none;
}
.hp-nav .hp-nav-logo img {
    height: 40px;
    width: auto;
}

/* Hero section */
.hp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(31,81,58,0.9), rgba(31,81,58,0.6), rgba(0,0,0,0));
    z-index: 1;
}
.elementor-section.hp-hero > .elementor-background-overlay,
.hp-hero > .elementor-background-overlay,
.hp-hero .elementor-background-overlay {
    background: linear-gradient(to right, rgba(31,81,58,0.9), rgba(31,81,58,0.6), rgba(0,0,0,0)) !important;
    background-image: linear-gradient(to right, rgba(31,81,58,0.9), rgba(31,81,58,0.6), rgba(0,0,0,0)) !important;
    opacity: 1 !important;
    z-index: 1;
}
.hp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px 0;
}
.hp-hero .elementor-container,
.hp-hero .elementor-column-wrap,
.hp-hero .elementor-widget-wrap {
    position: relative;
    z-index: 2;
}
.hp-hero h1 {
    font-family: var(--shsb-font-display);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hp-hero h1 span {
    color: var(--shsb-gold);
    display: block;
}
.hp-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Buttons */
.hp-btn-primary {
    background-color: var(--shsb-gold);
    color: var(--shsb-green-dark);
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--shsb-font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: 2px solid var(--shsb-gold);
}
.hp-btn-primary:hover {
    background-color: var(--shsb-gold-light);
    border-color: var(--shsb-gold-light);
    color: var(--shsb-green-dark);
}
.hp-btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--shsb-font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.2s;
}
.hp-btn-secondary:hover {
    border-color: #fff;
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* Ofsted quote - full width subtle background */
.hp-ofsted {
    background-color: rgba(221,233,227,0.5) !important;
    padding: 64px 0 !important;
    border-radius: 0 !important;
}
.hp-ofsted > .elementor-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}
.hp-ofsted .elementor-widget-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hp-ofsted .elementor-element {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
.hp-ofsted .elementor-icon-wrapper .elementor-icon,
.hp-ofsted .ofsted-badge {
    width: 96px !important;
    height: 96px !important;
    background-color: var(--shsb-green) !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hp-ofsted .elementor-icon-wrapper .elementor-icon svg,
.hp-ofsted .elementor-icon-wrapper .elementor-icon i,
.hp-ofsted .ofsted-badge svg,
.hp-ofsted .ofsted-badge i {
    width: 48px !important;
    height: 48px !important;
    color: var(--shsb-gold) !important;
    fill: none;
    stroke: var(--shsb-gold);
}
.hp-ofsted .ofsted-label {
    font-family: var(--shsb-font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--shsb-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hp-ofsted blockquote,
.hp-ofsted .ofsted-quote {
    font-family: var(--shsb-font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--shsb-text);
    line-height: 1.5;
    margin: 0;
}
.hp-ofsted .ofsted-attribution {
    font-family: var(--shsb-font-body);
    font-size: 13px;
    color: var(--shsb-text-light);
    margin-top: 8px;
}

/* School motto section */
.hp-motto {
    background-color: var(--shsb-bg);
    padding: 96px 0 !important;
}
.hp-motto .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-motto h2 {
    font-family: var(--shsb-font-display);
    font-size: 36px;
    color: var(--shsb-text) !important;
    margin-bottom: 24px;
}

/* Journey section (green background) */
.hp-journey {
    background-color: var(--shsb-green);
    padding: 80px 0;
}
.hp-journey .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-journey h2 {
    font-family: var(--shsb-font-display);
    font-size: 36px;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}
.hp-journey h2::after {
    display: none;
}

/* Feature cards */
.hp-feature-card {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 30px 24px;
    text-align: center;
}
.hp-feature-card:hover {
    transform: translateY(-4px);
}
.hp-feature-card h3 {
    font-family: var(--shsb-font-display);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 15px 0 10px;
}
.hp-feature-card p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.5;
}
.hp-feature-card .hp-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(226,175,54,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--shsb-gold);
    font-size: 20px;
}

/* What makes us special */
.hp-special {
    background-color: var(--shsb-bg);
}
.hp-special .elementor-container {
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    gap: 32px !important;
}
.hp-special-card .elementor-widget-image img,
.hp-special-card img {
    height: 180px !important;
    object-fit: cover !important;
}
.hp-special h2 {
    font-family: var(--shsb-font-display);
    font-size: 36px;
    color: var(--shsb-green);
    text-align: center;
    margin-bottom: 8px;
}
.hp-special-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hp-special-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.hp-special-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.hp-special-card-body {
    padding: 24px;
}
.hp-special-card h3 {
    font-family: var(--shsb-font-display);
    font-size: 20px;
    color: var(--shsb-text);
    margin-bottom: 8px;
}
.hp-special-card p {
    color: var(--shsb-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.hp-special-card a {
    color: var(--shsb-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 0;
}
.hp-special-card a:hover {
    color: var(--shsb-gold);
}

/* Important dates */
.hp-dates {
    background-color: var(--shsb-secondary);
    padding: 96px 0;
}
.hp-dates .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-dates h2 {
    font-family: var(--shsb-font-display);
    font-size: 36px;
    color: var(--shsb-text);
    margin-bottom: 40px;
}
.hp-date-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(31,81,58,0.1);
}
.hp-date-badge {
    background-color: var(--shsb-green);
    color: #fff;
    border-radius: 8px;
    min-width: 56px;
    text-align: center;
    padding: 8px 12px;
    flex-shrink: 0;
}
.hp-date-badge .hp-date-day {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.hp-date-badge .hp-date-month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hp-date-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}
.hp-tag-academic { background-color: rgba(226,175,54,0.2); color: var(--shsb-gold); }
.hp-tag-sport { background-color: rgba(31,81,58,0.1); color: var(--shsb-green); }
.hp-tag-enrichment { background-color: rgba(31,81,58,0.15); color: var(--shsb-green-light); }
.hp-tag-sixthform { background-color: rgba(226,175,54,0.15); color: #B8922D; }

/* Latest from SHSB / Quick links */
.hp-social .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-quicklinks .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-latest {
    background-color: var(--shsb-bg);
    padding: 96px 0;
}
.hp-latest h2 {
    font-family: var(--shsb-font-display);
    font-size: 36px;
    color: var(--shsb-green);
    text-align: center;
    margin-bottom: 50px;
}
.hp-quick-link {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
    aspect-ratio: 3/4;
}
.hp-quick-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.hp-quick-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.hp-quick-link .hp-ql-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31,81,58,0.8), rgba(31,81,58,0.2) 50%, transparent);
}
.hp-quick-link .hp-ql-gold-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 4px;
    background: var(--shsb-gold);
    border-radius: 99px;
}
.hp-quick-link h3 {
    font-family: var(--shsb-font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    margin: 0;
}
.hp-quick-link .hp-ql-underline {
    position: absolute;
    bottom: 16px;
    left: 24px;
    width: 48px;
    height: 4px;
    background: var(--shsb-gold);
    border-radius: 99px;
}

/* Accreditations */
.hp-accreditations .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

/* Footer */
.hp-footer {
    background-color: var(--shsb-green-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.8);
}
.hp-footer .elementor-container {
    max-width: 1152px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}
.hp-footer h4 {
    font-family: var(--shsb-font-display);
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}
.hp-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}
.hp-footer a:hover {
    color: var(--shsb-gold);
}
.hp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Section headings */
.section-heading {
    font-family: var(--shsb-font-display);
    position: relative;
}
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--shsb-gold);
    margin-top: 15px;
}
.section-heading-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 767px) {
    .hp-hero h1 { font-size: 36px; }
    .hp-hero p { font-size: 16px; }
    .hp-motto h2, .hp-journey h2, .hp-special h2, .hp-dates h2, .hp-latest h2 { font-size: 28px; }
    .hp-ribbon { font-size: 12px; }
    .hp-nav a { font-size: 14px; padding: 16px 12px; }
}


/* Hide default Hello Elementor theme header and footer */
#header, .site-header, header.site-header {
    display: none !important;
}
#footer, .site-footer, footer.site-footer {
    display: none !important;
}
body > #page > hr {
    display: none !important;
}

/* Full width page content */
.elementor-page .page-content,
.elementor-page .site-main {
    padding: 0;
    margin: 0;
}
.page-template-elementor_header_footer #page {
    margin: 0;
    padding: 0;
}

/* Ensure Elementor sections are full width */
.elementor-section.elementor-section-full_width {
    width: 100%;
    max-width: 100%;
}

/* Fix hero background sizing */
.hp-hero .elementor-background-overlay {
    background: linear-gradient(135deg, rgba(15,46,32,0.85) 0%, rgba(31,81,58,0.6) 50%, rgba(31,81,58,0.3) 100%) !important;
}

/* Journey section CTA button */
.hp-journey .hp-btn-primary {
    background-color: var(--shsb-gold);
    color: var(--shsb-green-dark);
    margin-top: 20px;
}

/* Fix icon circles in feature cards */
.hp-feature-card .elementor-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(226,175,54,0.2) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--shsb-gold) !important;
    font-size: 20px;
}

/* Ensure proper section backgrounds */
.elementor-element .hp-journey {
    background-color: var(--shsb-green) !important;
}

/* Gold underline for section headings */
.hp-gold-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--shsb-gold);
    margin: 15px auto 0;
}


/* ========================================
   Floating Sidebar
   ======================================== */
.shsb-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: var(--shsb-green-dark);
    border-radius: 12px 0 0 12px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.shsb-sidebar a,
.shsb-sidebar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: rgba(255,255,255,0.8);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 4px;
}
.shsb-sidebar a:hover,
.shsb-sidebar button:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}
.shsb-sidebar svg {
    width: 20px;
    height: 20px;
}
.shsb-sidebar-divider {
    width: 24px;
    height: 1px;
    background-color: rgba(255,255,255,0.15);
    margin: 4px 0;
}
.shsb-sidebar-tooltip {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--shsb-green-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--shsb-font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}
.shsb-sidebar a:hover .shsb-sidebar-tooltip,
.shsb-sidebar button:hover .shsb-sidebar-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Lucide icon styling in content */
.hp-ribbon [data-lucide],
.hp-nav [data-lucide],
.hp-footer [data-lucide] {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Hide sidebar on mobile/tablet */
@media (max-width: 1279px) {
    .shsb-sidebar {
        display: none;
    }
}


/* ========================================
   Mega Menu
   ======================================== */
#shsb-mega-menus {
    position: fixed;
    z-index: 99;
    pointer-events: none;
}
.shsb-mega-panel {
    position: fixed;
    min-width: 520px;
    background: #FCFDFC;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
    z-index: 99;
    pointer-events: auto;
    overflow: hidden;
}
.shsb-mega-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.shsb-mega-inner {
    display: flex;
    padding: 0;
}
.shsb-mega-content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}
.shsb-mega-header {
    font-family: var(--shsb-font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--shsb-gold);
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}
.shsb-mega-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.shsb-mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--shsb-text);
    text-decoration: none;
    font-family: var(--shsb-font-body);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.15s;
}
.shsb-mega-link:hover {
    color: var(--shsb-green);
}
.shsb-mega-viewall {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-family: var(--shsb-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--shsb-green);
    text-decoration: none;
    transition: color 0.15s;
    width: 100%;
}
.shsb-mega-viewall:hover {
    color: var(--shsb-gold);
}
.shsb-mega-cta {
    width: 208px;
    flex-shrink: 0;
    position: relative;
    background: var(--shsb-green);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.shsb-mega-cta img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shsb-mega-cta .shsb-mega-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15,46,32,0.8) 0%, rgba(15,46,32,0.2) 100%);
}
.shsb-mega-cta p {
    position: relative;
    z-index: 2;
    font-family: var(--shsb-font-body);
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
}

/* Nav link active state when mega menu open */
.hp-nav nav a.mega-active {
    background-color: rgba(255,255,255,0.15);
}

/* ========================================
   Accreditations Bar
   ======================================== */
.hp-accreditations {
    background-color: var(--shsb-secondary);
    padding: 48px 0;
    border-top: 1px solid rgba(31,81,58,0.08);
    border-bottom: 1px solid rgba(31,81,58,0.08);
}
.hp-accreditation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.hp-accreditation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shsb-text-light);
}
.hp-accreditation-icon svg {
    width: 36px;
    height: 36px;
}
.hp-accreditation-label {
    font-family: var(--shsb-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--shsb-text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Hide mega menu on mobile */
@media (max-width: 1023px) {
    #shsb-mega-menus {
        display: none;
    }
}


/* ========================================
   Hover Animations
   ======================================== */

/* Image zoom on hover for Special cards */
.hp-special-card {
    overflow: hidden;
}
.hp-special-card img,
.hp-special .elementor-image img {
    transition: transform 0.4s ease;
}
.hp-special-card:hover img,
.hp-special a:hover img {
    transform: scale(1.08);
}

/* Card lift on hover */
.hp-special-card,
.hp-quick-link,
.hp-quicklinks a {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hp-special-card:hover,
.hp-quick-link:hover,
.hp-quicklinks a:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Quick link cards image zoom */
.hp-quicklinks a {
    overflow: hidden;
    border-radius: 12px;
}
.hp-quicklinks a img {
    transition: transform 0.4s ease;
}
.hp-quicklinks a:hover img {
    transform: scale(1.08);
}

/* Feature card hover (Journey section) */
.hp-feature-card {
    transition: transform 0.3s ease;
}
.hp-feature-card:hover {
    transform: translateY(-6px);
}

/* Social post card hover */
.hp-social a,
.hp-social > div > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Date card hover */
.hp-dates [style*="flex:0 0 280px"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hp-dates [style*="flex:0 0 280px"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Nav link hover transition */
.hp-nav nav a {
    transition: color 0.15s ease, background-color 0.15s ease;
}
.hp-nav nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Ribbon link hover */
.hp-ribbon a {
    transition: color 0.15s ease;
}
.hp-ribbon a:hover {
    color: #fff !important;
}

/* Read More and CTA button hover */
a[style*="background:#1F513A"]:hover {
    opacity: 0.9;
}

/* Footer link hover */
.hp-footer a {
    transition: color 0.2s ease;
}
.hp-footer a:hover {
    color: var(--shsb-gold) !important;
}


/* ========================================
   Inner Page Styles
   ======================================== */

/* Global header (non-homepage) */
.shsb-global-header {
    width: 100%;
}
.shsb-ribbon {
    background-color: var(--shsb-green-dark);
    font-size: 13px;
    line-height: 1;
}
.shsb-ribbon-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shsb-ribbon a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.shsb-ribbon a:hover {
    color: #fff;
}

.shsb-nav {
    background-color: var(--shsb-green);
    position: sticky;
    top: 0;
    z-index: 100;
}
.shsb-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 0;
}
.shsb-nav-logo {
    margin-right: 24px;
    flex-shrink: 0;
}
.shsb-nav-logo img {
    height: 40px;
    width: auto;
}
.shsb-nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}
.shsb-nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--shsb-font-body);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    padding: 20px 10px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, background-color 0.15s;
    line-height: 20px;
    white-space: nowrap;
}
.shsb-nav-links a:hover,
.shsb-nav-links a.mega-active {
    background-color: rgba(255,255,255,0.1);
}
.shsb-nav-right {
    margin-left: auto;
    flex-shrink: 0;
}

/* Global footer (non-homepage) */
.shsb-global-footer {
    background-color: var(--shsb-green-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.8);
    margin-top: 0;
}
.shsb-footer-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
}
.shsb-footer-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.shsb-footer-col h4 {
    font-family: var(--shsb-font-display);
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}
.shsb-footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}
.shsb-footer-col a:hover {
    color: var(--shsb-gold);
}
.shsb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding: 20px 0;
}
.shsb-footer-bottom-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Inner page hero banner */
.ip-hero {
    background-color: var(--shsb-green);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.ip-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(226,175,54,0.08) 100%);
    pointer-events: none;
}
.ip-hero-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}
.ip-breadcrumb {
    font-family: var(--shsb-font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}
.ip-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.ip-breadcrumb a:hover {
    color: var(--shsb-gold);
}
.ip-breadcrumb span {
    margin: 0 8px;
}
.ip-hero h1 {
    font-family: var(--shsb-font-display);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ip-hero p {
    font-family: var(--shsb-font-body);
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}
.ip-hero-gold-bar {
    width: 60px;
    height: 3px;
    background-color: var(--shsb-gold);
    margin-top: 24px;
    border-radius: 2px;
}

/* Inner page content area */
.ip-content {
    background-color: var(--shsb-bg);
    padding: 64px 0 96px;
}
.ip-content-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
}
.ip-content h2 {
    font-family: var(--shsb-font-display);
    font-size: 28px;
    color: var(--shsb-green);
    margin: 48px 0 16px;
    line-height: 1.3;
}
.ip-content h2:first-child {
    margin-top: 0;
}
.ip-content h3 {
    font-family: var(--shsb-font-display);
    font-size: 22px;
    color: var(--shsb-text);
    margin: 32px 0 12px;
    line-height: 1.3;
}
.ip-content p {
    font-family: var(--shsb-font-body);
    font-size: 16px;
    color: var(--shsb-text);
    line-height: 1.75;
    margin: 0 0 16px;
}
.ip-content ul, .ip-content ol {
    font-family: var(--shsb-font-body);
    font-size: 16px;
    color: var(--shsb-text);
    line-height: 1.75;
    margin: 0 0 16px;
    padding-left: 24px;
}
.ip-content li {
    margin-bottom: 8px;
}
.ip-content a {
    color: var(--shsb-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.ip-content a:hover {
    color: var(--shsb-gold);
}
.ip-content blockquote {
    border-left: 3px solid var(--shsb-gold);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: rgba(226,175,54,0.06);
    border-radius: 0 8px 8px 0;
}
.ip-content blockquote p {
    font-family: var(--shsb-font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--shsb-text);
    margin: 0;
}

/* Info box / callout */
.ip-info-box {
    background-color: rgba(31,81,58,0.06);
    border: 1px solid rgba(31,81,58,0.12);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}
.ip-info-box h3 {
    font-family: var(--shsb-font-display);
    font-size: 18px;
    color: var(--shsb-green);
    margin: 0 0 8px;
}
.ip-info-box p {
    margin: 0;
}

/* Contact card */
.ip-contact-card {
    background-color: var(--shsb-green);
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    color: #fff;
}
.ip-contact-card h3 {
    font-family: var(--shsb-font-display);
    color: #fff;
    margin: 0 0 12px;
}
.ip-contact-card p {
    color: rgba(255,255,255,0.85);
    margin: 0 0 8px;
}
.ip-contact-card a {
    color: var(--shsb-gold);
    font-weight: 600;
}
.ip-contact-card a:hover {
    color: var(--shsb-gold-light);
}

/* Table styles */
.ip-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-family: var(--shsb-font-body);
    font-size: 15px;
}
.ip-content table th {
    background-color: var(--shsb-green);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ip-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(31,81,58,0.1);
    color: var(--shsb-text);
}
.ip-content table tr:hover td {
    background-color: rgba(31,81,58,0.03);
}

/* Year group cards (for Careers page) */
.ip-year-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 3px solid var(--shsb-gold);
}
.ip-year-card h3 {
    font-family: var(--shsb-font-display);
    font-size: 18px;
    color: var(--shsb-green);
    margin: 0 0 12px;
}
.ip-year-card ul {
    margin: 0;
}

/* CTA section at bottom of pages */
.ip-cta {
    background-color: var(--shsb-secondary);
    padding: 64px 0;
}
.ip-cta-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}
.ip-cta h2 {
    font-family: var(--shsb-font-display);
    font-size: 28px;
    color: var(--shsb-green);
    margin: 0 0 12px;
}
.ip-cta p {
    font-family: var(--shsb-font-body);
    font-size: 16px;
    color: var(--shsb-text-light);
    margin: 0 0 24px;
}
.ip-cta .hp-btn-primary {
    display: inline-block;
}

/* Section landing pages */
.ip-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.ip-section-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}
.ip-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ip-section-card h3 {
    font-family: var(--shsb-font-display);
    font-size: 20px;
    color: var(--shsb-text);
    margin: 0 0 8px;
}
.ip-section-card p {
    font-family: var(--shsb-font-body);
    font-size: 14px;
    color: var(--shsb-text-light);
    margin: 0 0 16px;
    line-height: 1.6;
}
.ip-section-card .ip-card-link {
    font-family: var(--shsb-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--shsb-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ip-section-card:hover .ip-card-link {
    color: var(--shsb-gold);
}

/* Inner page - hide theme defaults */
.shsb-inner-page #header,
.shsb-inner-page .site-header,
.shsb-inner-page header.site-header,
.shsb-inner-page #footer,
.shsb-inner-page .site-footer,
.shsb-inner-page footer.site-footer,
.shsb-inner-page body > #page > hr {
    display: none !important;
}
.shsb-inner-page .page-content,
.shsb-inner-page .site-main,
.shsb-inner-page .entry-content {
    padding: 0;
    margin: 0;
}
.shsb-inner-page #page {
    margin: 0;
    padding: 0;
}
.shsb-inner-page .page-title {
    display: none;
}

/* Responsive inner pages */
@media (max-width: 767px) {
    .ip-hero h1 { font-size: 28px; }
    .ip-hero p { font-size: 16px; }
    .ip-content h2 { font-size: 24px; }
    .ip-content h3 { font-size: 20px; }
    .shsb-footer-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .shsb-footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .shsb-nav-links {
        display: none;
    }
    .shsb-ribbon-inner {
        flex-direction: column;
        padding: 8px 16px;
        gap: 4px;
    }
    .ip-section-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1023px) {
    .shsb-nav-links a {
        font-size: 12px;
        padding: 16px 6px;
    }
}
