:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #764ba2;
    --secondary: #f093fb;
    --accent: #4facfe;
    --dark: #2d3748;
    --light: #f7fafc;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--secondary) 100%); /* Adjusted for a smoother blend */
    min-height: 100vh;
    line-height: 1.6;
    color: var(--gray-700);
    overflow-x: hidden;
}

.content-wrapper {
    flex: 1;
}

.hero-section {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    padding-bottom: 4rem; /* More padding to ensure content below doesn't overlap immediately */
}

/* New wrapper for navigation links and hamburger icon */
.navigation-links-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100; /* Ensure it's above other content */
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents shrinking on smaller desktop widths */
}

/* Default state for navigation links (desktop) */
.navigation-links {
    display: flex; /* Show by default on desktop */
    gap: 0.75rem;
    flex-wrap: nowrap; /* Ensure no unwanted wrapping on desktop */
}

.nav-link, .auth-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping within buttons */
}

.nav-link i, .auth-btn i { 
    margin-right: 0.4rem; 
    font-size: 0.9em; 
}

.nav-link:hover, .auth-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2.5rem;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.main-container, .dashboard-container, .blog-container {
    max-width: 1000px; /* Changed from 1200px to 1000px to standardize width */
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1; /* Ensure content is above background */
}

.unified-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.unified-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.875rem;
    border-radius: 12px;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.badge i {
    margin-right: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f7fafc;
    font-weight: 600;
    color: var(--dark);
}

/* Hamburger icon - hidden by default on desktop */
.hamburger-icon {
    display: none; 
    position: relative; 
    z-index: 101; 
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    line-height: 1;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.hamburger-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hide the close icon by default */
.hamburger-icon .fa-times {
    display: none;
}

/* Show close icon when menu is open */
.hamburger-icon.active .fa-bars {
    display: none;
}

.hamburger-icon.active .fa-times {
    display: block;
}

@media (min-width: 769px) { /* Explicitly for desktop */
    .hamburger-icon {
        display: none !important; /* Ensure hidden on desktop */
    }
    .navigation-links {
        display: flex !important; /* Ensure always shown on desktop */
    }
}


@media (max-width: 768px) {
    /* Show hamburger icon on mobile */
    .hamburger-icon {
        display: flex; /* Show hamburger icon on mobile */
        position: absolute; /* Re-apply absolute positioning for mobile, relative to wrapper */
        top: 1rem; /* Adjust positioning for mobile */
        right: 1rem; /* Adjust positioning for mobile */
    }

    /* Hide standard navigation links by default on mobile */
    .navigation-links {
        display: none; /* Hidden until activated on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        z-index: 99; /* Below hamburger icon */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    }

    /* Display navigation links when menu is active */
    .navigation-links.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    .nav-link, .auth-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        width: 80%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: var(--shadow-md);
    }
    
    .nav-link:hover, .auth-btn:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .unified-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .hero-title {
        margin-top: 4rem;
    }

    /* Blog Specific adjustments for mobile */
    .blog-post-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .unified-card {
        padding: 1rem;
        margin: 0 0.5rem 1rem;
    }
    .nav-link, .auth-btn {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }
    /* Adjust position of hamburger icon slightly for smaller screens */
    .hamburger-icon {
        top: 1rem;
        right: 1rem;
    }
    /* Blog Specific adjustments for smaller mobile */
    .blog-post-card {
        padding: 1rem;
    }
    .post-title {
        font-size: 1.6rem;
    }
    .post-meta {
        font-size: 0.8rem;
    }
    .info-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    .info-box-icon {
        font-size: 1.5rem;
    }
    .info-box-text {
        font-size: 0.9rem;
    }
}

/* Dashboard specific styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--white);
}

/* Dynamic stat icon backgrounds */
.stat-icon.favorites {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%); 
}
.stat-icon.regulation-favorites {
    background: linear-gradient(135deg, var(--secondary) 0%, #a85387 100%);
}
.stat-icon.notes {
    background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
}
.stat-icon.activity {
    background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%);
}
.stat-icon.categories { 
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); 
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: none; /* Changed from 1px solid var(--gray-200) to none */
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.case-card, .regulation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
}

.case-card:hover, .regulation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-title, .regulation-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.case-title a, .regulation-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover, .regulation-title a:hover {
    color: var(--primary);
}

.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
}

.case-meta, .regulation-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.case-meta .badge, .regulation-meta .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    font-weight: 500;
}

/* Bootstrap Badge overrides */
.badge.bg-primary { background-color: var(--primary) !important; }
.badge.bg-success { background-color: var(--success) !important; }
.badge.bg-info { background-color: var(--info) !important; }
.badge.bg-warning { background-color: var(--warning) !important; }
.badge.bg-secondary { background-color: var(--secondary) !important; }
.badge.bg-danger { background-color: var(--danger) !important; }

.detail-item {
    margin-bottom: 0.5rem;
}

.detail-item strong {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.detail-item .text-muted {
    font-size: 0.9rem;
}

/* NEW RULE: This will style all links inside the detail items consistently */
.detail-item .text-muted a {
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-600);
    transition: color 0.2s, border-color 0.2s;
}

.detail-item .text-muted a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}


.detail-item i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.summary-text {
    line-height: 1.8;
    white-space: pre-line;
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    z-index: 10;
}

.favorite-btn .far.fa-heart {
    color: #a1c4fd;
}

.favorite-btn .fas.fa-heart {
    color: var(--danger);
    animation: heartbeat 1.5s infinite ease-in-out;
}

