:root {
    --orange: #f78e20;
    --yellow: #fec919;
    --darkblue: #252e67;
    --lightgrey: #dadada;
    --darkgrey:#222222;
    --white: rgb(255, 255, 255);
    --white_raw: 255, 255, 255; /* Define as RGB values for rgba of sticky header */
    --black: #000;
}

/* Base styles */
body {
    margin: 0;
    background-color: var(--lightgrey);
}

.container{
    background-color: var(--white);
}

body > * {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* body > *:nth-child(even) { optional alternating backgrounds } */

body > * p:last-child {
    margin: 0;
}

/* Layout containers */
.container {
    width: 100%;
    max-width: 1024px;
    margin: auto;
    box-sizing: border-box;
}

/* Header styles moved to header.css */

/* Main content */
.main {
    background-color: blue;
}

/* Footer styles live in footer.css */

/* Footer styles consolidated in footer.css; header link styles in header.css */

/* Floating header and menu styles moved to header.css */

video {
    max-width: 100%;
}

/* Social icons in footer */
/* Footer and mobile-nav-top spacing moved to footer.css/header.css respectively */

/* Hero section */
.hero {
    position: relative;
    width: 100%;
}
.hero video {
    width: 100%;
    display: block;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.72);
    width: 90%;
    max-width: 800px;
    z-index: 1;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}
.hero-content .cta-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.hero-content .cta-button:hover {
    background-color: var(--yellow);
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Mobile hero optimizations */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem; /* Smaller main heading on mobile */
        margin-bottom: 1.5rem;
    }
    
    .hero-content h2 {
        display: none; /* Hide "Welcome" on mobile */
    }
    
    .hero-content p {
        display: none; /* Hide "Empowering futures..." on mobile */
    }
    
    .hero-content .cta-button {
        margin-top: 0; /* Remove extra margin since p is hidden */
    }
}

.mobile-only p a{
    cursor: pointer; /* for thin desktop clients */
}

/* Section Title Global Style */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 2rem 0;
    text-align: center;
}

.feature-blocks {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.feature-blocks .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 3rem 0;
}

.feature-blocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .feature-blocks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .feature-blocks-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
}
.feature-block {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    text-decoration: none;
}

.feature-block svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Individual icon colors - all dark blue by default */
.feature-block svg {
    color: var(--darkblue);
}

.feature-block:hover svg {
    transform: scale(1.1);
    color: var(--orange);
}

.feature-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.feature-block p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}


/* About Section */
.about-section {
    background-color: var(--white);
    padding: 6rem 0;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 2.5rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.about-content p:first-of-type {
    font-size: 1.25rem;
    color: #333333;
    font-weight: 500;
    margin-bottom: 2rem;
}

.about-content strong {
    color: var(--darkblue);
    font-weight: 700;
    font-size: 1.1em;
    display: block;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content ul {
    margin: 0 0 2.5rem 0;
    padding: 0;
    list-style: none;
}

.about-content li {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-content li::before {
    content: '•';
    color: var(--orange);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3em;
}

.about-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(247, 142, 32, 0.3);
}

.about-content .cta-button:hover {
    background-color: var(--darkblue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 46, 103, 0.4);
    text-decoration: none;
}

.about-image {
    position: relative;
    text-align: right;
}

.about-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Responsive design for about section */
@media (max-width: 1024px) {
    .about-container {
        gap: 4rem;
        padding: 0 2rem;
    }
    
    .about-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 2.2rem;
        text-align: left;
    }
    
    .about-content p:first-of-type {
        font-size: 1.125rem;
    }
    
    .about-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .about-content ul {
        text-align: left;
    }
    
    .about-section {
        padding: 4rem 0;
    }
    
    .about-image {
        text-align: center;
        order: -1;
    }
    
    .about-image img {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 0;
    }
    
    .about-container {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Events Section */
.events-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.events-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 3rem 0;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Event Card */
.event-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.event-card.updating {
    opacity: 0.3;
    transform: translateY(-10px);
}

.event-card.updated {
    opacity: 1;
    transform: translateY(0);
}

.event-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 1.5rem 0;
}

.event-details {
    margin-bottom: 2rem;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #666666;
}

.event-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.event-description p {
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.event-count {
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: #fff3e0;
    border-radius: 12px;
    display: inline-block;
}

.event-date svg, .event-location svg {
    color: var(--orange);
}

.event-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--darkblue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.event-button::after {
    content: '→';
    font-size: 1.2rem;
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

.event-button:hover {
    background-color: var(--orange);
    text-decoration: none;
    padding-right: 3rem;
}

.event-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Calendar Widget */
.calendar-widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.calendar-header {
    background-color: var(--darkblue);
    color: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.calendar-nav:hover {
    background-color: rgba(255,255,255,0.2);
}

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

.calendar-day-header {
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--darkblue);
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.calendar-day {
    padding: 1rem 0.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.today {
    background-color: var(--darkblue);
    color: var(--white);
    font-weight: 600;
}

.calendar-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: #f8f9fa;
}

.view-all-events {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--darkblue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.view-all-events:hover {
    background-color: var(--orange);
    text-decoration: none;
}

/* Enhanced Calendar Styles */
.calendar-day {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.other-month {
    color: #ccc;
    background-color: #f9f9f9;
}

.calendar-day.has-event {
    background-color: #fff3e0;
    border-color: var(--orange);
}

.calendar-day.has-event:hover {
    background-color: #ffe0b3;
    cursor: pointer;
}

.event-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Event Popup Styles */
.event-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-popup-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.event-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.event-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.event-popup h4 {
    color: var(--darkblue);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.event-date {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-time {
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-location {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.event-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-popup .event-button {
    background-color: var(--darkblue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.event-popup .event-button:hover {
    background-color: var(--orange);
}

/* Calendar Loading State */
.calendar-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Responsive design for events section */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .events-section {
        padding: 2rem 0;
    }
    
    .events-section .section-title {
        font-size: 2rem;
    }
    
    .calendar-day-header, .calendar-day {
        padding: 0.75rem 0.25rem;
        font-size: 0.85rem;
    }
}

/* News Section */
.news-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.news-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 3rem 0;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* News Card */
.news-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* News Image with Logo */
.news-image {
    position: relative;
    background: linear-gradient(135deg, var(--orange) 0%, #ff6b35 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.news-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1); /* Make logo white */
}

.news-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--darkblue);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* News Image with Photo */
.news-image-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 5%;
    border-top-right-radius: 5%;
}

.news-image-photo .news-banner {
    background-color: rgba(37, 46, 103, 0.9);
}

/* News Content */
.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--darkblue);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-date {
    color: #888888;
}

.news-category {
    background-color: #f0f0f0;
    color: var(--darkblue);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.news-content p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--darkblue);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.news-button::after {
    content: '→';
    font-size: 1.1rem;
    position: absolute;
    right: 1.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

.news-button:hover {
    background-color: var(--orange);
    text-decoration: none;
    padding-right: 3rem;
}

.news-button:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* News Footer */
.news-footer {
    text-align: center;
}

.see-more-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.see-more-button:hover {
    background-color: #e67e1c;
    text-decoration: none;
}

/* Responsive design for news section */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-section {
        padding: 2rem 0;
    }
    
    .news-section .section-title {
        font-size: 2rem;
    }
    
    .news-container {
        padding: 0 1rem;
    }
    
    .news-image {
        padding: 1.5rem;
        min-height: 140px;
    }
    
    .news-logo {
        width: 100px;
    }
}

/* Mobile header styles moved to header.css; footer mobile styles in footer.css */


/* Desktop header resets moved to header.css */