/* Custom CSS for CSCE Historic Sites */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #58612a;
    --secondary-color: #e12726;
    --tertiary-color: #72675a;
    --accent-red: #ff675d;
    --accent-green: #2acf3d;
    --dark-green: #30351a;
    --purple: #644288;
    --text-dark: #30351a;
    --text-light: #72675a;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: var(--primary-color) !important;
}

.navbar.transparent {
    background: linear-gradient(135deg, rgba(88, 97, 42, 0.85) 0%, rgba(114, 103, 90, 0.85) 100%) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

.logo-img {
    max-width: 55px;
    height: auto !important;
    object-fit: contain;
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-green);
}

/* Language Toggle */
.lang-toggle {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    border: none !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    height: 100%;
}

.lang-toggle:hover {
    color: var(--accent-green) !important;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(88, 97, 42, 0.85) 0%, rgba(114, 103, 90, 0.85) 100%),
        url('../images/hero/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-top: -80px;
    padding-top: 220px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero .lead {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-buttons .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Fallback for when hero image doesn't load */
.hero.no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Site Gallery */
.site-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-card:hover {
    transform: scale(1.02);
}

.site-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Filters */
.filter-buttons {
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0.25rem;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Search */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    padding-left: 3rem;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
}

.search-box .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Language Toggle */
#langToggle {
    border-radius: 20px;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
}

/* Stats */
.stats {
    background: var(--bg-light);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navbar improvements */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        max-width: 45px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .lang-toggle {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Hero section fixes */
    .hero {
        min-height: 70vh;
        padding: 120px 0 80px; /* Increased top padding to account for navbar */
        margin-top: -70px; /* Adjusted for thinner navbar */
        padding-top: 140px; /* Ensure content is below navbar */
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        line-height: 1.5;
    }
    
    /* Hero buttons alignment fix */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 2.5rem !important;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        margin: 0 !important; /* Remove individual margins */
        border-radius: 50px;
    }
    
    /* General mobile improvements */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Footer mobile improvements */
    .footer-logo-section {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .footer-bottom .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    color: var(--secondary-color);
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*
 Map Styles */
.map-popup {
    max-width: 250px;
}

.map-popup h6 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.map-popup .small {
    margin-bottom: 0.5rem;
}

/* View Toggle Buttons */
.btn-group .btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-group .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Region Filter */
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(88, 97, 42, 0.25);
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Button Styling Updates */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Form Styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(88, 97, 42, 0.25);
}

/* Footer Updates */
footer {
    background-color: var(--dark-green) !important;
}

footer a:hover {
    color: var(--accent-green) !important;
    transition: color 0.3s ease;
}

.footer-logo {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Responsive Map */
@media (max-width: 768px) {
    #sitesMap {
        height: 400px;
    }
    
    .filter-buttons {
        text-align: center;
        margin-top: 1rem;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
}/*
 Site Detail Page Styles */
.site-hero {
    position: relative;
    color: white;
}

.site-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
}

.site-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.site-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.site-hero .breadcrumb a:hover {
    color: white;
}

/* Site Detail Cards */
.site-detail .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.site-detail .card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    font-weight: 600;
}

/* Carousel Styling */
.carousel-item img {
    border-radius: 0;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(88, 97, 42, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Quick Info Styling */
.quick-info-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.quick-info-item:last-child {
    border-bottom: none;
}

/* External Links */
.external-links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.external-links a:hover {
    color: var(--secondary-color);
}

/* Navigation Buttons */
.site-navigation {
    border-top: 2px solid var(--bg-light);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Badge Styling for Site Detail */
.site-hero .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design for Site Detail */
@media (max-width: 768px) {
    .site-hero {
        min-height: 50vh !important;
        padding: 2rem 0;
    }
    
    .site-hero .display-4 {
        font-size: 2rem;
    }
    
    .site-hero .lead {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    #siteDetailMap {
        height: 200px !important;
    }
}

/* Image Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}

/* Technical Information Grid */
.tech-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-info-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.tech-info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 0.25rem;
}/* N
ext Plaque Unveiling Section */
.plaque-unveiling {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-red) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.plaque-unveiling::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.plaque-unveiling .container {
    position: relative;
    z-index: 1;
}

.plaque-unveiling .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.plaque-unveiling .btn-light:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Stats Section Updates */
.stats .row {
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .plaque-unveiling .display-6 {
        font-size: 1.8rem;
    }
    
    .plaque-unveiling .lead {
        font-size: 1.1rem;
    }
    
    .plaque-unveiling .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .stats .col-lg-3 {
        margin-bottom: 1rem;
    }
}/* Pla
que Unveiling Section - Redesigned */
.plaque-unveiling-section {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, rgba(114, 103, 90, 0.9) 100%);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.plaque-unveiling-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subtle-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle-dots)"/></svg>');
    opacity: 0.4;
}

.plaque-unveiling-section .container {
    position: relative;
    z-index: 1;
}

.unveiling-image-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    color: white;
}

