/* Blog Page Styles */
.blog-page {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 128, 119, 0.05) 0%, rgba(0, 128, 119, 0.1) 100%);
}

/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    margin-top: 60px; /* Offset the fixed header */
}

.blog-hero__content {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    z-index: 2;
}

.blog-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero__pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/rocky-wall.png');
    background-size: 200px;
    opacity: 100;
    animation: patternMove 20s linear infinite;
}

.blog-hero__gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.15) 0%, rgba(0, 150, 136, 0.05) 100%);
}

.blog-hero__text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero__title {
    font-family: 'Tanker-Regular', sans-serif;
    font-size: 5rem;
    color: #303A4D;
    margin-bottom: 2rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.blog-hero__subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    line-height: 1.6;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: absolute;
    bottom: 20px; /* Position at the bottom center */
    left: 50%;
    cursor: pointer; /* Make it clickable */
    transform: translateX(-50%); /* Center the indicator */
}

.scroll-mouse {
    width: 20px; /* Reduced width for a more realistic mouse */
    height: 30px; /* Increased height for a more realistic mouse */
    border: 2px solid #008077; /* Stroke with primary green color */
    border-radius: 10px; /* Rounded edges for the mouse body */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scroll 1.5s infinite; /* Smooth animation */
    background: transparent; /* No fill */
}

.scroll-wheel {
    width: 8px; /* Width of the scroll wheel */
    height: 8px; /* Height of the scroll wheel */
    background: #008077; /* Color of the scroll wheel */
    border-radius: 5px; /* Rounded edges for the scroll wheel */
    position: absolute;
    top: 5px; /* Center the scroll wheel vertically */
    animation: scrollWheel 1.5s infinite; /* Smooth scroll wheel animation */
    z-index: 1; /* Ensure the wheel is above the light trail */
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(0px); /* Move down */
    }
    100% {
        transform: translateY(0); /* Move back up */
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(9px); /* Move down */
    }
    100% {
        transform: translateY(0); /* Move back up */
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 80vh;
        margin-top: 60px;
    }

    .blog-hero__title {
        font-size: 3.5rem;
    }

    .blog-hero__subtitle {
        font-size: 1.25rem;
    }

    .blog-hero__button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .blog-hero__stats {
        flex-direction: column;
        gap: 2rem;
    }

    .blog-hero__stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero__title {
        font-size: 2.5rem;
    }

    .blog-hero__subtitle {
        font-size: 1.125rem;
    }
}

/* Blog Grid */
.blog-grid {
    padding: 4rem 2rem;
}

.blog-grid__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Featured Post */
.blog-post--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post--featured:hover {
    transform: translateY(-5px);
}

.blog-post--featured .blog-post__image {
    height: 100%;
}

.blog-post--featured .blog-post__image img {
    height: 100%;
    object-fit: cover;
}

.blog-post--featured .blog-post__content {
    padding: 2rem;
}
/* Mobile-specific style for featured post */
@media (max-width: 768px) {
    .blog-post--featured {
      border-radius: 16px;
      padding: 1rem;
      box-shadow: 0 0 12px rgba(0, 128, 119, 0.15); /* Zaad primary color glow */
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .blog-post--featured .blog-post__image img {
      width: 100%;
      border-radius: 12px;
      height: auto;
      object-fit: cover;
    }

    .blog-post--featured .blog-post__content {
      padding: 0;
    }
  }

/* Regular Posts Grid */
.blog-grid__regular {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Blog Post */
.blog-post {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post__image {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-post__content {
    padding: 1.5rem;
}

.blog-post__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.875rem;
}

.blog-post__category {
    color: #008077;
    font-weight: 600;
}

.blog-post__date {
    color: #666;
}

.blog-post__title {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1.5rem;
    color: #303a4d;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post--featured .blog-post__title {
    font-size: 2rem;
}

.blog-post__excerpt {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-post__author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-post__author-info {
    display: flex;
    flex-direction: column;
}

.blog-post__author-name {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #303a4d;
}

.blog-post__author-title {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.75rem;
    color: #666;
}

.blog-post__read-more {
    display: inline-block;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.875rem;
    color: #008077;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-post__read-more:hover {
    color: #006c65;
}

/* Newsletter Section */
.blog-newsletter {
    background: #008077;
    padding: 4rem 2rem;
    color: #ffffff;
}

.blog-newsletter__container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.blog-newsletter__title {
    font-family: "Tanker-Regular", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-newsletter__text {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.blog-newsletter__input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1rem;
    color: #303a4d;
}

.blog-newsletter__button {
    padding: 1rem 2rem;
    background: #ffffff;
    color: #008077;
    border: none;
    border-radius: 8px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-newsletter__button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Blog Posts */
.blog-post:nth-child(1) { animation-delay: 0.2s; }
.blog-post:nth-child(2) { animation-delay: 0.4s; }
.blog-post:nth-child(3) { animation-delay: 0.6s; }

/* Blog Post Page Styles */
.blog-post-page {
    padding-top: 80px;
}

/* Article Header */
.blog-post-header {
    padding: 60px 0;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.blog-post-header__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-header__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-post-header__category {
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-header__date {
    color: #666;
    font-size: 14px;
}

.blog-post-header__title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.blog-post-header__author {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

.blog-post-header__author-info {
    display: flex;
    flex-direction: column;
}

.blog-post-header__author-name {
    font-weight: 600;
    color: #1a1a1a;
}

.blog-post-header__author-title {
    font-size: 14px;
    color: #666;
}

/* Featured Image */
.blog-post-featured {
    margin-bottom: 60px;
}

.blog-post-featured__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-featured__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

/* Article Content */
.blog-post-content {
    padding: 60px 0;
}

.blog-post-content__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-content__text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.blog-post-content__text p {
    margin-bottom: 24px;
}


.blog-post-content__text .lead {
    font-size: 24px;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 500;
}

.blog-post-content__text h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: #1a1a1a;
    font-weight: 700;
}

/* Quote Box */
.quote-box {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-family: 'Dubai';
    font-size: 120px;
    color: #4CAF50;
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
}

.quote-box blockquote {
    font-size: 20px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-style: italic;
}

.quote-box cite {
    font-size: 16px;
    color: #666;
    font-style: normal;
}

/* CTA Box */
.cta-box {
    background: #008077; /* Primary color used in this project */
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 60px 0;
    text-align: center;
}

.cta-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 0;
}

.cta-box a {
    color: white;
    text-decoration: underline;
}

/* Related Posts */
.blog-related {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-related__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-related__title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a1a1a;
    text-align: center;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-hero__title:dir(rtl),
.blog-post__meta:dir(rtl),
.blog-post__title:dir(rtl),
.blog-post__excerpt:dir(rtl),
.blog-post__author-name:dir(rtl),
.blog-post__author-title:dir(rtl),
.blog-post__read-more:dir(rtl),
.blog-newsletter__title:dir(rtl),
.blog-newsletter__text:dir(rtl),
.blog-newsletter__input:dir(rtl),
.blog-newsletter__button:dir(rtl) {
    font-family: 'Dubai', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-post-header__title {
        font-size: 32px;
    }

    .blog-post-content__text {
        font-size: 16px;
    }

    .blog-post-content__text .lead {
        font-size: 20px;
    }

    .quote-box {
        padding: 30px;
    }

    .quote-box blockquote {
        font-size: 18px;
    }

    .blog-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 40px 0;
    }

    .blog-post-header__title {
        font-size: 28px;
    }

    .blog-post-content__text h2 {
        font-size: 24px;
    }

    .quote-box {
        padding: 20px;
    }

    .quote-box blockquote {
        font-size: 16px;
    }
}
