/* ===========================
   Root Variables & Base Styles
   =========================== */

:root {
    --primary: #075B6D;
    --secondary: #0FBBE6;
    --accent: #1AA1D6;
    --dark: #121212;
    --gunmetal: #04313B;
    --oxford-blue: #1B1F32;
    --aero: #0FBBE6;
    --white: #FFFFFF;
    
    --font-display: 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -2px; }
h2 { font-size: 2.5rem; margin: 2rem 0 1rem 0; }
h3 { font-size: 1.8rem; margin: 1.5rem 0 0.75rem 0; }
h4 { font-size: 1.3rem; margin: 1rem 0 0.5rem 0; }

p {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 243, 240, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 3px;
}

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

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===========================
   Main Content & Container
   =========================== */

.main-content {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    z-index: 1;
    animation: slideInRight 0.8s ease-out;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    filter: blur(1px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    bottom: 30%;
    right: 30%;
    animation: float 7s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    border-radius: 30% 30% 70% 70% / 30% 70% 70% 30%;
    top: 40%;
    right: 50%;
    animation: float 8s ease-in-out infinite;
}

/* ===========================
   Blog Section
   =========================== */

.blog-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-card.featured {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .blog-card.featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .blog-card.featured .card-image {
        height: 400px;
    }
}

.card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--gunmetal) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
}

.category {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.date {
    color: #999;
}

.blog-card h3 {
    margin: 0 0 0.5rem 0;
}

.blog-card h3 a {
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    transform: translateX(4px);
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

/* ===========================
   Pagination
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem;
}

.pagination-link {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-link:hover {
    background: var(--accent);
}

.pagination-info {
    color: #999;
    font-size: 0.95rem;
}

/* ===========================
   Post Page Styles
   =========================== */

.page-container,
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header,
.post-header {
    margin-bottom: 3rem;
}

.page-meta,
.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
    flex-wrap: wrap;
}

.page-meta .category,
.post-meta .category {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.page-meta .date,
.page-meta .reading-time,
.post-meta .date,
.post-meta .reading-time {
    color: #999;
}

.page-title,
.post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.page-excerpt,
.post-excerpt {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

.page-image-container,
.post-image-container {
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.page-featured-image,
.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Ghost Content Classes
   =========================== */

.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 3rem;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

/* Ghost Image Width Classes */
.kg-width-wide {
    margin: 2rem calc(50% - 50vw);
    width: 100vw;
}

.kg-width-full {
    margin: 2rem calc(50% - 50vw);
    width: 100vw;
}

.kg-image {
    max-width: 100%;
    border-radius: 8px;
}

.kg-image-wide {
    max-width: 100%;
}

.kg-image-full {
    max-width: 100%;
}

.kg-embed-card {
    margin: 2rem 0;
}

.kg-video {
    max-width: 100%;
}

/* ===========================
   Post Footer
   =========================== */

.post-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-bottom: 3rem;
}

.post-author {
    margin-bottom: 3rem;
}

.post-author h4 {
    margin-bottom: 1.5rem;
}

.author-card {
    display: flex;
    gap: 1.5rem;
    background: #f9f7f4;
    padding: 1.5rem;
    border-radius: 10px;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.post-tags {
    margin-bottom: 3rem;
}

.post-tags h4 {
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--secondary);
    color: white;
}

/* ===========================
   Related Posts
   =========================== */

.related-posts {
    margin: 4rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    margin-bottom: 2rem;
}

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

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    background-size: cover;
    background-position: center;
}

.related-card h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
}

.related-card h4 a {
    color: var(--dark);
}

.related-card h4 a:hover {
    color: var(--accent);
}

.related-date {
    padding: 0 1.5rem 1.5rem;
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* ===========================
   Newsletter Section
   =========================== */

.newsletter-section {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: none;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #999;
    margin: 0;
}

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

.social-links a {
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
}

/* ===========================
   Animations
   =========================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .blog-card.featured .card-image {
        height: 250px;
    }
    
    .post-container {
        padding: 2rem;
    }
    
    .page-container {
        padding: 2rem;
    }
    
    .post-title,
    .page-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .blog-card,
    .related-card {
        border-radius: 8px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        width: 100px;
        height: 100px;
    }
}
