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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    padding-top: 120px; /* Account for fixed header + search bar */
}

.home-container {
    min-height: 100vh;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Header Search Bar (Desktop Only) */
.header-search-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    padding: 8px 0;
}

.header-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Court Selection Dropdown */
.header-court-dropdown {
    position: relative;
}

.header-court-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 200px;
}

.header-court-btn:hover {
    background: #f5f5f5;
    border-color: #3b82f6;
}

.header-court-btn svg:first-child {
    flex-shrink: 0;
}

.header-court-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1002;
}

.header-court-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.header-court-option:hover {
    background: #f5f5f5;
}

.header-court-option.active {
    background: #eff6ff;
    color: #3b82f6;
}

.header-court-option svg {
    flex-shrink: 0;
}

/* Search Type Dropdown */
.header-search-type-dropdown {
    position: relative;
}

.header-search-type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
}

.header-search-type-btn:hover {
    background: #f5f5f5;
    border-color: #3b82f6;
}

.header-search-type-btn svg:first-child {
    flex-shrink: 0;
}

.header-dropdown-icon {
    margin-left: auto;
    flex-shrink: 0;
}

.header-search-type-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1002;
}

.header-search-type-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.header-search-type-option:hover {
    background: #f5f5f5;
}

.header-search-type-option.active {
    background: #eff6ff;
    color: #3b82f6;
}

.header-search-type-option svg {
    flex-shrink: 0;
}

.header-search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 800px;
}

.header-search-input {
    width: 100%;
    padding: 8px 45px 8px 16px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.header-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.header-search-input::placeholder {
    color: #94a3b8;
}

.header-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-search-btn:hover {
    background: #eff6ff;
}

.header-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
}

.header-autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.header-autocomplete-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.header-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.header-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.header-autocomplete-dropdown .autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    border-bottom: 1px solid #f1f5f9;
}

.header-autocomplete-dropdown .autocomplete-item > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.header-autocomplete-dropdown .autocomplete-item:last-child {
    border-bottom: none;
}

.header-autocomplete-dropdown .autocomplete-item:hover {
    background: #f5f5f5;
}

.header-autocomplete-dropdown .autocomplete-item strong {
    color: #3b82f6;
    font-weight: 600;
}

.header-autocomplete-dropdown .autocomplete-item-highlight {
    background: #eff6ff;
    color: #3b82f6;
}

.header-autocomplete-dropdown .autocomplete-loading {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.header-autocomplete-dropdown .autocomplete-no-results {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Hide search bar on mobile */
@media (max-width: 768px) {
    .header-search-bar {
        display: none;
    }
    
    body {
        padding-top: 70px; /* Only account for main header on mobile */
    }
}

/* Top Bar - White Background */
.top-bar {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 50px; /* Position below search bar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

@media (max-width: 768px) {
    .top-bar {
        top: 0; /* No search bar on mobile, so start at top */
    }
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation - Black Text on White */
.desktop-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-item {
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f5f5f5;
}

.nav-item.active {
    background: #000000;
    color: #ffffff;
}

/* Desktop Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown:focus-within .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    padding: 8px 0;
    display: none;
    z-index: 200;
    max-width: calc(100vw - 40px);
}

.nav-dropdown-menu.open {
    display: block;
}

/* Wide dropdown for years - multi-column grid */
.nav-dropdown-menu.wide-dropdown {
    min-width: 720px;
    max-width: min(800px, calc(100vw - 40px));
    padding: 20px;
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.nav-dropdown-menu.wide-dropdown.open {
    display: grid;
}

.nav-dropdown-menu.wide-dropdown .dropdown-item {
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-dropdown-menu.wide-dropdown .dropdown-item:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Enhanced Courts Dropdown with Tabs */
#courtsDropdown {
    position: fixed;
    top: 120px; /* Position below header + search bar */
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 200;
}

@media (max-width: 768px) {
    #courtsDropdown {
        top: 70px; /* Only header on mobile */
    }
}

#courtsDropdown.open {
    display: block;
}

#courtsDropdown .courts-content {
    padding: 30px 5%;
}

