/*
Theme Name: 88Credit
Author: 88Credit Network
Description: Custom theme for 88Credit.info - Vay Tiền Online Dễ Dàng
Version: 1.0
*/

/* === RESET & BASE === */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f7f5f4;
}

a { color: #c53030; text-decoration: none; transition: color .3s; }
a:hover { color: #f687b3; }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === GLOBALS === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #c53030, #f687b3);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all .3s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197,48,48,0.35);
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 32px;
    color: #c53030;
    margin-bottom: 12px;
}
.section-title p {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* === HEADER === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-size: 26px;
    font-weight: 800;
    color: #c53030;
}
.logo span { color: #f687b3; }
.menu-toggle { display: none; font-size: 28px; background: none; border: none; color: #c53030; cursor: pointer; padding: 4px 8px; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
    color: #444;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: #c53030;
    transition: width .3s;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu a:hover { color: #c53030; }
.nav-menu .btn-nav {
    background: linear-gradient(135deg, #c53030, #f687b3);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}
.nav-menu .btn-nav:hover { background: #c53030; color: #fff; }
.nav-menu .btn-nav::after { display: none; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #c53030 0%, #e05a5a 40%, #f687b3 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1; }
.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.3;
}
.hero-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: .92;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta .btn {
    background: #fff;
    color: #c53030;
}
.hero-cta .btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
}
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.15); }
.hero-visual { flex: 1; text-align: center; }
.hero-visual img { max-width: 100%; border-radius: 16px; }

/* === FEATURES === */
.features {
    padding: 70px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: #faf7f6;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all .3s;
    border: 1px solid #f0ebea;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(197,48,48,.1);
    border-color: #f687b3;
}
.feature-icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #c53030, #f687b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}
.feature-card h3 {
    font-size: 20px;
    color: #c53030;
    margin-bottom: 10px;
}
.feature-card p { color: #666; font-size: 15px; }

/* === STEPS === */
.steps {
    padding: 70px 0;
    background: #f7f5f4;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}
.step-number {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #c53030, #f687b3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; color: #333; }
.step-card p { color: #777; font-size: 14px; }

/* === WHY === */
.why {
    padding: 70px 0;
    background: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #faf7f6;
    border-radius: 12px;
    border: 1px solid #f0ebea;
}
.why-check {
    width: 36px; height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #c53030, #f687b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.why-item h3 { font-size: 17px; margin-bottom: 4px; color: #c53030; }
.why-item p { color: #666; font-size: 14px; }

/* === FAQ === */
.faq {
    padding: 70px 0;
    background: #f7f5f4;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e8e3e1;
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background .3s;
}
.faq-question:hover { background: #faf7f6; }
.faq-question::after {
    content: '+';
    font-size: 22px;
    color: #c53030;
    transition: transform .3s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 18px;
    color: #666;
    font-size: 15px;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* === NEWSLETTER CTA === */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #c53030, #f687b3);
    color: #fff;
    text-align: center;
}
.cta-section h2 { font-size: 32px; margin-bottom: 14px; }
.cta-section p { font-size: 17px; margin-bottom: 25px; opacity: .9; }
.cta-section .btn {
    background: #fff;
    color: #c53030;
    font-size: 18px;
    padding: 16px 44px;
}

/* Offers Grid */
.offers-section { padding: 70px 0; background: #f9f9f9; }
.offers-section > .container > p { text-align: center; color: #666; margin-bottom: 40px; font-size: 16px; }
.offers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.offer-card {
  background: #fff; border-radius: 12px; padding: 2rem 1.5rem;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid #f0f0f0;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(197,48,48,0.1); }
.offer-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1rem; border: 3px solid #fed7d7;
}
.offer-card h3 { color: #c53030; font-size: 1.15rem; margin-bottom: 0.5rem; }
.offer-card p { color: #666; font-size: 0.85rem; margin-bottom: 1.2rem; flex-grow: 1; }
.offer-card .btn {
  display: inline-block; background: #c53030; color: #fff !important;
  padding: 0.7rem 1.8rem; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; transition: background 0.2s, transform 0.2s; width: 100%;
}
.offer-card .btn:hover { background: #9b2c2c; transform: translateY(-1px); }

/* === BLOG === */
.blog-preview {
    padding: 70px 0;
    background: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0ebea;
    transition: all .3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body { padding: 22px; }
.blog-card-body h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card-body h3 a { color: #333; }
.blog-card-body h3 a:hover { color: #c53030; }
.blog-card-body p { color: #666; font-size: 14px; margin-bottom: 14px; }
.blog-card .read-more {
    color: #c53030;
    font-weight: 600;
    font-size: 14px;
}
.blog-card .read-more:hover { color: #f687b3; }

/* === FOOTER === */
.site-footer {
    background: #2d2328;
    color: #ccc;
    padding: 50px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}
.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}
.footer-col p, .footer-col a { font-size: 14px; color: #999; }
.footer-col a:hover { color: #f687b3; }
.footer-col ul li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* === PAGE CONTENT === */
.page-content {
    padding: 50px 0;
    min-height: 400px;
}
.page-content h1 {
    font-size: 32px;
    color: #c53030;
    margin-bottom: 20px;
}
.page-content h2 {
    font-size: 24px;
    color: #333;
    margin: 28px 0 12px;
}
.page-content h3 {
    font-size: 20px;
    color: #444;
    margin: 22px 0 10px;
}
.page-content p { margin-bottom: 16px; color: #555; }
.page-content ul, .page-content ol { margin: 0 0 16px 22px; }
.page-content li { margin-bottom: 6px; color: #555; }

/* === BLOG SINGLE === */
.single-post .page-content h1 { font-size: 28px; }
.post-meta { color: #999; font-size: 14px; margin-bottom: 20px; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { flex-direction: column; }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 30px; }
    .site-header { position: relative; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex-direction: column; gap: 0; z-index: 999; }
    .nav-menu.open { display: flex !important; }
    .nav-menu a { padding: 12px 0; border-bottom: 1px solid #eee; }
    .nav-menu a:last-child { border-bottom: none; }
    .menu-toggle { display: block; }
}
