/* Module Pages Common Styling */

/* Make all paragraph text justified */
p {
    text-align: justify;
}


/* Module Images with Glow and Dimming */
.crew-rules-image,
.crew-portal-image,
.crew-pay-image,
.crew-bidding-image,
.reserves-image,
.dashboard-image {
    text-align: center;
    position: relative;
    display: inline-block;
}

/* .crew-rules-image::after,
.crew-portal-image::after,
.crew-pay-image::after,
.crew-bidding-image::after,
.reserves-image::after,
.dashboard-image::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    pointer-events: none;
    border-radius: 15px;
} */

/* Alternative dimming method using CSS filter */
/* img.dimmed {
    filter: brightness(50%);
} */

/* Hero Section */
.module-hero {
    background: radial-gradient(circle at 50% 70%, #20419d 0%, #10234e 50%, #0a0f1f 70%, #050813 100%) !important;
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.module-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.module-hero .accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    margin: 0 auto 2rem;
}

/* Content Section - Now integrated into hero */
.module-content {
    padding: 80px 0;
    text-align: center;
}

.module-description {
    font-size: 1.1rem;
    color: #dfdbdb;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('assets/images/optimized/laptop.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
}

/* Crew Rules specific features background */
.features-section.crew-rules-features {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('assets/images/crewrules-features.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Feature Boxes */
.feature-boxes {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-box {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 1000;
}

.back-button button {
    background: rgba(249, 115, 22, 0.9);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-button button:hover {
    background: rgba(249, 115, 22, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-outline:hover {
        transform: none;
    }

    .feature-box:hover {
        transform: none;
    }

    .back-button button:hover {
        transform: none;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    /* Mobile Performance Optimizations */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Header Mobile Styles */
    .header .container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    /* Hero Section Mobile Styles */
    .module-hero {
        padding: 6rem 1rem 3rem;
        text-align: center;
        margin-top: 2rem !important;
    }

    .module-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-top: 2rem !important;
        margin-bottom: 1rem;
    }

    .module-hero .accent-line {
        width: 60px;
        height: 3px;
        margin: 0 auto 2rem auto;
    }

    .module-description {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .crew-rules-image {
        margin: 2rem auto;
        max-width: 90%;
    }

    .crew-rules-image img {
        max-width: 100%;
        height: auto;
    }

    /* Features Section Mobile Styles */
    .features-section {
        padding: 3rem 1rem;
    }

    .feature-boxes {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .feature-box {
        min-width: 280px;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

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

    .feature-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Back Button Mobile Styles */
    .back-button {
        top: 20px;
        left: 15px;
    }

    .back-button button {
        padding: 8px 8px;
        font-size: 0.9rem;
    }
}

/* iPhone and small device specific fixes */
@media (max-width: 430px) {

    /* Header Mobile Styles */
    .header .container {
        padding: 0.5rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    /* Hero Section Mobile Styles */
    .module-hero {
        padding: 4rem 0.5rem 2rem;
        margin-top: 1.5rem !important;
    }

    .module-hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-top: 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    .module-hero .accent-line {
        width: 40px;
        height: 2px;
        margin: 0 auto 1rem auto;
    }

    .module-description {
        font-size: 0.75rem;
        padding: 0 0.25rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .crew-rules-image {
        margin: 1rem auto;
        max-width: 90%;
    }

    /* Features Section Mobile Styles */
    .features-section {
        padding: 1.5rem 0.5rem;
    }

    .feature-boxes {
        gap: 1rem;
    }

    .feature-box {
        min-width: 200px;
        padding: 1rem 0.75rem;
    }

    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* Back Button Mobile Styles */
    .back-button {
        top: 10px;
        left: 8px;
    }

    .back-button button {
        padding: 5px 5px;
        font-size: 0.7rem;
    }
}

/* iPad Portrait Specific Styles - Same layout as 480px but with 768px font sizes */
@media (max-width: 1024px) and (min-width: 481px) {

    /* Header Mobile Styles */
    .header .container {
        padding: 0.5rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-link {
        font-size: 0.85rem;
        /* Keep 768px font size */
        padding: 0.3rem 0.5rem;
    }

    /* Hero Section Mobile Styles */
    .module-hero {
        padding: 4rem 0.5rem 2rem;
        margin-top: 1.5rem !important;
    }

    .module-hero h1 {
        font-size: 2rem;
        /* Keep 768px font size */
        line-height: 1.1;
        margin-top: 1.5rem !important;
        margin-bottom: 0.5rem;
    }

    .module-hero .accent-line {
        width: 40px;
        height: 2px;
        margin: 0 auto 1rem auto;
    }

    .module-description {
        font-size: 0.9rem;
        /* Keep 768px font size */
        padding: 0 0.25rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .crew-rules-image {
        margin: 1rem auto;
        max-width: 90%;
    }

    /* Features Section Mobile Styles */
    .features-section {
        padding: 1.5rem 0.5rem;
    }

    .feature-boxes {
        gap: 1rem;
    }

    .feature-box {
        min-width: 200px;
        padding: 1rem 0.75rem;
    }

    .feature-icon {
        font-size: 1.8rem;
        /* Keep 768px font size */
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: 1.3rem;
        /* Keep 768px font size */
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.9rem;
        /* Keep 768px font size */
        line-height: 1.3;
    }

    /* Back Button Mobile Styles */
    .back-button {
        top: 10px;
        left: 8px;
    }

    .back-button button {
        padding: 5px 5px;
        font-size: 0.8rem;
        /* Keep 768px font size */
    }
}

@media (max-width: 480px) {

    /* Header Mobile Styles */
    .header .container {
        padding: 0.75rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* Hero Section Mobile Styles */
    .module-hero {
        padding: 5rem 1rem 2rem;
        margin-top: 2rem !important;
    }

    .module-hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-top: 2rem !important;
        margin-bottom: 0.75rem;
    }

    .module-hero .accent-line {
        width: 50px;
        height: 2px;
        margin: 0 auto 1.5rem auto;
    }

    .module-description {
        font-size: 0.8rem;
        padding: 0 0.5rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .crew-rules-image {
        margin: 1.5rem auto;
        max-width: 95%;
    }

    /* Features Section Mobile Styles */
    .features-section {
        padding: 2rem 1rem;
    }

    .feature-boxes {
        gap: 1.5rem;
    }

    .feature-box {
        min-width: 250px;
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .feature-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Back Button Mobile Styles */
    .back-button {
        top: 15px;
        left: 10px;
    }

    .back-button button {
        padding: 6px 6px;
        font-size: 0.8rem;
    }
}

/* ========================================
   BLOG POST CSS
   ======================================== */

.blog-post-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 120px 80px;
}

/* Top Section - Image */
.blog-post-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Middle Section - Title and Description */
.blog-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-description {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
}

/* Metadata Section - Author and Date */
.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-author {
    font-weight: 500;
    color: #ffffff;
}

.blog-post-date {
    font-weight: 500;
    color: #ffffff;
}

/* Bottom Section - Main Content Area */
.blog-post-content {
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

/* Content Formatting Styles */
.content-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(249, 115, 22, 0.6);
    position: relative;
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
}

.content-subheading {
    font-size: 1.4rem;
    font-weight: 500;
    color: #fbbf24;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #f97316;
}

.content-paragraph {
    margin-bottom: 1.2rem;
    color: #e2e8f0;
    text-align: justify;
    line-height: 1.7;
    text-indent: 0;
}

.content-paragraph:first-of-type {
    margin-top: 1rem;
}

.content-paragraph:last-of-type {
    margin-bottom: 0;
}

/* Special formatting for specific content types */
.blog-post-content h2:first-of-type {
    margin-top: 0;
}

.blog-post-content h3:first-of-type {
    margin-top: 1.5rem;
}

.blog-post-back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(249, 115, 22, 0.9);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1000;
}

.blog-post-back-button:hover {
    background: rgba(249, 115, 22, 1);
}

.blog-post-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.blog-post-error {
    text-align: center;
    padding: 60px 20px;
    color: #ef4444;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET (iPad)
   ======================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-post-container {
        max-width: 90%;
        padding: 100px 40px;
    }

    .blog-post-title {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .blog-post-description {
        font-size: 1.1rem;
    }

    .blog-post-image-container {
        height: 280px;
        margin-bottom: 25px;
    }

    .blog-post-content {
        padding: 25px;
        font-size: 1rem;
    }

    .content-heading {
        font-size: 1.6rem;
        margin: 1.8rem 0 0.9rem 0;
    }

    .content-subheading {
        font-size: 1.3rem;
        margin: 1.4rem 0 0.9rem 0;
    }

    .content-paragraph {
        margin-bottom: 1.1rem;
        line-height: 1.6;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 18px 0;
    }

    .blog-post-back-button {
        top: 15px;
        left: 15px;
        padding: 8px 8px;
        font-size: 0.9rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE LARGE
   ======================================== */
@media (max-width: 768px) and (min-width: 481px) {
    .blog-post-container {
        max-width: 95%;
        padding: 40px 15px;
    }

    .blog-post-title {
        font-size: 2rem;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .blog-post-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .blog-post-image-container {
        height: 250px;
        margin-bottom: 20px;
    }

    .blog-post-content {
        padding: 20px;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .content-heading {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.8rem 0;
        padding-bottom: 0.4rem;
    }

    .content-heading::after {
        width: 50px;
    }

    .content-subheading {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem 0;
        padding-left: 0.8rem;
    }

    .content-paragraph {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.6;
        text-align: left;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px 0;
        margin-bottom: 25px;
    }

    .blog-post-author,
    .blog-post-date {
        font-size: 0.9rem;
    }

    .blog-post-back-button {
        top: 12px;
        left: 12px;
        padding: 8px 8px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE SMALL
   ======================================== */
@media (max-width: 480px) {
    .blog-post-container {
        max-width: 100%;
        padding: 20px 10px;
        margin: 0;
    }

    .blog-post-title {
        font-size: 1.8rem;
        margin-bottom: 14px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .blog-post-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .blog-post-image-container {
        height: 200px;
        margin-bottom: 18px;
    }

    .blog-post-image {
        border-radius: 6px;
    }

    .blog-post-content {
        padding: 15px;
        font-size: 0.9rem;
        line-height: 1.6;
        border-radius: 6px;
    }

    .content-heading {
        font-size: 1.4rem;
        margin: 1.3rem 0 0.7rem 0;
        padding-bottom: 0.3rem;
        line-height: 1.3;
    }

    .content-heading::after {
        width: 40px;
        height: 2px;
    }

    .content-subheading {
        font-size: 1.1rem;
        margin: 1.1rem 0 0.7rem 0;
        padding-left: 0.7rem;
        line-height: 1.3;
    }

    .content-paragraph {
        font-size: 0.9rem;
        margin-bottom: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 0;
        margin-bottom: 20px;
        border-top: 1px solid rgba(226, 232, 240, 0.6);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    }

    .blog-post-author,
    .blog-post-date {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .blog-post-back-button {
        top: 10px;
        left: 10px;
        padding: 6px 6px;
        font-size: 0.8rem;
        border-radius: 3px;
        min-width: 35px;
        min-height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .blog-post-loading,
    .blog-post-error {
        padding: 40px 15px;
        font-size: 0.9rem;
    }

    .blog-post-loading h2,
    .blog-post-error h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - LANDSCAPE MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .blog-post-container {
        padding: 30px 15px;
    }

    .blog-post-image-container {
        height: 180px;
        margin-bottom: 15px;
    }

    .blog-post-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .blog-post-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .blog-post-meta {
        margin-bottom: 15px;
        padding: 10px 0;
    }

    .blog-post-content {
        padding: 15px;
    }

    .content-heading {
        margin: 1rem 0 0.5rem 0;
        font-size: 1.3rem;
    }

    .content-subheading {
        margin: 0.8rem 0 0.5rem 0;
        font-size: 1rem;
    }

    .content-paragraph {
        margin-bottom: 0.7rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - HIGH DPI DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .blog-post-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    .content-heading::after {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   RESPONSIVE DESIGN - PRINT
   ======================================== */
@media print {
    .blog-post-container {
        padding: 20px;
        max-width: 100%;
    }

    .blog-post-back-button {
        display: none;
    }

    .blog-post-content {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }

    .content-heading {
        color: black;
        border-bottom-color: #333;
    }

    .content-subheading {
        color: #333;
        border-left-color: #333;
    }

    .content-paragraph {
        color: #333;
    }
}

/* Blog Page Styles */
.blog-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.blog-header .title-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    margin: 0 auto 2rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

.blog-post h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-signup h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.newsletter-signup p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: #94a3b8;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #f97316;
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Blog Responsive Styles */
@media (max-width: 1024px) {
    .blog-post.featured {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 100px 0 60px;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-header p {
        font-size: 1rem;
    }

    .blog-grid {
        gap: 30px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post h3 {
        font-size: 1.2rem;
    }

    .newsletter-signup {
        padding: 30px 20px;
    }

    .newsletter-signup h3 {
        font-size: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 15px;
    }

    .blog-post h2 {
        font-size: 1.3rem;
    }

    .blog-post h3 {
        font-size: 1.1rem;
    }

    .newsletter-signup {
        padding: 25px 15px;
    }
}

/* ========================================
   MAIN BLOG PAGE STYLES
   ======================================== */

.blog-posts-section {
    padding: 120px 0 80px;
    background: linear-gradient(290deg, #081438 0%, #0f172a 40%, #0a0f1f 70%, #050813 100%);
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.title-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Card Styles */
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.blog-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-color: rgba(249, 115, 22, 0.4);
}

.blog-card.featured .blog-image {
    height: 350px;
}

.blog-card.featured .blog-title {
    font-size: 2.2rem;
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.blog-category {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.blog-date {
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
}

.blog-read-time {
    color: #64748b;
    font-size: 14px;
}

.blog-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.blog-description {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-author {
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 14px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-read-more:hover {
    color: #ea580c;
    transform: translateX(4px);
}

.blog-read-more::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.2s ease;
}

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

/* Responsive Blog Grid */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
        padding: 0 15px;
    }

    .blog-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-posts-section {
        padding: 100px 0 60px 0;
    }

    .blog-header {
        margin-bottom: 40px;
    }

    .blog-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .title-accent {
        width: 60px;
        height: 3px;
        margin-bottom: 20px;
    }

    .blog-header p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .blog-card.featured .blog-image {
        height: 250px;
    }

    .blog-card.featured .blog-title {
        font-size: 1.8rem;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-title {
        font-size: 1.6rem;
    }

    .blog-meta {
        gap: 15px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .blog-posts-section {
        padding: 80px 0 40px 0;
    }

    .blog-header h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .blog-header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .blog-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .blog-description {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .blog-meta {
        gap: 10px;
        margin-bottom: 12px;
    }

    .blog-category {
        padding: 6px 12px;
        font-size: 11px;
    }

    .blog-date,
    .blog-read-time {
        font-size: 13px;
    }
}