/*Header styling */
#header-landing {
    background-color: #2E5464;
    margin-top: -1px;
}

#landing-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 9rem;
    
}

.header-logo-landing {
    height: 90%;
    width: 90%;
    color: white;
}

#svgTopics {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    background-color: #F8F8F8;
    padding: 6rem 2rem;
}

.svg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 70rem;
}

.svg-flex {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.svg-featured-item-box {
    height: 20rem;
}

.svg-featured-item {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex: 1;
    padding: 0 2rem;
    font-family: CentraleSansBook, Helvetica, Arial, sans-serif;
    text-align: center;
    border: 2px solid #F8F8F8;
    border-radius: 12px;
    background-color: white;
}

.svg-featured-item h3 {
    font-size: 1.5rem;
}

.svg-featured-item p {
    font-size: 1rem;
    font-weight: 100;
    color: #C3C4C4;
}

.featured-icons {
    font-size: 3rem;
    color: #2E5464;
}

.featured-item-link {
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3em;
    transition: transform 0.2s ease; 
}

.featured-item-link:hover {
    color: black;
    transform: scale(1.05); 
    text-decoration: none; 
}

.featured-item-link i {
    padding-top: 3px;
}

.svg-casestudy-item {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex: 1;
    height: 24rem;
    border: 2px solid #e5e7e7;
    border-radius: 12px;
    padding: 0 1.5rem;
    background-color: #E8EBEC;
}

.casestudy-file-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4rem;
    width: 4rem;
    border: 2px solid #E8EBEC;
    border-radius: 12px;
    background-color: white;
}

.casestudy-file-box i {
    font-size: 2rem;
    color: #1d1d1d;
}

.casestudy-info p {
    font-size: 1rem;
    font-weight: 100;
    color: #C3C4C4;
}

.casestudy-title-box {
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    padding: 0.2em 0.6em; 
    border-radius: 12px;
    border: 2px solid #E8EBEC;
    background-color: #6A8B32;
}


.casestudy-title-box h4 {
    font-size: 0.8rem;
    color: white;
    margin: 0;
}

#svgTopics .svg-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
    text-align: left;
}

#more-topics {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem; /* match .search-layout */
  }
  

  .svg-section-three {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 750px;    /* was 70rem */
    margin: 0 auto;
  }

.svg-grid-wrap{
    grid-template-columns: 1fr repeat(3, 12rem) 1fr;  /* was: repeat(3, 12rem) */
    row-gap: 0;                                       /* keep no gap between chip & rule */
  }

  /* square label (no rounding), positioned at column 1 */
/* place the chip in front of the first card column (col 2) */
.svg-section-chip{
    grid-column: 2;              /* align with first card */
    justify-self: start;
    display: inline-block;
    padding: .5rem .9rem;
    background: #2E5464;         /* solid background */
    color: #fff;
    font-weight: 700;
    border-radius: 0;            /* square */
    line-height: 1.1;
  }
  
  /* rule: full-bleed across the screen, not limited by the grid */
  .svg-section-rule{
    height: 2px;
    background: #2E5464;
    width: 100vw;                         /* span entire viewport */
    margin-left: calc(50% - 50vw);        /* center relative to viewport */
  }

  /* restore space between the rule and the boxes (but none between chip & rule) */
.svg-grid-wrap > .svg-grid{
    grid-column: 2 / 5;                                /* cards stay on columns 2–4 */
    margin-top: 2rem;                                  /* gap under the rule */
  }

.svg-section-titles {
    font-size: 2rem;
}

.svg-section-block {
    width: 100%;
}

.svg-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .svg-section-header::before,
  .svg-section-header::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #2E5464;
  }
  
  .svg-section-header > span {
    background: #2E5464;
    color: #fff;
    padding: .5rem 1rem;
    font-weight: 700;
    border-radius: .35rem;
    letter-spacing: .02em;
  }

/* the grids */
.svg-grid{
    grid-column: 1 / -1;
    display:grid;
    grid-template-columns: repeat(3, 12rem);
    column-gap: 4rem;
    row-gap: 3rem;
    justify-content:start;
  }
  
  /* tiles become a single clickable card */
  .svg-grid-item {
    text-decoration: none;
    transition: transform 0.2s ease;
    text-align: left;
  }
  
  .svg-grid-item:hover { transform: scale(1.05); }

.svg-grid-item-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 12px;
}

