/*
Theme Name: Cavendish Close Infant School
Theme URI: https://www.cavclosei.derby.sch.uk/
Author: Custom Development
Author URI: https://www.cavclosei.derby.sch.uk/
Description: A modern, colorful, and professional WordPress theme for Cavendish Close Infant and Nursery School. Features a desktop-first responsive design with dark and light blues and bright accent colors.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavendish-close
Tags: education, school, responsive, colorful, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Color Variables */
:root {
    --dark-blue: #1e3a5f;
    --light-blue: #4a90e2;
    --accent-coral: #ffb3d9; /* Light pink */
    --accent-yellow: #87ceeb; /* Sky blue */
    --accent-green: #6bcf7f;
    --accent-purple: #9b59b6;
    --accent-orange: #ff8c42;
    --accent-pink: #ff6b9d;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --white: #ffffff;
}

/* Fun Decorative Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 207, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#page {
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Ensure buttons never have underlines */
a.btn,
a.btn-secondary,
a.btn-primary,
.btn a,
.featured-card a,
.featured-card a.btn,
.featured-card a.btn-secondary {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
}

a:hover {
    color: var(--dark-blue);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    text-decoration: none !important;
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: none !important;
}

.featured-card a.btn-secondary,
.featured-card .btn-secondary,
.featured-card a.btn.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none !important;
    text-decoration-line: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-top: auto;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
}

.featured-card a.btn-secondary,
.featured-card a.btn-secondary:link,
.featured-card a.btn-secondary:visited,
.featured-card a.btn-secondary:hover,
.featured-card a.btn-secondary:active,
.featured-card a.btn-secondary:focus,
.featured-card .btn-secondary,
.featured-card .btn-secondary:link,
.featured-card .btn-secondary:visited,
.featured-card .btn-secondary:hover,
.featured-card .btn-secondary:active,
.featured-card .btn-secondary:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-underline-offset: 0 !important;
    text-decoration-thickness: 0 !important;
    border-bottom: none !important;
}

/* Featured Card Button Color Overrides - Using higher specificity selectors */
.featured-card.featured-card-blue a.btn-secondary,
.featured-card-blue a.btn-secondary,
.featured-card-blue .btn-secondary {
    border-color: var(--dark-blue) !important;
    color: var(--dark-blue) !important;
}

.featured-card.featured-card-blue a.btn-secondary:hover,
.featured-card-blue a.btn-secondary:hover,
.featured-card-blue .btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%) !important;
    color: #ffffff !important;
    border-color: var(--dark-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-yellow a.btn-secondary,
.featured-card-yellow a.btn-secondary,
.featured-card-yellow .btn-secondary {
    border-color: #5a9fd4 !important;
    color: #5a9fd4 !important;
}

.featured-card.featured-card-yellow a.btn-secondary:hover,
.featured-card-yellow a.btn-secondary:hover,
.featured-card-yellow .btn-secondary:hover {
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8bc4 100%) !important;
    color: #ffffff !important;
    border-color: #5a9fd4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 159, 212, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-green a.btn-secondary,
.featured-card-green a.btn-secondary,
.featured-card-green .btn-secondary {
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

.featured-card.featured-card-green a.btn-secondary:hover,
.featured-card-green a.btn-secondary:hover,
.featured-card-green .btn-secondary:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%) !important;
    color: #ffffff !important;
    border-color: #2e7d32 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-purple a.btn-secondary,
.featured-card-purple a.btn-secondary,
.featured-card-purple .btn-secondary {
    border-color: #7b1fa2 !important;
    color: #7b1fa2 !important;
}

.featured-card.featured-card-purple a.btn-secondary:hover,
.featured-card-purple a.btn-secondary:hover,
.featured-card-purple .btn-secondary:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%) !important;
    color: #ffffff !important;
    border-color: #7b1fa2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-coral a.btn-secondary,
.featured-card-coral a.btn-secondary,
.featured-card-coral .btn-secondary {
    border-color: #c2185b !important;
    color: #c2185b !important;
}

.featured-card.featured-card-coral a.btn-secondary:hover,
.featured-card-coral a.btn-secondary:hover,
.featured-card-coral .btn-secondary:hover {
    background: linear-gradient(135deg, #c2185b 0%, #d81b60 100%) !important;
    color: #ffffff !important;
    border-color: #c2185b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-orange a.btn-secondary,
.featured-card-orange a.btn-secondary,
.featured-card-orange .btn-secondary {
    border-color: #e65100 !important;
    color: #e65100 !important;
}

.featured-card.featured-card-orange a.btn-secondary:hover,
.featured-card-orange a.btn-secondary:hover,
.featured-card-orange .btn-secondary:hover {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 100%) !important;
    color: #ffffff !important;
    border-color: #e65100 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
    text-decoration: none !important;
}

.featured-card.featured-card-pink a.btn-secondary,
.featured-card-pink a.btn-secondary,
.featured-card-pink .btn-secondary {
    border-color: #d81b60 !important;
    color: #d81b60 !important;
}

.featured-card.featured-card-pink a.btn-secondary:hover,
.featured-card-pink a.btn-secondary:hover,
.featured-card-pink .btn-secondary:hover {
    background: linear-gradient(135deg, #d81b60 0%, #ec407a 100%) !important;
    color: #ffffff !important;
    border-color: #d81b60 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
    text-decoration: none !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #ff5252 100%);
    color: var(--white);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ff5252 0%, var(--accent-coral) 100%);
    color: var(--white);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background-color: var(--white);
    position: relative;
    width: 100%;
}

.main-header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

/* Header Actions (Search, Social, Buttons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    order: 3;
    margin-left: auto;
    margin-right: 0;
}

/* Slide-out Search */
.search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.search-form-inline {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.search-wrapper.active .search-form-inline {
    width: 220px;
    opacity: 1;
    margin-right: 8px;
}

.search-input-slide {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--light-blue);
    border-radius: 25px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-slide:focus {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.search-input-slide::placeholder {
    color: var(--text-light);
}

.search-toggle {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-toggle:hover {
    color: var(--white);
    background: var(--light-blue);
    border-color: var(--light-blue);
}

.search-wrapper.active .search-toggle {
    background: var(--light-blue);
    color: var(--white);
}

.search-wrapper.active .search-toggle .search-icon {
    display: none;
}

.search-wrapper.active .search-toggle .close-icon {
    display: block !important;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.social-link {
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
}

.social-link:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-yellow) 100%);
    transform: scale(1.2) rotate(10deg);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.site-branding {
    flex: 0 0 auto;
    min-width: 0;
    order: 1;
    margin-right: auto;
    margin-left: 0;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.site-title a {
    color: var(--dark-blue);
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.custom-logo,
.default-logo {
    max-height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo-link:hover .custom-logo,
.custom-logo-link:hover .default-logo {
    transform: scale(1.05) rotate(2deg);
}

/* Scrolling Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(74, 144, 226, 0.15) 50%, rgba(135, 206, 235, 0.15) 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 12px 0;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.announcement-track {
    display: flex;
    width: max-content;
    animation: scroll-banner 40s linear infinite;
}

.announcement-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.announcement-text {
    color: var(--dark-blue);
    font-size: 1rem;
    font-weight: 600;
    padding: 0 25px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.announcement-separator {
    color: var(--accent-yellow);
    font-size: 1rem;
    padding: 0 20px;
    flex-shrink: 0;
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    .announcement-banner {
        padding: 10px 0;
    }
    
    .announcement-text {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    
    .announcement-separator {
        padding: 0 12px;
    }
    
    .announcement-track {
        animation-duration: 25s;
    }
}

/* Navigation */
.menu-toggle {
    display: none;
    background: var(--light-blue);
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    order: 4;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.menu-toggle:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.menu-toggle-icon span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.main-navigation {
    flex: 1 1 auto;
    order: 2;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: none;
}

@media screen and (max-width: 768px) {
    .main-navigation {
        margin: 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 25px;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--light-blue), var(--accent-yellow));
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--light-blue);
}

.nav-menu a:hover::before {
    width: calc(100% - 24px);
}

.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    color: var(--light-blue);
}

/* Dropdown Menu */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 15px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 100;
    border-radius: 15px;
    border: 2px solid var(--light-blue);
    border-top: 4px solid var(--accent-yellow);
}

/* Hide mobile submenu toggle on desktop */
.submenu-toggle {
    display: none;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 12px 20px;
    white-space: nowrap;
}

.nav-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: -40px;
    border-bottom: 6px solid;
    border-image: linear-gradient(90deg, 
        var(--light-blue) 0%, 
        var(--accent-yellow) 25%, 
        var(--accent-green) 50%, 
        var(--accent-coral) 75%, 
        var(--accent-purple) 100%) 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use cover to fill container while maintaining aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure high-quality image rendering for photos */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Smooth image scaling */
    -ms-interpolation-mode: bicubic;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed blue gradient overlay to show images clearly */
    background: transparent;
    z-index: 1;
}

.carousel-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed gradient overlays to show images clearly */
    background: transparent;
    z-index: 1;
}

.carousel-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    color: var(--white);
}

