/* Ensure body and html take full height */
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

.logo {
    width: 100%;  /* Adjust based on container size */
    max-width: 60px;  /* Set a reasonable max size */
    height: auto;  /* Maintain aspect ratio */
}


.custom-img {
    margin-top: 40px;
    margin-bottom: 40px;
    width: auto;   /* Changed from 100% to auto to prevent stretching */
    max-width: 200px;  /* Maximum width */
    min-width: 150px;  /* Minimum width to maintain visibility */
    height: auto;  /* Maintains aspect ratio */
    display: block; /* Removes extra space below inline images */
    margin-left: auto; /* Centers the image */
    margin-right: auto;
}
.listleft{
    text-align: left;
}

/* Align bullet points with paragraph text on about page */
ul.listleft {
    margin-left: 0 !important;
    margin-bottom: 20px;
    list-style-position: outside;
    padding-left: 1.5em;
}
ul.listleft li {
    margin-left: 0;
    padding-left: 0;
    line-height: 1.6;
    margin-bottom: 0.5em;
    font-size: 22px;
}
ul.listleft li strong {
    font-size: 1em;
    font-weight: bold;
}
ul.listleft li:last-child {
    margin-bottom: 0;
}
.footer-text {
    font-size: 16px;
    font-weight: 400;
  }

.text-center p {
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;  /* Centers the text */
    text-align: center; /* Ensures proper alignment */
    line-height: 1.6;
  }

p {
    font-size: 22px;
  }


.custom-textarea {
    width: 100% !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.responsive-text {
    font-size: 18px; /* Adjust font size as needed */
    line-height: 1.5;
    margin-bottom: 0px !important;
    margin-bottom: 40px !important;
}

.text-left{
    margin-bottom: 0px !important;
}

.custom-textarea {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}
.btn {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 30px;
    padding-right: 30px;
}

.btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000;
}
.btn-primary:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333;
}

.custom-button{
    margin-bottom: 40px !important;
}


  .responsive-text {
    font-size: 18px; /* Adjust font size as needed */
    line-height: 1.5;
    margin-bottom: 0px !important;
}

h1 {
    font-size: 48px !important;
    margin-bottom: 40px !important;
    margin-top: 40px !important;
    color: #000000 !important;
  }

  .hero-title {
    margin-top: 80px !important;
  }

  /* Homepage: position main content a bit below nav, not centered */
  .home-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(28vh - 80px);
  }
  .home-hero .text-center {
    justify-content: flex-start;
  }
  .home-hero .hero-title {
    margin-top: 0 !important;
  }
  .home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 36px; /* 1rem + 20px for extra spacing between buttons */
    justify-content: center;
    align-items: center;
  }
  .home-hero-buttons .btn {
    min-width: 140px;
  }
  .btn-hero-contact {
    background: #FFFFFF !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
  }
  .btn-hero-contact:hover {
    background: #000000 !important;
    color: #FFFFFF !important;
  }

  /* 40px spacing between buttons when stacked on mobile/tablet */
  @media (max-width: 991px) {
    .home-hero-buttons {
      gap: 0px;
    }
  }

  h2 {
    font-size: 34px !important;
    margin-bottom: 20px !important;
    margin-top: 30px;
    color: #000000;
  }

  h3 {
    text-align: left;
    font-size: 28px !important;
    margin-bottom: 0px !important;
    margin-top: 0px;
    color: #000000;
  }
  


  .submitbutton{
    margin-top: 30px !important;
  }



.contact-form-page {
    max-width: 600px; /* Optional: sets a max width for the form */
    width: 100%;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: adds a shadow */
    border-radius: 8px; /* Optional: adds rounded corners */
    background-color: #f9f9f9; /* Optional: form background */
}
/* Container for all content except footer */
.container {
    flex: 1 0 auto; /* This ensures the container takes up available space */
}

.about-page {
    padding-top: 80px;
    padding-bottom: 60px;
}

.contact-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding-top: 48px; /* spacing between nav and contact form, all breakpoints */
}

.contact-page-inner {
    width: 100%;
    max-width: 600px;
}

.contact-page-inner > h1 {
    margin-top: 0 !important;
    text-align: left;
}

