/* ========================================
   BLOG PAGE STYLES - ALPHA MARKETING AGENCY
   Space-Themed Creative Design
   ======================================== */

/* Fix scrolling for blog page - matching services.html pattern */
html,
body {
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
}

.cd-index {
    height: auto !important;
    overflow: visible !important;
}

#main {
    position: relative !important;
    height: auto !important;
}

#main-content {
    position: relative !important;
    height: auto !important;
}

#main-page-content {
    position: relative !important;
    min-height: 100vh;
}

/* Epic Space-Themed Blog Hero Section - Split Layout */
#hero {
    background: #000 !important;
    color: #fff !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
}

#hero-styles {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* Split Container */
.hero-split-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 60px !important;
    width: 100% !important;
}

/* Left Side - Text Content */
.hero-split-left {
    flex: 1 !important;
    max-width: 600px !important;
}

/* Right Side - Image */
.hero-split-right {
    position: absolute !important;
    top: 50% !important;
    right: 40px !important;
    transform: translateY(-50%) !important;
    width: 600px !important;
    height: auto !important;
}

.hero-rocket-image {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    filter: drop-shadow(0 20px 40px rgba(77, 85, 245, 0.3)) !important;
    animation: rocketFloat 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Floating animation for rocket */
@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-20px);
    }
    75% {
        transform: translateY(-10px);
    }
}

/* Glow effect behind the rocket */
.hero-image-glow {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 120% !important;
    height: 120% !important;
    background: radial-gradient(circle, rgba(77, 85, 245, 0.4) 0%, transparent 70%) !important;
    filter: blur(40px) !important;
    z-index: -1 !important;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-title {
    opacity: 1 !important;
    visibility: visible !important;
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
    font-family: 'Poppins', sans-serif !important;
}

.hero-title span {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-subtitle {
    opacity: 1 !important;
    visibility: visible !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 32px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
}

/* CTA Button */
.hero-cta-wrapper {
    margin-top: 40px !important;
}

.hero-cta-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(77, 85, 245, 0.3) !important;
}

.hero-cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(77, 85, 245, 0.4) !important;
}

.hero-cta-button i {
    font-size: 14px !important;
    animation: bounceDown 2s ease-in-out infinite !important;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.gradient-text {
    color: #4d55f5 !important;
    font-weight: 600 !important;
}

.gradient-text-blog {
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600 !important;
}

.hero-subtitle-blog {
    opacity: 1 !important;
    visibility: visible !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 32px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important;
}

.caption-timeline {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(77, 85, 245, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(219, 131, 57, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(77, 85, 245, 0.15) 0%, transparent 50%);
    animation: nebulaPulse 20s ease-in-out infinite;
}

@keyframes nebulaPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Cosmic Particles */
.cosmic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 10%;
    left: 20%;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 80%;
    animation-duration: 30s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 5px;
    height: 5px;
    top: 60%;
    left: 30%;
    animation-duration: 20s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 70%;
    animation-duration: 35s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px) rotate(720deg);
        opacity: 0;
    }
}

/* Orbit Rings */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(77, 85, 245, 0.1);
    border-radius: 50%;
    animation: orbitRotate 60s linear infinite;
}

.orbit-ring:nth-child(1) {
    width: 600px;
    height: 600px;
    animation-duration: 50s;
}

.orbit-ring:nth-child(2) {
    width: 800px;
    height: 800px;
    animation-duration: 70s;
    animation-direction: reverse;
    border-color: rgba(219, 131, 57, 0.1);
}

.orbit-ring:nth-child(3) {
    width: 1000px;
    height: 1000px;
    animation-duration: 90s;
    border-color: rgba(77, 85, 245, 0.05);
}

@keyframes orbitRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    animation: shoot 3s linear infinite;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    transform: translateX(-100%);
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: -10%;
    animation-delay: 4s;
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(120vw) translateY(100px);
    }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2em;
    font-weight: 900;
}

/* Advanced Search Section */
.blog-search-section {
    background: #c8c8c8;
    padding: 80px 40px 0px;
    position: relative;
    overflow: hidden;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-wrapper {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(77, 85, 245, 0.2) !important;
    border-radius: 100px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: rgba(77, 85, 245, 0.5);
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(77, 85, 245, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.search-icon {
    font-size: 24px;
    color: #4d55f5 !important;
    padding: 0 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff !important;
    font-size: 18px;
    padding: 20px 0;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.search-button {
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(77, 85, 245, 0.4) !important;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-tag {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 85, 245, 0.3), transparent) !important;
    transition: left 0.6s ease;
}

.filter-tag:hover::before {
    left: 100%;
}

.filter-tag:hover,
.filter-tag.active {
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(77, 85, 245, 0.3) !important;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 1px 40px 80px;
    background: #c8c8c8;
    position: relative;
    min-height: 100vh;
}

.blog-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 30%, rgba(77, 85, 245, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(219, 131, 57, 0.03) 50%, transparent 70%);
    animation: meshPattern 30s linear infinite !important;
}

@keyframes meshPattern {
    0% {
        transform: translateX(-100px) translateY(-100px);
    }

    100% {
        transform: translateX(100px) translateY(100px);
    }
}

.blog-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Ultra Modern Creative Blog Card Design */
.blog-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 85, 245, 0.05), rgba(219, 131, 57, 0.05)) !important;
    opacity: 1;
    transition: all 0.6s ease;
    z-index: 1;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(77, 85, 245, 0.1), transparent, rgba(219, 131, 57, 0.1), transparent) !important;
    opacity: 0;
    transition: all 0.8s ease;
    animation: rotateGlow 8s linear infinite;
    z-index: 0;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blog-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow:
        0 40px 80px rgba(77, 85, 245, 0.15),
        0 20px 40px rgba(219, 131, 57, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(77, 85, 245, 0.3);
}

