:root {
    --primary-color: #0056b3;
    /* Trust Blue */
    --primary-light: #e7f1ff;
    --secondary-color: #f8f9fa;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --border-color: #e5e7eb;
    --spacing-unit: 1rem;
    --max-width: 900px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f3f4f6;
    /* Slighly darker bg for contrast with white cards */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

/* Modern Sticky Header with Gradient */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-gradient {
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00a6ed);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    margin: 0 auto;
    justify-content: center;
}

.logo span {
    color: #111;
    margin-right: 5px;
}

/* Search Bar Styles */
.search-container {
    margin-top: 1rem;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    text-align: left;
    /* Keep results left-aligned */
}

.search-result-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.search-result-meta {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

main {
    flex: 1;
    padding: 2.5rem 0;
}

h1,
h2,
h3 {
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    letter-spacing: -0.015em;
}

p {
    margin-bottom: 1.25rem;
}

/* Modern Glassmorphic Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* "Verified" Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.verified-badge::before {
    content: "✓";
    margin-right: 4px;
}

footer {
    background-color: white;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 1.875rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .card-grid {
        gap: 1rem;
    }

    .logo img {
        max-height: 50px;
        max-width: 200px;
        margin: 0 auto;
    }

    .search-container {
        margin-top: 0.5rem;
    }
}

/* Logo Styles */
.logo img {
    height: auto;
    max-height: 90px;
    max-width: 300px;
    display: block;
}

/* Button Style */
.btn-back {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-share:hover {
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-email {
    background-color: #6b7280;
}

.btn-copy {
    background-color: var(--primary-color);
}

.btn-back:hover {
    background-color: #dbeafe;
    transform: translateY(-2px);
}