/* Import Nunito font from Google Fonts - matching Angular app */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400&display=swap');

/* Color Variables from Angular variables.less */
:root {
    --oa-orange: #FF5722;
    --oa-orange-primary: #ea4f00;
    --text-primary-color: #707070;
    --link-primary-color: #1289F1;
    --background-woodgrain: #FFF9F0;
}

/* Global Styles */
html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: Nunito, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles - Exact Angular Match */
.app-header {
    width: 100%;
    position: relative;
    color: #332525;
}

.app-header nav.main {
    z-index: 1001;
    color: #fff !important;
    border: none;
    background-color: #000;
    font-size: 1.1em;
}

.app-header .navbar {
    margin-bottom: 0px !important;
    padding: 0 10px 0 0;
}

.app-header .navbar-brand {
    padding: 12px 10px;
    border-right: solid 1px #311902; 
}

.navbar-custom {
    color: #332525;
    border-radius: 0;
}

.navbar-custom .navbar-nav > li > a {
    color: #FF5722;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 1em;
    padding: 1em;
}     

.navbar-custom .navbar-nav > .active > a {
    color: #FF5722;
    background-color: transparent;
}

.navbar-custom .navbar-nav > li > a:hover {
    text-decoration: underline;
}

.navbar-custom .navbar-nav > li > a:visited {
    color: #FF5722;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus,
.navbar-custom .navbar-nav > .active > a:hover,
.navbar-custom .navbar-nav > .active > a:focus,
.navbar-custom .navbar-nav > .open > a {
    background-color: transparent;
}

.navbar-custom .navbar-brand {
    color: #000;
}

.navbar-custom .navbar-toggle {
    background-color: #000;    
    border: none;
    display: flex;      
    flex-direction: column; 
    gap: 5px; 
    margin: 0 -1rem 0 0;
}

@media(min-width: 990px) {
    .navbar-custom .navbar-toggle {
        display: none;
    }
}

.navbar-custom .icon-bar {
    background-color: #ea4f00;
    height: 4px;
    width: 30px;
}

.navbar-custom button:active {
    background-color: #ffffff;
}

.app-header .navbar-collapse {
    flex-grow: 0;
}

.app-header .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media(min-width: 990px) {
    .app-header .navbar-header {
        width: fit-content;
    }
}

/* Header logo styling */
.app-header .logo-image {
    width: 125px;
    cursor: pointer;
}

@media(max-width: 400px) {
    .app-header .logo-image {
        margin: 0 0 0 -1rem;
    }
}

.mobile-only {
    color: #FF5722;
}

@media(min-width: 992px) {
    .mobile-only {
        display: none;
    }
}

.nav-align {
    align-items: center;
}

/* Home Page Styles - Exact Angular Match */
.home {
    flex: 1;
}

.background-woodgrain {
    background-color: #FFF9F0;
}

.divider {
    height: 2px;
    background-color: #faf7f5;
}

@media (min-width: 769px) {
    .divider {
        margin: 2em 0;
    }
}

button {
    font-size: 16px;
    font-weight: 700;
}

/* Background Carousel - Exact Angular Match */
.background-carousel {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    width: 100%;
    position: relative;
}

/* Mobile-specific positioning - ome for 768x1024 mobile images */
@media (max-width: 768px) {
    .background-carousel {
        background-position: top center;
        background-size: cover;
    }
}

/* Desktop positioning - home for 1920x1080 desktop images */
@media (min-width: 769px) {
    .background-carousel {
        background-position: top center;
        background-size: cover;
    }
}

.header-img-container {
    height: 800px;
    display: block;
    align-items: center;
    justify-content: center;
}

/* Reduce carousel height on mobile to make YouTube video visible */
@media (max-width: 768px) {
    .header-img-container {
        height: 650px;
    }

}




/* Large centered logo styling */
.home .logo-image {
    display: none;
    max-width: 600px;
    padding: 5rem;
}

@media (min-width: 769px) {
    .home .logo-image {
        display: block;
        margin: auto;    
    }
}



/* Relative Container - Exact Angular Match */
.relative-container {
    position: relative;
    margin: -500px 0 0;
}

@media (min-width: 769px) {
    .relative-container {
        margin: -650px 0 0;
    }
}

.curated-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;  
    z-index: -1;
}