.landmark-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.landmark-dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid #e2e8f0;
    padding-right: 30px;
    min-width: 0;
}

.landmark-dropdown-section:last-child {
    border-right: none;
    padding-right: 0;
}

.landmark-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.landmark-section-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.landmark-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.landmark-dropdown-section .dropdown-item {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.landmark-dropdown-section .dropdown-item:hover {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

.landmark-dropdown-section .view-all-btn {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f1f5f9;
    color: #3b82f6;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    text-align: center;
}

.landmark-dropdown-section .view-all-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Courts Dropdown Tabs - Desktop */
.courts-dropdown .courts-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 12px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.court-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.court-tab:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.court-tab.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.courts-content {
    position: relative;
}

.court-panel {
    display: none;
}

.court-panel.active {
    display: block;
}

/* Two column layout for Delhi HC and Other HC panels */
#delhiHCPanel .landmark-dropdown-grid,
#otherHCPanel .landmark-dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
}

/* Mobile Courts Tabs */
.mobile-courts-tabs {
    display: flex;
    gap: 6px;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-court-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-court-tab:hover {
    background: #e2e8f0;
}

.mobile-court-tab.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.mobile-courts-content {
    position: relative;
}

.mobile-court-panel {
    display: none;
}

.mobile-court-panel.active {
    display: block;
}

/* Mobile Landmark Sections */
.mobile-landmark-section {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-landmark-section:last-child {
    border-bottom: none;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-section-toggle:hover {
    background: #f1f5f9;
}

.mobile-section-toggle-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #64748b;
}

.mobile-section-toggle.expanded .mobile-section-toggle-icon {
    transform: rotate(180deg);
}

.mobile-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-section-content.expanded {
    max-height: 1000px;
}

.mobile-landmark-section .mobile-sub-nav-item {
    font-size: 14px;
    padding: 10px 24px;
}

.mobile-landmark-section .view-all-mobile {
    background: #f1f5f9;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 4px;
}

.mobile-landmark-section .view-all-mobile:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Landmark Cases Search */
.landmark-search-container {
    margin-top: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.landmark-search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.landmark-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.landmark-search-input::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    display: none;
    transition: color 0.2s ease;
    line-height: 1;
}

.search-clear-btn:hover {
    color: #64748b;
}

.search-results-info {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 12px;
    font-weight: 500;
}

/* Bare Acts dropdown with sections */
#bareActsDropdown {
    display: none;
    flex-direction: row;
    gap: 0;
    min-width: 600px;
    width: 850px;
    max-width: calc(100vw - 40px);
    max-height: 600px;
    padding: 0;
    overflow: hidden;
    /* Align right edge with parent button */
    right: 0;
    left: auto;
}

#bareActsDropdown.open {
    display: flex;
}

/* Responsive width adjustments */
@media (max-width: 1200px) {
    #bareActsDropdown {
        width: 700px;
        min-width: 500px;
    }
}

@media (max-width: 900px) {
    #bareActsDropdown {
        width: 600px;
        min-width: 400px;
    }
}

#bareActsDropdown .dropdown-section {
    flex: 1;
    padding: 16px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 600px;
}

#bareActsDropdown .dropdown-section:last-child {
    border-right: none;
}

#bareActsDropdown .dropdown-section::-webkit-scrollbar {
    width: 6px;
}

#bareActsDropdown .dropdown-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#bareActsDropdown .dropdown-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#bareActsDropdown .dropdown-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#bareActsDropdown .dropdown-category-title {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
}

#bareActsDropdown .dropdown-item {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: transparent;
    border: none;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bareActsDropdown .dropdown-item:hover {
    background: #f5f5f5;
    color: #000000;
}