.contact-page-inner .contact-form-page {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

/* Work / Case study page – typography hierarchy for all content */
.work-page {
    padding-top: 80px;
    padding-bottom: 60px;
}
.case-study-header {
    margin-bottom: 48px;
}
.case-study-title {
    font-size: 36px !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    color: #000;
}
.case-study-subtitle {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}
.case-study-meta {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}
.case-study-meta p {
    margin-bottom: 6px;
    font-size: 16px;
}
.case-study-section {
    margin-bottom: 56px;
}
.case-study-section h2 {
    font-size: 26px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    color: #000;
}
.section-subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}
.section-intro {
    margin-bottom: 24px;
}
.section-row {
    margin-bottom: 24px;
}
.section-row.align-items-start {
    align-items: flex-start;
}
.section-text,
.section-media {
    min-width: 0;
}
.case-study-section-row .section-text,
.case-study-section-row .section-text > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}
.section-text p {
    margin-bottom: 16px;
}
.section-text > h2:first-child {
    margin-top: 0 !important;
    padding-top: 0;
}
.section-media {
    margin-top: 24px;
    overflow: visible;
}
.section-media .case-study-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.image-expandable {
    cursor: pointer;
}
/* Image lightbox – expanded view */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.image-lightbox.image-lightbox-open {
    opacity: 1;
    visibility: visible;
}
.image-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    padding: 2rem;
    box-sizing: border-box;
}
.image-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10000;
}
.image-lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}
@media (min-width: 992px) {
    .case-study-section-row > .section-text,
    .case-study-section-row > .section-media {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
    }
    .section-media {
        margin-top: 0;
        padding-left: 4rem;
    }
}
.case-study-list {
    padding-left: 1.5em;
    margin-bottom: 16px;
}
.case-study-list li {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.5;
}

/* Work page only: hierarchy = title (h1) > section headings > h2 lines (subtitle under each heading) > paragraph */
.work-page .case-study-title {
    font-size: 36px !important;
}
.work-page .case-study-section > .row h2,
.work-page .case-study-section > h2 {
    font-size: 26px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;  /* tight: header to subtitle/paragraph */
}
.work-page .case-study-section .section-text {
    padding-top: 0;
}
.work-page .case-study-section .section-media {
    padding-top: 0;
}
.work-page .case-study-section {
    margin-bottom: 28px;  /* between sections (end of content to next header) */
}
/* H2 = the line below the heading (e.g. "Who cares?", "What question?", lorem under main title) */
.work-page .case-study-subtitle,
.work-page .section-subtitle,
.work-page .section-intro {
    font-size: 20px !important;
}
.work-page h3 {
    font-size: 18px !important;
}
.work-page p {
    font-size: 17px !important;
}
.work-page .case-study-meta {
    color: inherit;
}
.work-page .case-study-meta p {
    font-size: 17px !important;
}
.work-page .case-study-list li {
    font-size: 17px !important;
}

/* Work index – case study cards */
.work-index-page {
    padding-top: 80px;
    padding-bottom: 60px;
    text-align: left;
}
.work-card {
    margin-bottom: 56px;
    padding: 40px 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.work-card:last-child {
    margin-bottom: 0;
}
.work-card-title {
    font-size: 26px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    color: #000;
}
.work-card-summary {
    font-size: 17px !important;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}
.work-card-btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: inline-block;
}
.work-card-text,
.work-card-media {
    padding-top: 0;
}
.work-card-media {
    margin-top: 32px;
}
.work-card-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
@media (min-width: 992px) {
    .work-card-media {
        margin-top: 0;
        padding-left: 2rem;
    }
}

/* Same spacing rules for tablet and mobile */
@media (max-width: 991px) {
    .work-page .case-study-section > .row h2,
    .work-page .case-study-section > h2 {
        margin-bottom: 12px !important;
    }
    .work-page .case-study-section {
        margin-bottom: 28px;
    }
}

/* Consistent spacing between sections on mobile: section margin only */
@media (max-width: 767px) {
    .work-page .case-study-section {
        margin-bottom: 48px;
    }
    .work-page .case-study-section .section-row {
        margin-bottom: 0;
    }
    /* Remove last element’s margin so gap after text sections = gap after image sections */
    .work-page .case-study-section .section-text > *:last-child {
        margin-bottom: 0;
    }
    .work-page .case-study-section .section-media {
        margin-bottom: 0;
    }
}