.favorite-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.favorite-btn:hover .far.fa-heart {
    color: #6a9ffb;
}

.favorite-btn:hover .fas.fa-heart {
    color: var(--danger);
}

.parties-section {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--info);
}

.parties-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--info);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.parties-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.party-info {
    text-align: center;
}

.party-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.party-name, .party-rep, .arbitrator-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.party-name.clickable, .party-rep.clickable, .arbitrator-name.clickable {
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.party-name.clickable:hover, .party-rep.clickable:hover, .arbitrator-name.clickable:hover {
    color: var(--dark);
    text-decoration: underline;
    transform: translateX(2px);
}

.party-rep {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.2;
}

.vs-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

.arbitrators-section {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--warning);
}

.arbitrators-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.arbitrators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.arbitrator-item {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.arbitrator-role {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.arbitrator-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.2;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.empty-state h4 {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.regulation-file-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}
.regulation-file-icon.pdf {
    background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
}
.regulation-file-icon.doc {
    background: linear-gradient(135deg, var(--info) 0%, #2980b9 100%);
}
.regulation-file-icon.txt {
    background: linear-gradient(135deg, var(--gray-500) 0%, #7f8c8d 100%);
}

.regulation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.regulation-detail-item {
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.regulation-detail-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--gray-700);
    font-size: 0.85rem;
}

.regulation-detail-item span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Blog Specific Styles (consolidated from old blog/layout.blade.php and index.blade.php) */
.blog-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative; /* Needed for z-index of cards */
}

.posts-section {
    margin-top: 2rem; /* Adjusted to fit below unified hero */
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.15); /* Translucent white for glassmorphism effect */
    backdrop-filter: blur(25px); /* Stronger blur */
    border-radius: 28px; /* More rounded */
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2); /* Deeper shadow */
    border: 1px solid rgba(255,255,255,0.1); /* Subtle border */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--white); /* Default text color for cards */
}

.blog-post-card:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.post-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

.post-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.urgent-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

.post-content {
    padding: 2rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white); /* White title for blog cards */
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-light); /* Lighter hover for contrast */
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8); /* Lighter text for meta */
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.8); /* Lighter text for excerpt */
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    background: rgba(255, 255, 255, 0.1); /* Translucent tag background */
    color: rgba(255, 255, 255, 0.7); /* Lighter text */
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-1px);
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%); /* Lighter primary gradient */
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.favorite-btn .far.fa-heart {
    color: rgba(255, 255, 255, 0.5); /* Lighter grey for unfavorited */
}

.favorite-btn .fas.fa-heart {
    color: var(--danger);
}

.favorite-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.sidebar {
    background: rgba(255, 255, 255, 0.15); /* Translucent background */
    backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white); /* Default text color for sidebar */
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.stats-grid { /* Used in blog sidebar for total posts etc. */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stats-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* Translucent card */
    color: var(--white);
    padding: 1.5rem;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1); /* Lighter border */
    background: rgba(255,255,255,0.05); /* Very light background */
}

.category-item:hover {
    background: rgba(255,255,255,0.15); /* Slightly more opaque on hover */
    transform: translateX(5px);
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8); /* Lighter text color */
    font-weight: 500;
}

.category-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Lighter border */
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    background: rgba(255,255,255,0.05); /* Light background on hover */
    border-radius: 12px;
    padding: 1rem;
    margin: 0 -1rem;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-content h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recent-post-content a {
    color: var(--white); /* White text for recent post titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content a:hover {
    color: var(--primary-light); /* Lighter primary on hover */
}

.recent-post-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7); /* Lighter meta text */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    background: rgba(255, 255, 255, 0.15); /* Translucent background */
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.page-link {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8); /* Lighter text */
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.25); /* More opaque on hover */
    color: var(--white);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.15); /* Translucent background */
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white); /* White text */
}

.no-posts-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4); /* Lighter icon */
    margin-bottom: 1.5rem;
}

.no-posts h4 {
    color: var(--white); /* White text for h4 */
    margin-bottom: 1rem;
}

.no-posts p {
    color: rgba(255, 255, 255, 0.8); /* Lighter text for p */
    margin-bottom: 2rem;
}

/* Common button style, already defined above but ensure it's picked up */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Reading Progress Bar (for post.blade.php but defined here as it's a global utility style) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1000;
    transition: width 0.1s ease;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }

    .case-details-grid {
        grid-template-columns: 1fr;
    }

    .parties-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vs-divider {
        order: -1;
        margin-bottom: 0.5rem;
    }

    .arbitrators-grid {
        grid-template-columns: 1fr;
    }

    .regulation-details {
        grid-template-columns: 1fr;
    }

    /* Blog Specific adjustments for mobile */
    .blog-post-card {
        padding: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .unified-card {
        padding: 1rem;
        margin: 0 0.5rem 1rem;
    }
    .nav-link, .auth-btn {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }
    .hamburger-icon {
        top: 1rem;
        right: 1rem;
    }
    /* Blog Specific adjustments for smaller mobile */
    .blog-post-card {
        padding: 1rem;
    }
    .post-title {
        font-size: 1.6rem;
    }
    .post-meta {
        font-size: 0.8rem;
    }
    .info-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    .info-box-icon {
        font-size: 1.5rem;
    }
    .info-box-text {
        font-size: 0.9rem;
    }
}
.person-name a {
  text-decoration: none;
  border-bottom: none;
}

