/* Blog Page Media Queries */
@media (max-width: 1024px) {
    :root {
        --blog-side-spacing: 40px;
    }
    
    .blog-title {
        font-size: 60px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-layout{
      word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    }
}

/* Mobile Blog Styles - Based on 375px width design */
@media (max-width: 767px) {
    :root {
        --blog-side-spacing: 15px;
        --blog-content-width: 100%;
        --blog-spacing: 20px;
    }

    /* Layout structure */
    .blog-page .container {
        display: block;
        padding: 0;
    }

    /* Blog navigation sidebar */
    .blog-navigation {
        position: relative;
        top: 0;
        margin-top: 20px;
        padding: 0 30px;
    }


    /* Blog content area */
    .blog-content {
        max-width: 100%;
        padding: 0 13px;
    }

    /* Back to blog link */
    .blog-back-link {
        margin-top: 40px;
        position: relative;
    }

    .back-to-blog {

        width: 58px;
        height: 24px;
        font-size: 12px;
    }

    /* Social share buttons */
    .blog-social-share {
        position: absolute;
        top: -8px;
        right: 0;
        display: flex;
        gap: 10px;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        background: #2A2A2A;
        border-radius: 1000px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    /* Blog header */
    .blog-post-header {
        margin-top: 0;
        margin-bottom: 26px;
    }

    .blog-title {
        font-size: 46px;
        line-height: 80%;
        letter-spacing: -0.03em;
        width: 100%;
    }

    .blog-meta {
        margin-top: 17px;
        display: flex;
        font-size: 14px;
    }

    /* Blog featured image */
    .blog-featured-image {
        width: 100%;
        height: 285px;
        margin-top: 20px;
    }

    /* Blog content */
    .blog-post-content {
        font-size: 16px;
        line-height: 130%;
        margin-top: 24px;
        width: 100%;
    }

    .blog-section {
        margin: 30px 0;
    }

    .blog-section h2 {
        font-size: 24px;
        line-height: 100%;
        margin-bottom: 16px;
    }

    .blog-media {
        height: 216px;
        margin: 20px 0;
    }

    /* Blog quote */
    .blog-quote {
        padding: 15px 0;
        margin: 20px 0;
    }

    /* Horizontal lines */
    .blog-page .container::before,
    .blog-page .container::after {
        content: '';
display: none;
    }

    .blog-page .container::before {
        top: 41px;
    }

    .blog-page .container::after {
        bottom: 0;
    }

    /* Blog lists */
    .blog-list {
        padding-left: 15px;
        margin: 15px 0;
    }

    /* AI models section */
    .ai-model-list {
        gap: 32px;
    }

    .ai-model-item {
        gap: 20px;
    }

    .ai-model-item h3 {
        font-size: 18px;
    }

    .model-logo {
        height: 50px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    right: 6px;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger .line:nth-child(1) { top: 0; }
.hamburger .line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger .line:nth-child(3) { bottom: 0; }

/* Animated hamburger to X */
.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.mobile-cta {
    display: none;
}

/* Media Queries */
@media (max-width: 768px) {
  body{
    padding: 0 15px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        position: relative;
                align-items: flex-start;

    }
    .menu-open  .header-content{
                     z-index: 999;
                background: #fff;
    }
        .menu-open  .hamburger .line{
          background: #000;
        }

    .menu-open header::before,
    .menu-open header::after {
      content: '';
      position: absolute;
      top: 0;
      height: 100%;
      width: 40px;
      background-color: #fff;
      z-index: 102;
    }
    .menu-open header::before {
      left: -20px;
    }
    .menu-open header::after {
      right: -20px;
    }
    .menu-open  .site-header .container{
border: 0;
  
    }
    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 101;
        align-items: flex-start;
        padding: 25px 0 60px 30px;
        height: auto;
        border-top: 40px solid #ffff;

    }
    .site-logo{
      z-index: 9999!important;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .mobile-menu-overlay.is-visible {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .mobile-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        padding: 12px 25px;
        background-color: #FCCA09;
        color: #1A1A1A;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 500;
        height: 54px;
        text-align: center;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Navigation menu adjustments */
    .nav-menu {
        flex-direction: column;
        width: 100%;
       margin:0;
        align-items: flex-start;
         
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 24px;
              color: #000;
    }

    /* Hero section adjustments */
    .hero-title {
        font-size: 48px;
        line-height: 1.2;
    }

    .hero-background {
        width: 300px;
        height: 300px;
        opacity: 0.2;
    }
    
    /* Article grid adjustments */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        padding-bottom: 80px;
    }
    
    .article-card--featured {
        grid-template-columns: 1fr;
    }
    
    .article-card--featured .article-image {
        order: 0;
    }
    
    .article-card--featured .article-content {
        order: 1;
        margin-left: 0;
    }
    
    .article-card {
        width: 100%;
        max-width: 100%;
    }
    
    .article-image {
        max-width: 100%;
        height: auto;
        min-height: 250px;
    }
}

/* Large Desktop */
@media (min-width: 1441px) {
  :root {
    --container-padding: 160px;
  }
}

/* Desktop */
@media (max-width: 1440px) {
  :root {
    --container-padding: 60px;
  }
  
  .hero-title {
    font-size: 70px;
  }
  
  .featured-title {
    font-size: 40px;
  }
}

/* Laptop */
@media (min-width: 993px) and (max-width: 1200px) {
  :root {
    --container-padding: 40px;
  }
  .nav-menu{
    margin: 0;
  }
  body{
    padding: 0 20px;
  }
    .hero{
    overflow: hidden;
  }
  .article-card--featured .article-content{
    margin: 0;
  }
  
  .site-footer{
    padding: 0;
  }
  .footer-nav{
    width: 100%;
            justify-content: flex-start;
               flex-wrap: nowrap;
    gap: 40px 60px;
  }
  .hero-title {
    font-size: 60px;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  


  .footer-content{
            flex-direction: column;
        gap: 34px;
        text-align: left;
        align-items: self-start;
  }
 .footer-logo{
    padding: 0!important;
  }

  .footer-logo svg{
        width: 97px;
    height: 40px;
  }
      .header-cta, .footer-cta {
        font-size: 15px;
        padding: 6px 14px;
        margin: 0;
    }
    .footer-content{
              margin-bottom: 26px;
    }
}

/* Tablet */
@media  (max-width: 1024px) {
.blog-page .container {
      display: block!important;
}
.media_navigation{
  display: block!important;
}
}
@media  (min-width: 1024px) {
.media_navigation{
  display: none!important;
}
}

.media_navigation{
margin-top: 50px;
}

@media (min-width: 769px) and (max-width: 992px) {

  .blog-page .container{
        grid-template-columns: 169px 1fr;
  }
  :root {
    --container-padding: 30px;
  }
  body{
    padding: 0 10px;
  }
  
  .hero{
    overflow: hidden;
  }
  .hero-title {
    font-size: 50px;
  }
  
  h2 {
    font-size: 38px;
  }
  
  h3 {
    font-size: 28px;
  }
  
  .header-content {
    gap: 20px;
  }
  
  .main-nav {
    flex-direction: column;
    gap: 30px;
  }
  
  .nav-menu {
    gap: 40px;
    margin: 0;
  }
  .site-logo svg{
        height: 31px;
    width: 65px;
  }
  .header-cta, .footer-cta{
            margin: 0 2px 0 0;
            font-size: 12px;
  }
  .article-card--featured .article-content{
    margin: 0;
  }
  .article-title{
    min-height: auto;
  }
  .site-footer{
    padding: 0;
  }
  .footer-nav{
    width: 100%;
    flex-wrap: nowrap;
            gap: 0 35px;
                    width: 100%;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .article-title {
    font-size: 16px;
  }
  
  .article-excerpt {
    font-size: 13px;
  }
    .footer-content {
        flex-direction: column;
    gap: 34px;
    text-align: left;
    align-items: flex-start;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .related-posts-slider .slick-slide > div{
            height: 269px;
  }
  .related-post{
        gap: 20px;
  }
  .related-posts{
    margin-bottom: 0;
  }
  :root {
    --container-padding: 20px;
    --section-gap: 40px;
    --blog-side-spacing: 20px;
  }
  
  /* Blog page responsive */
  .blog-page .container {
    grid-template-columns: 1fr;
  }
  

  
  .blog-nav-list {
    flex-direction: row;
    gap: 20px;
  }
  
  .blog-title {
    font-size: 48px;
  }
  
  .blog-social-share {
    position: relative;
    margin-top: 20px;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .article-card--featured .article-image{
        height: 278.5px;
  }
  .footer-content {
        flex-direction: column;
    gap: 34px;
    text-align: left;
    align-items: flex-start;
  }
  .footer-nav a{
    width: 45%;
  }
  body {
    font-size: 16px;
  }
  
  .hero-title {
    font-size: 49px!important
  }
  .article-card--featured{
        margin-top: 41px;
  }
  .article-card--featured .article-title{
        font-size: 24px;
        height: auto;
        line-height: 1;
        padding: 0;
        margin: 0;
        min-height: auto;
  }
  .article-content{
        gap: 12px;
  }
  .article-card--featured .article-title br{
    display: none;
  }
  h2 {
    font-size: 32px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  .hero-content {
    max-width: 100%;
        text-align: left;
  }
  
  .hero-description {
    max-width: 100%;

  }
  
  .hero-background {
    display: none;
  }
  
  .hero::before,
  .hero::after {
    display: none;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-nav {
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .main-content {
    padding:  0;
  }
  
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 14px;
  }
  
  .article-title {
    font-size: 18px;
  }
  
  .article-excerpt {
    font-size: 14px;
  }
  .site-header .site-logo{
    padding: 0;
  }
    .site-header .site-logo svg{ 
        padding: 0;
        width: 90px;
        height: 39px;
  }

  .main-content .container{
    padding-bottom: 50px;
  }
  .blog-comments .container{
    padding-top: 0;
    padding-bottom: 9px;
  }
  .site-footer{
    padding: 0 ;
  }
  .related-posts .container{
    padding-top: 50px;
    padding-bottom: 124px;
  }
  .related-post-title{
    font-size: 23px;
  }
  .related-posts h2{
    margin-top: 0;
  }
  :root {
    --container-padding: 12px;
  }
  
  body {
    padding: 0 10px;
  }
  
  .article-card {
    width: 100%;
    max-width: 100%;
  }
  
  .article-image {
    max-width: 100%;
            height: 278px;
  }
  
  .articles-grid {
  padding: 0 14px;
  }
  
  .article-title {
        font-size: 24px;
        line-height: 23px;
        height: auto;
        min-height: auto;
  }
  
  .article-excerpt {
    font-size: 14px;
  }
  .comments-area .comment-submit-btn{
            width: 40%!important;
            bottom: 28px !important;
                    grid-column: 1 / -1;
        width: 100%;
        position: relative;
  }
  .comments-area .comment-form-container{
        grid-template-columns: 1fr 1fr!important;
  }
  .comments-area .comment-form {
    color-scheme: dark;
    height: 310px!important;
}
  .main-content .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .menu-open .site-header .site-logo svg{
        width: 150px;
        height: 74px;
  }
    .menu-open .mobile-menu-toggle{
    top: 22px;
  }
  .footer-content {
        flex-direction: column;
    gap: 34px;
    text-align: left;
    align-items: flex-start;
  }
}

/* Mobile Medium */
@media (max-width: 480px) {
  :root {
    --container-padding: 15px;
    --blog-side-spacing: 15px;
    --blog-content-width: 100%;
  }
  
  /* Blog page responsive */
  .blog-title {
    font-size: 36px;
    margin: 20px 0;
  }
  
  .blog-section h2 {
    font-size: 24px;
  }
  
  .blog-comments h2 {
    font-size: 24px;
  }
  
  .blog-featured-image,
  .blog-media {
    height: 284px;
  }
  
  .related-post-image {
    height: 250px;
  }
  
  .blog-post-content {
    font-size: 16px;
  }
  
  .ai-model-item h3 {
    font-size: 18px;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 0.9;
            text-align: left;
  }
  
  .featured-title {
    font-size: 24px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  .blog-title {
        font-size: 42px;
        margin: 0;
  }
  
  .hero {
    min-height: auto;
    text-align: center;
  }
  
  .site-logo,
  .footer-logo {
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  
  .logo-text {
    font-size: 14px;
  }
  
  .header-cta,
  .footer-cta {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .btn {
        font-size: 12px;
        padding: 8px 24px;
  }
  
  .featured-image,
  .blog-image {
    height: 250px;
  }
  
  .blog-card {
    max-width: 100%;
  }
  .blog-post-content .blog_content_text{
        margin-bottom: 49px;
  }

}


/* Mobile Small */
@media (max-width: 320px) {
  :root {
    --container-padding: 10px;
    --blog-content-width: 100%;
  }
  
  body {
    padding: 0 5px;
  }
  
  .article-card {
    width: 100%;
    max-width: 100%;
  }
  
  .article-image {
    max-width: 100%;
  }
  
  .articles-grid {
    padding: 0 0 60px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .featured-title {
    font-size: 20px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .blog-title {
    font-size: 18px;
  }
  
  body {
    font-size: 14px;
  }
  
  .featured-image,
  .blog-image {
    height: 200px;
  }
  
  .main-content .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Landscape orientation for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  
  .hero-title {
    font-size: 48px;
  }
}

/* High density displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .site-logo,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark mode support (in case user prefers light mode) */
@media (prefers-color-scheme: light) {
  /* This theme is primarily dark, but we can add light mode support if needed */
  /* For now, we'll keep the dark theme as the default */
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  :root {
    --bg-primary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-background,
  .line,
  .line-vertical,
  .line-horizontal {
    display: none !important;
  }
  
  .btn,
  .header-cta,
  .footer-cta {
    border: 1px solid #000000 !important;
    background: transparent !important;
    color: #000000 !important;
  }

  /* Mobile Blog Footer - Based on 375px width design */
  .site-footer {
    padding: 30px 30px 20px;
  }

  .footer-logo {
    width: 91px;
    height: 41px;
    margin-bottom: 30px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 30px;
  }

  .footer-links a {
    font-size: 16px;
    line-height: 25px;
    color: #FFFFFF;
  }

  .footer-button {
    width: 183px;
    height: 38px;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 24px;
    background: #FCCA09;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: 'Saira', sans-serif;
    font-weight: 500;
  }

  .copyright {
    font-size: 14px;
    line-height: 22px;
    color: #FFFFFF;
    opacity: 0.6;
    font-family: 'Saira', sans-serif;
  }
}
