/* 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;
}

/* Header styles moved to global-header.css */

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

/* Header styles moved to global-header.css */

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

/* Header styles moved to global-header.css */

/* 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: #000000;
    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(300px, 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;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: fit-content;
    width: 100%;
    box-sizing: border-box;
}

.cvo-page .contact-title,
.contact-title {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.4;
    font-weight: 600;
}

.cvo-page .contact-item p,
.contact-item p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    font-size: 0.95rem;
    display: block;
    clear: both;
}

.cvo-page .contact-item a,
.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: inline;
    max-width: 100%;
}

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

    /* Address Item Specific Styles */
.cvo-page .address-item,
.address-item {
    min-height: auto;
    width: 100%;
}

.cvo-page .address-content,
.address-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.cvo-page .address-content p,
.address-content p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cvo-page .company-name,
.company-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.cvo-page .office-type,
.office-type {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.cvo-page .building-name,
.building-name {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.cvo-page .street-address,
.street-address {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.cvo-page .contact-email,
.contact-email {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--neutral-200);
}

/* 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 {
    margin-top: 1rem;
}

.cvo-page .sidebar-widget,
.sidebar-widget {
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.cvo-page .sidebar-widget h3,
.sidebar-widget h3 {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 600;
    color: var(--text-primary, #0c1016);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary, #FF6B35);
}

/* Simple Links List - No flicker, no animations */
.cvo-page .simple-links-list,
.simple-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cvo-page .simple-links-list li,
.simple-links-list li {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cvo-page .simple-links-list li:last-child,
.simple-links-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.cvo-page .simple-links-list a,
.simple-links-list a {
    color: var(--text-primary, #0c1016);
    text-decoration: none;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.3;
    display: block;
    padding: 0.125rem 0;
    transition: none;
}

.cvo-page .simple-links-list a:hover,
.simple-links-list a:hover {
    color: var(--primary, #000000);
    text-decoration: none;
    background: none;
    transform: none;
}

.cvo-page .simple-links-list a:focus,
.simple-links-list a:focus {
    outline: 2px solid var(--primary, #000000);
    outline-offset: 2px;
}

/* Contact info styling */
.cvo-page .simple-links-list li i,
.simple-links-list li i {
    color: var(--primary, #000000);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Remove old over-styled sidebar classes */
.cvo-page .widget-title,
.widget-title {
    display: none;
}

.cvo-page .widget-list,
.widget-list {
    display: none;
}

.cvo-page .widget-content,
.widget-content {
    display: none;
}

.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;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cvo-page .contact-item,
    .contact-item {
        min-width: 0;
        width: 100%;
        padding: 1rem;
    }
    
    .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: 0.75rem;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cvo-page .contact-item,
    .contact-item {
        padding: 0.75rem;
        width: 100%;
        min-width: 0;
    }
    
    .cvo-page .contact-title,
    .contact-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .cvo-page .contact-item p,
    .contact-item p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .cvo-page .mission-content,
    .mission-content {
        padding: 1rem;
    }
    
    .cvo-page .sidebar-widget,
    .sidebar-widget {
        padding: 1rem;
    }
    
    .cvo-page .sidebar-widget h3,
    .sidebar-widget h3 {
        font-size: 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: 1.5rem 0;
    }
    
    .cvo-page .gallery-title {
        font-size: 1.5rem;
    }
    
    .cvo-page .contact-details,
    .contact-details {
        padding: 0.5rem;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cvo-page .contact-item,
    .contact-item {
        padding: 0.75rem;
        width: 100%;
        min-width: 0;
    }
    
    .cvo-page .contact-title,
    .contact-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .cvo-page .contact-item p,
    .contact-item p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .cvo-page .address-content p,
    .address-content p {
        font-size: 0.85rem;
    }
}

/* Ensure global top header (language + emblem) is visible on CVO page */
.page-template-page-cvo .tcl-gov-header,
.cvo-page .tcl-gov-header {
    margin-top: 0 !important; /* cancel negative margin from global header on this page */
    top: 0 !important;
    z-index: 10010 !important; /* keep above any CVO page sections */
} 

/* Mobile App-like Layout for Contact Items */
@media (max-width: 768px) {
    .cvo-page .contact-details,
    .contact-details {
        padding: 1rem;
        display: block;
        grid-template-columns: none;
        gap: 0;
    }
    
    .cvo-page .contact-item,
    .contact-item {
        background-color: var(--white);
        padding: 1.25rem;
        border-radius: 8px;
        border-left: 4px solid var(--primary);
        border: 1px solid #e9ecef;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        width: 100%;
        display: block;
    }
    
    .cvo-page .contact-title,
    .contact-title {
        color: var(--primary);
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: left;
        font-weight: 700;
        border-bottom: 2px solid var(--primary);
        padding-bottom: 0.5rem;
        display: block;
    }
    
    .cvo-page .contact-item p,
    .contact-item p {
        margin-bottom: 0.75rem;
        line-height: 1.5;
        font-size: 0.95rem;
        display: block;
        clear: both;
        padding: 0.25rem 0;
    }
    
    .cvo-page .contact-item a,
    .contact-item a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        display: inline-block;
        margin: 0.25rem 0;
        padding: 0.25rem 0;
    }
    
    .cvo-page .contact-item a:hover,
    .contact-item a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }
    
    /* Address Item Specific Mobile Styles */
    .cvo-page .address-item,
    .address-item {
        background-color: var(--white);
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .cvo-page .address-content,
    .address-content {
        display: block;
        gap: 0;
    }
    
    .cvo-page .address-content p,
    .address-content p {
        margin: 0.5rem 0;
        padding: 0.25rem 0;
        line-height: 1.4;
        font-size: 0.95rem;
        display: block;
        clear: both;
    }
    
    .cvo-page .company-name,
    .company-name {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .cvo-page .office-type,
    .office-type {
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-style: italic;
        margin-bottom: 0.5rem;
    }
    
    .cvo-page .building-name,
    .building-name {
        color: var(--text-primary);
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .cvo-page .street-address,
    .street-address {
        color: var(--text-primary);
        font-size: 0.95rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }
    
    .cvo-page .contact-email,
    .contact-email {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e9ecef;
    }
    
    .cvo-page .contact-email a,
    .contact-email a {
        color: var(--primary);
        font-weight: 500;
        display: block;
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .cvo-page .contact-details,
    .contact-details {
        padding: 0.75rem;
    }
    
    .cvo-page .contact-item,
    .contact-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .cvo-page .contact-title,
    .contact-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .cvo-page .contact-item p,
    .contact-item p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .cvo-page .address-content p,
    .address-content p {
        font-size: 0.9rem;
        margin: 0.4rem 0;
    }
} 

/* Contact Section - Bootstrap Enhanced */
.cvo-page .cvo-contact-section,
.cvo-contact-section {
    padding: 1.5rem;
}

.cvo-page .card,
.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.cvo-page .card:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cvo-page .btn-outline-primary,
.btn-outline-primary {
    word-break: break-all;
    white-space: normal;
    text-align: left;
    border-radius: 4px;
}

.cvo-page .btn-outline-primary:hover,
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cvo-page .cvo-contact-section,
    .cvo-contact-section {
        padding: 1rem;
    }
    
    .cvo-page .btn-outline-primary,
    .btn-outline-primary {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .cvo-page .btn-outline-primary,
    .btn-outline-primary {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
} 