.key-visuals-row .case-study-img {
    width: 115%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Center align only the main content containers */
.container-fluid > div, 
.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Footer styling */
.footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #000000;
    padding: 40px 0;
    margin-top: auto;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer p {
    margin: 0;
}

.footer .social-icons {
    display: flex;
    gap: 10px;
}

.footer .social-icons a img {
    width: 24px;
    height: 24px;
}


 p, ul {
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}



/* Add this rule to center the contact form */
/* Add this rule to center the contact form */
.contact-container {
    width: 50%; /* Adjust the width of the container as needed */
    margin: 0 auto; /* Center align the container */
    padding: 20px;
    background-color: #fff; /* Set background color */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add shadow */
}

.contact-form-page {
    text-align: left; /* Left align the form */
    margin: 0 auto;
    max-width: 600px; /* Adjust as needed */
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-bottom: 40px;
}

.contact-form-page label {
    display: block;
    margin-bottom: 10px;
}

.contact-form-page input[type="text"],
.contact-form-page input[type="email"],
.contact-form-page textarea {
    width: calc(100% - 22px); /* Adjust width for the border */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form-page input[type="submit"] {
    background-color: #002C5B;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form-page input[type="submit"]:hover {
    background-color: #002C5B;
}

.custom-button {
    background-color: #000000;
    border: 1px solid #000000;
    color: #fff;
    padding: 10px 20px; /* Adjust padding as needed */
    border-radius: 5px; /* Add rounded corners */
    cursor: pointer; /* Change cursor to indicate interactivity */
    transition: background-color 0.3s, color 0.3s; /* Add smooth transition effect */
    margin-right: 30px; 
    margin-bottom: 40px;
    margin-top: 30px; 
}



.btn {
    margin-bottom: 40px !important;
    margin-top: 40px !important; 
}
.work-card .work-card-btn {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/* Add this rule for the top padding of videos */
.embed-responsive iframe {
    padding-top: 20px;
}

.text-container {
    text-align: left;
    margin-bottom: 20px; /* Adjust margin as needed */
}

/* Add this rule for the responsive paragraph of text */
.responsive-text {
    font-size: 16px; /* Adjust font size as needed */
    line-height: 1.5;
}

.audio-container {
    text-align: left;
    padding: 10px;
}

.overlay-content {
    text-align: left;
}

.overlay-content h1 {
    margin-bottom: 10px;
    margin-top: 100px;
}

.overlay-content h3 {
    margin-bottom: 10px;
    margin-top: 25px;
}

.overlay-content button {
    margin-top: 25px; /* Adjust margin as needed */
}

/* Add this rule to style the img element */
img {
    max-width: 100%;
    height: auto;
    display: block; /* To remove extra space below inline images */
    margin: 0 auto; /* To center the image horizontally */
}




/* Navbar styles */
.navbar {
    padding: 20px 20px; 
    background-color: #fff; /* Set your desired background color */
}

.navbar-brand img {
    margin-right: 10px;
}

/* Navbar link styles */
.navbar-nav {
    margin: 0; /* Remove margin from navbar items */
}

.navbar-nav .nav-link {
    color: #000; /* Set your desired color */
    margin: 0; /* Remove margin from navbar links */
}

.navbar-nav .nav-link:hover {
    color: #007bff; /* Set your desired hover color */
}

/* Navbar dropdown styles */
.dropdown-menu {
    background-color: #fff; /* Set your desired background color */
    border: 1px solid #ddd; /* Set your desired border color */
}

/* Common styles for background containers */
.background-container,
.container-api,
.footer {
    text-align: center;
}
.footer .social-icons {
    text-align: center;
}
.social-icons {
    text-align: left;
}

/* Background container styles */
.background-container {
    position: relative;
    width: 100vw; /* Use 100vw for the full width of the viewport */
    min-height: 100vh; /* Set the minimum height to cover the entire viewport */
    margin-bottom: 0;
    padding: 20px;
    
    background-position: center;
    background-size: cover; /* Ensure the background image scales responsively */
    display: flex;
    justify-content: center;
    align-items: center; /* Center the content vertically */
}

.background-container h1,
.background-container h3,
.background-container p {
    margin-bottom: 10px;
}
/* Style the button on hover */
.custom-button:hover {
    background-color: #001A35; /* Change background color on hover */
    color: #fff; /* Change text color on hover */
}

/* Style the collapsed state of the content */
#readMoreText {
    display: none; /* Hide the content by default */
}

/* Add this rule to style the Galactic Center Sonification section container */
#galacticCenterContainer {
    background-color: #2D2F31; /* Set black background color */
    color: #fff; /* Set white text color */
    margin-bottom: 0; /* Remove margin bottom for the section container */
    padding: 40px 0; /* Add padding to the top and bottom of the section container */
}

#galacticCenterContent {
    padding: 40px;
}

#galacticCenterContent .col-md-6 {
    padding-right: 50px; /* Adjust padding as needed */
}

