/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

a {
    text-decoration: none;
    color: #2c7da0;
    transition: color 0.3s;
}

a:hover {
    color: #1f5068;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c7da0;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #1a1a2e;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: #2c7da0;
    border-bottom: 2px solid #2c7da0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight {
    color: #2c7da0;
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 1rem;
}

.btn-primary {
    background: #2c7da0;
    color: white;
}

.btn-primary:hover {
    background: #1f5068;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c7da0;
    border: 2px solid #2c7da0;
}

.btn-secondary:hover {
    background: #2c7da0;
    color: white;
    transform: translateY(-2px);
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 5%;
    background: white;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2c7da0;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.read-more {
    color: #2c7da0;
    font-weight: 600;
}

/* Quick Tips */
.quick-tips {
    padding: 3rem 5%;
    background: #e8f0fa;
    text-align: center;
}

.tips-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tip-card i {
    font-size: 2rem;
    color: #2c7da0;
    margin-bottom: 0.5rem;
}

/* Educational Content */
.educational-content {
    padding: 4rem 5%;
    background: white;
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.content-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.content-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2c7da0;
}

.content-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.content-item:last-child {
    border-bottom: none;
}

.content-item i {
    font-size: 1.2rem;
    color: #2c7da0;
    margin-top: 0.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 5%;
    background: #f0f7ff;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Info Banner */
.info-banner {
    padding: 2rem 5%;
    background: #2c7da0;
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.banner-content i {
    font-size: 2rem;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 3rem 5%;
    background: #1a1a2e;
    color: white;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    padding: 4rem 5%;
    background: white;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.testimonial-card i {
    font-size: 2rem;
    color: #2c7da0;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #2c7da0;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 5%;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fa 100%);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 5%;
}

.lesson-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.lesson-icon i {
    font-size: 3rem;
    color: #2c7da0;
    margin-bottom: 1rem;
}

.lesson-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2c7da0;
    font-weight: 600;
}

/* Savings Layout */
.savings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 5%;
}

.calculator-section, .tips-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.calculator-card {
    margin-top: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.calc-btn {
    background: #2c7da0;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin: 1rem 0;
}

.calc-btn:hover {
    background: #1f5068;
}

.result {
    background: #e8f0fa;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.result h3 {
    margin-bottom: 0.5rem;
}

.result p {
    margin: 0.3rem 0;
}

/* Tips List */
.tips-list {
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.tip-item i {
    font-size: 1.5rem;
    color: #2c7da0;
    flex-shrink: 0;
}

/* Resources Layout */
.resources-layout {
    padding: 3rem 5%;
}

.resources-section, .tools-section, .reading-section {
    margin-bottom: 2rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.resource-card, .tool-item, .reading-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.resource-card i {
    font-size: 2rem;
    color: #2c7da0;
    margin-bottom: 0.5rem;
}

.resource-badge {
    display: inline-block;
    background: #e8f0fa;
    color: #2c7da0;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.tool-item, .reading-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.tool-item i {
    font-size: 1.5rem;
    color: #2c7da0;
}

.reading-title {
    font-weight: 600;
}

/* Info Note */
.info-note {
    background: #fff3cd;
    padding: 1rem 5%;
    margin: 1rem 5% 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #ffc107;
}

.info-note i {
    font-size: 1.5rem;
    color: #856404;
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-date, .legal-site {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.legal-date {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-page ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: #2c7da0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner a {
    color: #ffc107;
}

.cookie-btn {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 5% 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .savings-layout {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}