/* CVO Page Styles */

/* Hide original header elements if any */
.cvo-page .hero-section, 
.cvo-page .ultra-minimal-header {
    display: none !important;
}

/* Hide original breadcrumb if it exists elsewhere */
.cvo-page .breadcrumb-container {
    display: none !important;
}

/* Ensure body has no conflicting margins for CVO page */
body.page-template-page-cvo {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix for WordPress admin bar if present */
body.admin-bar .cvo-page .tcl-style-header {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .cvo-page .tcl-style-header {
        margin-top: 46px !important;
    }
}

/* Ensure the page starts at the very top */
.cvo-page {
    position: relative;
    top: 0;
    margin-top: 0 !important;
}

/* Fix any potential top spacing issues */
.cvo-page .tcl-style-header .breadcrumb-list,
.cvo-page .tcl-style-header .tcl-page-title {
    color: var(--white) !important;
}

.cvo-page .tcl-style-header .breadcrumb-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.cvo-page .tcl-style-header .breadcrumb-list a:hover {
    color: var(--white) !important;
    text-decoration: underline;
}

/* === CVO Page Base Styles === */
.cvo-page {
    padding: 0;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-family-base);
    line-height: 1.6;
}

/* Ensure the header is visible and not cut off */
.cvo-page .tcl-style-header {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    z-index: 10;
    top: 0;
    visibility: visible !important;
    display: block !important;
}

/* Ensure proper spacing for the main content */
.cvo-page #main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Override gallery-hero styles specifically for CVO page */
.cvo-page .gallery-hero,
body .cvo-page .gallery-hero,
.gallery-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Ensure breadcrumb styling is consistent */
.cvo-page .gallery-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.cvo-page .gallery-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.cvo-page .gallery-hero .breadcrumb-item.active {
    color: var(--white);
}

.cvo-page .gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

/* === Content Section === */
.cvo-page .cvo-content-section,
.cvo-content-section {
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

.cvo-page .cvo-main-content,
.cvo-main-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
}

/* Section headers */
.cvo-page .section-header,
.section-header {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--neutral-200);
    text-align: left;
}

.cvo-page .section-title,
.section-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Officer Card */
.cvo-page .officer-card,
.officer-card {
    padding: 1.5rem;
    text-align: left;
}

.cvo-page .officer-name,
.officer-name {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--neutral-200);
    text-align: left;
}

.cvo-page .officer-profile p,
.officer-profile p {
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
    letter-spacing: -0.01em;
}

/* Contact Section */
.cvo-page .contact-details,
.contact-details {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cvo-page .contact-item,
.contact-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.cvo-page .contact-title,
.contact-title {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: left;
}

.cvo-page .contact-item p,
.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cvo-page .contact-item a,
.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cvo-page .contact-item a:hover,
.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mission Section */
.cvo-page .cvo-mission-section,
.cvo-mission-section {
    margin-top: 2rem;
}

.cvo-page .mission-content,
.mission-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cvo-page .mission-card,
.mission-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cvo-page .mission-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cvo-page .mission-icon,
.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.cvo-page .mission-icon i,
.mission-icon i {
    font-size: 1.5rem;
}

.cvo-page .mission-card h3,
.mission-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* === SIDEBAR STYLES === */
.cvo-page .cvo-sidebar,
.cvo-sidebar {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cvo-page .sidebar-widget,
.sidebar-widget {
    border-bottom: 1px solid var(--neutral-200);
}

.cvo-page .sidebar-widget:last-child,
.sidebar-widget:last-child {
    border-bottom: none;
}

.cvo-page .widget-title,
.widget-title {
    background-color: var(--primary);
    color: var(--white);
    font-size: 1.125rem;
    margin: 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cvo-page .widget-list,
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cvo-page .widget-list li,
.widget-list li {
    border-bottom: 1px solid var(--neutral-100);
}

.cvo-page .widget-list li:last-child,
.widget-list li:last-child {
    border-bottom: none;
}

.cvo-page .widget-list a,
.widget-list a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.5rem;
}

.cvo-page .widget-list a:hover,
.widget-list a:hover {
    background-color: var(--primary-light);
    color: var(--white);
    text-decoration: none;
}

.cvo-page .widget-content,
.widget-content {
    padding: 1.5rem;
}

.cvo-page .widget-content p,
.widget-content p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.cvo-page .widget-content a,
.widget-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cvo-page .widget-content a:hover,
.widget-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cvo-page .report-button,
.report-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin: 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.cvo-page .report-button:hover,
.report-button:hover {
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991px) {
    .cvo-page .gallery-hero,
    body .cvo-page .gallery-hero,
    .gallery-hero {
        padding: 2.5rem 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .cvo-page .gallery-title {
        font-size: 2rem;
    }
    
    .cvo-page .cvo-content-section,
    .cvo-content-section {
        padding: 2rem 0;
    }
    
    .cvo-page .contact-details,
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .cvo-page .mission-content,
    .mission-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .cvo-page .gallery-hero,
    body .cvo-page .gallery-hero,
    .gallery-hero {
        padding: 2rem 0;
    }
    
    .cvo-page .gallery-title {
        font-size: 1.75rem;
    }
    
    .cvo-page .section-header,
    .section-header {
        padding: 1rem;
    }
    
    .cvo-page .officer-card,
    .officer-card {
        padding: 1rem;
    }
    
    .cvo-page .contact-details,
    .contact-details {
        padding: 1rem;
    }
    
    .cvo-page .mission-content,
    .mission-content {
        padding: 1rem;
    }
    
    .cvo-page .widget-title,
    .widget-title {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .cvo-page .widget-list a,
    .widget-list a {
        padding: 0.5rem 1rem;
    }
    
    .cvo-page .widget-content,
    .widget-content {
        padding: 1rem;
    }
    
    .cvo-page .report-button,
    .report-button {
        margin: 1rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .cvo-page .gallery-hero,
    body .cvo-page .gallery-hero,
    .gallery-hero {
        padding: 2rem 0;
    }
    
    .cvo-page .gallery-title {
        font-size: 1.75rem;
    }
} 