#galacticCenterContent .col-md-6:last-child {
    padding-left: 0px; /* Adjust padding as needed */
}



@media (max-width: 394px) {
    p, ul {
        margin-top: 0px;
        margin-bottom: 20px;
        padding-left: 0;
    }
    p,
    ul.listleft li,
    ul.listleft li strong,
    .responsive-text,
    .text-center p,
    .contact-form-page,
    .contact-form-page label,
    .contact-form-page input,
    .contact-form-page textarea {
        font-size: 16px;
    }
    .custom-img {
        max-width: 150px;  /* Slightly smaller on mobile */
        min-width: 100px;
    }
    .footer-text {
        font-size: 12px;
      }

    .custom-textarea {
        width: 100% !important;
        margin-bottom: 0px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    
    .btn {
        margin-bottom: 20px !important;
        margin-top: 20px !important; 
        padding: 15px;
        margin-right: 0px !important;
    }

    .btn-primary{
        color: #ffffff !important;
        background-color: #000000;
        border: #000000;
        margin-right: 0px !important; 
    }

    .custom-button{
        margin-bottom: 20px !important;
        margin-right: 0px;
    }
    
    .full-width-mobile {
        display: block;
        width: 100%;
        margin-bottom: 0px; /* Add margin if you need spacing between buttons */
      }
  
      .text-left{
        margin-bottom: 20px !important;
        margin-top: 20px !important;
      }
      .responsive-text {
        font-size: 16px; /* Adjust font size as needed */
        line-height: 1.5;
        margin-bottom: 20px !important;
    }

    h1 {
        font-size: 38px !important;
        margin-bottom: 20px !important;
        margin-top: 20px !important;
        color: #000000 !important;
      }
    
      h2 {
        font-size: 21px !important;
        margin-bottom: 20px !important;
        margin-top: 0px;
        color: #000000;
      }

      h3 {
        text-align: left;
        font-size: 18px !important;
        margin-bottom: 10px !important;
        margin-top: 0px;
        color: #000000;
      }
      
    
}
@media (min-width: 394px) and (max-width: 768px) {
    p, ul {
        margin-top: 0px;
        margin-bottom: 20px;
        padding-left: 0;
    }
    p,
    ul.listleft li,
    ul.listleft li strong,
    .responsive-text,
    .text-center p,
    .contact-form-page,
    .contact-form-page label,
    .contact-form-page input,
    .contact-form-page textarea {
        font-size: 18px;
    }
    .footer-text {
        font-size: 14px;
      }
    
    .custom-textarea {
        width: 100% !important;
        margin-bottom: 0px;
    }
    .btn {
        margin-bottom: 20px !important;
        margin-top: 0px !important; 
        padding: 15px;
    }

    .btn-primary{
        color: #ffffff !important;
        background-color: #000000;
        border: #000000;
    }

    .custom-button{
        margin-bottom: 20px !important;
    }
    
    .full-width-mobile {
        display: block;
        width: 100%;
        margin-bottom: 0px; /* Add margin if you need spacing between buttons */
      }
  

      .responsive-text {
        font-size: 16px; /* Adjust font size as needed */
        line-height: 1.5;
        margin-bottom: 20px !important;
    }

    h1 {
        font-size: 41px !important;
        margin-bottom: 20px !important;
        margin-top: 20px !important;
        color: #000000 !important;
      }
    
      h2 {
        font-size: 23px !important;
        margin-bottom: 20px !important;
        margin-top: 0px;
        color: #000000;
      }

      h3 {
        text-align: left;
        font-size: 20px !important;
        margin-bottom: 10px !important;
        margin-top: 0px;
        color: #000000;
      }
      
      

    
/* Add a class to the body element of your contact page */
.contact-page {
    background-color: #f2f2f2; /* Set background color */
}



    .submitbutton{
        margin-top: 60px !important;
      }
    .custom-img {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .custom-textarea {
        padding-bottom: 0px !important;
        margin-bottom: 0px !important;
    }
    .btn {
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 30px !important;
        padding-right: 30px !important;
        margin-top: 0px !important; 
    }

    .btn-primary{
        margin-right: 20px !important;
        color: #ffffff !important;
        background-color: #000000;
        border: #000000;
    }

    .custom-button{
        margin-bottom: 40px;
    }
    

      .responsive-text {
        font-size: 18px; /* Adjust font size as needed */
        line-height: 1.5;
        margin-bottom: 0px !important;
        margin-top: 40px !important;
    }

    .text-left{
        margin-bottom: 40px !important;
        margin-top: 40px !important;
    }

}

  
    