.title-tabs-container {
    margin: -620px auto 0;
    text-align: center;
}

@media (min-width: 769px) {
    .title-tabs-container {
        margin: -500px auto 0;
    }
}

/* Add extra top padding on iPhone to prevent navbar overlap */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .title-tabs-container {
            padding-top: 40px;
        }
    }
}

/* Title Tagline - Exact Angular Match */
.heading-des {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 
                 2px 2px 4px rgba(0, 0, 0, 0.9),
                 0 0 16px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(2px);
    display: inline-block;
}

@media(min-width: 768px) and (max-width: 1024px) {
    .heading-des {
        font-size: 2rem;
    }
}

@media(min-width: 1025px) {
    .heading-des {
        font-size: 1.8rem;
        margin: 0 150px;
    }
}

/* New Search Home Component Styles */
.new-search-home {
    margin: 1rem 0;
    color: white;
    text-align: center;
}

.new-search-home p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    margin: 1rem 0;
}

.us-map-container {
    /*background: rgba(255, 255, 255, 0.9);*/
    background-color: transparent;
    padding: 2rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    color: #333;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999;
}

.ai-search-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.ai-search-link:hover {
    color: var(--oa-orange);
}

#search-message {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1rem;
}

/* Search Input Styles */
.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto 1rem;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 4px;
    font-size: 16px;
    width: 300px;
    height: 36px;
    display: inline-block;
}

.search-input:focus {
    outline: none;
    border-color: var(--oa-orange-primary);
}

