/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Blue Color Palette */
    --primary-dark: #0a1929;
    --secondary-dark: #1e3a5f;
    --accent-gold: #c9a959;
    --accent-blue: #3b6e9c;
    --light-blue: #e3f0ff;
    --text-primary: #f0f4f8;
    --text-secondary: #b0c4de;
    --text-muted: #7a8ca8;
    --border-color: #2d4b6e;
    
    /* Typography */
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Effects */
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--primary-dark);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: rem;
    color: #ffffff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
header {
    background-color: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
    height: 80px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-gold);
    font-style: italic;
    font-size: 1rem;
    display: inline;
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.95), rgba(30, 58, 95, 0.9));
    margin-top: 0px;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--accent-gold);
    font-style: italic;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-quote {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 169, 89, 0.2);
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 40px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 89, 0.3);
}

.btn-primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: #2c5a84;
    border-color: #2c5a84;
    color: #ffffff;
}

/* ===== POSTS GRID ===== */
.featured-posts {
    padding: 5rem 0;
    background: var(--secondary-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--primary-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-hover);
}

.post-image {
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(201, 169, 89, 0.1);
    color: var(--accent-gold);
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(201, 169, 89, 0.2);
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent-gold);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.read-more {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffffff;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 5rem 0;
    background: var(--primary-dark);
    text-align: center;
    border-top: 1px solid rgba(201, 169, 89, 0.2);
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #ffffff;
}

.quote-author {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.new-quote-btn {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.new-quote-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 5rem 0;
    background: var(--secondary-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--primary-dark);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(201, 169, 89, 0.05);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== BLOG PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    text-align: center;
    padding: 120px 0 60px;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* ===== QUOTES PAGE ===== */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-card {
    background: var(--secondary-dark);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--accent-gold);
    border: 1px solid var(--border-color);
}

.quote-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-hover);
}

.quote-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.quote-card .author {
    color: var(--accent-gold);
    font-weight: 400;
    text-align: right;
    font-size: 1rem;
}

.quote-card .share-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quote-card .share-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-top: 2rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, var(--accent-blue), var(--secondary-dark));
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 300;
}

.newsletter p {
    color: var(--light-blue);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    color: #ffffff;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--accent-gold);
    border: none;
    border-radius: 40px;
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #b89a48;
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(201, 169, 89, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 400;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-note {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* ===== LOADING STATES ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(201, 169, 89, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(201, 169, 89, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        height: 70px;
    }
    
    .header-content {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .logo span {
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-quote {
        font-size: 1.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}