/* static/css/style.css */
:root {
    --primary-color: #ecd880;
    --secondary-color: #ffd2cc;
    --accent-warm: #ffb497;
    --accent-cool: #ffa280;
    --neutral-dark: #222222;
    --neutral-mid: #636e72;
    --neutral-light: #fffdf2;
    --background-light: #fffdf2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #fffdf2 0%, #ffd2cc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Navbar */
.navbar {
    background-color: var(--neutral-dark) !important;
    box-shadow: 0 2px 15px rgba(236, 216, 128, 0.08) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-cool);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--neutral-light);
}

.nav-item {
    margin-left: 0.5rem !important;
}

.nav-link {
    color: var(--accent-cool) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: var(--accent-cool) !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--neutral-light) !important;
}

.navbar-nav {
    margin-left: 0;
    display: flex;
    align-items: center;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    margin-right: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Make hamburger menu icon match brand color */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 162, 128, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .btn-custom {
    margin-left: 1rem;
}

/* Buttons */
.btn-custom {
    background-color: var(--accent-cool);
    color: var(--neutral-dark);
    border-radius: 25px;
    padding: 8px 20px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: var(--secondary-color);
    color: var(--neutral-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 216, 128, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.hero-section h1 {
    color: var(--neutral-dark);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    color: var(--neutral-mid);
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Features Section */
.feature-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(236, 216, 128, 0.1);
    height: 100%;
    padding: 1.5rem !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cool);
    box-shadow: 0 10px 20px rgba(236, 216, 128, 0.15);
}

.feature-card i {
    color: var(--accent-cool);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--neutral-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-card .btn-custom {
    margin-top: 1rem;
}

/* Video Section */
.ratio {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.ratio iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Social Media Section */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background-color: var(--neutral-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--neutral-dark);
    transform: translateY(-3px);
}

.social-icon i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--neutral-dark) !important;
    padding: 2rem 0 !important;
    margin-top: 0 !important;
}

footer .navbar-brand {
    color: white;
}

footer p {
    color: white;
    font-size: 0.95rem;
}

/* Blog Specific Styles */
.blog-container {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--neutral-light);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(236, 216, 128, 0.15);
}

.card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-header h2 a {
    color: var(--neutral-dark);
    text-decoration: none;
}

.card-header time {
    color: var(--neutral-mid);
    font-size: 0.9rem;
}

.card-excerpt {
    color: var(--neutral-mid);
    margin: 20px 0;
    line-height: 1.6;
}

.card-footer {
    margin-top: 20px;
}

/* Individual Blog Post Styles */
.blog-post {
    background: var(--neutral-light);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--neutral-dark);
    margin-bottom: 15px;
}

.post-meta {
    color: var(--neutral-mid);
    font-size: 0.9rem;
}

.post-meta .category {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--neutral-light);
}

.post-content {
    color: var(--neutral-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2, 
.post-content h3 {
    margin: 2rem 0 1rem;
    color: var(--neutral-dark);
}

.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Blog Layout */
.blog-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar Styles */
.blog-sidebar {
    flex: 0 0 250px;
    margin-top: 60px;
}

.sidebar-section {
    background: var(--neutral-light);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    color: var(--neutral-dark);
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-light);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: #ff8c94;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background-color: var(--neutral-dark);
    color: #ffb3b9;
}

.category-count {
    background-color: var(--background-light);
    color: #ff8c94;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Main Content Area */
.blog-main {
    flex: 1;
    margin-top: 60px;
}

/* Social Section */
.social-section {
    padding: 3rem 0;
    background-color: transparent;
}

/* Section Styles */
section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    color: var(--neutral-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--neutral-mid);
    font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--neutral-mid);
}

.breadcrumb a {
    color: var(--accent-cool);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: var(--neutral-mid);
}

/* Custom Padding Classes */
.py-5 {
    background-color: #ffd2c2 !important;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--secondary-color) 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-item {
        margin: 0.25rem 0 !important;
    }
    
    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .blog-layout {
        flex-direction: column;
    }
    
    .blog-sidebar {
        flex: none;
        width: 100%;
        margin-top: 30px;
    }
    
    .blog-main {
        margin-top: 30px;
    }
}

/* Mobile responsiveness for iPhone SE and similar devices */
@media (max-width: 576px) {
    /* Navbar */
    .navbar {
        position: relative;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        margin: 0 auto;
        position: static;
        transform: none;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #222222;
        z-index: 1000;
    }
    
    .navbar-nav .btn-custom {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}