.carousel-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-excerpt {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-color: var(--accent-yellow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        rgba(135, 206, 235, 0.1) 50%, 
        rgba(107, 207, 127, 0.1) 100%);
    position: relative;
    overflow: hidden;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.welcome-section::before {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 80px;
    opacity: 0.1;
    animation: bounce 3s infinite;
}

.welcome-section::after {
    content: '✨';
    position: absolute;
    bottom: 20px;
    left: 50px;
    font-size: 60px;
    opacity: 0.1;
    animation: bounce 3s infinite 1.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-text h2 {
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Featured Sections */
.featured-sections {
    padding: 80px 0;
    background-color: var(--white);
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.featured-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card-blue {
    border-top: 6px solid var(--light-blue);
    background: linear-gradient(135deg, #ffffff 0%, rgba(74, 144, 226, 0.2) 50%, rgba(74, 144, 226, 0.35) 100%);
}

.featured-card-blue .card-icon {
    color: var(--light-blue) !important;
}

.featured-card-yellow {
    border-top: 6px solid var(--accent-yellow);
    background: linear-gradient(135deg, #ffffff 0%, rgba(135, 206, 235, 0.25) 50%, rgba(135, 206, 235, 0.4) 100%);
}

.featured-card-yellow .card-icon {
    color: var(--accent-yellow) !important;
}

.featured-card-green {
    border-top: 6px solid var(--accent-green);
    background: linear-gradient(135deg, #ffffff 0%, rgba(107, 207, 127, 0.25) 50%, rgba(107, 207, 127, 0.4) 100%);
}

.featured-card-green .card-icon {
    color: var(--accent-green) !important;
}

.featured-card-purple {
    border-top: 6px solid var(--accent-purple);
    background: linear-gradient(135deg, #ffffff 0%, rgba(155, 89, 182, 0.25) 50%, rgba(155, 89, 182, 0.4) 100%);
}

.featured-card-purple .card-icon {
    color: var(--accent-purple) !important;
}

.featured-card-coral {
    border-top: 6px solid #ffb3d9 !important;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 179, 217, 0.35) 50%, rgba(255, 179, 217, 0.55) 100%) !important;
}

.featured-card-coral .card-icon {
    color: #ffb3d9 !important;
}

.featured-card-orange {
    border-top: 6px solid var(--accent-orange);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 152, 0, 0.12) 50%, rgba(255, 152, 0, 0.18) 100%);
}

.featured-card-orange .card-icon {
    color: var(--accent-orange);
}

.featured-card-pink {
    border-top: 6px solid var(--accent-pink);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 107, 157, 0.12) 50%, rgba(255, 107, 157, 0.18) 100%);
}

.featured-card-pink .card-icon {
    color: var(--accent-pink);
}

.card-icon {
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    flex-shrink: 0;
}

.card-icon svg,
.featured-card .card-icon svg,
.featured-card .card-icon > svg {
    width: 80px !important;
    height: 80px !important;
    display: block !important;
    max-width: 80px !important;
    max-height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    box-sizing: border-box;
}

.featured-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.featured-card h3 {
    margin-bottom: 12px;
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.featured-card p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Latest News Section */
.latest-news-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        var(--bg-light) 0%, 
        rgba(155, 89, 182, 0.05) 50%, 
        rgba(255, 107, 157, 0.05) 100%);
    position: relative;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a90e2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before,
.section-title::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.6;
    animation: sparkle 2s infinite;
}

.section-title::before {
    left: -50px;
}

.section-title::after {
    right: -50px;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-yellow);
}

.news-image {
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content h3 a {
    color: var(--dark-blue);
}

.news-content h3 a:hover {
    color: var(--light-blue);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-excerpt {
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Content Styles */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
    position: relative;
}

.site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234a90e2' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.entry-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.entry-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--light-blue) 0%, 
        var(--accent-yellow) 50%, 
        var(--accent-green) 100%);
    border-radius: 2px;
}

.entry-title {
    color: var(--dark-blue);
}

.entry-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--light-blue);
    text-decoration: underline;
}

/* Stylized Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* Table Header */
thead {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2d5a8a 100%);
}

thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

thead th:first-child {
    border-top-left-radius: 12px;
}

thead th:last-child {
    border-top-right-radius: 12px;
}

/* Table Body */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:nth-child(odd) {
    background: #ffffff;
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.12) 100%);
}

tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #e8eef3;
    color: var(--text-color);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Table Footer */
