/* ===== styles.css - Master CSS file for usabreviews.online website ===== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #E9ECEF;
    color: #1e2a3a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal h3 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e2a3a;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.submit-feedback-btn {
    background: #f26522;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.submit-feedback-btn:hover {
    background: #d45318;
}

/* ===== HEADER STYLES ===== */
.topbar {
    background: #0f5a78;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: #f26522;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    font-family: 'Merriweather', serif;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}

.logo-text span {
    color: #8cc9e6;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author .avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
}

.social-icon:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Brand-specific colors on hover */
.social-icon.fb:hover {
    background: #1877f2;
}

.social-icon.ig:hover {
    background: #e4405f;
}

.social-icon.x:hover {
    background: #000;
}

.social-icon.in:hover {
    background: #0a66c2;
}

.btn-feedback {
    background: #f26522;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-feedback:hover {
    background: #d45318;
}

/* ===== HERO SECTION ===== */
.hero {
    background: #E9ECEF;
    padding: 40px 0;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b0c4de;
}

.meta {
    font-size: 14px;
    color: #2c3e50;
}

.meta strong {
    color: #1a6bbf;
}

.disclaimer {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a627a;
    max-width: 820px;
}

.disclaimer a {
    color: #1a6bbf;
    text-decoration: none;
}

/* ===== LAYOUT ===== */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    padding: 32px 20px;
    align-items: flex-start;
}

.main {
    flex: 2;
    background: transparent;
}

.sidebar {
    width: 300px;
    background: #E9ECEF;
    padding: 0;
}

/* ===== WHITE CONTENT SECTION ===== */
.white-content-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 40px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.intro {
    font-size: 14.5px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 22px;
    max-width: 760px;
}

/* ===== TABLE SECTION ===== */
.table {
    border: 1px solid #d9d9d9;
    margin-bottom: 32px;
    background: #fff;
}

.table-head {
    display: grid;
    grid-template-columns: 180px 80px 120px 1fr;
    background: #e6e6e6;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.row {
    display: grid;
    grid-template-columns: 180px 80px 120px 1fr;
    padding: 18px 16px;
    border-top: 1px solid #e5e5e5;
    align-items: center;
    background: #fff;
}

.row:nth-child(even) {
    background: #fafafa;
}

.bank {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank img {
    height: 34px;
    width: auto;
}

.bank-name {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.cell {
    font-size: 14px;
    color: #333;
}

.highlight {
    font-size: 14px;
    color: #444;
}

.highlight ul {
    padding-left: 16px;
}

.highlight li {
    margin-bottom: 4px;
}

/* ===== DETAILED BANK BLOCKS ===== */
.bank-block {
    border-top: 1px solid #e2e8f0;
    padding: 32px 0;
}

.bank-title {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bank-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bank-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.bank-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.bank-text {
    font-size: 15px;
    line-height: 1.65;
    color: #2d3e50;
}

.bank-text p {
    margin-bottom: 16px;
}

.rate-panel {
    border: 1px solid #e2e8f0;
    background: #fafcff;
    padding: 20px;
    border-radius: 16px;
}

.rate-title {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.rate-apy {
    font-size: 28px;
    font-weight: 800;
    color: #2c7a4d;
    text-align: center;
}

.rate-sub {
    font-size: 12px;
    text-align: center;
    color: #5b6e8c;
    margin-bottom: 20px;
}

.pc-title {
    font-weight: 700;
    font-size: 14px;
    margin: 16px 0 6px 0;
}

.pros {
    color: #2c7a4d;
}

.cons {
    color: #c2410c;
}

.pc-list {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.pc-list li {
    margin-bottom: 6px;
}

.best-for {
    margin-top: 20px;
    background: #f1f5f9;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.best-for strong {
    display: block;
    margin-bottom: 6px;
}

/* ===== HOW TO FIND SECTION ===== */
.how-to-find {
    margin: 32px 0 24px;
}

.how-to-find h3 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e2a3a;
    margin: 24px 0 16px 0;
}

.how-to-find p,
.how-to-find li {
    font-size: 15px;
    line-height: 1.7;
    color: #2d3e50;
    margin-bottom: 16px;
}

.how-to-find ul {
    margin: 16px 0 16px 32px;
}

/* ===== SIDEBAR ===== */
.sidebar-section {
    margin-bottom: 28px;
    background: #E9ECEF;
}

.sidebar h4 {
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sidebar a {
    display: block;
    padding: 8px 0;
    font-size: 13.5px;
    color: #1a6bbf;
    border-bottom: 1px solid #d4dce6;
    text-decoration: none;
    cursor: pointer;
}

.sidebar a:hover {
    text-decoration: underline;
}

.share {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    background: #0f5a78;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f5a78;
    width: 100%;
    margin-top: 40px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer a {
    display: block;
    font-size: 13px;
    color: #cfe3ef;
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-social .social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social .social-icon:hover {
    transform: translateY(-3px);
}

.footer-social .social-icon.fb:hover {
    background: #1877f2;
}

.footer-social .social-icon.ig:hover {
    background: #e4405f;
}

.footer-social .social-icon.x:hover {
    background: #000;
}

.footer-social .social-icon.in:hover {
    background: #0a66c2;
}

.footer-social .social-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #cfe3ef;
}

.footer-last {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #cfe3ef;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }

    .bank-body {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .table-head,
    .row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .table-head {
        display: none;
    }

    .row {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .topbar-inner {
        flex-direction: column;
    }

    .nav {
        justify-content: center;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-last {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}