.blog-card:hover::before {
    background: linear-gradient(135deg, rgba(77, 85, 245, 0.1), rgba(219, 131, 57, 0.1)) !important;
}

.blog-card:hover::after {
    opacity: 1;
}

.blog-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a) !important;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.15) rotate(2deg);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 4;
    box-shadow: 0 8px 25px rgba(77, 85, 245, 0.3) !important;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.blog-card:hover .blog-category {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(77, 85, 245, 0.4) !important;
}

.blog-content {
    padding: 35px;
    position: relative;
    z-index: 3;
    background: #fff;
    border-radius: 0 0 28px 28px;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    color: #666 !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date,
.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(77, 85, 245, 0.05) !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-date i,
.blog-author i {
    color: #4d55f5 !important;
    font-size: 12px;
}

.blog-card:hover .blog-date,
.blog-card:hover .blog-author {
    background: rgba(77, 85, 245, 0.1);
    transform: translateY(-2px);
}

.blog-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 18px;
    line-height: 1.3;
    transition: all 0.4s ease;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #4d55f5, #db8339) !important;
    transition: width 0.4s ease;
    border-radius: 2px;
}

.blog-card:hover .blog-title {
    color: #4d55f5 !important;
    transform: translateY(-2px);
}

.blog-card:hover .blog-title::after {
    width: 60px;
}

.blog-excerpt {
    color: #555 !important;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-excerpt {
    color: #333 !important;
    opacity: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #4d55f5 !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 12px 24px;
    background: rgba(77, 85, 245, 0.05) !important;
    border-radius: 25px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.blog-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 85, 245, 0.1), transparent) !important;
    transition: left 0.6s ease;
}

.blog-read-more:hover::before {
    left: 100%;
}

.blog-read-more i {
    transition: transform 0.4s ease;
    font-size: 14px;
}

.blog-card:hover .blog-read-more {
    background: rgba(77, 85, 245, 0.1) !important;
    border-color: rgba(77, 85, 245, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 85, 245, 0.15) !important;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(6px);
}