tfoot {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
}

tfoot td {
    padding: 14px 20px;
    font-weight: 600;
    color: var(--dark-blue);
    border-top: 2px solid var(--light-blue);
}

/* Tables in Content Sections */
.content-section table,
.entry-content table {
    margin: 30px 0;
}

/* Tables with colored backgrounds need inverted styles */
.content-section-blue table,
.content-section-green table,
.content-section-coral table,
.content-section-purple table,
.content-section-dark-blue table {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.content-section-blue thead,
.content-section-green thead,
.content-section-coral thead,
.content-section-purple thead,
.content-section-dark-blue thead {
    background: rgba(255, 255, 255, 0.2);
}

.content-section-blue tbody tr:nth-child(even),
.content-section-green tbody tr:nth-child(even),
.content-section-coral tbody tr:nth-child(even),
.content-section-purple tbody tr:nth-child(even),
.content-section-dark-blue tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.95);
}

.content-section-blue tbody tr:nth-child(odd),
.content-section-green tbody tr:nth-child(odd),
.content-section-coral tbody tr:nth-child(odd),
.content-section-purple tbody tr:nth-child(odd),
.content-section-dark-blue tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.88);
}

.content-section-blue tbody tr:hover,
.content-section-green tbody tr:hover,
.content-section-coral tbody tr:hover,
.content-section-purple tbody tr:hover,
.content-section-dark-blue tbody tr:hover {
    background: rgba(255, 255, 255, 1);
}

/* First column emphasis */
tbody td:first-child {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Table Caption */
caption {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-blue);
    text-align: left;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 12px 12px 0 0;
}

/* Compact Table Variant - add class="compact" to table */
table.compact td,
table.compact th {
    padding: 10px 15px;
    font-size: 0.85rem;
}

/* Striped Table Variant - add class="striped" for stronger stripes */
table.striped tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.04) 100%);
}

/* Bordered Table Variant - add class="bordered" */
table.bordered td,
table.bordered th {
    border: 1px solid #e8eef3;
}