.save-date-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.unveiling-content h2 {
    color: var(--text-dark);
    font-weight: 700;
}

.event-details {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.detail-item div {
    display: flex;
    flex-direction: column;
}

.detail-item strong {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Modern Footer Design */
.footer-logo-section {
    margin-bottom: 1rem;
}

.footer-logo {
    opacity: 0.95;
    transition: opacity 0.3s ease;
    filter: brightness(1.1);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-heading {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links {
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-green);
}

.footer-contact {
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent-green);
    width: 16px;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Updates for New Sections */
@media (max-width: 768px) {
    .plaque-unveiling-section .display-6 {
        font-size: 1.8rem;
    }
    
    .event-details {
        padding: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .detail-item i {
        align-self: flex-start;
    }
    
    .footer-description {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1rem;
    }
}/* Im
age Caption Styles */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    background: none;
}

.caption-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    color: white;
    text-align: center;
}

.caption-overlay p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* Ensure captions are readable on all backgrounds */
.carousel-item {
    position: relative;
}

/* Responsive caption adjustments */
@media (max-width: 768px) {
    .caption-overlay {
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .caption-overlay p {
        font-size: 0.8rem;
    }
}

/* Additional sections for Quebec Bridge */
.historic-significance-section {
    background: var(--bg-light);
}

.site-location-section {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.plaque-unveiling-details {
    background: rgba(88, 97, 42, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}/* Forma
tted Content Styles */
.engineering-history-content,
.historic-significance-content,
.plaque-content,
.site-location-content {
    line-height: 1.7;
}

.engineering-history-content p,
.historic-significance-content p,
.plaque-content p,
.site-location-content p {
    margin-bottom: 1.2rem;
}

.engineering-history-content strong,
.historic-significance-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.formatted-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.formatted-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Clickable images */
.clickable-image {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image modal improvements */
.modal-body img {
    border-radius: 0.375rem;
}

/* Plaque location and unveiling details */
.plaque-location-details,
.plaque-unveiling-details {
    background: rgba(88, 97, 42, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.plaque-location-details h5,
.plaque-unveiling-details h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .formatted-list {
        padding-left: 1.2rem;
    }
    
    .plaque-location-details,
    .plaque-unveiling-details {
        padding: 1rem;
    }
}/*
 Updated Formatted Content Styles */
.description-content,
.historic-significance-content,
.plaque-content,
.site-location-content {
    line-height: 1.7;
}

.description-content p,
.historic-significance-content p,
.plaque-content p,
.site-location-content p {
    margin-bottom: 1.2rem;
}

/* Content sections with headings */
.content-section {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(88, 97, 42, 0.02);
    padding: 1.5rem;
    border-radius: 0.375rem;
}

.section-heading {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.section-content {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Improved modal styles */
.modal-footer {
    background-color: rgba(248, 249, 250, 0.8);
}

.modal-footer small {
    font-style: italic;
    line-height: 1.4;
}

/* Better spacing for site location */
.site-location-content .content-section {
    margin-bottom: 1.5rem;
}

.site-location-content .content-section:last-child {
    margin-bottom: 0;
}

/* About Page Styles */
.about-hero {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding-top: 4rem;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="about-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23about-pattern)"/></svg>');
    opacity: 0.3;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.hero-stats {
    margin-top: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    color: var(--accent-green);
    font-weight: 700;
}

.operation-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.operation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.operation-icon {
    margin-bottom: 1rem;
}

.committee-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    margin-bottom: 1rem;
}

.impact-item {
    text-align: center;
    padding: 1rem;
}

.impact-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.impact-visual {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
    .about-hero .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 1rem;
    }
    
    .operation-icon i {
        font-size: 2.5rem !important;
    }
    
    .impact-item h3 {
        font-size: 2rem;
    }
    
    .impact-visual {
        margin-top: 2rem;
    }
    
    .impact-visual i {
        font-size: 4rem !important;
    }
}/* 
CSCE Introduction Section */
.csce-intro-section {
    position: relative;
    overflow: hidden;
}

.csce-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="intro-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(88,97,42,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23intro-pattern)"/></svg>');
    opacity: 0.5;
}

.csce-intro-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.intro-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(88, 97, 42, 0.1);
    border-radius: 25px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(88, 97, 42, 0.2);
    transform: translateY(-2px);
}

/* Committee cards improvements */
.committee-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.committee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.committee-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .csce-intro-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .intro-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .highlight-item {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }
    
    .intro-icon i {
        font-size: 3rem !important;
    }
}

/* Resources Page Styles */
.resources-hero {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding-top: 4rem;
}

.resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="resources-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23resources-pattern)"/></svg>');
    opacity: 0.4;
}

.resources-hero .container {
    position: relative;
    z-index: 1;
}

.resource-stats {
    margin-top: 2rem;
}

.resource-stats .stat-item {
    text-align: center;
}

.resource-stats .stat-number {
    color: var(--accent-green);
    font-weight: 700;
}

/* Resources Navigation */
.resources-nav .nav-link {
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.resources-nav .nav-link:hover {
    background-color: rgba(88, 97, 42, 0.1);
    color: var(--primary-color);
}

.resources-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Publications Table */
.publications-table .table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.publications-table .table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.publications-table .table tbody tr {
    transition: background-color 0.3s ease;
}

.publications-table .table tbody tr:hover {
    background-color: rgba(88, 97, 42, 0.05);
}

.publications-table .table td {
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
    padding: 1rem 0.75rem;
}

/* Award Cards */
.award-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.award-year {
    padding: 1rem;
    background: rgba(226, 39, 38, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* External Link Cards */
.external-link-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.external-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.link-icon {
    flex-shrink: 0;
}

/* Search and Filter Improvements */
.resources-nav + .container .search-box {
    position: relative;
    margin-bottom: 1rem;
}

.resources-nav + .container .search-box input {
    padding-left: 3rem;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
}

.resources-nav + .container .search-box .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Responsive Design for Resources */
@media (max-width: 768px) {
    .resources-hero .display-5 {
        font-size: 2rem;
    }
    
    .resource-stats {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center;
    }
    
    .resource-stats .stat-item {
        margin-bottom: 1rem;
    }
    
    .resources-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem 0;
    }
    
    .publications-table {
        font-size: 0.9rem;
    }
    
    .publications-table .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .award-year {
        width: 60px;
        height: 60px;
    }
    
    .award-year .display-6 {
        font-size: 1.5rem;
    }
    
    .external-link-card .card-body {
        padding: 1rem;
    }
    
    .link-icon i {
        font-size: 1.5rem !important;
    }
}/*
 General Page Hero Sections (non-home pages) */
.about-hero,
.resources-hero,
.site-hero {
    margin-top: -80px !important;
    padding-top: 140px !important;
}

/* Ensure proper spacing for all page heroes */
.section:first-child:not(.about-hero):not(.resources-hero):not(.site-hero) {
    margin-top: 80px;
    padding-top: 2rem;
}

/* Override for home page hero which has its own styling */
.hero {
    margin-top: -80px !important;
    padding-top: 220px !important;
}

/* Fix navbar state transitions */
.navbar {
    transition: all 0.3s ease;
}

.navbar.transparent {
    background: linear-gradient(135deg, rgba(88, 97, 42, 0.85) 0%, rgba(114, 103, 90, 0.85) 100%) !important;
}

.navbar.scrolled {
    background-color: var(--primary-color) !important;
    padding: 0.5rem 0;
}

/* Ensure navbar is properly positioned */
.navbar.fixed-top {
    z-index: 1030;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .about-hero,
    .resources-hero,
    .site-hero {
        margin-top: -70px !important;
        padding-top: 120px !important;
    }
    
    .section:first-child:not(.about-hero):not(.resources-hero):not(.site-hero) {
        margin-top: 70px;
        padding-top: 1.5rem;
    }
    
    .hero {
        margin-top: -70px !important;
        padding-top: 140px !important;
    }
    
    /* Mobile stats spacing improvements */
    .hero-stats {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
        margin-top: 2rem !important;
    }
    
    .hero-stats .stat-item {
        margin-bottom: 0 !important;
    }
    
    .stats .row {
        gap: 1rem;
        justify-content: center;
    }
    
    .stats .col-lg-3 {
        margin-bottom: 1.5rem !important;
        flex: 0 0 auto;
        width: calc(50% - 0.5rem);
    }
    
    .stats .col-lg-3:nth-child(odd) {
        margin-right: 0.5rem;
    }
    
    .stats .col-lg-3:nth-child(even) {
        margin-left: 0.5rem;
    }
    
    /* Mobile committee member cards - horizontal layout */
    .committee-card {
        margin-bottom: 0.75rem !important;
    }
    
    .committee-card .card-body {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 1rem !important;
    }
    
    .committee-card .member-avatar {
        margin-bottom: 0 !important;
        margin-right: 1rem !important;
        flex-shrink: 0;
    }
    
    .committee-card .member-avatar i {
        font-size: 2.5rem !important;
    }
    
    .committee-card .card-title {
        margin-bottom: 0.25rem !important;
        font-size: 0.95rem !important;
    }
    
    .committee-card .text-muted {
        font-size: 0.8rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .committee-card .badge {
        margin-top: 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Make committee members single column on mobile */
    .committee-card {
        margin-bottom: 0.75rem !important;
    }
}