/* Universal Page Enhancements - Applied to All Pages */

/* Modern Page Wrapper */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    background: #fafafa;
    overflow-x: hidden;
}

/* Headings Enhancement */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    color: #001f3f;
    letter-spacing: -0.02em;
}

/* Section Spacing - Reduced Gaps */
section {
    padding: 40px 0 !important;
}

@media (min-width: 768px) {
    section {
        padding: 50px 0 !important;
    }
}

/* Modern Cards */
.card {
    border: 1px solid rgba(0, 31, 63, 0.12);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 77, 77, 0.25);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

/* Modern Buttons */
.btn {
    border-radius: 10px;
    font-weight: 800;
    padding: 12px 28px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a5f5f, #2d7f7f);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 77, 77, 0.3);
}

.btn-outline-primary {
    border: 2px solid #0d4d4d;
    color: #0d4d4d;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #0d4d4d;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Sections */
.pro-hero,
.about-hero,
[class*="-hero"] {
    min-height: 400px;
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.pro-hero::before,
.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 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.05)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><circle cx="200" cy="100" r="150" fill="url(%23grad)"/><circle cx="900" cy="400" r="200" fill="url(%23grad)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* Badge Enhancement */
.badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Image Enhancement */
img {
    transition: transform 0.4s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* List Enhancement */
.list-unstyled li {
    padding: 8px 0;
    transition: transform 0.3s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

/* Form Enhancement */
.form-control,
.form-select {
    border: 2px solid rgba(0, 31, 63, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d4d4d;
    box-shadow: 0 0 0 4px rgba(13, 77, 77, 0.1);
}

/* Table Enhancement */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table thead {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    color: #ffffff;
}

.table tbody tr {
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(13, 77, 77, 0.05);
}

/* Alert Enhancement */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    font-weight: 600;
}

/* Modal Enhancement */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 2px solid rgba(0, 31, 63, 0.1);
    padding: 20px 24px;
}

.modal-footer {
    border-top: 2px solid rgba(0, 31, 63, 0.1);
    padding: 16px 24px;
}

/* Pagination Enhancement */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: 2px solid rgba(0, 31, 63, 0.15);
    color: #0d4d4d;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #0d4d4d;
    color: #ffffff;
    border-color: #0d4d4d;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    border-color: #0d4d4d;
}

/* Icon Enhancement */
i, .fa, .fas, .far, .fab {
    transition: all 0.3s ease;
}

a:hover i,
button:hover i {
    transform: scale(1.15);
}

/* Background Patterns */
.bg-light {
    background: #faf8f5 !important;
}

.bg-white {
    background: #ffffff !important;
}

/* Text Colors */
.text-muted {
    color: #475569 !important;
}

.text-dark {
    color: #0f172a !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Rounded Utilities */
.rounded-4 {
    border-radius: 14px !important;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid #0d4d4d;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .btn, .navbar, .footer, .back-to-top {
        display: none !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 30px 0 !important;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Event Cards Enhancement */
.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Gallery Items Enhancement */
.gallery-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Mission Cards */
.mission-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Stats Counter */
.display-4 {
    font-weight: 900;
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Sections */
.bg-primary {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f) !important;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Feature Boxes */
.feature-box {
    padding: 30px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(0, 31, 63, 0.12);
    transition: all 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 77, 77, 0.25);
}

/* Timeline Enhancement */
.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    box-shadow: 0 0 0 4px rgba(13, 77, 77, 0.2);
}

/* Progress Bars */
.progress {
    height: 12px;
    border-radius: 10px;
    background: rgba(0, 31, 63, 0.1);
}

.progress-bar {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    border-radius: 10px;
}

/* Accordion Enhancement */
.accordion-button {
    font-weight: 700;
    color: #0f172a;
    background: #faf8f5;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #0d4d4d, #1a5f5f);
    color: #ffffff;
}

/* Tabs Enhancement */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #475569;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: rgba(13, 77, 77, 0.3);
    color: #0d4d4d;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #0d4d4d;
    color: #0d4d4d;
    background: transparent;
}