.dropdown-loading {
    padding: 12px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.nav-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-subscribe {
    padding: 10px 24px;
    background: #000000;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.btn-subscribe:hover {
    background: #333333;
}

.btn-login {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #000000;
    color: #ffffff;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-button:hover {
    background: #f5f5f5;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-icon {
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

/* Mobile Research Button - Hidden on desktop */
.mobile-research-btn {
    display: none;
    padding: 10px 20px;
    background: #000000;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.mobile-research-btn:hover {
    background: #333333;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    justify-content: center;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Sliding Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.open {
    left: 0;
    visibility: visible;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #000000;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.close-menu {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav-item {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    background: #f5f5f5;
    padding-left: 25px;
}

.mobile-nav-item.active {
    background: #000000;
    color: #ffffff;
}

.mobile-nav-item.active:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-dropdown-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.mobile-nav-item[aria-expanded="true"] .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    flex-direction: column;
    padding: 0 0 10px 10px;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-dropdown.open {
    display: flex;
}

.mobile-dropdown-category {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 12px 20px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    margin-top: 8px;
}

.mobile-dropdown-item {
    width: 100%;
    padding: 12px 20px;
    text-align: left;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-item:hover {
    background: #f0f0f0;
    color: #000000;
}

.mobile-sub-nav-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: #fafafa;
    border: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-sub-nav-item:hover {
    background: #f3f4f6;
    padding-left: 22px;
}

.mobile-auth-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Breaking News Banner */
.breaking-news {
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    position: relative;
}

.breaking-label {
    background: #0066cc;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
}

.breaking-text {
    font-size: 14px;
    white-space: nowrap;
    animation: scroll-left 60s linear infinite;
}

.breaking-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breaking-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hero Banner */
.hero-banner-wrapper {
    background: #ffffff;
    padding: 10px 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 50;
}

.hero-banner-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible;
    min-height: 140px;
    padding: 15px 0;
}

.hero-banner-canvas {
    width: 100%;
    height: auto;
    display: none; /* Hidden - using keyword search component instead */
}

.hero-banner-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
    padding: 12px 28px;
    background: #3b82f6;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 10;
}

.hero-banner-button:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

/* Keyword Search Component */
.keyword-search-container {
    position: relative;
    width: calc(100% - 100px);
    max-width: 900px;
    z-index: 100;
    margin: 0 auto;
}

.home-logo {
    text-align: center;
    margin-bottom: 30px;
}

.home-logo-img {
    height: 120px;
    width: auto;
    max-width: 100%;
}

.search-subtitle {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.court-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
    flex-wrap: nowrap;
}

.court-pill {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid #cbd5e1;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: none;
}

.court-pill:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.court-pill.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.keyword-search-input {
    width: 100%;
    padding: 18px 56px 18px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.keyword-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.keyword-search-input::placeholder {
    color: #94a3b8;
}

.search-button-inline {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.search-button-inline:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-50%) scale(1.05);
}

.search-button-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #1e293b;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.autocomplete-item > span:first-child {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f1f5f9;
}

.autocomplete-item.selected {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 500;
}

.autocomplete-item.no-results {
    cursor: default;
    color: #94a3b8;
    text-align: center;
    justify-content: center;
}

.autocomplete-item.no-results:hover {
    background: transparent;
}

.check-icon {
    color: #3b82f6;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Case Name Search Specific Styles */
.case-name-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 14px 16px;
}

.case-name-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
}

.case-name-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.case-name-item:hover .case-name-title {
    color: #3b82f6;
}

.autocomplete-loading {
    cursor: default;
    color: #64748b;
    text-align: center;
    justify-content: center;
    font-style: italic;
}

.autocomplete-loading:hover {
    background: transparent;
}

.autocomplete-no-results {
    cursor: default;
    color: #94a3b8;
    text-align: center;
    justify-content: center;
}

.autocomplete-no-results:hover {
    background: transparent;
}