/* Ultra Premium Featured Blog Card */
.blog-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
    border: 2px solid rgba(77, 85, 245, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-card.featured::before {
    background: linear-gradient(135deg, rgba(77, 85, 245, 0.1), rgba(219, 131, 57, 0.1)) !important;
    opacity: 1;
}

.blog-card.featured::after {
    background: conic-gradient(from 0deg, transparent, rgba(77, 85, 245, 0.2), transparent, rgba(219, 131, 57, 0.2), transparent) !important;
    opacity: 0.3;
}

.blog-card.featured:hover::after {
    opacity: 0.6;
}

.blog-card.featured .blog-content {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-radius: 0 0 28px 28px;
}

.blog-card.featured .blog-title {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
}

.blog-card.featured .blog-title::after {
    background: linear-gradient(135deg, #db8339, #4d55f5);
}

.blog-card.featured .blog-excerpt {
    color: rgba(199, 199, 199, 0.84) !important;
    font-size: 18px;
    line-height: 1.8;
}

.blog-card.featured .blog-meta {
    color: rgba(255, 255, 255, 0.6);
}

.blog-card.featured .blog-date,
.blog-card.featured .blog-author {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.blog-card.featured:hover .blog-date,
.blog-card.featured:hover .blog-author {
    background: rgba(219, 131, 57, 0.2);
    color: #fff;
}

.blog-card.featured:hover .blog-title {
    color: #db8339;
}

.blog-card.featured:hover .blog-excerpt {
    color: rgba(255, 255, 255, 0.95);
}

.blog-card.featured .blog-read-more {
    background: rgba(219, 131, 57, 0.1);
}

.blog-card.featured:hover .blog-read-more {
    background: rgba(219, 131, 57, 0.2);
    color: #fff;
    border-color: rgba(219, 131, 57, 0.5);
    box-shadow: 0 8px 25px rgba(219, 131, 57, 0.3);
}

.blog-card.featured .blog-category {
    background: linear-gradient(135deg, #db8339, #4d55f5);
    font-size: 14px;
    padding: 12px 28px;
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 80px;
}

.load-more-button {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, #4d55f5, #db8339);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.load-more-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.load-more-button:hover::before {
    width: 300px;
    height: 300px;
}

.load-more-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(77, 85, 245, 0.3);
}

/* Newsletter Section */
.newsletter-section {
    background: #000;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.newsletter-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    border-color: #4d55f5;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-submit {
    padding: 20px 40px;
    background: linear-gradient(135deg, #4d55f5, #db8339);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(77, 85, 245, 0.4);
}

/* RTL Support */
body[dir="rtl"] .blog-category {
    left: auto;
    right: 20px;
}

body[dir="rtl"] .search-icon {
    padding: 0 20px 0 0;
}

body[dir="rtl"] .blog-read-more i {
    transform: rotate(180deg);
}

body[dir="rtl"] .blog-card:hover .blog-read-more i {
    transform: rotate(180deg) translateX(-5px);
}

/* RTL Support for Hero Split Layout */
body[dir="rtl"] .hero-split-container {
    flex-direction: row !important;
}

body[dir="rtl"] .hero-content-wrapper {
    padding-right: 0 !important;
    padding-left: 60px !important;
}

body[dir="rtl"] .hero-title,
body[dir="rtl"] .hero-subtitle {
    text-align: left !important;
}

body[dir="rtl"] .hero-cta-button i {
    transform: rotate(180deg);
}

body[dir="rtl"] .hero-split-right {
    right: auto !important;
    left: 60px !important;
}

body[dir="rtl"] .hero-image-wrapper {
    justify-content: flex-end !important;
}

body[dir="rtl"] .hero-cta-button:hover i {
    animation: bounceDownRTL 2s ease-in-out infinite !important;
}

@keyframes bounceDownRTL {

    0%,
    100% {
        transform: rotate(180deg) translateY(0);
    }

    50% {
        transform: rotate(180deg) translateY(5px);
    }
}

body[dir="rtl"] .newsletter-form {
    direction: ltr;
}

body[dir="rtl"] #ball p {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

/* Mobile Scrolling Fix for Blog Page */
@media (max-width: 1024px) {
    /* Disable smooth scroll and enable native scrolling on mobile */
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    body.smooth-scroll {
        overflow-y: auto !important;
    }
    
    #content-scroll {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .cd-index, .cd-main-content {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
    }
    
    #main, #main-content, #main-page-content {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

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

    /* Hero Split Layout - Tablet */
    .hero-split-container {
        gap: 40px !important;
    }

    .hero-image-wrapper {
        width: 350px !important;
        height: 350px !important;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 4rem) !important;
    }

    .orbit-ring:nth-child(1) {
        width: 400px;
        height: 400px;
    }

    .orbit-ring:nth-child(2) {
        width: 600px;
        height: 600px;
    }

    .orbit-ring:nth-child(3) {
        width: 800px;
        height: 800px;
    }
}

@media (max-width: 768px) {
    #hero {
        min-height: 100vh;
        padding: 80px 0 40px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    #hero-styles {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Hero Split Layout - Mobile */
    .hero-split-container {
        flex-direction: column !important;
        gap: 40px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-split-left {
        max-width: 100% !important;
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-split-right {
        order: 1 !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .hero-image-wrapper {
        width: 280px !important;
        height: 280px !important;
        margin: 0 auto !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-rocket-image {
        width: 280px !important;
        height: 280px !important;
        object-fit: contain !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        max-width: 100% !important;
        animation: rocketFloat 3s ease-in-out infinite;
    }

    .hero-title {
        text-align: center !important;
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .hero-subtitle, .hero-subtitle-blog {
        text-align: center !important;
        font-size: 16px !important;
        margin: 0 0 30px 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .hero-cta-wrapper {
        text-align: center !important;
        margin: 30px 0 0 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-cta-button {
        padding: 14px 28px !important;
        font-size: 14px !important;
    }

    /* Hide space elements and rocket image on mobile to prevent overflow */
    .cosmic-particles,
    .orbit-container,
    .shooting-stars,
    .hero-rocket-image {
        display: none !important;
    }
    
    .hero-split-right {
        display: none !important;
    }

    /* RTL Mobile Adjustments */
    body[dir="rtl"] .hero-split-container {
        flex-direction: column !important;
    }

    body[dir="rtl"] .hero-title,
    body[dir="rtl"] .hero-subtitle {
        text-align: center !important;
    }

    .blog-search-section {
        padding: 40px 20px;
    }

    .search-wrapper {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        text-align: center;
    }

    .search-button {
        width: 100%;
    }

    .filter-tags {
        gap: 10px;
    }

    .filter-tag {
        padding: 8px 20px;
        font-size: 12px;
    }

    .blog-grid-section {
        padding: 60px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-image-wrapper {
        height: 200px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .load-more-button {
        padding: 15px 40px;
        font-size: 16px;
    }
}