/* ========================================
   KATI HUKUK VE DANIŞMANLIK
   Custom CSS Styles
   ======================================== */

/* Root Variables */
:root {
    --primary-gold: #BC0927;
    --primary-gold-light: #FFFFFF;
    --primary-gold-dark: #000000;
    --anthracite: #2F2F2F;
    --anthracite-light: #4A4A4A;
    --anthracite-dark: #1A1A1A;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-gray: #E9ECEF;
    --text-gray: #6C757D;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-lg: 15px;
    --transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance Optimizations */
img {
    will-change: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-custom,
.feature-card,
.service-card {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.card-custom:not(:hover),
.feature-card:not(:hover),
.service-card:not(:hover) {
    will-change: auto;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--anthracite);
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    body {
        scroll-behavior: auto;
    }
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Loading Animation */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--anthracite);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.loaded)::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-gold);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2001;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Utility Classes */
.text-gold { color: var(--primary-gold) !important; }
.text-anthracite { color: var(--anthracite) !important; }
.bg-gold { background-color: var(--primary-gold) !important; }
.bg-anthracite { background-color: var(--anthracite) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }

/* Custom Buttons */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--primary-gold-dark);
    border-color: var(--primary-gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 9, 39, 0.3);
}

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

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 9, 39, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--anthracite);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header Styles */
.header-section {
    position: relative;
    z-index: 1000;
}

.top-bar {
    font-size: 0.875rem;
}

.top-bar a:hover {
    color: var(--primary-gold) !important;
    transition: var(--transition);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none !important;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-links a:hover::before {
    left: 0;
}

.social-links a:hover {
    background: transparent;
    border-color: var(--primary-gold);
    color: var(--anthracite) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
    text-decoration: none !important;
}

.social-links a:active {
    transform: translateY(-1px) scale(1.05);
    transition: all 0.1s ease;
}

.social-links a i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    line-height: 1;
}

.social-links a:hover i {
    transform: scale(1.1);
}

/* Specific social media colors on hover */
.social-links a[href*="facebook"]:hover {
    border-color: #1877F2 !important;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4) !important;
}

.social-links a[href*="facebook"]:hover::before {
    background: linear-gradient(135deg, #1877F2 0%, #42A5F5 100%) !important;
}

.social-links a[href*="instagram"]:hover {
    border-color: #E4405F !important;
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4) !important;
}

.social-links a[href*="instagram"]:hover::before {
    background: linear-gradient(135deg, #E4405F 0%, #FCAF45 50%, #C13584 100%) !important;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    min-height: 70px;
    display: flex;
    align-items: center;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid var(--primary-gold);
}

.navbar-brand {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Navigation Links */
.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px !important;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--anthracite) !important;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    border: 2px solid var(--primary-gold);
}

/* Active Page Indicator */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.8rem 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 240px;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    color: var(--anthracite);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: all 0.4s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
    transform: translateX(5px);
    padding-left: 2rem;
}

