/* Pro.Sec.Ca. - Custom Styles */

:root {
    --prosecca-navy: #1a3a5c;
    --prosecca-blue: #2980b9;
    --prosecca-blue-light: #5dade2;
    --prosecca-gold: #d4a843;
    --prosecca-gold-light: #f0d78c;
    --prosecca-text: #2c3e50;
    --prosecca-gray: #f8f9fa;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--prosecca-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--prosecca-navy);
    font-weight: 700;
}

/* Navbar */
#mainNav {
    background-color: var(--prosecca-navy) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.1rem;
}

#mainNav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--prosecca-gold) !important;
}

/* CTA Button */
.btn-cta {
    background-color: var(--prosecca-gold);
    color: var(--prosecca-navy);
    border: none;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: var(--prosecca-gold-light);
    color: var(--prosecca-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

/* Primary buttons */
.btn-prosecca {
    background-color: var(--prosecca-navy);
    color: #fff;
    border: none;
}

.btn-prosecca:hover {
    background-color: #14304d;
    color: #fff;
}

.btn-outline-prosecca {
    color: var(--prosecca-navy);
    border: 2px solid var(--prosecca-navy);
    background: transparent;
}

.btn-outline-prosecca:hover {
    background-color: var(--prosecca-navy);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--prosecca-navy) 0%, var(--prosecca-blue) 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom right, transparent 49%, #fff 50%);
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Section styling */
.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--prosecca-gold);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-prosecca-light {
    background-color: #eef4f9;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--prosecca-navy);
    color: #fff;
    border-radius: 10px 10px 0 0 !important;
}

/* News cards */
.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    font-size: 1.1rem;
}

.news-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Observatory table */
.table-observatory th {
    background-color: var(--prosecca-navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: var(--prosecca-navy);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--prosecca-gold);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--prosecca-navy) 0%, var(--prosecca-blue) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb a {
    color: var(--prosecca-gold);
    text-decoration: none;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--prosecca-blue);
    box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.25);
}

/* Activity tabs */
.nav-pills .nav-link {
    color: var(--prosecca-navy);
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--prosecca-navy);
}

/* Filter bar */
.filter-bar {
    background-color: var(--prosecca-gray);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Document list */
.document-item {
    border-left: 3px solid var(--prosecca-gold);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s;
}

.document-item:hover {
    border-left-color: var(--prosecca-navy);
}

/* Event cards */
.event-date-badge {
    background-color: var(--prosecca-navy);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Video placeholder */
.video-placeholder {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 10px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    #mainNav .navbar-collapse {
        padding: 1rem 0;
    }

    #mainNav .nav-link {
        padding: 0.5rem 0;
    }

    #mainNav .btn-cta {
        margin-top: 0.5rem;
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section img {
        width: 120px !important;
        height: 120px !important;
    }

    .event-date-badge {
        width: 55px;
        height: 55px;
    }

    .event-date-badge .day {
        font-size: 1.2rem;
    }

    .filter-bar {
        padding: 0.75rem 1rem;
    }

    .filter-bar .btn {
        font-size: 0.78rem;
        padding: 0.25rem 0.5rem;
    }

    .document-item {
        padding: 0.75rem 1rem;
    }

    .table-observatory {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Alert messages */
.alert-prosecca {
    background-color: #eef4f9;
    border-color: var(--prosecca-blue);
    color: var(--prosecca-navy);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--prosecca-navy);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s;
    font-size: 1.2rem;
}

.scroll-top.visible {
    display: flex;
}
