/* ============================================
   M.O.S LAW FIRM - MAIN STYLESHEET
   Color Scheme: Maroon (#800000), Gold (#d4af37), White
   ============================================ */

:root {
    --primary-gold: #d4af37;
    --primary-dark: #500000;
    --primary-gray: #2a0000;
    --primary-light: #f8f9fa;
    --text-color: #333333;
    --border-color: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

body {
    background-color: #ffffff;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-brand img {
    height: 90px;
    width: auto;
    opacity: 1;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35)) sepia(0.5) hue-rotate(20deg) saturate(2) brightness(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand {
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 45%),
                linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent 55%);
    padding: 4px 8px;
    border-radius: 12px;
}

.navbar-brand:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)) sepia(0.6) hue-rotate(25deg) saturate(2.2) brightness(1.3);
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

.nav-link.active {
    color: var(--primary-gold) !important;
    border-bottom: 2px solid var(--primary-gold);
}

/* ============================================
   HERO SECTION
   ============================================ */
header.py-5 {
    position: relative;
    overflow: hidden;
}

header.py-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

header.py-5 h1 {
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

header.py-5 p {
    position: relative;
    z-index: 1;
}

.hero-bg-scale {
    position: relative;
    overflow: hidden;
}

.hero-bg-scale::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
    z-index: 0;
}

.hero-scale-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: auto;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.35));
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
}

.hero-bg-scale .container,
.hero-bg-scale h1,
.hero-bg-scale p {
    position: relative;
    z-index: 1;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-item {
    transition: opacity 0.6s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-gold);
    border-radius: 50%;
    padding: 10px;
}

.carousel-inner {
    border-radius: 10px;
    overflow: hidden;
}

/* Tim Carousel Styles */
#timCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#timCarousel .carousel-control-prev,
#timCarousel .carousel-control-next {
    width: 5%;
}

#timCarousel .carousel-indicators {
    bottom: -50px;
}

#timCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-gray);
    border: 2px solid var(--primary-gold);
    margin: 0 5px;
}

#timCarousel .carousel-indicators button.active {
    background-color: var(--primary-gold);
}

/* Responsive Tim Carousel */
@media (max-width: 768px) {
    #timCarousel .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    #timCarousel .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b8941d;
    border-color: #b8941d;
    color: white;
}

.btn {
    border-radius: 5px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-gold);
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 60px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

section.py-5 {
    background-color: var(--primary-light);
}

/* ============================================
   STATISTICS
   ============================================ */
.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-card h3 {
    color: var(--primary-gold);
    font-weight: 700;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    background-color: var(--primary-light) !important;
}

.team-card img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    border-left: 5px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-left-color: #ffffff;
    background-color: rgba(212, 175, 55, 0.05);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
    border-left: 5px solid var(--primary-gold);
    padding: 20px;
    background-color: var(--primary-light);
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    border-color: var(--border-color);
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

label {
    font-weight: 500;
    color: var(--text-color);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 60px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1rem;
    margin-left: 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: var(--primary-gold);
    color: var(--primary-gold) !important;
}

.sidebar .nav-link.active {
    background-color: rgba(212, 175, 55, 0.15);
    border-left-color: var(--primary-gold);
    color: var(--primary-gold) !important;
}

main {
    margin-left: 16.666%;
    background-color: #f8f9fa;
    min-height: 100vh;
}

@media (max-width: 768px) {
    main {
        margin-left: 0;
    }

    .sidebar {
        position: relative;
        height: auto;
        padding-top: 0;
    }
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table {
    border-collapse: collapse;
}

.table thead {
    background: var(--primary-dark);
    color: white;
}

.table-striped tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-light);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    color: var(--primary-gold);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-scale-icon {
        font-size: 160px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }

    .card-body {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem !important;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-scale-icon {
        font-size: 120px;
        opacity: 0.35;
    }

    header.py-5 {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .card {
        margin-bottom: 1.25rem;
    }

    .case-table thead th,
    .case-table td {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-scale-icon {
        font-size: 90px;
        top: 55%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }

    .card-body {
        padding: 1rem;
    }

    .btn,
    .btn-primary,
    .btn-warning,
    .btn-outline-warning {
        width: 100%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-gold {
    background-color: var(--primary-gold) !important;
}

.text-gold {
    color: var(--primary-gold) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   ANIMATION
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

/* ============================================
   MAROON COLOR THEME - PROFESSIONAL
   ============================================ */

/* Override Bootstrap bg-dark to Maroon */
.bg-dark,
.navbar-dark {
    background-color: #500000 !important;
    background: linear-gradient(135deg, #500000 0%, #2a0000 100%) !important;
}

.bg-dark .text-white,
.navbar-dark .text-white {
    color: #ffffff !important;
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link:hover {
    color: #d4af37 !important;
}

.navbar-dark .nav-link.active {
    color: #d4af37 !important;
    border-bottom: 2px solid #d4af37;
}

/* Card Header Styling */
.card-header.bg-dark {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.card-header.text-white {
    color: #ffffff !important;
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%);
}

/* Sidebar Maroon Styling */
.sidebar {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%) !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
    padding-left: 25px;
}

.sidebar .nav-link.active {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.15);
    border-left-color: #d4af37;
}

/* Update primary-dark color references */
.bg-dark-custom,
.dark-bg {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%);
    color: white;
}

/* Table Header Maroon */
.table-dark,
.table thead.bg-dark {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%) !important;
    color: white;
}

.table-dark th,
.table thead.bg-dark th {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%);
    color: white;
    border-color: rgba(212, 175, 55, 0.2);
}

/* Ensure text is readable on maroon background */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .text-white,
.bg-dark p {
    color: white;
}

.bg-dark strong {
    color: #d4af37;
    font-weight: 600;
}

/* Border styling for maroon elements */
.border-dark {
    border-color: #800000 !important;
}

/* Hero section enhancement */
header.py-5,
section.py-5[style*="background"] {
    background: linear-gradient(135deg, #800000 0%, #5a0808 100%) !important;
}



