/* NUBRI Website Styles */

:root {
  --logo-orange: #EA7926;
  --logo-blue: #2C3A8E;
  --secondary-bg: #D67028;
  --logo-orange-light: #f5c4a3;
  --logo-blue-light: #b3b8d9;
  --secondary-bg-light: #f2c7b0;
  --white: #ffffff;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: flex-start; /* Align items from the start */
  align-items: center;
  padding: 10px 15px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 20px; /* Add some space between logo and nav */
}

.logo img {
  max-height: 60px;
}

.logo-text {
  margin-left: 10px;
}

.logo-text h1 {
  font-size: 1.2rem;
  color: var(--logo-blue);
  margin: 0;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--logo-orange);
  margin: 0;
}

/* Navigation */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--logo-blue);
  margin-left: auto; /* Push toggle button to the right */
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.main-nav.active {
  max-height: 500px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.nav-list {
  list-style: none;
}

.nav-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-list li a {
  display: block;
  padding: 15px;
  color: var(--logo-blue);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: var(--logo-blue-light);
  color: var(--white);
}

/* Main Content */
main {
  margin-top: 120px; /* Increased from 80px to add more vertical space */
  min-height: calc(100vh - 120px - 60px); /* Viewport height minus header and footer */
  display: flex;
  flex-direction: column;
}

.hero {
  background-color: var(--white);
  padding: 30px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  color: var(--logo-blue);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.hero p {
  color: var(--black);
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: var(--logo-orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-bg);
}

.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  color: var(--logo-blue);
  margin-bottom: 30px;
}

.card {
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-title {
  color: var(--logo-blue);
  margin-bottom: 10px;
}

.card-text {
  margin-bottom: 15px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature {
  text-align: center;
  padding: 20px;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--logo-orange);
  margin-bottom: 15px;
}

.feature-title {
  color: var(--logo-blue);
  margin-bottom: 10px;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-img {
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
}

.about-text {
  text-align: center;
}

/* Courses Section */
.courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--logo-blue);
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

textarea.form-control {
  height: 150px;
}

/* Footer */
footer {
  background-color: var(--logo-blue);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  color: var(--white);
  margin: 0 10px;
  font-size: 1.2rem;
}

.footer-nav {
  margin-bottom: 15px;
}

.footer-nav a {
  color: var(--white);
  margin: 0 10px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

/* Programs Page Styles */
.program-card {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.program-header {
    padding: 20px;
    background-color: var(--logo-blue);
    color: var(--white);
}

.program-body {
    padding: 20px;
}

.program-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.program-meta-item {
    margin-right: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.program-meta-item i {
    margin-right: 5px;
    color: var(--logo-orange);
}

.course-list {
    list-style-type: none;
    padding-left: 0;
}

.course-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.course-list li:last-child {
    border-bottom: none;
}

.accordion {
    margin-bottom: 10px;
}

.accordion-header {
    background-color: var(--logo-blue-light);
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h4 {
    margin: 0;
    color: var(--logo-blue);
}

.accordion-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.accordion-content.active {
    max-height: 500px;
    padding: 15px;
}

.tab-container {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--logo-blue-light);
}

.tab-btn {
    padding: 10px 15px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    color: var(--logo-blue);
}

.tab-btn.active {
    background-color: var(--logo-blue);
    color: var(--white);
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: var(--white);
    border-radius: 0 0 5px 5px;
}

.tab-content.active {
    display: block;
}

/* Courses Page Styles */
.course-card {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.course-header {
    padding: 20px;
    background-color: var(--logo-blue);
    color: var(--white);
}

.course-body {
    padding: 20px;
}

.course-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.course-meta-item {
    margin-right: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.course-meta-item i {
    margin-right: 5px;
    color: var(--logo-orange);
}

.workshop-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  .header-container {
    justify-content: flex-start; /* Ensure logo stays left on larger screens */
  }
  
  .logo {
    margin-right: 30px; /* More space between logo and nav on larger screens */
  }
  
  .nav-toggle {
    display: none;
  }
  
  .main-nav {
    position: static;
    max-height: none;
    overflow: visible;
    margin-left: auto; /* Push nav to the right on larger screens */
  }
  
  .nav-list {
    display: flex;
  }
  
  .nav-list li {
    border-bottom: none;
  }
  
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-content {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  
  .about-img {
    margin-right: 30px;
    margin-bottom: 0;
  }
  
  .about-text {
    text-align: left;
  }
  
  .courses {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .workshop-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .courses {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .workshop-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Research Page Styles */
.research-card {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.research-header {
    padding: 20px;
    background-color: var(--logo-blue);
    color: var(--white);
}

.research-body {
    padding: 20px;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.research-meta-item {
    margin-right: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.research-meta-item i {
    margin-right: 5px;
    color: var(--logo-orange);
}

.publication-list {
    list-style-type: none;
    padding-left: 0;
}

.publication-list li {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--logo-orange);
    border-radius: 0 5px 5px 0;
}

.publication-list li:last-child {
    margin-bottom: 0;
}

.publication-title {
    font-weight: bold;
    color: var(--logo-blue);
    margin-bottom: 5px;
}

.publication-authors {
    font-style: italic;
    margin-bottom: 5px;
}

.publication-journal {
    color: #666;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 15px;
    margin: 5px;
    background-color: var(--white);
    border: 1px solid var(--logo-blue);
    border-radius: 20px;
    cursor: pointer;
    color: var(--logo-blue);
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--logo-blue);
    color: var(--white);
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-card {
    padding: 20px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--logo-orange);
    margin-bottom: 15px;
}

.contact-title {
    font-size: 1.2rem;
    color: var(--logo-blue);
    margin-bottom: 10px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--logo-blue);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    color: var(--logo-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 10px;
    display: none;
}

.faq-answer.active {
    display: block;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Additional Contact Page Styles */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.faq-answer {
    display: none;
    padding-left: 15px;
    border-left: 3px solid var(--logo-orange);
    margin-top: 10px;
}

.departments {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.department-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.department-title {
    color: var(--logo-blue);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--logo-orange);
    padding-bottom: 5px;
}

@media (min-width: 768px) {
    .departments {
        grid-template-columns: repeat(2, 1fr);
    }
}