/* card: icon box + title bar (one element visually) */
.svg-card { display: inline-flex; flex-direction: column; align-items: stretch; }

.svg-card-icon {
  height: 8rem;
  width: 12rem;
  border: 2px solid #2E5464;
  border-bottom: none;                 /* connects to the title bar */
  border-radius: 12px 12px 0 0;        /* rounded top only */
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-card-title{
    width: 12rem;
    background: #2E5464;
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: .4rem .75rem;
    border: 2px solid #2E5464;
    border-top: none;
    border-radius: 0 0 12px 12px;
  
    /* NEW: lock the title bar height so 1–2 lines look identical */
    height: 3.6rem;              /* fits up to 2 lines */
    box-sizing: border-box;      /* include borders in that height */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
  }


.svg-grid-item-logo {
    font-size: 3.2rem;
    color: #2E5464;
    line-height: 1;
}

.svg-grid-item-title {
    color: black;
    font-size: 1.2rem;
}

.svg-grid-item-info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
}

.svg-grid-item-info {
    color: #717375;
    font-size: 1rem;
    margin: 0;
}

.landingpage-view-all-btn {
    padding: 1rem 2rem;           
    border: 2px solid #000;      
    border-radius: 12px;         
    background-color: #fff;       
    color: #000;              
    font-size: 1rem;            
    font-weight: 500;            
    cursor: pointer;              
    transition: transform 0.2s ease;    
}

.landingpage-view-all-btn:hover {
    transform: scale(1.05); 
    text-decoration: none;         
}


/* Outer layout: flex row for content + button */

.search-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top first */
    gap: 2rem;
    flex-wrap: wrap;
    /* Stack on smaller screens */
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}


/* Left block: stacked vertically */

.search-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 750px;
}

.search-content {
    position: relative;
    overflow: visible;
    /* Allow dropdown to be fully seen */
    z-index: 1;

}


/* Logo */

.search-logo {
    max-width: 500px;
    width: 270px;
    height: 130px;
    border-radius: 20px;
    background: white;
}


/* Search bar */

.filter-row-search-input {
    position: relative;
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
}

#filter-search-search-input {
    width: 100%;
    height: 100%;
    padding: 0 1rem 0 4rem;
    font-size: 1rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #1e4b78;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* Search icon */

.search-icon {
    position: absolute;
    left: 1rem;
    font-size: 2rem;
    color: #666;
    pointer-events: none;
}


/* Caption */

.search-caption {
    text-align: center;
    color: white;
    font-style: italic;
    margin-top: 1rem;     /* spacing under the search bar */
    text-align: left;
    transform:translateX(50%);
}

.tutorial-button-wrapper {
    display: flex;
    align-items: center;
    /* aligns to search bar */
    height: 3rem;
    /* same height as search bar */
    margin-left: 1rem;
    margin-top: 17.5rem;
}


/* Optional: slightly tweak the button itself */

.btn-dashboard {
    display: flex;
    align-items: center;
    height: 3rem;
    white-space: nowrap;
    font-size: 1rem;
}

.top-menu-bar {
    display: flex;
    justify-content: space-between;
    height: 7.5rem;
    width: 100%;
    /* Light gray bar */
    padding: 2rem 7rem;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 35rem;
}

.menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

.menu-item a {
    font-size: 1.2rem;
    /* Adjust icon size */
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
}

.header-logo-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-radius: 10px;
    background-color: #334F5D;
}

.header-box-icon {
    font-size: 1.2rem;
    color: white;
}

/* Live search styling */

.live-search-wrapper {
    position: relative;
    width: 100%;
    height: 3.5rem;
    display: flex;
    align-items: center;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #1e4b78;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#live-item-search {
    width: 100%;
    height: 100%;
    padding: 0 0 0 4rem;
    font-size: 1rem;
    background: none;
}

.live-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.5rem;
    color: #666;
    pointer-events: none;
    z-index: 2;
}

#landing-explore-button {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #000; 
    color: #fff;
    margin-right: 0.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    height: 2.5rem;
    width: 17rem;
}

#landing-explore-button:hover {
    background-color: #222; 
}

#landing-explore-button a {
    width: 1em;
    height: 1em;
    fill: currentColor; 
}

#live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#live-search-results .result-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
    color: #1e4b78;
}

#live-search-results .result-item:hover {
    background-color: #f0f0f0;
}


#advanced-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#advanced-search-results .result-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
    color: #1e4b78;
}

