/* 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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background-color: #ffd700;
    color: #1a1a2e;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: #ffd700;
    color: #1a1a2e;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section Titles */
section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
}

section h3 i {
    color: #ffd700;
    margin-left: 10px;
}

/* Featured Section */
.featured {
    padding: 60px 0;
    background: white;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.featured-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.featured-card a {
    display: inline-block;
    margin-top: 15px;
    color: #0f3460;
    text-decoration: none;
    font-weight: bold;
}

/* Lessons Grid */
.lessons {
    padding: 60px 0;
    background: #f8f9fa;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.lesson-time {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Tips Section */
.tips {
    padding: 60px 0;
    background: white;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tip-category {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
}

.tip-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #0f3460;
}

.tip-category h4 i {
    color: #ffd700;
    margin-right: 8px;
}

.tip-category ul {
    list-style: none;
}

.tip-category li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.95rem;
}

.tip-category li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

/* Articles Section */
.articles {
    padding: 60px 0;
    background: #f8f9fa;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
}

.article-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-item i {
    font-size: 2rem;
    color: #ffd700;
}

.article-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.article-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.article-date {
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Calculator Page */
.calculator-section {
    padding: 60px 0;
    min-height: 70vh;
}

.calculator-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group label i {
    margin-right: 8px;
    color: #ffd700;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 12px;
    text-align: center;
}

.savings-amount {
    font-size: 1.5rem;
    color: #28a745;
}

/* Resources Page */
.resources {
    padding: 60px 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.resource-content {
    padding: 20px;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: left;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: #0f3460;
    text-decoration: none;
    font-weight: bold;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
    min-height: 70vh;
}

.legal-page h2 {
    color: #1a1a2e;
    margin-bottom: 20px;
    font-size: 2rem;
}

.legal-page h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    text-align: left;
}

.legal-page p, .legal-page ul {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-page ul {
    margin-left: 30px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #adb5bd;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

footer strong {
    color: #ffd700;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
    
    .card-grid, .featured-grid, .tips-grid, .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .article-item {
        flex-direction: column;
        text-align: center;
    }
}