/* Landing Page CSS */
:root {
    --primary-red: #03045E;
    --primary-dark: #023E8A;
    --primary-blue: #0077B6;
    --info-dark: #0096C7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ========== HEADER ========== */
.top-header {
    background: var(--primary-red);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.top-header a {
    color: white;
    text-decoration: none;
}

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    margin-right: 0.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    border: 1px solid var(--border-light);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    width: 100%;
    font-size: 0.9rem;
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
}

/* ========== NAVIGATION ========== */
.main-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-red);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle:hover {
    color: var(--primary-red);
}

.nav-dropdown .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: var(--bg-white);
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Carousel Styles */
.carousel-inner {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.carousel-slide {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.carousel-category-badge {
    background: #dc3545;
    color: white;
    letter-spacing: 1px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 4px;
}

.carousel-title {
    font-size: 2.2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    color: white;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.carousel-title a {
    color: white;
    text-decoration: none;
}

.carousel-title a:hover {
    color: rgba(255,255,255,0.9);
}

.carousel-meta {
    font-size: 1rem;
    color: white;
}

.carousel-meta-item {
    margin-right: 1.25rem;
}

/* Sidebar Styles */
.sidebar-wrapper {
    position: relative;
    z-index: 15;
}

.sidebar {
    position: relative;
    z-index: 16;
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 10;
    background: white;
    margin-top: 1rem;
}

.content-main {
    position: relative;
    z-index: 11;
}

.news-section-wrapper {
    position: relative;
    z-index: 12;
}

/* No Image Placeholder */
.no-image-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder i {
    color: #d1d5db;
}

.clear-section {
    clear: both;
}

.hero-badge {
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news {
    padding: 2rem;
}

.featured-news-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.featured-news-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-news-title a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.featured-news-excerpt {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.featured-news-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0;
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-top: 2rem;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    min-width: 30px;
}

.trending-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.trending-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.trending-content h4 a:hover {
    color: var(--primary-red);
}

.trending-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== NEWS GRID ========== */
.news-section {
    margin: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.view-all-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.25rem;
}

.news-card-category {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--primary-red);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== CATEGORY SECTIONS ========== */
.category-section {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
}

.category-header {
    background: var(--primary-red);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-content {
    padding: 1.5rem;
}

.category-news-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.category-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-news-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.category-news-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.category-news-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.category-news-content h4 a:hover {
    color: var(--primary-red);
}

.category-news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== FOOTER ========== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-content ul {
    list-style: none;
    padding: 0;
}

.footer-content ul li {
    margin-bottom: 0.5rem;
}

.footer-content ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #e5e7eb;
    font-size: 0.8rem;
    margin: 0;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Empty Category Placeholder */
.empty-category-placeholder {
    color: #6b7280;
}

.empty-category-placeholder i {
    opacity: 0.3;
}

/* Carousel Slide Image */
.carousel-slide-image {
    object-fit: cover;
}

/* ========== LAW FIRM SECTION ========== */
.law-firm-section {
    position: relative;
    margin: 1rem 0;
    min-height: 300px;
    border-radius: 16px;
    padding: 2rem 3rem;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.law-firm-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.law-firm-background.gradient {
    background: var(--gradient, linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%));
}

.law-firm-background.image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.law-firm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    z-index: 1;
}

.law-firm-row {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0.5rem 0;
}

.law-firm-content {
    position: relative;
    padding: 2rem 0;
    color: white;
    z-index: 2;
}

.law-firm-header {
    margin-bottom: 1rem;
}

.law-firm-logo {
    margin-bottom: 1rem;
}

.law-firm-logo img {
    height: 80px;
    width: auto;
}

.law-firm-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.law-firm-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.law-firm-main-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.law-firm-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.law-firm-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 600px;
    color: rgba(255,255,255,0.95);
}

.law-firm-news {
    position: relative;
    z-index: 2;
}

.law-firm-news-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.law-firm-news-item:hover {
    transform: translateY(-2px);
}

.law-firm-news-image {
    height: 60px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.law-firm-news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.law-firm-news-title a {
    color: #1f2937;
    text-decoration: none;
}

.law-firm-news-title a:hover {
    color: var(--primary-red);
}

.law-firm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.law-firm-news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.law-firm-news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.law-firm-news-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.4;
}

.law-firm-news-card h4 a {
    color: white;
    text-decoration: none;
}

.law-firm-news-card h4 a:hover {
    text-decoration: underline;
}

.law-firm-news-card .news-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.law-firm-news-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== RESPONSIVE ========== */

/* Tablet and below */
@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    
    .nav-menu li a {
        font-size: 0.85rem;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    /* Top Header Mobile */
    .top-header {
        padding: 0.4rem 0;
        font-size: 0.75rem;
    }
    
    .top-header .row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .top-header .col-md-6,
    .top-header .col-md-3 {
        width: 100%;
    }
    
    .top-header .d-flex {
        justify-content: center !important;
    }
    
    .top-header .text-end,
    .top-header .text-md-end {
        text-align: center !important;
    }
    
    /* Main Header Mobile */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-header .row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .main-header .col-md-3,
    .main-header .col-md-4,
    .main-header .col-md-6,
    .main-header .col-md-8 {
        width: 100%;
        text-align: center;
    }
    
    .site-logo {
        justify-content: center;
    }
    
    .site-logo img {
        height: 50px;
    }
    
    .search-box {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .search-box input {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Navigation Mobile */
    .main-nav {
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu {
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        min-width: max-content;
    }
    
    .nav-menu li a {
        font-size: 0.8rem;
        white-space: nowrap;
        padding: 0.25rem 0;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        width: calc(100% - 20px);
        max-height: 60vh;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-dropdown .dropdown-toggle {
        font-size: 0.8rem;
    }
    
    .dropdown-menu li a {
        padding: 0.5rem 1rem;
        margin: 0;
    }
    
    /* Hero/Featured Section Mobile */
    .hero-section {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .carousel-slide {
        height: 280px !important;
    }
    
    .carousel-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .carousel-overlay {
        padding: 15px 15px 15px !important;
    }
    
    .carousel-meta {
        font-size: 0.75rem !important;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .carousel-meta-item {
        margin-right: 0.75rem !important;
    }
    
    .carousel-category-badge {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .featured-news-title {
        font-size: 1.3rem;
    }
    
    .featured-news-excerpt {
        font-size: 0.9rem;
    }
    
    /* News Cards Mobile */
    .news-card img {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-card .card-title {
        font-size: 0.95rem;
    }
    
    .news-card .card-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .news-meta {
        font-size: 0.75rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Category News Mobile */
    .category-news-item {
        flex-direction: column;
    }
    
    .category-news-image {
        width: 100%;
        height: 150px;
    }
    
    .category-news-title {
        font-size: 0.95rem;
    }
    
    /* Law Firm Section Mobile */
    .law-firm-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .law-firm-row {
        flex-direction: column;
    }
    
    .law-firm-row .col-lg-6 {
        width: 100%;
        text-align: center;
    }
    
    .law-firm-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .law-firm-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .law-firm-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .law-firm-logo img {
        height: 60px;
        width: auto;
    }
    
    .law-firm-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .law-firm-main-title {
        font-size: 1rem;
        text-align: center;
    }
    
    .law-firm-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .law-firm-subtitle {
        font-size: 1rem;
    }
    
    .law-firm-news {
        margin-top: 1.5rem;
    }
    
    .law-firm-news-item {
        padding: 0.75rem;
    }
    
    .law-firm-news-image {
        height: 50px;
    }
    
    .law-firm-news-title {
        font-size: 0.85rem;
    }
    
    .law-firm-news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sidebar Mobile */
    .col-lg-4 {
        margin-top: 2rem;
    }
    
    .card-header h5,
    .card-header h6 {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding-top: 2rem;
    }
    
    .footer-content {
        padding: 1.5rem 0;
    }
    
    .footer-content .row {
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }
    
    .footer-title {
        margin-top: 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        padding-left: 0;
        list-style: none;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        width: 100%;
        border-radius: 0.5rem !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        min-height: 48px;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Small Mobile devices (< 576px) */
@media (max-width: 575px) {
    .top-header .d-flex.gap-3,
    .top-header .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    .news-card img {
        height: 150px;
    }
    
    .carousel-slide {
        height: 220px !important;
    }
    
    .carousel-title {
        font-size: 1rem !important;
    }
    
    .carousel-meta-item {
        margin-right: 0.5rem !important;
    }
    
    .col-md-6.mb-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .law-firm-section {
        padding: 1rem 0.75rem;
    }
    
    .law-firm-logo img {
        height: 50px;
    }
    
    .law-firm-title {
        font-size: 1rem;
    }
    
    .law-firm-main-title {
        font-size: 0.9rem;
    }
    
    .law-firm-description {
        font-size: 0.8rem;
    }
    
    .law-firm-subtitle {
        font-size: 0.9rem;
    }
    
    .law-firm-news-item {
        padding: 0.5rem;
    }
    
    .law-firm-news-image {
        height: 45px;
    }
    
    .law-firm-news-title {
        font-size: 0.8rem;
    }

    /* Tags Cloud Mobile */
    .tag-cloud {
        gap: 0.4rem;
    }
    
    .tag-cloud a,
    .tag-item {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========== LANDING PAGE MOBILE FIXES ========== */
/* Override inline styles for mobile */

@media (max-width: 767px) {
    /* Top Header - force stacking */
    .top-header .container > .row {
        flex-direction: column !important;
    }
    
    .top-header .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        padding: 0.25rem 0 !important;
    }
    
    .top-header .text-end {
        text-align: center !important;
    }
    
    .top-header .justify-content-end {
        justify-content: center !important;
    }
    
    /* Main Header - force stacking */
    .main-header .container > .row {
        flex-direction: column !important;
    }
    
    .main-header .col-md-4,
    .main-header .col-md-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        padding: 0.5rem 15px !important;
    }
    
    .main-header .site-logo {
        justify-content: center !important;
    }
    
    .main-header .search-box {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .main-header .search-box.ms-auto {
        margin: 0 auto !important;
    }
    
    /* Navigation - horizontal scroll */
    .main-nav .container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .main-nav .nav-menu {
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        padding-bottom: 0.5rem !important;
        min-width: max-content !important;
    }
    
    /* Hero Carousel - responsive height */
    .carousel-item .position-relative {
        height: 280px !important;
    }
    
    .carousel-item .position-relative > img {
        height: 100% !important;
    }
    
    /* Carousel overlay content */
    .carousel-item .position-absolute.bottom-0 {
        padding: 20px 15px 15px !important;
    }
    
    .carousel-item .position-absolute h1,
    .carousel-item h1.text-white {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-item .badge.fs-6 {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .carousel-item .d-flex.align-items-center {
        flex-wrap: wrap !important;
        font-size: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .carousel-item .me-4 {
        margin-right: 0.75rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Main content columns */
    .container > .row > .col-lg-8,
    .container > .row > .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* News Cards */
    .news-card .card-body {
        padding: 0.875rem !important;
    }
    
    .news-card .card-title {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .news-card .card-text {
        font-size: 0.8rem !important;
    }
    
    .news-meta small {
        font-size: 0.7rem !important;
    }
    
    /* Section titles */
    .border-bottom.border-primary h2,
    h2.border-bottom {
        font-size: 1.1rem !important;
    }
    
    /* Footer columns stacking */
    .main-footer .col-lg-4,
    .main-footer .col-lg-2,
    .main-footer .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-links {
        text-align: center !important;
    }
}

@media (max-width: 575px) {
    /* Extra small screens */
    .carousel-slide {
        height: 200px !important;
    }
    
    .carousel-title {
        font-size: 0.95rem !important;
    }
    
    .carousel-meta {
        font-size: 0.65rem !important;
    }
    
    .carousel-category-badge {
        font-size: 0.55rem !important;
        padding: 3px 6px !important;
    }
    
    .news-card img,
    .card-img-top {
        height: 140px !important;
    }
    
    .site-logo img {
        height: 38px !important;
    }
    
    /* Hide views count on very small screens */
    .carousel-meta > div:last-child {
        display: none !important;
    }
}