/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3; /* Main Brand Blue */
    --accent-color: #f39c12;  /* Highlight Orange */
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f8f9fc;
    --card-bg: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* --- Header & Footer --- */
.main-header {
    background-color: var(--card-bg);
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--accent-color);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.main-footer {
    background-color: #f1f1f1;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- The Operator Grid (The layout engine) --- */
.operator-grid {
    display: grid;
    /* This creates a responsive grid automatically. Each card is min 300px wide. */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Individual Operator Card Styling --- */
.operator-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden; /* Keeps image corners rounded */
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

/* Subtle "lift" effect on hover */
.operator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* The area at the top of the card (placeholder) */
.card-image-placeholder {
    height: 120px;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: #999;
}

/* The logo "circle" in the middle of the placeholder */
.operator-logo {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: 3px solid white;
}

.card-body {
    padding: 20px;
    flex-grow: 1; /* Pushes button to the bottom */
}

.operator-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.card-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.operator-rating {
    color: var(--accent-color);
    font-weight: 600;
}

.fleet-size {
    color: var(--text-muted);
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 20px;
}

.popular-routes {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-view {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-view:hover {
    background-color: #004494;
}