/* Global Theme Styles */

:root {
    --primary-dark: #0f3a66;
    --primary-light: #1a5a8a;
    --accent-blue: #64b5f6;
    --text-light: rgba(255,255,255,0.9);
    --bg-overlay: rgba(255,255,255,0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, section {
    flex: 1;
}

/* Header */
.site-header {
    width: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

.site-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin: 0;
    text-align: center;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(15,58,102,0.95) 0%, rgba(26,90,138,0.95) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

.navbar-brand {
    color: var(--accent-blue);
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.nav-link.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: transparent;
}

/* Center navbar items across the navbar */
.navbar .navbar-nav {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Carousel */
.carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    max-width: 100%;
}

.carousel-item {
    min-height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .carousel-item {
        min-height: 500px;
    }
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    padding: 2rem 1rem;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
}

.carousel-caption h3,
.carousel-caption h1 {
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none;
}

@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
    gap: 8px;
    justify-content: center;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicators button.active {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
    width: 14px;
    height: 14px;
}

/* Award Image Container */
.award-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.award-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.award-container img:hover {
    transform: scale(1.02);
}

/* Content Sections */
.content-section {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #114981;
}

@media (min-width: 768px) {
    .content-section {
        padding: 2.5rem;
    }
}

.content-section h2,
.content-section h3 {
    color: #114981;
    font-weight: 600;
}

.content-section p {
    line-height: 1.6;
    color: #114981;
}

/* Alerts and Info Boxes */
.alert {
    border: 1px solid rgba(100,181,246,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    color: #114981;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255,193,7,0.1) 0%, rgba(255,193,7,0.05) 100%);
    border-color: rgba(255,193,7,0.3);
}

.alert-info {
    background: linear-gradient(135deg, rgba(100,181,246,0.1) 0%, rgba(100,181,246,0.05) 100%);
    border-color: rgba(100,181,246,0.3);
}

.alert h5 {
    color: #114981;
    margin-bottom: 0.5rem;
}

.alert p {
    color: #114981;
    margin: 0;
}

/* Tab consistency */
.nav-tabs .nav-link {
    min-width: 120px;
    text-align: center;
}
.tab-content {
    min-height: 320px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(15,58,102,0.95) 0%, rgba(26,90,138,0.95) 100%);
    border-top: 1px solid rgba(100,181,246,0.2);
    margin-top: auto;
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
    line-height: 1.8;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
    color: var(--text-light);
}

footer strong {
    color: var(--accent-blue);
}

/* Map container for Google Maps */
.map-container {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-container #map {
    width: 100%;
    height: 100%;
}

/* Gallery Thumbnails */
.gallery-thumb img {
    transition: transform 0.3s ease;
}
.gallery-thumb:hover img {
    transform: scale(1.05);
}

/* Modal navigation arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1055;
    color: #fff;
    background: rgba(0,0,0,0.4);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
}
.gallery-nav:hover {
    background: rgba(0,0,0,0.6);
    opacity: 1;
}
.gallery-prev { left: -2rem; }
.gallery-next { right: -2rem; }

.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.zoom-btn:hover {
    background: rgba(0,0,0,0.6);
}

#galleryModalImg {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}
#galleryModalImg.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* Tab improvements */
.nav-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar {
    height: 6px;
}
.nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

@media (max-width: 576px) {
    .tab-pane ul {
        display: block;
    }
}

/* Responsive Typography */
@media (max-width: 576px) {
    .site-header {
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .navbar {
        margin-bottom: 1rem;
        padding: 0.25rem 0;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .carousel {
        margin-bottom: 1rem;
    }

    .carousel-item {
        min-height: 250px;
    }
}

/* Touch-friendly spacing */
@media (max-width: 768px) {
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Tablet and larger */
@media (min-width: 768px) {
    .navbar-nav {
        gap: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    body {
        font-size: 1.05rem;
    }

    .carousel-item {
        min-height: 600px;
    }
}
