/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  }

  header {
    background-color: #35166e;
    /* background-color: #3A0519; */
    color: #fff;
    padding: 20px 10%;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ---- Navigation ---- */
  nav {
    display: flex;
    list-style: none;
    justify-content: center;
    background-color: #3e1b80;
    /* background-color: #670D2F; */
    margin: 0px 5px;
    padding: 0.7rem;
    border-radius: 14px;
  }
  */

  /* Nav ul */
  .nav_link{
    display: flex;
    list-style: none;
  }

  .nav_link li {
    display: inline-block;
    padding: 0px 20px;
  
  }

  .nav_link li a {
    transition: all 0.3 ease 0s;
    color: white;
  }

  .nav_link li a:hover {
    color: #ff6b6b;
    background-color: 0;
  }

  /* Global Container */
  .container {
    width: min(1280px, 100% - 3rem);
    margin: 2rem auto;
    height: 100%;
    /* border: 2px solid red; */
    /* background-color: white; */
  }

  .container-home {
    width: min(1280px, 100% - 3rem);
    margin: 0 auto;
    height: 100%;
    border: 2px solid white;
    background-color: white;
  }

  .container-about {
    width: min(1280px, 100% - 3rem);
    padding: 1rem;
    padding-bottom: 15rem;
    margin: 0rem auto;
    height: 100%;
    background-color: white;
    /* border: 2px solid red; */
  }

  .container-contact {
    width: min(1280px, 100% - 3rem);
    margin: 2rem auto;
    height: 100%;
    /* background-color: white; */
    /* border: 2px solid red; */
  }

  button {
    padding: 9px 25px;
    background-color: rgba(0, 136, 169, 1);
    border: none;
    border-radius: 50px;
    transition: all 0.3 ease 0s;
    color: white;
  }

  button:hover {
    background-color: rgba(0, 136, 169, 0.8);
  }

  .hero-home{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Space2.jpg");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  /* Title */
  h1 {
    color: #fff;
    padding: 0.5%;
    padding-top: 0px;
  }

/* ----- MAIN body ----- */
  main {
    margin-top: 0;
    background-color: #f5f7ff;
   
  }

  /* All titles inside main */
  h2{
    margin: 1rem;
  }

  #card-title {
    text-align: center;
  }

  main h2 {
    margin-top: 1rem;
    margin-left: 3rem;
    margin-bottom: 0;
  }

  /* All paragraphs inside main */
  main p {
    padding: 1rem;
    padding-left: 3rem;
    /* text-indent: 2rem; */
  }
/* ------ ------ ------ */

  /* Home: index html list */

  .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
 }

  .blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
 .card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3,