table.bordered thead th {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Colorful Header Variants */
table.header-blue thead { background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%); }
table.header-green thead { background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); }
table.header-coral thead { background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%); }
table.header-purple thead { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); }
table.header-teal thead { background: linear-gradient(135deg, #00897b 0%, #00695c 100%); }

/* Responsive Table */
@media screen and (max-width: 768px) {
    table {
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    thead th,
    tbody td,
    tfoot td {
        padding: 12px 14px;
    }
    
    thead th {
        font-size: 0.8rem;
    }
    
    /* Stack tables on very small screens */
    table.responsive {
        display: block;
    }
    
    table.responsive thead {
        display: none;
    }
    
    table.responsive tbody,
    table.responsive tr,
    table.responsive td {
        display: block;
        width: 100%;
    }
    
    table.responsive tr {
        margin-bottom: 15px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    table.responsive td {
        padding: 12px 15px;
        text-align: right;
        border-bottom: 1px solid #e8eef3;
        position: relative;
        padding-left: 45%;
    }
    
    table.responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: var(--dark-blue);
        font-size: 0.8rem;
        text-transform: uppercase;
    }
    
    table.responsive td:last-child {
        border-bottom: none;
    }
}

@media screen and (max-width: 480px) {
    thead th,
    tbody td {
        padding: 10px 12px;
    }
    
    table {
        font-size: 0.8rem;
        margin: 20px 0;
    }
}

/* WordPress Block Editor Tables */
.wp-block-table {
    margin: 25px 0;
}

.wp-block-table table {
    margin: 0;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: #ffffff;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.06) 0%, rgba(74, 144, 226, 0.1) 100%);
}

.wp-block-table figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tags-links {
    color: var(--text-light);
}

.tags-links a {
    color: var(--light-blue);
    margin-right: 10px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
    height: 200px;
}

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

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

.post-content {
    padding: 25px;
}

.entry-summary {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.page-links a {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: var(--bg-light);
    border-radius: 3px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #2a4a6f 100%);
    color: var(--white);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(135, 206, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(107, 207, 127, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.accreditation-section {
    padding: 40px 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(74, 144, 226, 0.15) 100%);
    border-top: 3px solid var(--accent-yellow);
}

.accreditation-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.accreditation-item {
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    text-align: center;
    min-width: 150px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.accreditation-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.accreditation-label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-widgets {
    padding: 60px 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget-area h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-widget-area a:hover {
    color: var(--white);
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.separator {
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Logos Section */
.footer-logos-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    width: 100%;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.footer-logo-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo-item img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.footer-logo-item:hover img {
    filter: brightness(1.2);
}

/* CTA Banner */
section.cta-banner {
    padding: 35px 0 !important;
    margin: 40px 0 !important;
    width: 100%;
    display: block;
    position: relative;
    border-top: 6px solid;
    border-bottom: 6px solid;
    border-image: linear-gradient(90deg, 
        #4a90e2 0%, 
        #87ceeb 25%, 
        #6bcf7f 50%, 
        #ff6b6b 75%, 
        #9b59b6 100%) 1;
}

section.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #4a90e2 0%, 
        #87ceeb 25%, 
        #6bcf7f 50%, 
        #ff6b6b 75%, 
        #9b59b6 100%);
    z-index: 1;
}

section.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #4a90e2 0%, 
        #87ceeb 25%, 
        #6bcf7f 50%, 
        #ff6b6b 75%, 
        #9b59b6 100%);
    z-index: 1;
}

section.cta-banner.cta-banner-light-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #5ba0e8 100%) !important;
}

section.cta-banner.cta-banner-dark-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%) !important;
}

section.cta-banner.cta-banner-sky-blue {
    background: linear-gradient(135deg, #87ceeb 0%, #6bb6d6 100%) !important;
}

section.cta-banner.cta-banner-coral {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%) !important;
}

section.cta-banner.cta-banner-green {
    background: linear-gradient(135deg, #6bcf7f 0%, #4fb866 100%) !important;
}

section.cta-banner.cta-banner-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #7d3fa3 100%) !important;
}

.cta-banner-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cta-banner-text {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    flex: 1 1 auto;
    min-width: 250px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-banner .btn-white,
.cta-banner a.btn-white {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: #1e3a5f !important;
    padding: 14px 32px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.cta-banner .btn-white::before,
.cta-banner a.btn-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.cta-banner .btn-white:hover::before,
.cta-banner a.btn-white:hover::before {
    width: 300px;
    height: 300px;
}

.cta-banner .btn-white:hover,
.cta-banner a.btn-white:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #1e3a5f !important;
    text-decoration: none !important;
}

.cta-banner .btn-white span,
.cta-banner a.btn-white span {
    position: relative;
    z-index: 1;
}

/* Video Section */
.video-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Video Section Color Variants */
.video-section-dark-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
}

.video-section-light-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #5ba0e8 100%);
}

.video-section-sky-blue {
    background: linear-gradient(135deg, #5a9fd4 0%, #4a8bc4 100%);
}

.video-section-green {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

.video-section-purple {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
}

.video-section-coral {
    background: linear-gradient(135deg, #c2185b 0%, #d81b60 100%);
}

.video-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.video-section-reversed .video-section-grid {
    direction: rtl;
}

.video-section-reversed .video-section-content,
.video-section-reversed .video-section-embed {
    direction: ltr;
}

.video-section-content {
    position: relative;
    z-index: 2;
}

.video-section-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.video-section-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.video-section-text p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.video-section-text p:last-child {
    margin-bottom: 0;
}

.video-section-link {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.video-section-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.video-section-link:hover {
    color: #ffffff;
    opacity: 0.9;
}

.video-section-link:hover::after {
    width: 100%;
}

.video-section-embed {
    position: relative;
    z-index: 2;
}

.video-section-embed .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-section-embed .video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.video-section-embed .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Section Responsive */
@media screen and (max-width: 968px) {
    .video-section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-section-reversed .video-section-grid {
        direction: ltr;
    }
    
    .video-section-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .video-section {
        padding: 40px 0;
    }
    
    .video-section-title {
        font-size: 1.4rem;
    }
    
    .video-section-embed .video-wrapper {
        border-radius: 8px;
    }
}

/* Image Feature Section */
.image-feature {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Image Feature Color Variants */
.image-feature-white {
    background: #ffffff;
}

.image-feature-light-grey {
    background: #f5f7fa;
}

.image-feature-light-blue {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.15) 100%);
}

.image-feature-light-green {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.15) 100%);
}

.image-feature-light-pink {
    background: linear-gradient(135deg, rgba(194, 24, 91, 0.08) 0%, rgba(194, 24, 91, 0.15) 100%);
}

.image-feature-light-purple {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.08) 0%, rgba(123, 31, 162, 0.15) 100%);
}

.image-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-feature-reversed .image-feature-grid {
    direction: rtl;
}

.image-feature-reversed .image-feature-image,
.image-feature-reversed .image-feature-content {
    direction: ltr;
}

.image-feature-image {
    position: relative;
}

.image-feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-feature-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.image-feature-content {
    position: relative;
    z-index: 2;
}

.image-feature-title {
    color: var(--dark-blue);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.image-feature-subtitle {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.image-feature-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.image-feature-text p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.image-feature-text p:last-child {
    margin-bottom: 0;
}

.image-feature-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid var(--dark-blue);
    border-radius: 25px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-feature-btn:hover {
    background: var(--dark-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Color-specific button styles */
.image-feature-light-blue .image-feature-btn {
    border-color: var(--light-blue);
    color: var(--light-blue);
}

.image-feature-light-blue .image-feature-btn:hover {
    background: var(--light-blue);
    color: #ffffff;
    border-color: var(--light-blue);
}

.image-feature-light-green .image-feature-btn {
    border-color: #2e7d32;
    color: #2e7d32;
}

.image-feature-light-green .image-feature-btn:hover {
    background: #2e7d32;
    color: #ffffff;
    border-color: #2e7d32;
}

.image-feature-light-pink .image-feature-btn {
    border-color: #c2185b;
    color: #c2185b;
}

.image-feature-light-pink .image-feature-btn:hover {
    background: #c2185b;
    color: #ffffff;
    border-color: #c2185b;
}

.image-feature-light-purple .image-feature-btn {
    border-color: #7b1fa2;
    color: #7b1fa2;
}

.image-feature-light-purple .image-feature-btn:hover {
    background: #7b1fa2;
    color: #ffffff;
    border-color: #7b1fa2;
}

/* Image Feature Responsive */
@media screen and (max-width: 968px) {
    .image-feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .image-feature-reversed .image-feature-grid {
        direction: ltr;
    }
    
    .image-feature-title {
        font-size: 1.6rem;
    }
    
    .image-feature-image {
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .image-feature {
        padding: 40px 0;
    }
    
    .image-feature-title {
        font-size: 1.4rem;
    }
    
    .image-feature-image img {
        border-radius: 8px;
    }
}

/* Newsletter Links */
.newsletter-links-section {
    padding: 60px 0;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #f5f7fa;
}

.newsletter-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.newsletter-link-card {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.newsletter-link-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.newsletter-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.newsletter-link-card:hover::before {
    opacity: 1;
}

/* Color Variants */
.newsletter-link-coral {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
}

.newsletter-link-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #3a7bc8 100%);
}

.newsletter-link-green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.newsletter-link-yellow {
    background: linear-gradient(135deg, #f5a623 0%, #e09000 100%);
}

.newsletter-link-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.newsletter-link-image {
    background: rgba(255, 255, 255, 0.95);
    margin: 12px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.newsletter-link-card:hover .newsletter-link-image img {
    transform: scale(1.05);
}

.newsletter-placeholder {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.newsletter-link-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    gap: 10px;
}

.newsletter-link-title span {
    flex: 1;
}

.newsletter-link-title .download-icon {
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.newsletter-link-card:hover .download-icon {
    opacity: 1;
    transform: translateY(3px);
}

@media screen and (max-width: 992px) {
    .newsletter-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .newsletter-links-section {
        padding: 40px 0;
    }
    
    .newsletter-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-link-image {
        aspect-ratio: 16/9;
    }
    
    .newsletter-link-title {
        font-size: 1rem;
        padding: 15px;
    }
}

/* Download Banner */
.download-banner-section {
    padding: 40px 0;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.download-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 35px;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-banner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Color Variants */
.download-banner-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.download-banner-coral {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
}

.download-banner-green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.download-banner-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.download-banner-dark-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%);
}

.download-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.download-banner-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    flex: 1;
    padding-right: 20px;
}

.download-banner-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.download-banner:hover .download-banner-icon {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.download-banner-icon svg {
    color: #ffffff;
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

.download-banner:hover .download-banner-icon svg {
    animation: bounce-down 0.6s ease infinite;
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Shimmer effect */
.download-banner-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    z-index: 1;
    transition: left 0.6s ease;
}

.download-banner:hover .download-banner-shimmer {
    left: 100%;
}

@media screen and (max-width: 600px) {
    .download-banner {
        padding: 18px 25px;
    }
    
    .download-banner-title {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .download-banner-icon {
        width: 45px;
        height: 45px;
    }
    
    .download-banner-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Policy Documents Block */
.policy-documents-section {
    padding: 60px 0;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
}

.policy-documents-block {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

/* Search Box */
.policy-search-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.policy-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f7fa;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.policy-search-box:focus-within {
    background: #ffffff;
    border-color: var(--light-blue);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.15);
}

.policy-search-box .search-icon {
    color: #999;
    flex-shrink: 0;
}

.policy-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--dark-blue);
    outline: none;
}

.policy-search-input::placeholder {
    color: #999;
}

.policy-search-clear {
    background: #e8e8e8;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.policy-search-clear:hover {
    background: #d0d0d0;
    color: #333;
}

.policy-count {
    background: linear-gradient(135deg, var(--light-blue), #357abd);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.policy-count-number {
    font-weight: 700;
}

/* Alphabet Navigation */
.policy-alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 12px;
}

.alphabet-letter {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    background: #e8e8e8;
    color: #999;
    transition: all 0.2s ease;
    cursor: default;
}

.alphabet-letter.has-policies {
    background: linear-gradient(135deg, var(--light-blue), #357abd);
    color: #ffffff;
    cursor: pointer;
}

.alphabet-letter.has-policies:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Policy Groups */
.policy-groups {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.policy-group {
    scroll-margin-top: 100px;
}

.policy-group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.policy-letter {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dark-blue), #2d5a8a);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.policy-group-count {
    font-size: 0.85rem;
    color: #999;
}

/* Policy List */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 65px;
}

.policy-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.policy-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.15) 100%);
    border-left-color: var(--light-blue);
    transform: translateX(5px);
}

.policy-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.policy-icon svg {
    color: var(--light-blue);
    stroke: var(--light-blue);
}

.policy-name {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.policy-year {
    font-size: 0.8rem;
    color: #999;
    background: #e8e8e8;
    padding: 4px 12px;
    border-radius: 15px;
    white-space: nowrap;
}

.policy-download {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.policy-item:hover .policy-download {
    background: var(--light-blue);
    color: #ffffff;
}

.policy-item:hover .policy-download svg {
    stroke: #ffffff;
}

/* No Results */
.policy-no-results {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    gap: 15px;
}

.policy-no-results p {
    margin: 0;
    font-size: 1rem;
}

/* Policy Documents Responsive */
@media screen and (max-width: 768px) {
    .policy-documents-section {
        padding: 40px 0;
    }
    
    .policy-documents-block {
        padding: 20px;
        border-radius: 16px;
    }
    
    .policy-search-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .policy-search-box {
        width: 100%;
    }
    
    .policy-count {
        width: 100%;
        text-align: center;
    }
    
    .alphabet-letter {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .policy-list {
        padding-left: 0;
    }
    
    .policy-letter {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .policy-item {
        padding: 12px 14px;
    }
    
    .policy-icon {
        width: 36px;
        height: 36px;
    }
    
    .policy-name {
        font-size: 0.9rem;
    }
    
    .policy-year {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .policy-alphabet-nav {
        gap: 4px;
        padding: 12px;
    }
    
    .alphabet-letter {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .policy-group-header {
        gap: 10px;
    }
    
    .policy-letter {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .policy-item {
        gap: 10px;
        padding: 10px 12px;
    }
    
    .policy-icon {
        width: 32px;
        height: 32px;
    }
    
    .policy-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .policy-download {
        width: 28px;
        height: 28px;
    }
}

/* School Times Block */
.school-times-section {
    padding: 60px 0;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
}

.school-times-block {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Doors Open Banner */
.doors-open-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
    color: #ffffff;
    padding: 16px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
}

.doors-open-banner .door-icon {
    animation: door-swing 2s ease-in-out infinite;
}

@keyframes door-swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.doors-open-banner strong {
    color: #ffd700;
}

/* Year Group Tabs */
.school-times-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #e8e8e8;
    background: #f5f7fa;
}

.school-times-tab {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.school-times-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.school-times-tab:hover {
    color: #1e3a5f;
    background: rgba(74, 144, 226, 0.05);
}

.school-times-tab.active {
    color: var(--tab-color, #4a90e2);
    background: #ffffff;
}

.school-times-tab.active::after {
    background: var(--tab-color, #4a90e2);
}

/* Schedule Panels */
.school-times-panels {
    position: relative;
    min-height: 400px;
}

.school-times-panel {
    display: none;
    padding: 35px;
    animation: fadeSlideIn 0.4s ease;
}

.school-times-panel.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Clock */
.times-clock-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.times-clock {
    text-align: center;
}

.clock-face {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    position: relative;
    margin: 0 auto 15px;
    border: 4px solid var(--clock-color, #4a90e2);
}

.clock-marks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.clock-mark {
    position: absolute;
    width: 2px;
    height: 8px;
    background: #ccc;
    top: 8px;
    left: 50%;
    transform-origin: 50% 52px;
}

.clock-mark:nth-child(3n) {
    height: 12px;
    width: 3px;
    background: var(--clock-color, #4a90e2);
    top: 6px;
}

.clock-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--clock-color, #4a90e2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 4px;
    transition: transform 1s cubic-bezier(0.4, 2.3, 0.3, 1);
}

.clock-hour {
    width: 4px;
    height: 30px;
    background: var(--clock-color, #4a90e2);
    margin-left: -2px;
    transform: rotate(0deg);
}

.clock-minute {
    width: 3px;
    height: 42px;
    background: #1e3a5f;
    margin-left: -1.5px;
    transform: rotate(0deg);
}

.clock-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clock-color, #4a90e2);
}

/* Visual Timeline */
.times-timeline {
    margin-bottom: 30px;
    padding: 0 10px;
}

.timeline-bar {
    height: 24px;
    background: #e8e8e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    position: relative;
}

.timeline-morning,
.timeline-afternoon {
    height: 100%;
    border-radius: 8px;
    background: var(--session-color, #4a90e2);
    animation: timeline-grow 0.8s ease forwards;
}

.timeline-morning {
    flex: 0 0 38%;
    animation-delay: 0.2s;
    transform: scaleX(0);
    transform-origin: left;
}

.timeline-afternoon {
    flex: 0 0 25%;
    margin-left: auto;
    animation-delay: 0.5s;
    transform: scaleX(0);
    transform-origin: right;
}

@keyframes timeline-grow {
    to { transform: scaleX(1); }
}

.timeline-break {
    flex: 1;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #999;
    padding: 0 5px;
}

/* Session Cards */
.times-sessions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.session-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 5px solid var(--card-color, #4a90e2);
    transition: all 0.3s ease;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.session-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-color, #4a90e2), color-mix(in srgb, var(--card-color, #4a90e2) 80%, black));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-icon svg {
    stroke: #ffffff;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.session-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.session-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
}

/* Hours Summary */
.times-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.15) 100%);
    border-radius: 12px;
}

.summary-item {
    text-align: center;
}

.summary-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--summary-color, #4a90e2);
}

.summary-label {
    font-size: 0.8rem;
    color: #666;
}

/* School Times Responsive */
@media screen and (max-width: 768px) {
    .school-times-section {
        padding: 40px 0;
    }
    
    .school-times-tabs {
        flex-wrap: wrap;
    }
    
    .school-times-tab {
        flex: 1 1 auto;
        min-width: 33.33%;
        padding: 14px 15px;
        font-size: 0.9rem;
    }
    
    .school-times-panel {
        padding: 25px 20px;
    }
    
    .times-sessions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .session-card {
        padding: 20px;
    }
    
    .session-time {
        font-size: 1.1rem;
    }
    
    .clock-face {
        width: 100px;
        height: 100px;
    }
    
    .clock-hour {
        height: 25px;
    }
    
    .clock-minute {
        height: 35px;
    }
    
    .clock-mark {
        transform-origin: 50% 42px;
    }
    
    .times-summary {
        flex-direction: column;
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .school-times-tab {
        min-width: 100%;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .doors-open-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 14px 20px;
    }
    
    .session-icon {
        width: 45px;
        height: 45px;
    }
    
    .session-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* PDF Embed Block */
.pdf-embed-block {
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

/* Border styles */
.pdf-embed-rounded {
    border-radius: 16px;
}

.pdf-embed-sharp {
    border-radius: 0;
}

.pdf-embed-shadow {
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Accent colors */
.pdf-embed-accent-blue {
    border: 3px solid #4a90e2;
}

.pdf-embed-accent-blue .pdf-embed-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.pdf-embed-accent-coral {
    border: 3px solid #e8734a;
}

.pdf-embed-accent-coral .pdf-embed-header {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
}

.pdf-embed-accent-green {
    border: 3px solid #4caf50;
}

.pdf-embed-accent-green .pdf-embed-header {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.pdf-embed-accent-purple {
    border: 3px solid #9c27b0;
}

.pdf-embed-accent-purple .pdf-embed-header {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.pdf-embed-accent-dark-blue {
    border: 3px solid #1e3a5f;
}

.pdf-embed-accent-dark-blue .pdf-embed-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%);
}

/* Header */
.pdf-embed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ffffff;
}

.pdf-embed-header .pdf-icon {
    flex-shrink: 0;
}

.pdf-embed-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-download-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.pdf-download-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.pdf-download-btn svg {
    stroke: currentColor;
}

/* Container */
.pdf-embed-container {
    background: #f8f8f8;
    position: relative;
}

.pdf-embed-iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Height variants */
.pdf-embed-small .pdf-embed-container,
.pdf-embed-small .pdf-embed-iframe {
    height: 300px;
}

.pdf-embed-medium .pdf-embed-container,
.pdf-embed-medium .pdf-embed-iframe {
    height: 500px;
}

.pdf-embed-large .pdf-embed-container,
.pdf-embed-large .pdf-embed-iframe {
    height: 700px;
}

.pdf-embed-xlarge .pdf-embed-container,
.pdf-embed-xlarge .pdf-embed-iframe {
    height: 900px;
}

/* Floating download button (when no header) */
.pdf-download-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 58, 95, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.pdf-download-floating:hover {
    background: rgba(30, 58, 95, 1);
    transform: scale(1.1);
}

.pdf-download-floating svg {
    stroke: currentColor;
}

/* PDF Embed Responsive */
@media screen and (max-width: 768px) {
    .pdf-embed-block {
        margin: 20px 0;
    }
    
    .pdf-embed-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .pdf-embed-title {
        font-size: 0.9rem;
    }
    
    .pdf-download-btn {
        width: 34px;
        height: 34px;
    }
    
    .pdf-download-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .pdf-embed-small .pdf-embed-container,
    .pdf-embed-small .pdf-embed-iframe {
        height: 250px;
    }
    
    .pdf-embed-medium .pdf-embed-container,
    .pdf-embed-medium .pdf-embed-iframe {
        height: 400px;
    }
    
    .pdf-embed-large .pdf-embed-container,
    .pdf-embed-large .pdf-embed-iframe {
        height: 550px;
    }
    
    .pdf-embed-xlarge .pdf-embed-container,
    .pdf-embed-xlarge .pdf-embed-iframe {
        height: 700px;
    }
}

/* Content Section */
.content-section {
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.content-section-inner {
    line-height: 1.8;
}

.content-section-inner h1,
.content-section-inner h2,
.content-section-inner h3,
.content-section-inner h4,
.content-section-inner h5,
.content-section-inner h6 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.content-section-inner p {
    margin-bottom: 1rem;
}

.content-section-inner p:last-child {
    margin-bottom: 0;
}

.content-section-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-section-inner ul,
.content-section-inner ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section-inner a {
    text-decoration: underline;
}

/* Padding sizes */
.content-section-padding-small {
    padding: 30px 0;
}

.content-section-padding-medium {
    padding: 60px 0;
}

.content-section-padding-large {
    padding: 100px 0;
}

/* Width options */
.content-section-width-narrow .content-section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.content-section-width-wide .container {
    max-width: 1400px;
}

.content-section-width-full .container {
    max-width: 100%;
    padding: 0 40px;
}

/* Background Colors - White & Grey */
.content-section-white {
    background: #ffffff;
    color: var(--dark-blue);
}

.content-section-light-grey {
    background: #f5f7fa;
    color: var(--dark-blue);
}

/* Pastel Solid Colors */
.content-section-pastel-blue {
    background: #d4e8f9;
    color: var(--dark-blue);
}

.content-section-pastel-green {
    background: #d4f5d4;
    color: var(--dark-blue);
}

.content-section-pastel-pink {
    background: #fce4ec;
    color: var(--dark-blue);
}

.content-section-pastel-purple {
    background: #e8d5f0;
    color: var(--dark-blue);
}

.content-section-pastel-yellow {
    background: #fff8e1;
    color: var(--dark-blue);
}

.content-section-pastel-coral {
    background: #fce4d6;
    color: var(--dark-blue);
}

/* Light Gradient Colors */
.content-section-light-blue {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(74, 144, 226, 0.18) 100%);
    color: var(--dark-blue);
}

.content-section-light-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.18) 100%);
    color: var(--dark-blue);
}

.content-section-light-pink {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(233, 30, 99, 0.18) 100%);
    color: var(--dark-blue);
}

.content-section-light-purple {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08) 0%, rgba(156, 39, 176, 0.18) 100%);
    color: var(--dark-blue);
}

/* Bold Solid Colors */
.content-section-blue {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
}

.content-section-blue a {
    color: #fff8e1;
}

.content-section-green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #ffffff;
}

.content-section-green a {
    color: #fff8e1;
}

.content-section-coral {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
    color: #ffffff;
}

.content-section-coral a {
    color: #fff8e1;
}

.content-section-purple {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: #ffffff;
}

.content-section-purple a {
    color: #fff8e1;
}

.content-section-dark-blue {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1f33 100%);
    color: #ffffff;
}

.content-section-dark-blue a {
    color: #87ceeb;
}

/* Headings inherit color from parent */
.content-section-blue h1, .content-section-blue h2, .content-section-blue h3,
.content-section-blue h4, .content-section-blue h5, .content-section-blue h6,
.content-section-green h1, .content-section-green h2, .content-section-green h3,
.content-section-green h4, .content-section-green h5, .content-section-green h6,
.content-section-coral h1, .content-section-coral h2, .content-section-coral h3,
.content-section-coral h4, .content-section-coral h5, .content-section-coral h6,
.content-section-purple h1, .content-section-purple h2, .content-section-purple h3,
.content-section-purple h4, .content-section-purple h5, .content-section-purple h6,
.content-section-dark-blue h1, .content-section-dark-blue h2, .content-section-dark-blue h3,
.content-section-dark-blue h4, .content-section-dark-blue h5, .content-section-dark-blue h6 {
    color: #ffffff;
}

/* Content Section Responsive */
@media screen and (max-width: 768px) {
    .content-section-padding-small {
        padding: 20px 0;
    }
    
    .content-section-padding-medium {
        padding: 40px 0;
    }
    
    .content-section-padding-large {
        padding: 60px 0;
    }
    
    .content-section-width-full .container {
        padding: 0 20px;
    }
}

/* Team Directory */
.team-directory-section {
    padding: 60px 0;
    /* Full width breakout */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
}

.team-directory-groups {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-group {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.team-group-title {
    padding: 18px 25px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
}

/* Team Group Colors */
.team-group-blue .team-group-title {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.team-group-coral .team-group-title {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
}

.team-group-green .team-group-title {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.team-group-purple .team-group-title {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.team-group-teal .team-group-title {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
}

.team-group-pink .team-group-title {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.team-members {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: #e8f4fc;
    transform: translateX(5px);
}

.team-member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.team-group-blue .team-member-avatar {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.team-group-coral .team-member-avatar {
    background: linear-gradient(135deg, #e8734a 0%, #d35f3a 100%);
}

.team-group-green .team-member-avatar {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.team-group-purple .team-member-avatar {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.team-group-teal .team-member-avatar {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
}

.team-group-pink .team-member-avatar {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.team-member-name {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.team-member-role {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Compact Layout */
.team-directory-compact .team-members {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-directory-compact .team-member {
    padding: 10px 15px;
    gap: 12px;
}

.team-directory-compact .team-member-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
}

.team-directory-compact .team-member-name {
    font-size: 0.9rem;
}

.team-directory-compact .team-member-role {
    font-size: 0.8rem;
}

/* Team Directory Responsive */
@media screen and (max-width: 768px) {
    .team-directory-section {
        padding: 40px 0;
    }
    
    .team-directory-groups {
        gap: 25px;
    }
    
    .team-group-title {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .team-members {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .team-member {
        padding: 12px;
    }
    
    .team-member-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .team-group-title {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .team-members {
        padding: 15px;
    }
    
    .team-member {
        padding: 10px;
        gap: 10px;
    }
    
    .team-member-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .team-member-name {
        font-size: 0.9rem;
    }
    
    .team-member-role {
        font-size: 0.8rem;
    }
}

/* Event Calendar */
.event-calendar {
    position: relative;
    margin: 30px 0;
}

.event-calendar-title {
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.calendar-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(74, 144, 226, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-month-year {
    color: var(--dark-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-nav:hover {
    background: var(--light-blue);
    color: #ffffff;
    transform: scale(1.1);
}

.calendar-grid {
    padding: 15px 20px 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.calendar-weekdays span {
    padding: 10px 5px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    position: relative;
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: default;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day:not(.empty):hover {
    background: rgba(74, 144, 226, 0.08);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--light-blue) 0%, #3a7bc8 100%);
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, var(--light-blue) 100%);
}

.calendar-day.has-events {
    cursor: pointer;
}

.calendar-day.has-events:not(.today) {
    font-weight: 600;
}

.day-number {
    font-size: 0.95rem;
    line-height: 1;
}

.event-dots {
    display: flex;
    gap: 3px;
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-more {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-left: 2px;
}

/* Calendar Events List (Full Size) */
.calendar-events-list {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(107, 207, 127, 0.08) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.events-list-title {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 15px;
}

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

.events-list h5 {
    color: var(--dark-blue);
    font-size: 1rem;
    margin: 0 0 10px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.event-item:last-child {
    border-bottom: none;
}

.event-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-date {
    font-weight: 700;
    color: var(--dark-blue);
    min-width: 30px;
    font-size: 0.95rem;
}

.event-title {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.no-events {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Calendar Tooltip */
.calendar-event-tooltip {
    position: absolute;
    z-index: 100;
    background: var(--dark-blue);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
    min-width: 150px;
    max-width: 250px;
}

.calendar-event-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--dark-blue);
}

.tooltip-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.tooltip-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tooltip-title {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Compact Calendar Size */
.event-calendar-compact {
    max-width: 350px;
}

.event-calendar-compact .event-calendar-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.event-calendar-compact .calendar-wrapper {
    border-radius: 12px;
}

.event-calendar-compact .calendar-header {
    padding: 15px 18px;
}

.event-calendar-compact .calendar-month-year {
    font-size: 1.1rem;
}

.event-calendar-compact .calendar-nav {
    width: 30px;
    height: 30px;
}

.event-calendar-compact .calendar-nav svg {
    width: 16px;
    height: 16px;
}

.event-calendar-compact .calendar-grid {
    padding: 10px 15px 15px;
}

.event-calendar-compact .calendar-weekdays span {
    padding: 6px 2px;
    font-size: 0.75rem;
}

.event-calendar-compact .calendar-day {
    padding: 8px 4px;
    min-height: 36px;
    border-radius: 6px;
}

.event-calendar-compact .day-number {
    font-size: 0.85rem;
}

.event-calendar-compact .event-dots {
    margin-top: 4px;
}

.event-calendar-compact .event-dot {
    width: 4px;
    height: 4px;
}

/* Full Size Calendar */
.event-calendar-full {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.event-calendar-full .calendar-day {
    min-height: 55px;
    padding: 10px 6px;
}

.event-calendar-full .day-number {
    font-size: 1rem;
}

.event-calendar-full .event-dot {
    width: 8px;
    height: 8px;
}

/* Calendar Responsive */
@media screen and (max-width: 768px) {
    .event-calendar-full {
        max-width: 100%;
    }
    
    .calendar-header {
        padding: 15px 18px;
    }
    
    .calendar-month-year {
        font-size: 1.1rem;
    }
    
    .calendar-grid {
        padding: 10px 12px 15px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 40px;
    }
    
    .day-number {
        font-size: 0.85rem;
    }
    
    .event-dot {
        width: 5px;
        height: 5px;
    }
    
    .calendar-events-list {
        padding: 15px 18px;
    }
}

@media screen and (max-width: 480px) {
    .event-calendar-title {
        font-size: 1.4rem;
    }
    
    .calendar-weekdays span {
        font-size: 0.7rem;
        padding: 5px 2px;
    }
    
    .calendar-day {
        padding: 6px 2px;
        min-height: 34px;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .event-dots {
        margin-top: 3px;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
}

/* Sidebar */
.sidebar {
    margin-top: 40px;
}

.widget {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(135, 206, 235, 0.05) 100%);
    border-radius: 20px;
    border-left: 4px solid var(--light-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left-color: var(--accent-yellow);
}

.widget-title {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget a {
    color: var(--text-dark);
}

.widget a:hover {
    color: var(--light-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--light-blue);
    color: var(--white);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 60px 0;
}

.error-404-links {
    margin-top: 40px;
}

.error-404-links h2 {
    margin-bottom: 20px;
}

.error-404-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-404-links ul li {
    margin-bottom: 10px;
}

.error-404-links a {
    font-size: 1.1rem;
    color: var(--light-blue);
}

/* Comments */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-title {
    color: var(--dark-blue);
    font-weight: 600;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form input[type="submit"] {
    padding: 12px 24px;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.search-form input[type="submit"]:hover {
    background-color: var(--dark-blue);
}

/* Fun Animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

@keyframes float-up {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.featured-card:nth-child(1) {
    animation: float-up 3s ease-in-out infinite;
}

.featured-card:nth-child(2) {
    animation: float-up 3s ease-in-out infinite 0.5s;
}

.featured-card:nth-child(3) {
    animation: float-up 3s ease-in-out infinite 1s;
}

.featured-card:nth-child(4) {
    animation: float-up 3s ease-in-out infinite 1.5s;
}

/* Responsive Design - Tablet (768px and below) */
@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        order: 1;
        flex: 1;
    }
    
    .site-branding .custom-logo,
    .site-branding .default-logo {
        max-height: 60px;
    }
    
    .main-navigation {
        order: 4;
        width: 100%;
        display: none;
        margin: 0;
        background: var(--bg-light);
        border-radius: 12px;
        margin-top: 0;
    }
    
    .main-navigation.active {
        display: block;
        margin-top: 15px;
        padding: 10px 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    /* Hide social links and buttons on mobile - show in mobile menu instead */
    .header-actions .social-links,
    .header-actions .header-buttons {
        display: none;
    }
    
    .search-wrapper.active .search-form-inline {
        position: absolute;
        right: 0;
        top: 50px;
        width: 250px;
        background: var(--white);
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        margin-right: 0;
    }
    
    .header-actions .search-toggle {
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: 8px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0 10px;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        display: block;
    }
    
    .nav-menu > li {
        position: relative;
    }
    
    .nav-menu a {
        display: block;
        padding: 14px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .nav-menu a:hover {
        background: rgba(74, 144, 226, 0.1);
    }
    
    .nav-menu > li:last-child > a {
        border-bottom: none;
    }
    
    .nav-menu .menu-item-has-children {
        position: relative;
    }
    
    .nav-menu .menu-item-has-children > a {
        padding-right: 60px;
    }
    
    .submenu-toggle {
        position: absolute;
        right: 10px;
        top: 14px;
        width: 36px;
        height: 36px;
        background: var(--light-blue);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        transition: all 0.3s ease;
        z-index: 5;
    }
    
    .submenu-toggle:hover {
        background: var(--dark-blue);
    }
    
    .submenu-toggle svg {
        transition: transform 0.3s ease;
    }
    
    .submenu-open > .submenu-toggle {
        background: var(--dark-blue);
    }
    
    .submenu-open > .submenu-toggle svg {
        transform: rotate(180deg);
    }
    
    .nav-menu .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background-color: rgba(74, 144, 226, 0.08);
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        border-left: 3px solid var(--light-blue);
        min-width: auto;
        width: 100%;
        display: none;
        overflow: hidden;
    }
    
    .nav-menu .submenu-open > .sub-menu {
        display: block;
        padding: 8px 0;
    }
    
    .nav-menu .sub-menu li {
        width: 100%;
    }
    
    .nav-menu .sub-menu a {
        padding: 12px 15px 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
    }
    
    .nav-menu .sub-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Hero Carousel */
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-excerpt {
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* Featured Grid */
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .featured-card {
        padding: 30px 20px;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Footer Logos - Tablet */
    .footer-logos-grid {
        gap: 15px;
    }
    
    .footer-logo-item {
        padding: 12px;
    }
    
    .footer-logo-item img {
        max-height: 70px;
    }
    
    /* CTA Banner - Tablet */
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-banner-text {
        font-size: 1.1rem;
    }
    
    .accreditation-logos {
        gap: 15px;
    }
    
    .accreditation-item {
        min-width: 120px;
        padding: 12px 20px;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Navigation Links */
    .nav-links {
        flex-direction: column;
    }
    
    /* Disable animations on mobile for performance */
    .featured-card {
        animation: none !important;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .welcome-section::before,
    .welcome-section::after {
        display: none;
    }
}

/* Responsive Design - Mobile (480px and below) */
@media screen and (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .main-header {
        padding: 15px 0;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .header-buttons {
        gap: 8px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .search-toggle,
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    /* Hero Carousel */
    .hero-carousel {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Sections */
    .welcome-section,
    .featured-sections,
    .latest-news-section {
        padding: 40px 0;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        padding: 25px 15px;
    }
    
    /* Footer */
    .footer-widgets {
        padding: 40px 0;
    }
    
    .accreditation-section {
        padding: 30px 0;
    }
    
    .accreditation-logos {
        flex-direction: column;
        gap: 10px;
    }
    
    .accreditation-item {
        width: 100%;
        min-width: auto;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Disable animations on small mobile */
    .featured-card {
        animation: none !important;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .welcome-section::before,
    .welcome-section::after {
        display: none;
    }
    
    /* Footer Logos - Mobile */
    .footer-logos-section {
        padding: 30px 0;
    }
    
    .footer-logos-grid {
        gap: 10px;
        padding: 0 10px;
    }
    
    .footer-logo-item {
        padding: 8px;
    }
    
    .footer-logo-item img {
        max-height: 50px;
        max-width: 100%;
    }
    
    /* CTA Banner - Mobile */
    .cta-banner {
        padding: 20px 0;
        margin: 20px 0;
    }
    
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cta-banner-text {
        font-size: 1rem;
        min-width: auto;
    }
    
    .cta-banner .btn-white {
        width: 100%;
        max-width: 300px;
    }
}

