/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

    /**
       * COLORS
       */
  
    --link-color: #0645AD;
    --color-blue: #19c0ea;
    --dark-white-color: #16171d;
    --dark-light-color: #292929;
  
  
    /** Background colors */
  
    --bg-header-color: #071c2e;
    --bg-primary-body-color: #ffffff;
    --bg-secondary-body-color: #000000;
    --bg-carolina-blue: #0ea6ec;
    --bg-footer-color: #000000;
    --bg-card-color: #ffffff;
    --bg-card-hover-color: #f8f9fa;
  
  
  
    /** Text colors */
    --text-white: #ffffff;
    --text-black: #000000;
    --text-columbia-blue: hsla(199, 69%, 84%, 1);
    --text-wild-blue-yonder: hsla(216, 33%, 68%, 1);
    --text-carolina-blue: #0ea6ec;
    --text-shadow-blue: hsla(217, 24%, 59%, 1);
    --text-slate-gray: hsla(217, 17%, 48%, 1);
  
    /** Gradient colors */
    --gradient-1: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%);
    --gradient-2: linear-gradient(90deg, #0ea5ea, #0bd1d1 51%, #0ea5ea);
    --gradient-3: linear-gradient(0deg, #000d1a, transparent);
  
    /** Border colors */
    --border-wild-blue-yonder: hsla(216, 33%, 68%, 1);
    --border-prussian-blue: hsla(216, 33%, 20%, 1);
    --border-white: hsl(0, 0%, 100%);
    --border-white-alpha-15: #00000029;
    --border-card: #e5e7eb;
  
    /** Default colors */
    --white: #ffffff;
    --black: #000000;
  
    /**
       * TYPOGRAPHY
       */
  
    /** Font family */
    --fontFamily-poppins: 'Poppins', sans-serif;
    --fontFamily-noto_sans: 'Noto Sans', sans-serif;
  
  
    /** Font size */
    --fontSize-1: 2.9rem;
    --fontSize-2: 2.0rem;
    --fontSize-3: 1.8rem;
    --fontSize-4: 1.6rem;
    --fontSize-5: 1.5rem;
    --fontSize-6: 1.4rem;
    --fontSize-7: 1.2rem;
    --fontSize-8: 1.3rem;
  
    /** Font weight */
    --weight-medium: 500;
    --weight-semiBold: 600;
    --weight-bold: 700;
    --weight-extraBold: 800;
  
    /** Line height */
    --lineHeight-1: 1.3;
    --lineHeight-2: 1.5;
    --lineHeight-3: 1.8;
  
    /**
     * BOX SHADOW
     */
    --box-shadow-pl: 0 4px 8px rgba(0, 0, 0, 0.2);
  
    --box-shadow-lg: 0 0 16px #00000029;
  
    --shadow-1: 0 8px 20px 0 #0000000d;
    --shadow-2: 0px 3px 20px #0bd0d033;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /**
     * BORDER RADIUS
     */
  
    --radius-6: 6px;
    --radius-8: 8px;
    --radius-16: 16px;
    --radius-48: 48px;
    --radius-circle: 50%;
    --radius-pill: 200px;
    /**
     * TRANSITION
     */
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease;
    --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
    --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
  
  
    /* Buttons  */
  
    --subscribe-btn: linear-gradient(135deg, #007bff, #6610f2);
    --subscribe-btn-hover: #097efb
  }

  /* Dark Mode Variables */
  [data-theme="dark"] {
    /** Background colors - Dark Mode */
    --bg-header-color: #0f1419;
    --bg-primary-body-color: #1a1a1a;
    --bg-secondary-body-color: #ffffff;
    --bg-carolina-blue: #0ea6ec;
    --bg-footer-color: #0f1419;
    --bg-card-color: #2a2a2a;
    --bg-card-hover-color: #333333;

    /** Text colors - Dark Mode */
    --text-white: #ffffff;
    --text-black: #e0e0e0;
    --text-columbia-blue: hsla(199, 69%, 84%, 1);
    --text-wild-blue-yonder: hsla(216, 33%, 78%, 1);
    --text-carolina-blue: #4a9eff;
    --text-shadow-blue: hsla(217, 24%, 70%, 1);
    --text-slate-gray: hsla(217, 17%, 68%, 1);

    /** Border colors - Dark Mode */
    --border-wild-blue-yonder: hsla(216, 33%, 58%, 1);
    --border-prussian-blue: hsla(216, 33%, 40%, 1);
    --border-white: hsl(0, 0%, 20%);
    --border-white-alpha-15: #ffffff29;
    --border-card: #404040;

    /** Link color - Dark Mode */
    --link-color: #4a9eff;

    /** Box shadows - Dark Mode */
    --box-shadow-pl: 0 4px 8px rgba(255, 255, 255, 0.1);
    --box-shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-1: 0 8px 20px 0 #0000001a;
    --shadow-2: 0px 3px 20px #4a9eff33;
    --card-shadow: 0 4px 16px rgba(74, 159, 255, 0.2);
    --card-hover-shadow: 0 8px 32px rgba(74, 159, 255, 0.3);
  }
  
  /*-----------------------------------*\
    #RESET
  \*-----------------------------------*/
  
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  button {
    cursor: pointer;
  }
  
  ion-icon {
    pointer-events: none;
  }
  
  address {
    font-style: normal;
  }
  
  /* Dark theme styling */
  
  /* body.dark-theme {
      --body-color: var(--bg-secondary-body-color);
      --text-color: var(--text-white);
      --text-color-dark: var(--dark-text-color-dark);
      --white-color: var(--dark-white-color);
      --light-color: var(--dark-light-color);
  } */
  
  /* .........................Basic body styling .....................*/
  body {
    background-color: var(--bg-primary-body-color);
    color: var(--text-black);
    font-family: var(--fontFamily-poppins);
    font-size: var(--fontSize-4);
    line-height: var(--lineHeight-4);
    overflow-y: overlay;
  }
  
  body.nav-active {
    overflow: hidden;
  }
  
  ::-webkit-scrollbar {
    width: 5px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: var(--bg-carolina-blue);
    border-radius: var(--radius-pill);
  }
  
  
  /* Specific styling for html and body to reset some properties */
  
  html,
  body {
    background-color: var(--bg-primary-body-color);
    color: var(--text-white);
    font-family: var(--fontFamily-poppins);
    line-height: var(--lineHeight-2);
  
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-size: 16px;
    height: 100%;
  }
  
  /* Header section styling */
  header {
    width: 100%;
    background-color: var(--bg-header-color);
  
  
  }
  
  
  /*........................ Header styles ..............................*/
  @keyframes slideIn {
    0% {
      transform: translateY(-100%);
    }
  
    100% {
      transform: translateY(0);
    }
  
  }
  

  
  /*................... Top heading  General container styles.............. */
  .container-super {
  
    background-color: var(--bg-primary-body-color);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
  
    width: 100%;
  }
  
  .text-center {
    text-align: center;
  }
  
  .super-title {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  /* Title styles */
  .display-2 {
    font-size: clamp(2rem, 2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-black);
    /* Text color */
    margin: 0;
    /* Reset margin */
    display: inline-block;
    position: relative;
  }
  
  /* .....................Horizontal rule (HR) styles....................... */
  .mt-5 {
    /* margin-top: 5px; */
    margin-bottom: 0;
    border: 0;
    border-top: 7px solid #0056b3;
    /* Science & Tech category color */
    /* HR width relative to the title */
    border-radius: 5px;
    /* Rounded edges */
    transition: width 0.3s ease-in-out;
    /* Add smooth hover effect */
  }
  
  /* Category-specific styles */
  .category-Science-Tech {
    border-top-color: #0056b3;
    /* Replace with a custom Science & Tech color */
  }
  
  /* Hover effect for HR */
  .display-2:hover hr {
    width: 100%;
    /* Expand HR width on hover */
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .display-2 {
      font-size: 1.8rem;
      /* Adjust font size for smaller screens */
    }
  
    .mt-5 {
      width: 100%;
      /* Narrow HR width for smaller screens */
    }
  }
  
  
  
  
  /* ....................gride container in super container ................*/
  /* .container-main{
    max-width: 1200px;
    align-content: center;
    align-items: center;
  } */
  
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    justify-content: center;
  }
  
  .card {
    border-radius: 16px;
    background-color: var(--bg-card-color);
    text-align: center;
    color: var(--text-black);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    border: 1px solid var(--border-card);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .card:hover {
    background-color: var(--bg-card-hover-color);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
    border-color: var(--link-color);
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--link-color), var(--bg-carolina-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card:hover::before {
    opacity: 1;
  }
  
  .card a {
    text-decoration: none;
  }
  
  .card img {
    width: 100%;
    height: 200px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

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

  .card h2 {
    margin-top: 16px;
    font-size: 1.3rem;
    color: var(--link-color);
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 16px 16px 8px 16px;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--link-color), var(--bg-carolina-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .card:hover h2 {
    transform: translateY(-2px);
  }

  .card p {
    font-size: 1rem;
    padding: 0 16px 20px 16px;
    color: var(--text-black);
    line-height: 1.6;
    opacity: 0.85;
    transition: opacity 0.3s ease;
  }

  .card:hover p {
    opacity: 1;
  }
  
  .popular-card {
    border-radius: 16px;
    background-color: var(--bg-card-color);
    color: var(--text-black);
    padding: 15px;
    border: 1px solid var(--border-card);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, var(--link-color));
  }

  .popular-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
  }

  .popular-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-black);
    background: linear-gradient(135deg, var(--link-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .popular-card  {
    list-style: none;
    /* padding-left: 0; */
    margin: 0;
    color: var(--text-black);
  }
  
  .popular-card1  {
    display: flex;
    color: var(--text-black);
  }
  
  .imagelink {
    align-items: center;
    width: 100%;
    display: flex;
  }
  
  
  /*.................. General Styles for the Card......................... */
  .popular-card1 a {
    display: flex;
    align-items: center;
    color: var(--link-color);
    text-decoration: none;
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    border: 1px solid var(--border-card);
    background-color: var(--bg-card-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .popular-card1 a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--link-color), var(--bg-carolina-blue));
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  .popular-card1:hover a {
    transform: translateX(4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--link-color);
  }

  .popular-card1:hover a::before {
    transform: scaleY(1);
  }

  .popular-card1 img {
    height: 80px;
    width: 120px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .popular-card1:hover img {
    transform: scale(1.05);
  }
  
  
  /* Card Content */
  .card-content-popular {
    flex-grow: 1;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-black);
    line-height: 1.4;
    transition: color 0.3s ease;
  }

  .popular-card1:hover .card-title {
    color: var(--link-color);
  }
  
  .card-title .link {
    text-decoration: none;
    /* Remove underline */
    /* color: #333; */
    /* Default text color */
    transition: color 0.3s ease;
  }
  
  .card-title .link:hover {
    color: var(--link-color);
    /* Highlight color on hover */
  }
  
  /* Optional Styling for Headline Classes */
  .headline {
    font-family: 'Arial', sans-serif;
    /* Base font */
    line-height: 1.4;
  }
  
  .headline-4 {
    font-size: 1.25rem;
  
  }
  
  /*................ grid-list1  Editor's Picks ............................*/
  .editor {
    color: var(--text-black);
    padding-top: 30px;
    border-bottom: 4px solid var(--bg-secondary-body-color);
  
  }
  
  
  
  .grid-list1  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    text-decoration: none;
  }
  /* .editorcards  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    text-decoration: none;
  } */

  .card1 {
    border-radius: 16px;
    background-color: var(--bg-card-color);
    text-align: center;
    color: var(--text-black);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-card);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .card1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--link-color), var(--bg-carolina-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card1:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
    border-color: var(--link-color);
  }

  .card1:hover::before {
    opacity: 1;
  }

  .card1 a {
    text-decoration: none;
    color: var(--text-black);
    display: block;
    height: 100%;
  }

  .card1 img {
    width: 100%;
    height: 200px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .card1:hover img {
    transform: scale(1.05);
  }

  .card1 a h2 {
    font-size: 1.3rem;
    color: var(--link-color);
    margin: 16px 16px 8px 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--link-color), var(--bg-carolina-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .card1:hover a h2 {
    transform: translateY(-2px);
  }

  .card1 p {
    font-size: 1rem;
    padding: 0 16px 20px 16px;
    color: var(--text-black);
    line-height: 1.6;
    opacity: 0.85;
    transition: opacity 0.3s ease;
  }

  .card1:hover p {
    opacity: 1;
  }
  
  .cord1 a h2:hover {
    text-decoration: underline;
  }
  
  .card1 p {
    font-size: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    padding-top: 5px;
  
  }
  
  
  /* ..........Show More Button.................. */
  .btn2 {
    text-decoration: none;
    border-radius: 4px;
    padding: 8px 30px;
    color: var(--text-white);
    margin-inline: auto;
    max-width: max-content;
    display: flex;
    align-items: center;
    margin-block-start: 15px;
    background-color: #0774e8;
    transition: background-color 0.3s ease;
  
  }
  
  .btn2:hover {
    background-color: #052fe9;
    color: white;
  }
  
  .btn-secondary {
    padding: 8px 30px;
    border-radius: 200px;
  }
  
  
  /*................ grid-list-Topics ............................*/
  .topics {
    border-bottom: 4px solid var(--bg-secondary-body-color);
    padding-top: 20px;
  
  }
  
  .topicsH {
    background-color: var(--bg-secondary-body-color);
    max-width: max-content;
    text-decoration: none;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--bg-primary-body-color);
    font-weight: 600;
    transition: all 0.3s ease;
  }
/*   
  .grid-list-topics ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
  }
  
  .card1 a {
    border-radius: 1rem;
    background-color: var(--bg-primary-body-color);
    text-align: center;
    color: var(--text-black);
    box-shadow: var(--box-shadow-lg);
  
  }
  
  .card1 img {
    width: 100%;
    height: 200px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  
  }
  
  .card1 a h2 {
    font-size: 1.3rem;
    color: var(--link-color);
  }
  
  .cord1 a h2:hover {
    text-decoration: underline;
  }
  
  .card1 p {
    font-size: .9rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    padding-top: 5px;
  
  } */
  
  /* .............Latests posts ................. */
  .latest-post-flex {
    max-width: 1000px;
    padding-top: 20px;
    background-color: var(--bg-primary-body-color);
    border-radius: 8px;
    align-items: flex-start;
  
  }
  
  .latest-post-flex h1 {
    font-size: 2rem;
    color: var(--text-black);
    margin-bottom: 20px;
  }
  
  .latest-post2 a {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow-lg);
    border-radius: 1rem;
    text-decoration: none;
  
  
  
  }
  
  .latest-post2 img {
    display: flex;
    align-items: flex-start;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
  }
  
  .latest-post2-content {
    flex: 1;
    color: var(--text-black);
  }
  
  .latest-post2-content h2 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 10px;
    text-decoration: none;
  
  
  }
  
  .latest-post2-content h5 {
    margin-top: 5px;
    margin-left: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    padding-bottom: 3px;
    border-radius: 15px;
    background-color: #383839;
    max-width: fit-content;
    color: var(--text-white);
  }
  
  /* .latest-post2- a {
    text-decoration: none;
  
  
  } */
  
  .latest-post2-content p {
    color: var(--text-black);
    margin: 10px 0;
  }
  .container-readnext{
    margin: auto;
    max-width: 850px;
  }
  
  @media (max-width: 480px) {
    .latest-post2 a{
      flex-direction: column;
      display: flex;
      align-items: center;
      margin-bottom: 10px auto;
      padding: 10px;
    }
  
    .latest-post2  img {
      display: flex;
      align-items: flex-start;
      max-width: 400px;
      width: 100%;
      height: 200px;
      margin: 0%;
      border-radius: 1rem;
    }
  
    .latest-post2-content {
      flex: 1;
      align-items: center;
    text-align: center;
    }
    .latest-post2-content h2{
     font-size: 1.3rem;
    }
    .latest-post2-content p{
      font-size: 0.9rem;
     }
  }
  
  