/* Selected Keywords */
.selected-keywords {
    display: none;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.keyword-tag.auto-selected {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 1px solid #0ea5e9;
    color: #0c4a6e;
}

.keyword-tag.auto-selected::before {
    content: "✨";
    font-size: 11px;
}

.remove-keyword {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.remove-keyword:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Search Tip */
.search-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 400;
    text-align: center;
}

.search-tip svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Search Type Toggle */
.search-type-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-option {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.toggle-option:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #475569;
}

.toggle-option.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.toggle-option svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

/* Search Container Types */
.search-container-type {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Statutory Search Specific Styles */
.statutory-dropdowns-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.statutory-dropdown-wrapper {
    flex: 1;
    min-width: 0; /* Allow flex items to shrink below content size */
}

.statutory-input::placeholder {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.statutory-search-button {
    width: 100%;
    padding: 14px 24px;
    background: #3b82f6;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.statutory-search-button:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.statutory-search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.statutory-search-button svg {
    flex-shrink: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Featured Section */
.featured-section {
    padding: 40px 20px;
    background: #ffffff;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-main {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-main:hover img {
    transform: scale(1.05);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffffff;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 24px;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

.article-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Featured Side Items */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-side-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 240px;
}

.featured-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-side-item:hover img {
    transform: scale(1.05);
}

.side-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffffff;
}

.side-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.article-date {
    font-size: 12px;
    opacity: 0.9;
}

/* Quick Access Images Section */
.quick-access-section {
    padding: 40px 20px;
    background: #ffffff;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-access-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-access-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quick-access-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* BNS-IPC Mapping Banner */
.bns-ipc-banner-section {
    padding: 30px 20px;
    background: #ffffff;
}

.bns-ipc-banner-button {
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 30px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bns-ipc-banner-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: #555;
}

.bns-ipc-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.bns-ipc-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

.bns-ipc-text {
    flex: 1;
    color: #ffffff;
}

.bns-ipc-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.bns-ipc-text p {
    font-size: 15px;
    margin: 0;
    color: #e5e5e5;
    line-height: 1.5;
}

.bns-ipc-arrow {
    flex-shrink: 0;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.bns-ipc-banner-button:hover .bns-ipc-arrow {
    transform: translateX(8px);
}

/* Category Cards Section */
.category-cards-section {
    padding: 50px 20px;
    background: #f8f9fa;
}

.category-cards-section.gray-bg {
    background: #ffffff;
}

.category-section-header {
    text-align: center;
    margin-bottom: 35px;
}

.category-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.category-section-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-cards-section.gray-bg .category-card {
    background: #ffffff;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.category-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.category-card-count {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 6px;
}

.category-card-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Latest News Section */
.latest-news-section {
    padding: 60px 20px;
    background: #ffffff;
}

.latest-news-section.gray-bg {
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.view-all-btn {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #000000;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* High Court Cases Grid */
.hc-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hc-case-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hc-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hc-case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hc-case-card:hover .hc-case-image {
    transform: scale(1.1);
}

.hc-case-content {
    padding: 20px;
}

.hc-court-pill {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hc-case-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hc-case-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-case-date {
    font-size: 12px;
    color: #999999;
}

/* Court Hybrid Layout (1 Image + 3 Text Cards) */
.court-hybrid-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.court-hybrid-container.reverse {
    flex-direction: row-reverse;
}

.court-image-card {
    flex: 1;
    max-width: 50%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.court-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.court-image-card .hc-case-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.court-image-card:hover .hc-case-image {
    transform: scale(1.05);
}

.court-image-card .hc-case-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.court-image-card .hc-court-pill {
    margin-bottom: 14px;
    display: inline-block;
    width: fit-content;
}

.court-image-card .hc-case-title {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.court-image-card .hc-case-excerpt {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.court-image-card .hc-case-meta {
    margin-top: auto;
}

.court-text-cards {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

.court-text-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.court-text-card:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #333;
}

.court-text-card .hc-court-pill {
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 12px;
    display: inline-block;
    width: fit-content;
}

.court-text-card .hc-case-title {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
    color: #000;
}

.court-text-card .hc-case-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
}

.court-text-card .hc-case-date {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    padding: 18px 48px;
    background: #000000;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* About Us Section */
.about-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.about-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.about-title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.about-description {
    font-size: 18px;
    color: #666666;
    margin-bottom: 40px;
    font-weight: 500;
}

.about-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.about-main-text {
    font-size: 20px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 48px;
    font-weight: 400;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    text-align: left;
}

.about-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.feature-text p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.about-mission {
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #000000;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    text-align: left;
}

.about-mission strong {
    color: #000000;
    font-weight: 600;
}

@media (max-width: 992px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 36px 28px;
    }

    .about-main-text {
        font-size: 18px;
        margin-bottom: 36px;
    }

    /* Category Cards Tablet */
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }

    .about-badge {
        width: 64px;
        height: 64px;
    }

    .about-badge svg {
        width: 32px;
        height: 32px;
    }

    .about-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .about-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .about-card {
        padding: 28px 20px;
    }

    .about-main-text {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .about-feature {
        padding: 20px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-text h3 {
        font-size: 15px;
    }

    .feature-text p {
        font-size: 13px;
    }

    .about-mission {
        padding: 20px;
        font-size: 15px;
    }

    /* Category Cards Mobile */
    .category-cards-section {
        padding: 40px 20px;
    }

    .category-section-header h2 {
        font-size: 24px;
    }

    .category-section-header p {
        font-size: 14px;
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card {
        padding: 20px;
    }

    .category-card-title {
        font-size: 16px;
    }

    .category-card-count {
        font-size: 24px;
    }

    .category-card-label {
        font-size: 12px;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    max-width: 1400px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 8px 0;
}

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

.footer-section ul li {
    padding: 8px 0;
    color: #b0b0b0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-section ul li:hover {
    color: #ffffff;
}

.footer-section ul li button {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: color 0.2s ease;
}

.footer-section ul li button:hover {
    color: #ffffff;
}

.footer-subsection {
    margin-bottom: 16px;
}

.footer-subsection:last-child {
    margin-bottom: 0;
}

.footer-category-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-compact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-compact-list li {
    padding: 4px 0;
    font-size: 13px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.footer-home-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-home-btn svg {
    flex-shrink: 0;
}

/* Loading Articles Styles */
.loading-articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-articles .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #1565c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-articles p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main img {
        height: 400px;
    }

    .featured-side {
        flex-direction: row;
        overflow-x: auto;
    }

    .featured-side-item {
        min-width: 300px;
    }

    .hc-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Quick access images show 2 columns on tablet */
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Hybrid court layout stacks on tablets */
    .court-hybrid-container {
        flex-direction: column;
        gap: 24px;
    }

    .court-hybrid-container.reverse {
        flex-direction: column;
    }

    .court-image-card {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .court-text-cards {
        max-width: 100%;
    }

    /* Adjust wide dropdown for smaller screens */
    .nav-dropdown-menu.wide-dropdown {
        min-width: 600px;
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Adjust Bare Acts dropdown */
    #bareActsDropdown {
        min-width: 720px;
        max-width: 850px;
        right: 0;
        left: auto;
        transform: translateX(0);
    }

    /* Adjust courts dropdown for medium screens */
    #courtsDropdown .courts-content {
        padding: 25px 4%;
    }

    .landmark-dropdown-grid {
        gap: 20px;
        max-width: 1200px;
    }

    #delhiHCPanel .landmark-dropdown-grid,
    #otherHCPanel .landmark-dropdown-grid {
        max-width: 900px;
    }

    .landmark-section-title {
        font-size: 11px;
    }

    .landmark-dropdown-section {
        padding-right: 20px;
    }

    .landmark-dropdown-section .dropdown-item {
        font-size: 12px;
        padding: 8px 10px;
    }

    .landmark-dropdown-section .view-all-btn {
        font-size: 12px;
        padding: 9px 10px;
    }

    /* BNS-IPC Banner Mobile */
    .bns-ipc-banner-section {
        padding: 20px 15px;
    }

    .bns-ipc-banner-button {
        width: 90%;
        padding: 20px 20px;
    }

    .bns-ipc-content {
        gap: 15px;
    }

    .bns-ipc-icon {
        width: 50px;
        height: 50px;
    }

    .bns-ipc-icon svg {
        width: 32px;
        height: 32px;
    }

    .bns-ipc-text h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .bns-ipc-text p {
        font-size: 13px;
    }

    .bns-ipc-arrow {
        display: none;
    }
}

@media (max-width: 1024px) {
    /* Further adjust wide dropdown */
    .nav-dropdown-menu.wide-dropdown {
        min-width: 480px;
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .desktop-nav {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    /* Hide wide dropdown on mobile */
    .nav-dropdown-menu.wide-dropdown {
        display: none !important;
    }

    /* Mobile layout with hamburger on left, logo centered, research on right */
    .top-bar-content {
        height: 60px;
        padding: 0 12px;
        gap: 8px;
        position: relative;
    }

    /* Show and position mobile menu toggle on the left */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        position: relative;
        z-index: 20;
        background: rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 4px;
        min-width: 44px;
        min-height: 44px;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 28px !important;
        height: 24px !important;
        justify-content: center !important;
    }

    .hamburger span {
        display: block !important;
        height: 3px !important;
        width: 100% !important;
        background: #000000 !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }

    /* Center the logo */
    .logo-section {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        pointer-events: auto;
    }

    /* Show research button on the right */
    .mobile-research-btn {
        display: block !important;
        margin-left: auto;
        position: relative;
        z-index: 20;
        flex-shrink: 0;
    }

    .logo {
        height: 40px;
    }

    .breaking-text {
        font-size: 13px;
    }

    .featured-main img {
        height: 300px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-excerpt {
        display: none;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .hc-cases-grid {
        grid-template-columns: 1fr;
    }

    /* Quick access images stack vertically on mobile */
    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Hybrid court layout fully vertical on mobile */
    .court-hybrid-container,
    .court-hybrid-container.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .court-image-card {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .court-image-card .hc-case-image {
        height: 250px;
    }

    .court-text-cards {
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section:first-child {
        text-align: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .footer-home-btn {
        display: flex;
        width: 100%;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    /* Mobile Search Styles */
    .landmark-search-container {
        margin-top: 16px;
        margin-bottom: 16px;
        padding: 0 12px;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .landmark-search-input {
        padding: 12px 40px 12px 40px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .search-clear-btn {
        right: 8px;
        font-size: 20px;
    }
    
    .search-results-info {
        font-size: 13px;
        margin-top: 8px;
    }
    
    /* Mobile Toggle and Statutory Search Styles */
    .search-type-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        width: 100%;
        max-width: 400px;
    }
    
    .toggle-option {
        font-size: 13px;
        padding: 10px 16px;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }
    
    .toggle-option svg {
        width: 14px;
        height: 14px;
    }
    
    /* Stack statutory dropdowns vertically on mobile */
    .statutory-dropdowns-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .statutory-dropdown-wrapper {
        flex: none;
        width: 100%;
    }
    
    .statutory-search-button {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .keyword-tag {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .featured-main img {
        height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 22px;
    }
    
    /* Hero Banner Mobile */
    .hero-banner-wrapper {
        padding: 8px 15px;
    }
    
    .hero-banner-container {
        min-height: 120px;
        position: relative;
        padding: 12px 0;
    }
    
    .hero-banner-button {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        padding: 10px 20px;
        font-size: 14px;
        width: calc(100% - 30px);
        max-width: 200px;
        justify-content: center;
    }

    /* Keyword Search Mobile */
    .keyword-search-container {
        width: calc(100% - 30px);
        max-width: none;
        position: relative;
    }

    .home-logo {
        margin-bottom: 20px;
    }

    .home-logo-img {
        height: 80px;
    }

    .search-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 10px 16px;
    }

    .court-pills {
        gap: 8px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .court-pills::-webkit-scrollbar {
        display: none;
    }

    .court-pill {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 18px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
    }

    .keyword-search-input {
        font-size: 15px;
        padding: 16px 50px 16px 16px;
    }

    .search-button-inline {
        width: 36px;
        height: 36px;
    }

    .autocomplete-dropdown {
        max-height: 200px;
    }

    .autocomplete-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .selected-keywords {
        margin-top: 10px;
        gap: 6px;
    }

    .search-tip {
        margin-top: 12px;
        font-size: 11px;
    }
    
    .search-tip svg {
        width: 13px;
        height: 13px;
    }

    .keyword-tag {
        font-size: 12px;
        padding: 5px 10px;
