/* Additional CSS to ensure OCENOX styling works correctly in myOCENOX */

/* CORRECT OCENOX CSS Variables according to CI Guide */
:root {
    --primary-dark-gray: #404040;
    --primary-blue: #295F7C;
    --highlight-blue: #3B8AB4;
    /* Legacy variables for compatibility */
    --maincolor: #295F7C;
    --secondcolor: #404040;
    --fifthcolor: #3B8AB4;
    --fourthcolor: #404040;
}

/* myOCENOX Brand Styling */
.myocenox-brand {
    font-weight: 700;
    color: var(--primary-blue) !important;
}

/* Language Switcher */
.language-switcher {
    margin-left: 15px;
}

.language-switcher a {
    margin: 0 5px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
    color: var(--primary-dark-gray);
}

.language-switcher a.active {
    background-color: var(--primary-blue);
    color: white;
}

.language-switcher a:hover {
    background-color: var(--highlight-blue);
    color: white;
}

/* Content wrapper */
.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Bootstrap overrides to match OCENOX */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary-dark-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--primary-blue);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

/* Hero section styling with correct OCENOX colors and local backgrounds */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--highlight-blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/bg/abs-bg5.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* CRITICAL: Button styling - FORCE override all gradients */
.btn-primary,
.btn-primary:link,
.btn-primary:visited {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--highlight-blue) !important;
    background-image: none !important;
    background: var(--highlight-blue) !important;
    border-color: var(--highlight-blue) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(41, 95, 124, 0.3) !important;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-blue) !important;
    background-image: none !important;
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: #fff !important;
}

.btn-light {
    background-color: #fff !important;
    background-image: none !important;
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary-blue) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background-color: #f8f9fa !important;
    background-image: none !important;
    background: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--highlight-blue) !important;
    transform: translateY(-1px);
}

.btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: #fff !important;
    background-image: none !important;
    background: #fff !important;
    border-color: #fff !important;
    color: var(--primary-blue) !important;
}

/* Footer styling with correct OCENOX colors */
footer {
    background-color: var(--primary-dark-gray) !important;
    background-image: url('/images/ocenox/footer-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff !important;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(64, 64, 64, 0.8);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Force all footer text to be white */
footer,
footer *,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer a,
footer .text-muted,
footer li,
footer span,
footer div {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--highlight-blue) !important;
    text-decoration: underline;
}

/* Typography hierarchy according to OCENOX CI Guide */
h1, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark-gray);
}

h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-dark-gray);
}

h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-dark-gray);
}

body, p, .lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--primary-dark-gray);
}

/* Ensure white text on dark backgrounds */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
}

/* Ensure proper spacing */
section {
    padding: 80px 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Text color adjustments */
.text-primary {
    color: var(--primary-blue) !important;
}

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