/* 
* Main Stylesheet for HowToQualifyForLoans.com
* Version: 1.0
*/

/* === BASE STYLES === */
:root {
    /* Main colors */
    --primary-color: #1e73be;
    --secondary-color: #3bb54a;
    --accent-color: #f7a31b;
    --dark-color: #333333;
    --light-color: #f9f9f9;
    --text-color: #444444;
    --border-color: #dddddd;
    
    /* Font sizes */
    --font-xl: 2.5rem;
    --font-lg: 1.8rem;
    --font-md: 1.2rem;
    --font-sm: 1rem;
    --font-xs: 0.875rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: var(--font-xl);
}

h2 {
    font-size: var(--font-lg);
}

h3 {
    font-size: var(--font-md);
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: #777;
    font-size: var(--font-md);
    max-width: 700px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-sm);
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-cta {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* === HEADER === */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.logo a {
    color: inherit;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
    margin-left: 30px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: var(--font-sm);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 10px 15px;
    display: block;
    font-weight: normal;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === HERO SECTION === */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/api/placeholder/2000/600');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* === FEATURES SECTION === */
.features {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #777;
    font-size: var(--font-sm);
}

/* === LOAN TYPES SECTION === */
.loan-types {
    padding: 80px 0;
}

.loan-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.loan-type-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.loan-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.loan-type-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.loan-type-card h3 {
    font-size: 1.2rem;
    margin: 15px;
}

.loan-type-card p {
    color: #777;
    font-size: var(--font-sm);
    padding: 0 15px;
    margin-bottom: 20px;
}

.loan-type-card .btn {
    margin: 0 15px 20px;
}

/* === FEATURED LENDERS SECTION === */
.featured-lenders {
    padding: 80px 0;
    background-color: var(--light-color);
}

.lenders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.lender-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.lender-card:hover {
    transform: translateY(-10px);
}

.lender-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.lender-card.featured:before {
    content: 'Featured';
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.lender-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.lender-logo img {
    max-height: 100%;
}

.lender-details {
    margin: 20px 0;
}

.lender-details p {
    margin-bottom: 8px;
    font-size: var(--font-sm);
}

.view-all-lenders {
    text-align: center;
    margin-top: 40px;
}

/* === CTA SECTION === */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* === BLOG SECTION === */
.blog-preview {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.blog-content p {
    color: #777;
    font-size: var(--font-sm);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    font-size: var(--font-sm);
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all-posts {
    text-align: center;
    margin-top: 40px;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 10px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-content p:before {
    left: 0;
    top: 0;
}

.testimonial-content p:after {
    right: 0;
    bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #777;
    font-size: var(--font-xs);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === FOOTER === */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    font-size: var(--font-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-link-group h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-link-group h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 10px;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 10px;
}

.footer-link-group a {
    color: #aaa;
    font-size: var(--font-sm);
    transition: color 0.3s ease;
}

.footer-link-group a:hover {
    color: white;
}

.footer-newsletter h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: #aaa;
    font-size: var(--font-sm);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: var(--font-sm);
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #777;
    font-size: var(--font-xs);
    margin: 0;
}

.social-links {
    display: flex;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
    .features-grid,
    .loan-types-grid,
    .lenders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
    }
    
    .dropdown-menu.active {
        display: block;
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .loan-types-grid,
    .lenders-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}