/*
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: #ff6b6b;
    --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;
}

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);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.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;
}

.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: 35px;
    height: 35px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-toggle:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-yellow) 100%);
    border-color: var(--accent-yellow);
    transform: scale(1.1) rotate(90deg);
}

.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);
}

/* Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
    order: 4;
}

.menu-toggle-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    transition: all 0.3s ease;
}

.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;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 100%;
    height: 100%;
}

.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);
}

.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;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.search-overlay form {
    display: flex;
    gap: 10px;
}

.search-overlay input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid var(--white);
    border-radius: 5px;
    background-color: var(--white);
}

.search-overlay input[type="submit"] {
    padding: 15px 30px;
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 600;
}

.search-overlay input[type="submit"]:hover {
    background-color: var(--dark-blue);
}

.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;
    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;
}

.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);
}

.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: 40px 30px;
    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;
}

.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, var(--white) 0%, rgba(74, 144, 226, 0.05) 100%);
}

.featured-card-yellow {
    border-top: 6px solid var(--accent-yellow);
    background: linear-gradient(135deg, var(--white) 0%, rgba(135, 206, 235, 0.1) 100%);
}

.featured-card-green {
    border-top: 6px solid var(--accent-green);
    background: linear-gradient(135deg, var(--white) 0%, rgba(107, 207, 127, 0.1) 100%);
}

.featured-card-purple {
    border-top: 6px solid var(--accent-purple);
    background: linear-gradient(135deg, var(--white) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--dark-blue);
    transition: transform 0.4s ease;
    display: inline-block;
}

.featured-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.featured-card h3 {
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.featured-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* 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;
}

.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;
}

.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;
}

/* 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: 15px;
    }
    
    .site-branding {
        order: 1;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0;
    }
    
    .main-navigation.active {
        max-height: 1000px;
        margin-top: 20px;
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
        flex-wrap: wrap;
    }
    
    .header-buttons {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 4;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-left: 20px;
        display: none;
    }
    
    .nav-menu li.active > .sub-menu {
        display: block;
    }
    
    /* 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;
    }
    
    /* Search Overlay */
    .search-overlay-content {
        width: 95%;
    }
    
    .search-overlay input[type="search"] {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .search-overlay input[type="submit"] {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* 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;
    }
}

