:root {
    --primary-color: #4dc9e6;
    --primary-dark: #3a7ca5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #4dc9e6;
    --gradient-start: #4dc9e6;
    --gradient-end: #3a7ca5;
    --bs-primary: #4dc9e6;
    --bs-primary-rgb: 77, 201, 230;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #2d3748;
    line-height: 1.6;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.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);
    color: white;
}

.badge-primary {
    background-color: var(--primary-color) !important;
}

main {
    flex: 1;
}

.hero-section {
    position: relative;
}

@media (max-width: 991px) {
    .hero-section .row {
        min-height: auto !important;
    }
    
    .hero-section .col-lg-6 {
        padding: 3rem 2rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 201, 230, 0.4);
}

.btn-light {
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-light {
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-width: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card {
    margin-bottom: 30px;
}

.event-card .card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.card-text {
    color: #4a5568;
    line-height: 1.7;
}

.card-footer {
    background: transparent;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-box {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.stat-box h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 1.2rem;
    margin: 0;
}

.table-actions a, .table-actions button {
    margin: 0 5px;
}

.login-container {
    max-width: 450px;
    margin: 50px auto;
}

.login-card {
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border: none;
    border-radius: 10px;
}

.login-card .card-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px 10px 0 0 !important;
}

form .form-control::placeholder {
    color: #999 !important;
    opacity: 1;
}

form .form-control {
    padding: 12px;
    border-radius: 5px;
}

.alert {
    border-radius: 5px;
}

.membership-status {
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.membership-status.active {
    background-color: #d4edda;
    color: #155724;
}

.membership-status.expired {
    background-color: #f8d7da;
    color: #721c24;
}

.membership-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

.distance-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.coa-logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    background: transparent;
}

.navbar-light .coa-logo {
    filter: brightness(1.1) contrast(1.1);
}

.navbar {
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .coa-logo {
        height: 70px;
        width: 70px;
    }
}
