/* 1. Variables & Global Styles */
:root {
    --primary-navy: #0a2540;
    --accent-gold: #b38e1d;
    --text-dark: #333;
    --light-gray: #f4f7f9;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    margin: 0;
}

/* 2. Hero & Typography */
.court-hero {
    background-color: var(--primary-navy);
    color: white;
    padding: 80px 0;
    border-bottom: 4px solid var(--accent-gold);
}

.section-title {
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--accent-gold);
    margin-right: 10px;
}

/* 3. Info Cards & UI Components */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.info-card:hover { transform: translateY(-5px); }

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.btn-custom {
    display: inline-block;
    padding: 10px 20px;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 15px;
}

.btn-custom:hover {
    background: var(--primary-navy);
    color: white;
}

/* 4. Case Tracker Container & Header */
.case-tracker-container {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 50px;
}

.tracker-header {
    background: var(--primary-navy);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 5. Status Dot Animation */
.status-indicator { font-size: 0.85rem; color: #a0aec0; }

.dot {
    height: 10px; width: 10px;
    background-color: #48bb78;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* 6. Iframe & Scroll Restriction */
.iframe-container {
    position: relative;
    width: 100%;
    height: 650px; /* Restricted Height */
    background: #fff;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
}

#courtIframe {
    position: absolute;
    top: -140px; /* Top Crop */
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 5000px); 
    border: none;
}

/* 7. Custom Scrollbar Styling */
.iframe-container::-webkit-scrollbar { width: 8px; }

.iframe-container::-webkit-scrollbar-track { background: #f1f1f1; }

.iframe-container::-webkit-scrollbar-thumb {
    background: var(--primary-navy);
    border-radius: 10px;
}

/* 8. Footer & Loader */
.tracker-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
}

.loader {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--primary-navy);
}