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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

header {
    background: linear-gradient(135deg, #1e5e3e 0%, #2d7d4f 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    font-weight: bold;
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 8px 16px;
    display: inline-block;
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
    list-style: none;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Alternative: Show dropdown when class is added (for JavaScript control) */
.dropdown.active .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.dropdown-menu li {
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    color: #374151;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #2d7d4f;
    text-decoration: none;
}

/* Ensure dropdown arrow styling */
.dropdown-toggle::after {
    content: '';
    margin-left: 8px;
}

/* Fix navigation alignment */
.nav-menu {
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: linear-gradient(135deg, #1e5e3e 0%, #2d7d4f 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 10px 0;
    }
    
    .dropdown-menu a {
        color: white;
        padding: 10px 20px;
        display: block;
    }
    
    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    nav {
        display: block;
    }
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Navigation with Search */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

/* Search Form Styles */
.search-form {
    display: flex;
    align-items: stretch;
}

.search-form input {
    background: white !important;
    border: 1px solid #d1d5db;
    color: #1f2937 !important;
}

.search-form input::placeholder {
    color: #6b7280 !important;
}

.search-form input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.search-form button {
    border: 1px solid #10b981;
    border-left: none;
    white-space: nowrap;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }
    
    .search-form {
        max-width: none;
        margin-left: 0;
        flex: 1;
        min-width: 0;
    }
    
    .search-form input {
        min-width: 0;
        font-size: 14px;
    }
    
    .search-form button {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 14px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Featured Cards */
.featured {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    position: relative;
    overflow: hidden;
}

.featured::before {
    content: "NEW";
    position: absolute;
    top: 10px;
    right: -20px;
    background: #dc2626;
    color: white;
    padding: 4px 30px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 1;
}

.featured h3 {
    color: #0369a1;
}

.featured .cta-link {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
}

.featured .cta-link:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-2px);
}

/* Price comparison specific styles */
.hero-section {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 0;
}

.price-box {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #10b981;
    margin: 0;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Quick Access Cards */
.quick-access-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    text-decoration: none;
    color: inherit;
}

.quick-access-card .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.quick-access-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1f2937;
}

.quick-access-card p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.quick-access-card .cta {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.quick-access-card:hover .cta {
    color: #1d4ed8;
}

/* Deal Cards */
.deal-card:hover {
    transform: translateY(-2px);
}

/* Utility Classes */
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(239 246 255 / 0));
}

.to-green-50 {
    --tw-gradient-to: #f0fdf4;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.text-blue-600 {
    color: #2563eb;
}

.hover\:text-blue-800:hover {
    color: #1e40af;
}

.font-medium {
    font-weight: 500;
}

.bg-white {
    background-color: white;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.overflow-hidden {
    overflow: hidden;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.hero {
    background: linear-gradient(rgba(30, 94, 62, 0.8), rgba(30, 94, 62, 0.8));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

.page-header {
    background: linear-gradient(135deg, #2d7d4f 0%, #3a9d6f 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.features {
    padding: 4rem 0;
    background: white;
}

.features h2, .content-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1e5e3e;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-card h3 {
    color: #1e5e3e;
    margin-bottom: 1rem;
}

.cta-link {
    color: #2d7d4f;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
}

.cta-link:hover {
    text-decoration: underline;
}

.content-section {
    padding: 3rem 0;
    background: white;
    margin-bottom: 2rem;
}

.content-section article {
    margin-bottom: 2rem;
}

.content-section h3 {
    color: #1e5e3e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section h4 {
    color: #2d7d4f;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-block {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.latest-content {
    padding: 3rem 0;
    background: #f8f9fa;
}

.latest-content article {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

footer {
    background: #1e5e3e;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Tables */
.fee-table, .scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fee-table th, .scorecard-table th {
    background: #1e5e3e;
    color: white;
    padding: 0.75rem;
    text-align: left;
}

.fee-table td, .scorecard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.fee-table tr:hover, .scorecard-table tr:hover {
    background: #f5f5f5;
}

/* Review Cards */
.review-card {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-card h3 {
    color: #1e5e3e;
    margin-bottom: 0.5rem;
}

.rating-summary {
    color: #2d7d4f;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-highlights {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.review-highlights li {
    padding: 0.25rem 0;
}

.user-review {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #2d7d4f;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.review-stats {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.value-metrics {
    background: #f0f8f0;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.scorecard-example {
    margin: 2rem 0;
}

.scorecard-table {
    font-size: 0.9rem;
}

.scorecard-table th, .scorecard-table td {
    text-align: center;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .fee-table, .scorecard-table {
        font-size: 0.8rem;
    }
    
    .review-meta {
        flex-direction: column;
    }
}

/* Analysis Cards */
.analysis-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease-in-out;
}

.analysis-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}