/* CTA Button */
.navbar-nav .btn-gold {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    border: 2px solid var(--primary-gold);
    color: var(--anthracite);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.navbar-nav .btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.navbar-nav .btn-gold:hover::before {
    left: 0;
}

.navbar-nav .btn-gold:hover {
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    border-color: #FFFFFF;
}

/* Section Styles */
section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.container, .container-fluid {
    width: 100%;
    max-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive Media */
img, iframe, embed, object, video {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe {
    width: 100%;
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    word-wrap: break-word;
}


.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFFFFF, #FFFFFF);
    transition: var(--transition);
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.feature-icon {
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
    color: var(--primary-gold);
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.service-card .btn {
    position: relative;
    z-index: 10;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.service-icon {
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--anthracite) 0%, var(--anthracite-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::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 100 100"><defs><pattern id="cta-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23BC0927" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-pattern)"/></svg>');
    pointer-events: none;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--anthracite);
    margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    font-size: 0.85rem;
}

.badge.bg-gold {
    background-color: var(--primary-gold) !important;
    color: var(--white) !important;
    border: none !important;
}

/* Footer Custom Styles */
.footer-section {
    background: linear-gradient(135deg, var(--anthracite) 0%, var(--anthracite-dark) 100%);
    position: relative;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold) !important;
    transform: translateX(5px);
}

.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 768px) {
    .navbar {
        min-height: 75px;
    }
    
    .navbar-nav {
        gap: 0.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 16px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        min-height: 70px;
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 70px;
    }
    
    .navbar-brand,
    .navbar-toggler {
        margin: 0;
        align-self: center;
    }
    
    .navbar-nav {
        background: var(--anthracite);
        border-radius: 12px;
        padding: 1.25rem;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.3rem;
    }
    
    .navbar-nav .nav-link {
        border-radius: 10px;
        padding: 14px 18px !important;
        margin: 0;
        display: block;
        text-align: left;
        background: transparent;
        transition: all 0.3s ease;
        color: var(--white) !important;
        border: 1px solid transparent;
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white) !important;
        transform: none;
        box-shadow: none;
    }
    
    .navbar-nav .nav-link.active {
        background: var(--primary-gold);
        color: var(--white) !important;
        border: 1px solid var(--primary-gold);
        transform: none;
        box-shadow: none;
    }
    
    .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .navbar-nav .nav-link.active::before {
        display: none;
    }
    
    
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .top-bar {
        display: none !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .col-lg-4, .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .h-100 {
        height: auto !important;
    }
    
    /* Disable hover effects on mobile */
    .card-custom:hover,
    .feature-card:hover,
    .service-card:hover,
    .team-member-card:hover,
    .process-step:hover,
    .contact-card:hover {
        transform: none !important;
    }
    
    /* Ensure links are clickable on mobile */
    .btn, .btn-outline-gold, .btn-gold {
        min-height: 44px;
        padding: 12px 20px;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar {
        min-height: 65px;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        max-height: 80px !important;
    }
    
    .navbar-nav {
        padding: 1rem 0.8rem;
        margin-top: 0.8rem;
        border-radius: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 14px !important;
        font-size: 0.95rem;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-dark);
}

/* Print Styles */
@media print {
    .header-section,
    .footer-section,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Better Accessibility */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

.navbar-brand:focus {
    outline: none;
}

.navbar-nav .nav-link:focus {
    outline: none;
    box-shadow: none;
}

.navbar-nav .nav-link:active {
    transform: none;
    box-shadow: none;
}

/* Logo recolor to #BC0927 */
.logo-red {
    /* Approximate #BC0927 via CSS filter */
    filter: invert(16%) sepia(94%) saturate(5621%) hue-rotate(343deg) brightness(92%) contrast(112%) !important;
}

/* Button hover overrides to fix white-on-white */

/* Outline button hover unify */

/* Utility overrides for legacy gold usage in content blocks */

/* Worker rights accordion: red-white theme */
.rights-accordion .accordion-item {
    border: 1px solid rgba(188, 9, 39, 0.25) !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
}
.rights-accordion .accordion-button {
    background-color: var(--primary-gold) !important; /* #BC0927 */
    color: #FFFFFF !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    /* white chevron icons */
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}
.rights-accordion .accordion-button i {
    color: #FFFFFF !important;
}
.rights-accordion .accordion-button.collapsed {
    background-color: var(--primary-gold) !important;
    color: #FFFFFF !important;
}
.rights-accordion .accordion-body {
    background: #FFFFFF !important;
    color: var(--anthracite) !important;
}

.bg-gold.bg-opacity-10 { /* soften gold backgrounds to white */
    background-color: #FFFFFF !important;
}
.border-gold { /* ensure borders use primary red */
    border-color: var(--primary-gold) !important;
}
.border-gold.border-opacity-25 {
    border-color: rgba(188, 9, 39, 0.25) !important;
}
/* Step/process icon: keep solid primary with white icon */
.step-icon.bg-gold {
    background-color: var(--primary-gold) !important;
    color: #FFFFFF !important;
}

/* Widget and badge gold overrides for better contrast */
.widget-card.bg-gold {
    background-color: #FFFFFF !important;
    border: 2px solid var(--primary-gold) !important;
    color: var(--anthracite) !important;
}
.widget-card.bg-gold .widget-title {
    color: var(--anthracite) !important;
}
.widget-card.bg-gold .quick-info i,
.widget-card.bg-gold i {
    color: var(--primary-gold) !important;
}

.badge.bg-gold {
    background-color: #FFFFFF !important;
    color: var(--primary-gold) !important;
    border: 1px solid var(--primary-gold) !important;
}
.badge.bg-gold i { color: var(--primary-gold) !important; }


/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #BC0927;
        --anthracite: #000000;
        --white: #FFFFFF;
    }
    
    .btn {
        border-width: 3px;
    }
}