@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@500;600;700&display=swap');

/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-color: #4e54c8;
    --primary-gradient: linear-gradient(135deg, #4e54c8, #8f94fb);
    --secondary-color: #ff6b6b;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-light: #f9fbfc;
    --white: #ffffff;
    --border-color: #eef2f7;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #3a3eb5;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    margin-top: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

strong, b {
    color: var(--text-dark);
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.alignleft {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Header
   ========================================= */
.site-header, header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header .container, header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a, #logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo img, #logo img {
    height: 50px;
    width: auto;
    display: none; /* Hide image if it still exists */
}

.main-nav ul, nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a, nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
}

.main-nav a:hover, 
.main-nav a.active, 
nav li.active1 a {
    background-color: rgba(78, 84, 200, 0.08);
    color: var(--primary-color);
}

/* =========================================
   Main Content Area
   ========================================= */
.main-content, #main {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Support both structures */
article, .page-content, .review-article, .blog-post, .review-main {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

/* Hero Section (Introduction) */
article h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

article > p {
    font-size: 1.05rem;
}

/* =========================================
   Review Sections (Cards)
   ========================================= */
section, .review-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

section:hover, .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

section h2, .review-card h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Homepage card title: stack stars below title on the left */
.review-card h2 {
    flex-direction: column;
    align-items: flex-start;
}

.review-card h2 .rating {
    margin-top: 8px;
}

section h2 a {
    color: var(--text-dark);
}

section h2 a:hover {
    color: var(--primary-color);
}

section h2 em {
    font-style: normal;
    font-size: 0.85rem;
    background: #eef2f7;
    color: var(--text-medium);
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* =========================================
   Buttons
   ========================================= */
.button, .cta-container, .cta-button-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn, .btn02 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.4);
    color: white;
}

.btn02 {
    background: white;
    color: var(--text-dark) !important;
    border: 1px solid #dfe6e9;
}

.btn02:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    background: #f8f9fa;
}

/* =========================================
   Ratings
   ========================================= */
.rating {
    background: url(../images/star.png) repeat-x left top;
    height: 18px;
    width: 110px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
}

.rating::before {
    content: "";
    background: url(../images/star.png) repeat-x left bottom;
    height: 18px;
    position: absolute;
    top: 0; left: 0;
}

.star_5::before { width: 110px; }
.star_4_5::before { width: 98px; }
.star_4::before { width: 88px; }
.star_3::before { width: 66px; }
.star_2_5::before { width: 54px; }
.star_0::before { width: 0px; }

/* =========================================
   Sidebar
   ========================================= */
aside {
    width: 340px;
    flex-shrink: 0;
}

aside h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    padding-left: 10px;
    border-left: 4px solid var(--secondary-color);
}

.top-sites-list, aside ul {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.top-sites-list li, aside ul li {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.top-sites-list li:last-child, aside ul li:last-child {
    border-bottom: none;
}

.top-sites-list li:hover, aside ul li:hover {
    background-color: #f9fbfc;
}

.top-sites-list a, aside ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    color: var(--text-dark);
    font-weight: 600;
}

.top-sites-list {
    counter-reset: site-rank;
}

.top-sites-list li::before {
    counter-increment: site-rank;
    content: counter(site-rank);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* =========================================
   Inner Page Styles
   ========================================= */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    background: #f1f2f6;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.breadcrumb a {
    display: inline;
    padding: 0;
    width: auto;
}

.review-article, .page-404, .blog-post, .page-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.featured-image, .blog-image-container, .contact-image-container {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.review-meta {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
    font-style: italic;
}

.pros-list, .cons-list {
    margin: 20px 0;
}

.pros-list li, .cons-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 10px;
}

.pros-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2ecc71;
    font-weight: 900;
    font-size: 1.1rem;
}

.cons-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Blog List */
.blog-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* =========================================
   FAQ Accordion
   ========================================= */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1rem 0;
    list-style: none;
    position: relative;
    padding-right: 30px;
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    color: var(--secondary-color);
}

.faq-content {
    padding-bottom: 1.5rem;
    color: var(--text-medium);
    line-height: 1.7;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(78, 84, 200, 0.2);
}

.read-more-btn:hover {
    background-color: #3a3eb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 84, 200, 0.3);
    text-decoration: none;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-thumb {
    float: left;
    width: 200px;
    height: 140px;
    object-fit: cover;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
}

.blog-item h2 {
    font-size: 1.4rem;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0;
    float: none !important;
}

/* =========================================
   Footer
   ========================================= */
.site-footer, footer {
    background: #1a1d21;
    color: #959ca6;
    padding: 60px 0 30px;
    margin-top: 60px;
    text-align: center;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #dfe6e9;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* =========================================
   Responsive Design
   ========================================= */
/* Menu Toggle Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333; /* Dark color for visibility */
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
        order: 2;
    }

    .blog-thumb {
        float: none;
        width: 100%;
        height: auto;
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .site-header .container, header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav, nav {
        width: 100%;
        display: none;
        order: 3;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
    }

    .main-nav.active, nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .main-nav ul, nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-nav li, nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a, nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    /* Animation for hamburger to X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    article h1 {
        font-size: 2rem;
    }

    section, .review-card, .review-article, .page-404, .blog-post, .page-content {
        padding: 20px;
    }

    section h2, .review-card h2 {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating {
        margin-top: 5px;
    }

    .alignleft {
        float: none;
        width: 100%;
        margin-right: 0;
        height: auto;
    }

    .button, .cta-container, .cta-button-container {
        flex-direction: column;
    }
    
    .btn, .btn02 {
        width: 100%;
    }
}

/* Review Content Image Sizing */
.review-content img.alignleft {
    max-width: 220px;
}

.home-content-bottom {
    margin-top: 3rem;
}

.home-content-bottom img.alignleft {
    max-width: 250px;
}