.card-content .date,
.card-content p,
.card-content .read-more {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}
  
  .read-more {
    color: #ff6b6b;
    font-weight: bold;
  }
  
  /* Home old */
  /* .homelist {
    margin: 1rem;
    margin-left: 4rem;
  }

  .homelist h3{
    margin-left: 3rem;
    padding: 1rem;
  } */
  /* Home old end */

  .feature {
    padding: auto;
    margin: 1rem;
  }

  .hero-intro {
    text-align: center;
    margin: 0 1rem;
  }

  /* Home: Category Section */

  .categories-section {
    /* padding: 80px 0; */
    padding: 1rem 0;
    /* background: #f8fafc; */
  }
  
  .categories-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
  }
  
  .categories-header h2 {
    /* font-size: 2rem; */
    margin-bottom: 15px;
    color: #2d3748;
    position: relative;
    display: inline-block;
  }
  
  .categories-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    /* Color line */
    /* background: linear-gradient(90deg, #ff6b6b, #6e48aa); */
    background: linear-gradient(90deg, #5b2eae, #6e48aa);

    border-radius: 3px;
  }
  
  .categories-header p {
    /* color: #4a5568; */
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 1rem;
  }
  
  .category-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  }
  
  .category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
  }
  
  .category-card:hover .category-bg {
    transform: scale(1.05);
  }
  
  .category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
  }
  
  .category-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
  }
  
  .category-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }
  
  .category-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
  }
  
  .category-link {
    display: inline-flex;
    align-items: center;
    color: white;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.3s ease;
  }
  
  .category-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  .category-card:hover .category-link {
    opacity: 1;
    text-decoration: underline;
  }
  
  .category-card:hover .category-link i {
    transform: translateX(5px);
  }
  
  /* Category-specific colors */
  .category-travel { border-left: 5px solid #4299e1; }
  .category-productivity { border-left: 5px solid #9f7aea; }
  .category-tech { border-left: 5px solid #ed8936; }
  .category-lifestyle { border-left: 5px solid #48bb78; }
  
  /* -------- End of Categoy -------- */
  
  body {
    font-family: Arial, sans-serif;
    
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
    padding: 0;
    
  }
  
  .home-callaction {
    text-align: center;
  }
  
  footer {
    text-align: center;
    margin-top: auto;
    padding: 10px;
    background-color: #35166e;
    color: white;
  }
  
  /* ------ About Page ------ */

  /* -- Hero About Page -- */
  .hero-about{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Space1-hero.jpg");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  .about-interest {
    margin-left: 3rem;
    padding: 1rem;
  }

  .two-column {
    display: flex; /* row */
    height: 410px;
  }

  /* image in About page - main body */
  #box-1 {
    height: 500px;
    flex: 1;
    margin: 1rem auto;
    /* margin-left: 2rem; */
    padding-left: 7rem;
    /* background-color: blue; */
  }
  #box-1 img {
    max-height: 600px;
    /* display: block; */
    max-inline-size: 100%;
    border-radius: 12px;
    padding-left: 0rem;
  }

  #box-2 {
    height: 500px;
    flex: 2;
    margin: 1rem auto;
    /* margin-right: 1rem; */
    padding-right: 3rem;
    padding-top: 3rem;
    /* background-color: yellow;  */
  }


  /* ----------- End of About Page ------------ */


    /* -- Hero Astronomy Page -- */
  .hero-astro{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Astronomy.jpg");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  /* -- Space Missiosn Page -- */
  .hero-missions{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/SpaceMission.jpg");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;
  
  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  /* Space Missions table */
  .missions-table{
    margin: 0 3rem;
  }

  .missions-table th, td{
    padding: .5rem;
    text-align: left;
  }
  /* --- Table End --- */

  /* Space Missions html list */
  .missions-list li{
    margin-left: 3rem;
    padding: 0.3%;
  }

  #Perseverance {
    width: 100%;
    height: auto;
    position: relative;
    margin: 1rem;
    margin-left: 5rem;
  }
  /* -----------End of Mission Page--------------- */

  /* -- Science Page -- */
  .hero-science{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Science.jfif");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  /* -- Unknown Page -- */
  .hero-unknown{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Unknown.jpg");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  /* -- Contact Page -- */

  /* -- Hero Contact Page -- */
  .hero-contact{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/Contact.png");

    width: auto;
    height: 30%;
    padding: 2rem;
    margin: 0;
    margin-top: 0;

  /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    color: white;
    text-align: center;
  }

  .contact-box1 {
    height: fit-content;
    width: 400px;
    border: 2px;
    border-radius: 20px;
    /* width: 200px;
    height: 250; */
    padding: 1.5rem;
    margin-right: 2rem;
    margin-left: 10%;
    margin-bottom: 50%;
    background-color: #fff;
    box-shadow: 3px 3px;

    /* min-height: 100vh;
    background-color: #fff;
    padding: 50px;
    text-align: center; */
  }

  .form-group {
    width: 200px; 
    height: 4rem;
    padding: 1rem; 
    
  }

  .form-group label {
    padding-bottom: 2px;
    display: block;
    /* margin-bottom: 0.5rem; */
    font-weight: 500;
    color: var(--dark);
  }

  .form-group input, textarea {
    width: 11rem;
    padding: .2rem;
    font-size: 2vh;
  }

  .contact-box1 button {
    margin-top: 4rem;
    margin-left: 2rem;
  }
  
  .contact-box2 {
    height: fit-content;
    padding-right: 2rem;
  }
/* --------- Contact Form end ----------- */

/* Media Query for Tablets (width between 600px and 1024px) */
@media (max-width: 1024px) and (min-width: 600px) {
  body {
    font-size: 14px;
  }

  header {
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 0.7rem 0;
  }

  nav {
    flex-direction: column;
  }

  nav ul {
    display: block;
    /* flex-direction: column; */
    padding: 0;
    margin: 0px 0;
    text-align: center;
    list-style: none;
  }

  nav ul li {
    display: block;
    
  }

  .hero-home, .hero-about, .hero-astro, .hero-missions, .hero-science, .hero-unknown, .hero-contact {
    height: 25%;
    padding: 1.5rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .missions-table {
    margin: 0 1rem;
    font-size: 0.9rem;
  }

  .missions-table th, .missions-table td {
    padding: 0.5rem;
  }

  /* video {
    width: 100%;
    height: auto;
  } */

  #Perseverance {
    margin: 1rem;
    margin-left: 1rem;
    padding: 1rem;
    padding-left: 2rem;
  }

  .container-about {
    width: min(1280px, 100% - 3rem);
    padding: 1rem;
    padding-bottom: 6rem;
    padding-top: 3rem;
    border-radius: 12px;
    margin: 2rem auto;
    height: 100%;
    /* border: 2px solid red; */
  }

  .box2-text{
    font-size: .9rem;
  }

  #box-1 img {
    max-height: 600px;
    padding:0%;
    max-width: 15rem;
  }

  #box-1 {
    height: 600px;
    flex: 1;
    margin: 0rem auto;
    /* margin-left: 2rem; */
    padding-left: 3rem;
    /* background-color: blue; */
  }

  #box-2 {
    height: 600px;
    flex: 2;
    margin: 0rem auto;
    /* margin-right: 1rem; */
    padding-right: 1rem;
    padding-top: 0rem;
    /* background-color: yellow; */
  }
}

/* Media Query for Phones (width below 600px) */
@media (max-width: 599px) {
  body {
    font-size: 14px;
  }

  header {
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 0.7rem 0;
  }

  nav ul {
    flex-direction: column;
    padding: 0;
    margin: 5px 0;
  }

  /* Stacking Style Nav */
  /* .nav_link, .nav_link li {
    display: block;
  } */

  .hero-home, .hero-about, .hero-astro, .hero-missions, .hero-science, .hero-unknown, .hero-contact {
    height: 20%;
    padding: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .missions-table {
    margin: 0 0.5rem;
    font-size: 0.8rem;
  }

  .missions-table th, .missions-table td {
    padding: 0.3rem;
  }

  video {
    width: 100%;
    height: auto;
  }

  #Perseverance {
    margin: 1rem;
    margin-left: 0rem;
    padding: 1rem
  }

  .container-contact {
    width: min(1280px, 100% - 3rem);
    margin: 2rem auto;
    height: 100%;
    /* border: 2px solid red; */
    padding-bottom: 19.5rem;
    height: 700px;
  }

  .contact-box1 {
    flex-direction: column;
    flex: 1;
    width: 45%;
    height: 400px;
    margin: 0 auto;
    padding: 1rem;
    /* margin-bottom: 50%; */
    background-color: #fff;
    box-shadow: 3px 3px;
  }

  .contact-box1 .form-group {
    width: 100%;
    height: 3.5rem;
    padding: 1rem;
    
  }

  .form-group label {
    padding-bottom: 2px;
    display: block;
    /* margin-bottom: 0.5rem; */
    font-weight: 500;
    color: var(--dark);
  }

  .form-group input, textarea {
    height: auto;
    width: 100%;
    padding: 0rem;
    font-size: 1.9vh;
  }

  .button-contact {
    font-size: 1.8vh;
    margin-top: 4rem;
    margin-left: 0rem;
    margin-right: 1rem;
    /* max-inline-size: 100%; */
  }

  .contact-box2 {
    flex: 1;
    height: 300px;
    margin: 1rem;
    margin-bottom: 100px;
    /* background-color: green; */
    /* padding-bottom: 1rem; */
  }

  .contact-box2 h2 p {
    font-size: 1.5rem;
    padding: 0;
    padding-top: 0;
  }

  /* .contact-box1, .contact-box2 {
    width: 95%;
    margin: 1rem auto;
  } */

  .container-about {
    width: min(1280px, 100% - 3rem);
    padding: 1rem;
    padding-bottom: 18.5rem;
    border-radius: 12px;
    margin: 1rem auto;
    height: 108vh;
    /* border: 2px solid red; */
  }

  .two-column {
    flex-direction: column;
    gap: .01rem;
  }

  #box-1 img {
    padding-top: 0;
    max-height: 250px;
    padding-left: 0;
  }

  #box-1 {
    height: 400px;
    padding: 0;
    padding-top: 0;
    margin: 0 auto;
  }

  #box-2 {
    height: 400px;
    padding: 0;
    margin: 0 auto;
  }

  .box2-text{
    font-size: .9rem;
  }

}