.btn-search {
    background-color: var(--oa-orange-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-search:hover {
    background-color: var(--oa-orange);
}

/* Button Styles - Matching Angular */
.btn-primary {
    background-color: var(--oa-orange-primary);
    border-color: var(--oa-orange-primary);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.btn-primary:hover {
    background-color: var(--oa-orange);
    border-color: var(--oa-orange);
    color: white;
    text-decoration: none;
}

/* How OA Works */
.how-oa-container {
  background-color: #FFF9F0;
  width: 100vw;
  padding: 2rem;

  
}

@media (min-width: 769px) {
  .how-oa-container {
    gap: 5rem;
  }
}

.video-player {
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .video-player iframe {
    width: 80rem;
    height: 50rem;
    border-radius: 25px;
    box-shadow: 0px 4px 13px rgba(145, 141, 141, 0.25);
  }

@media (max-width: 769px) {
  .video-player iframe {
    gap: 5rem;
    height: 30rem;
  }
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 5rem;
  margin-top: 3rem;
}

@media (min-width: 769px) {
  .steps-container {
    gap: 4rem;
  }
}

.step-tab {
  border-radius: 10px 10px 0 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background-color: #ea4f00;
  color: #ffffff;
  height: 25px;
  width: 70px;
  margin-left: 2rem;
  text-align: center;
  padding: 5px;
}

@media (min-width: 769px) {
  .step-tab {
    font-size: 1.8rem;
    margin-left: 4rem;
    height: 45px;
    width: 130px;
  }
}

.step-container {
  position: relative;
  margin: auto;
  background-color: #ffffff;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  width: 90vw;
  box-shadow: 0px 4px 13px rgba(145, 141, 141, 0.25);
  padding: 1.5rem;
  text-align: left;
}

@media (min-width: 769px) {
  .step-container {
    padding: 2rem 3rem;
  }
}

.step-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ea4f00;
}

@media (min-width: 769px) {
  .step-title {
    font-size: 1.5rem;
  }
}

.step-content {
  font-size: 1.15rem;
  padding: 1rem 0;
}

@media (min-width: 769px) {
  .step-content {
    font-size: 1.25rem;
  }
}

.step-link {
  text-decoration: none;
  color: black;
}

.section-container {
  background-color: #000;
  background-repeat: no-repeat;
  padding: 5rem 0;
}

.section-title {
  color: #ea4f00;
  padding-top: 2rem;
  text-align: center;
}

.slide-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100vw;
  padding-top: 2rem;
}


.slide-image-container {
  width: 100%;
  text-align: center;
}

  .slide-image-container .slide-image {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
  }

.slide-author {
  font-family: "Nunito";
  color: #ea4f00;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.slide-content {
  font-family: "Nunito";
  padding: 12px 15%;
  color: #fff;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .slide-content {
    padding: 12px 20%;
    font-size: 1.5rem;
  }
}


.help-section {
  padding: 3rem 7rem;
  text-align: center;
}

@media (min-width: 769px) {
  .help-section {
    padding: 7rem;
  }
}

.help-section button {
  margin: 2rem 0;
}

.background-woodgrain {
  background-color: #FFF9F0;
}

/* Footer Styles - Exact Angular Match */
footer {
    padding: 3em 0 4em 0;
    border-top: solid 2px #f7f6f5;
    color: #FF5722;
    background-color: #000;
}

footer .links {
    text-align: left;
    font-family: Nunito;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 30px;
}

footer .nav-title {
    font-weight: 700;
    color: #FF5722;
}

@media(max-width: 414px) {
    footer .nav-title {
        margin-top: 1em;
    }
}

footer a {
    color: #FF5722 !important;
    text-decoration: none;
}

footer a:hover,
footer a:focus,
footer a:active,
footer a:visited {
    color: #FF5722 !important;
    text-decoration: none;
}

footer .copyright {
    padding-top: 5em;
    color: #ffffff;
}

footer .copyright a {
    color: #ffffff !important;
    text-decoration: none;
}

footer .copyright a:hover,
footer .copyright a:focus,
footer .copyright a:active,
footer .copyright a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

@media(max-width: 414px) {
    footer .copyright {
        padding: 2em 0;
    }
    
    footer .copyright > div {
        padding: 1em;
    }
}

footer .copyright .bullet {
    padding: 0 1em;
}

footer .social {
    padding: 1em;
}

footer .social a,
footer .social a:hover,
footer .social a:focus,
footer .social a:active,
footer .social a:visited {
    padding: 1em;
    text-decoration: none;
    color: #FF5722 !important;
}

footer .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media(min-width: 768px) {
    footer .container {
        flex-direction: row;
    }
}

.text-center {
    text-align: center;
}

.oa-logo {
    width: 195px;
}

@media(min-width: 768px) {
    .oa-logo {
        width: 275px;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        margin-left: 0;
    }
    
    .navbar-nav li {
        margin: 5px 0;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

/* Button Hover Effects */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mobile-only {
    color: #FF5722;
}

.mobile-only a {
    color: #FF5722;
    text-decoration: none;
}

.mobile-only a:visited {
    color: #FF5722;
}

.mobile-only a:hover {
    color: #FF5722;
    text-decoration: underline;
}

/* Fix for iOS Safari / BrowserStack where heading text can be rendered but not painted
   Force visible text color, WebKit-specific text-fill, and create a new stacking context
   so the tagline sits above SVG overlays and avoids blend-mode/backdrop painting issues. */
#title-tagline-tagline,
.heading-des {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Fix WebKit text fill bugs */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    /* Ensure element paints above SVG/overlays on iOS (create stacking context) */
    position: relative;
    z-index: 1000;
    isolation: isolate;

    /* Keep the visual blur/backdrop effect but add WebKit prefixed version for iOS */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);

    /* Avoid unexpected blending that can make text invisible */
    mix-blend-mode: normal !important;
}


.banner {
    background-color: #ea4f00;
    color: white;
    text-align: center;
    font-size: medium;
}

/* Large font size only on medium screens and up (desktop/tablet) */
@media (min-width: 768px) {
    .banner {
        font-size: large;
    }
}

.banner-disclaimer {
    background-color: #ea4f00;
    color: white;
    text-align: center;
    font-size: small;
}

/* Large font size only on medium screens and up (desktop/tablet) */
@media (min-width: 768px) {
    .banner-disclaimer {
        font-size: medium;
    }
}
