/* CSS Reset & Variables */
:root {
    --primary-color: #253743;
    /* Dark Blue-Grey #253743 */
    --primary-light: #3a5263;
    /* Lighter shade of primary */
    --accent-color: #27b78c;
    /* Green #27b78c */
    --accent-hover: #1e9470;
    /* Darker green for hover */
    --text-dark: #253743;
    /* Using primary as dark text */
    --text-light: #5f6f7a;
    --white: #ffffff;
    --bg-light: #e7f7f2;
    /* Light Mint #e7f7f2 */
    --border-color: #dae6e3;
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --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);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.highlight {
    color: var(--accent-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 24px 0;
    display: block;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--accent-color);
}

/* Dropdown Menu */
.main-nav li.dropdown {
    position: relative;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    z-index: 1000;
}

.main-nav .dropdown-menu li {
    width: 100%;
}

.main-nav .dropdown-menu a {
    padding: 10px 20px;
    color: var(--text-dark);
    display: block;
    width: 100%;
}

.main-nav .dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

.main-nav li.dropdown:hover .dropdown-menu {
    display: flex;
}

.header-cta {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    gap: 2rem;
}

.features-grid.three-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.features-grid.three-columns .feature-card {
    flex: 1 1 350px;
    max-width: 400px;
    width: 100%;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.feature-card.category-block {
    align-items: stretch;
    padding: 0;
    /* Reset padding for internal layout */
    overflow: hidden;
}

.card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.card-header .icon-wrapper {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.category-links {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-links li {
    list-style: none;
}

.category-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.category-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-links a i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.trust-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trust-content>p {
    margin-bottom: 3rem;
    opacity: 0.9;
}

.trust-list {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.trust-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 300px;
}

.trust-list i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.trust-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.trust-list p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Articles Section */
.articles-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-image {
    height: 200px;
    background-color: #ddd;
}

.article-content {
    padding: 1.5rem;
}

.category-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    cursor: pointer;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: #0b2238;
    /* Darker than primary */
    color: #e5e7eb;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
    opacity: 0.8;
}

.footer-links h5 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1rem;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* Utility Classes for Icons */
.bg-blue {
    background-color: #e0e7ff;
    color: #4f46e5;
}

.bg-green {
    background-color: #dcfce7;
    color: #16a34a;
}

.bg-purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

.bg-orange {
    background-color: #ffedd5;
    color: #ea580c;
}

.bg-purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

/* Ranking Page Styles */
.ranking-hero {
    padding: 3rem 0;
    background: var(--bg-light);
}

.page-content {
    padding: 4rem 0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.ranking-card {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr 1fr;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    align-items: center;
    gap: 2rem;
    position: relative;
    transition: var(--transition);
}

.ranking-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.ranking-card.featured-rank {
    border: 2px solid var(--accent-color);
    background: #fbfdfc;
    /* Very subtle green tint */
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--accent-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.rank-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tag,
.tag-highlight {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag {
    background: var(--bg-light);
    color: var(--primary-color);
}

.tag-highlight {
    background: #fff3cd;
    color: #856404;
}

.rank-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.pros-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-list li i {
    color: var(--accent-color);
}

.rank-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.btn-link {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-color);
}

.guide-section {
    max-width: 800px;
    margin: 0 auto;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.guide-block {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.guide-block h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guide-block ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.guide-block li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .ranking-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .pros-list li {
        justify-content: center;
    }
}

.bonus-offer {
    background-color: #fff3e0;
    /* Pale orange/gold background */
    color: #d35400;
    /* Dark orange text */
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    display: inline-block;
    border: 1px dashed #d35400;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}