#advanced-search-results .result-item:hover {
    background-color: #f0f0f0;
}

/*Contact info*/

#landingpage-contact {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    background-color: #2E5464;
    padding: 6rem 2rem;
}

.landingpage-contact-title {
    color: white;
}

#landingpage-contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 6rem;
    min-height: 35rem;
    width: 70rem;
}

.landingpage-contact-box {
    flex: 1;
}

.landingpage-contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: stretch;
    height: 35rem;
}

.landingpage-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 10rem;
}

.landingpage-info-title {
    font-size: 1.8rem;
    color: white;
}

.landingpage-info-text {
    font-size: 1.1rem;
    color: white;
}

.landingpage-contacts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landingpage-contact-boxes {
    height: 7rem;
}

.landinpage-info-link {
    color: white;
    text-decoration: underline;
    transition: transform 0.2s ease; 
}

.landinpage-info-link:hover {
    font-size: 1.05em;
    color: white;     
}

.landingpage-contact-boxes {
    display: flex;
    gap: 1rem;
}

.contact-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    width: 3rem;
    border-radius: 12px;
    background-color: white;
}

.contact-logo {
    font-size: 1.2rem;
    color: #282D31;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info-box p {
    margin: 0;
}

.contact-info-topic {
    font-size: 0.8rem;
    color: #A3B3BB;
}

.contact-information {
    color: white;
}

.landingpage-contact-form-box {
    border-radius: 12px;
    background-color: white;
}

.landingpage-form-container {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.landingpage-form-container h2 {
    margin: 0;
    font-size: 1.5rem;
}

.landingpage-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.landingpage-form-group label {
    font-size: 0.9rem;
    font-weight: bold;
}

.landingpage-form-group input,
.landingpage-form-group select,
.landingpage-form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8f9fa;
}

.landingpage-form-group textarea {
    resize: none;
    min-height: 7rem;
}

.landingpage-form-submit {
    display: flex;
    justify-content: center;
}

.landingpage-form-submit button {
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.9rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.landingpage-form-submit button:hover {
    background: #222;
}

/* FOOTER STYLING */
#footerLanding{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #E3E3E3;
    height: 4rem;
    padding: 0px 10px;
    margin-top: 0;
    background-color: #EBEBEB;
}

.landing-footer-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 10rem;
    width: 30rem;
}

.landing-footer-address {
    color: #6D6F70;
    margin: 0;
}

.landing-disclaimercall {
    color: black;
    cursor: pointer;
}

.landing-footer-email {
    color: black !important;
    text-decoration: underline !important;
}

.landing-footer-dash {
    color: #6D6F70;
    margin: 0;
}

.landing-footer-logo-box {
    display: flex;
    align-items: center;
    height: 100%;
    width: 10rem !important;
    margin-left: 0 !important;
    margin-right: 10rem !important;
}

.landing-footer-logo {
    height: 70%;
    width: 100%;
}

/* ==== Search Modal sizing & internal layout ==== */
#searchModal{
    /* keep your existing overlay styles; these ensure it never exceeds screen */
    position: fixed; inset: 0;
    display: flex;                     /* center the content */
    justify-content: center;
    align-items: flex-start;           /* header always visible */
    padding: 24px 16px;                /* breathing space around modal */
    box-sizing: border-box;
    overflow: hidden;                  /* page never scrolls because of modal */
  }
  
  #searchModal.hidden{ display: none !important; } /* preserve your toggle class */
  
  /* Main modal box */
  #searchModal .search-modal-content{
    width: min(1200px, 95vw);          /* consistent width on most screens */
    max-height: 88vh;                  /* *** key constraint *** */
    display: flex;
    flex-direction: column;            /* header -> results -> pagination */
    overflow: hidden;                  /* only inner area scrolls */
    border-radius: 12px;               /* keep your rounding if any */
  }
  
  /* If you have a header element inside the modal, it should not shrink */
  #searchModal .search-modal-header{ flex: 0 0 auto; }
  
  /* Results list: fills remaining space and is the only scroll area */
  #searchResults{
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px 16px 8px;            /* space above pagination */
  }
  
  /* Keep pagination always visible inside the modal */
  #modalPagination{
    flex: 0 0 auto;
    padding: 12px 16px 16px;
    background: #fff;                  /* ensures it doesn’t “slide under” results */
    border-top: 1px solid #eee;
  }
  