/********************************************************************************************/
/************************************** MAIN PAGE LEFT SECTION **********************************************/
/********************************************************************************************/


.hero {
  background: url("../images/callforpaperbg.jpg") center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  position: relative;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Dark overlay */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin-left: 13rem; /* Keep this or adjust if needed */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.25rem;
}

.button-container {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
}

.hero-btn {
  background-color: var(--orange);
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s; /* Add transform to transition */
  width: fit-content;
  transform-origin: center; /* Keeps the scale effect centered */
}

.hero-btn:hover {
  background-color: var(--blue);
  transform: scale(1.05);
}

/* Updated Styling */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-grid, .dates-grid {
  flex: 1 1 45%;
  background-color: rgba(0, 0, 0, 0.3); /* Light transparent background */
  padding: 1rem;
  border-radius: 8px;
}

.scope h3, .submit h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.scope ul {
  list-style: disc inside;
  padding-left: 1rem;
}

.scope ul li {
  margin-bottom: 0.5rem;
}

.submit p {
  margin-bottom: 0.5rem;
  font-size: 1rem;

}


/* Reduce margin on smaller screens */
@media (max-width: 768px) {
  .hero-content {
    margin-left: 0;
    padding: 0 1rem;
  }

  .row {
    flex-direction: column;
    align-items: center; /* Ensures the content is centered */
  }

  .hero-grid, .dates-grid {
    flex: 1 1 100%;
  }
}

/********************Linear Wrapper *********************/

.content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* this is critical */
  gap: 0.2rem;
  height: auto;
}


/******************* Main Left Section *****************/
.main-content {
  flex: 3;
  background-color: #f1f8f5;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  margin-left: 4rem;
  padding: 2rem;
}

.main-content h2 {
  margin-top: 1rem;
  color: var(--orange);
}

.main-content ul {
  list-style-type: none;
  padding-left: 0;
}

.main-content li {
  margin-bottom: 0.5rem;
}



/******************* Main Content *************************/

@media (max-width: 768px) {
  .main-content {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .sidebar section {
    width: 100%;
  }
}



/************************ Sidebar **************************/

.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0 1.5rem; /* no margin-top */
  padding: 0;
}

.sidebar section {
  background-color: #f1f8f5;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0; /* Remove margin-bottom to align vertically */
}

.sidebar-card {
  background-color: #f1f8f5;
  padding: 2rem;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/************************************ Common Utility Classes ********************************/

.card {
  display: flex;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border-left: 4px solid #00695c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-thumbnail {
  object-fit: cover;
  border-radius: 8px;
}

.card-info {
  padding: 1rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.card-meta,
.card-author {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.card-meta {
  font-size: 0.75rem;
  color: var(--dark);
}

.card-excerpt {
  font-size: 0.875rem;
  color: #424242;
  margin-bottom: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-thumbnail {
    width: 100%;
    height: auto;
  }

  .card-info {
    padding: 1rem;
  }
}


/************************************ Paper List Styling ********************************/

.paper-card {
  justify-content: center;
  align-items: center;
}

.paper-thumbnail {
  width: 120px;
  height: 120px;
  margin: 2rem;
}

.paper-title {
  color: var(--orange);
  transition: color 0.3s ease;
}

.paper-title:hover {
  color: var(--blue);
}


/************************************ News & Blog Styling ********************************/

.news-blog-section {
  padding: 2rem 90px;
  background-color: var(--beige);
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #004d40;
}

.news-blog-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
}

.news-thumb {
  width: 150px;
  height: auto;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.news-title:hover {
  color: var(--blue);
}

.news-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-excerpt {
  font-size: 1rem;
  color: var(--dark);
}

.read-more {
  color: #0d87a3;
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}







@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: center;
  }

  .news-thumb {
    width: 100%;
    max-width: 300px;
  }

  .news-content {
    text-align: center;
  }
}





@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .main-content {
    padding: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .sidebar {
    margin: 1rem 0;
    align-items: center;
  }

  .sidebar section, .sidebar-card {
    width: 95%;
  }

  .row {
    gap: 1rem;
  }

  .hero-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .button-container {
    position: static;
    margin-top: 1rem;
    text-align: center;
  }
}
