/* public/style.css */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary-dark: #0F172A; /* Deep slate ink */
    --secondary-dark: #1E293B;
    --accent-brand: #2563EB; /* Vibrant royal cobalt */
    --accent-brand-hover: #1D4ED8;
    --text-white: #ffffff;
    --text-dark: #0F172A; 
    --text-gray: #475569; 
    --bg-light: #F8FAFC; 
    --bg-white: #ffffff;
    --border-subtle: #E2E8F0;
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08); 
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- Navigation Header --- */
.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8%;
    border-bottom: 1px solid var(--border-subtle);
}

.header-left {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 60px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    margin-right: 20px;
    transition: color 0.2s ease;
}

.top-nav a:hover {
    color: var(--accent-brand);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #F1F5F9;
    border-radius: 8px; /* Moderated corner radius */
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
}

.search-container input {
    border: none;
    background: none;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
    width: 100px;
}

.search-container button {
    background: none;
    border: none;
    color: var(--accent-brand);
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
}

/* Bottom Nav Header */
.bottom-header {
    background-color: var(--primary-dark);
    padding: 14px 8%;
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 35px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--accent-brand);
}

.hero-splitscreen {
    display: flex;
    min-height: calc(85vh - 120px);
    background: linear-gradient(to right, #ffffff 50%, var(--primary-dark) 50%);
    padding-bottom: 40px; 
}

.hero-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 6% 20px; 
}

.hero-welcome-container {
    max-width: 580px;
    width: 100%;
}

.slideshow-frame {
    width: 100%; /* Lets the container fill its column perfectly */
    aspect-ratio: 16 / 9; /* Replaces fixed height to scale adaptively */
    background: var(--bg-light); 
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Forces the image to reference the frame's size */
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    object-fit: contain; /* Ensures mixed-ratio images fit without cropping */
    padding: 10px; /* Optional: gives the 95% scaled look you originally wanted */
}

.slide.active {
    opacity: 1;
    z-index: 2; /* Ensures the visible slide is interactive and on top */
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary-dark);
    line-height: 1.25;
}

.hero-description {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.hero-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-brand);
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hero-button:hover {
    background-color: var(--accent-brand-hover);
    transform: translateY(-1px);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
}

.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.map-heading {
    color: var(--text-white);
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-map-img {
    max-width: 100%;
    max-height: 80vh; 
    object-fit: contain;
}

.overlaid-cards-section {
    position: relative;
    z-index: 10;
    margin-top: -30px; 
    padding: 0 8% 60px 8%; 
}

.overlaid-cards-container {
    background-color: var(--bg-white);
    border-radius: 10px; /* Moderated curve */
    padding: 40px 4%;
    display: flex;
    gap: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

.feature-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    font-size: 38px;
    color: var(--accent-brand);
    margin-bottom: 18px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.upcoming-events-list {
    margin-bottom: 20px;
    width: 100%;
}

.event-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.event-date {
    font-size: 12px;
    color: var(--accent-brand);
    font-weight: 600;
}

.no-events {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

.card-button {
    margin-top: auto; 
    text-decoration: none;
    color: var(--accent-brand);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border: 1.5px solid var(--accent-brand);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.card-button:hover {
    background-color: var(--accent-brand);
    color: var(--text-white);
}

/* --- Footer Section --- */
.ibro-style-footer {
    background: var(--primary-dark);
    color: #ffffff;
    padding: 60px 8% 40px;
    border-top: 3px solid var(--accent-brand); 
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-left {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}

.footer-logo {
    max-width: 220px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); 
    opacity: 0.95;
}

.footer-tagline {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--accent-brand);
    font-weight: 500;
}

.footer-copyright p {
    font-size: 13px;
    color: #94A3B8; 
    line-height: 1.6;
    margin-bottom: 4px;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 280px;
}

.footer-column {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    border-bottom: 2px solid var(--accent-brand);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
}

.footer-contact-info strong {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-brand);
}

.footer-contact-info a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: var(--accent-brand);
}

@media (max-width: 850px) {
    .hero-splitscreen {
        flex-direction: column;
        background: var(--bg-light);
    }
    
    .hero-right {
        background-color: var(--primary-dark);
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-right {
        justify-content: flex-start;
    }
}