/*!
Theme Name: One Happy Life 
Theme URI: http://designedbyjohn.com
Version: 4.27.4
Description: A custom theme developed 
Author: John Johnson
Author URI: http://designedbyjohn.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: Divi
*/

body {
    font-family: "acumin-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3 {
    font-family: "acumin-pro", sans-serif;
    font-weight: 800 !important;
    font-style: normal;
}

.arrow-right:after {
    font-family: 'ETMODULES';
    content: '\26';
    font-size: 22px;
    margin-right: 7px;
    vertical-align: top;
    text-align: right;
    position: absolute;
    right: 0;
}


/* This is hidden, just like before */
        .svg-defs {
            position: absolute;
            width: 0;
            height: 0;
        }

        /* === THIS IS THE KEY CHANGE === */
        .video-container {
            /* 1. Set a width to control the size */
            width: 100%; 
            /* max-width: 600px; */ /* You could also use a max-width */

            /* 2. Automatically set the height based on the SVG's ratio */
            aspect-ratio: 868 / 814;

            /* 3. The clip-path applies perfectly, as it's no longer stretched */
            clip-path: url(#my-clip-shape);
            -webkit-clip-path: url(#my-clip-shape);
            
            /* (Optional) Add a drop shadow to see the shape better */
            filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
        }
        /* ============================== */


        /* The video inside still just fills its container */
        .video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block; /* Helps prevent small layout gaps */
        }

.et_pb_section_0_tb_header {
    background: transparent;
    z-index: 1000;
}

.green-text {
    color: #B4D332;
}

.dark-blue-text {
    color: #010245;
}

/* Fullscreen Menu */
/* Menu */

body.no-scroll {
  overflow: hidden;
}

.no-collapse .et_mobile_nav_menu {
    display: none !important;
}

.et_pb_menu .et_pb_menu__menu {
    display: flex !important;
}

html .modal-nav .et_pb_menu__wrap {
    justify-content: flex-start !important;
}

.main-menu {
  z-index: 1001;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.et_pb_menu_0_tb_header.et_pb_menu ul li a, .et_pb_text_2_tb_header h2 {
  line-height: 1em;
}

.modal-nav .et_pb_menu__menu>nav>ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: start;
    flex-direction: column;
}

.et_pb_module.et_pb_menu.et_pb_menu_0_tb_header.modal-nav.no-collapse.et_pb_bg_layout_light.et_pb_text_align_left.et_dropdown_animation_fade.et_pb_menu--without-logo.et_pb_menu--style-left_aligned {
    background: none;
}

.logo svg#Layer_1 {
    height: 30px;
    max-width: 100%;
}

#menu-button {
  cursor: pointer;
}

/* Start */

/* Icon styles */
#menu-button .fa-bars,
#menu-button .fa-times {
    position: absolute;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-size: 30px;
}

#menu-button .fa-times {
    opacity: 0;
    transform: rotate(-90deg);
}

#menu-button.open .fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}

#menu-button.open .fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

/* Styles for the fullscreen menu */
html #fullscreen-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;

    overflow-y: auto;
    
    /* Smooth transition for appearing/disappearing */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 998;
    padding-top: 200px;
}

#menu-button:before {
    transition: all 0.33s ease;
    font-size: 22px;
}

#menu-button.open:before {
    content: "\51" !important;
}

/* When the menu has the .open class, make it visible */
#fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

.et_pb_module.et_pb_menu.et_pb_menu_0_tb_header.modal-nav.no-collapse.et_pb_bg_layout_light.et_pb_text_align_left.et_dropdown_animation_fade.et_pb_menu--without-logo.et_pb_menu--style-left_aligned {
    background: transparent !important;
}

/* Styling for the links inside the menu */
#fullscreen-menu a {
    /* color: white; */
    text-decoration: none;
    margin: 0rem 0;
    transition: color 0.2s;
}

#fullscreen-menu a:hover {
    color: #000;
}

.external-link::after {
  font-family: "Font Awesome 6 Free"; 
  font-weight: 900; 
  content: "\f35d"; 
  font-size: 0.8em; 
  margin-left: 6px; 
  display: inline-block; 
  vertical-align: middle;
  color: #000;
}

#fullscreen-menu h3 {
    color: #000;
}

#fullscreen-menu .email a {
    color: #000;
}

#fullscreen-menu h3.outline {
    display: none;
}

@media (max-width: 980px) {
    .main-menu .et_pb_column {
        width: 50% !important;
    }

    .et-db #et-boc .et-l .main-menu .et_pb_column {
        width: 50% !important;
    }

    .et_pb_row_0_tb_header .et_pb_column:first-child {
        width: 65% !important;
    }

    .et_pb_row_0_tb_header .et_pb_column:last-child {
        width: 35% !important;
    }

    .et_pb_section.et_pb_section_0_tb_header.et_section_regular.et_pb_section--absolute {
        margin-top: 0;
        padding-top: 0;
    }
}

@media (max-width: 479px) {
    .main-menu .et_pb_column {
        width: 50% !important;
    }


    .et-db #et-boc .et-l .main-menu .et_pb_column {
        width: 50% !important;
    }

}

/* Footer */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-inline {
    display: inline-block;
}

.logo-inline:last-child {
    border-left: 2px solid #fff;
    margin-left: 30px;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

.logo-inline:first-child {
    height: 20px;
}

.logo-inline:last-child img {
    height: 55px;
    object-fit: contain;
}

@media (max-width: 980px) {
    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .et_pb_row.et_pb_row_0_tb_header .et_pb_column {
        width: 50%;
    }
}

.et_pb_section.et_pb_section_0.et_pb_with_background.et_section_regular {
    background: #010245 !important;
}

/* Cost of living calculator */
/* Main calculator container */
/* Main calculator container */
.calculator-container {
    width: 100%;
    border-radius: 0.75rem; /* rounded-xl */
}


/* Header */
.header {
    text-align: center;
    margin-bottom: 1.5rem; /* mb-6 */
}
.header h1 {
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
    font-weight: 700; /* font-bold */
    color: #fff; /* White text */
}
@media (min-width: 768px) {
    .header h1 {
        font-size: 1.875rem; /* md:text-3xl */
        line-height: 2.25rem;
    }
}
.header p {
    color: #64748b; /* text-slate-500 */
    margin-top: 0.5rem; /* mt-2 */
    font-size: 1.125rem;
    line-height: 1.75rem;
    /* Text removed as requested */
}

/* Form */
#calculator-form > div:not(:last-child) {
    margin-bottom: 1.25rem; /* space-y-5 */
}

#calculator-form label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    font-weight: 500; /* font-medium */
    margin-bottom: 0.25rem; /* mb-1 */
    color: #fff; /* White text */
    padding-left: 5px; /* Slight indent */
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    background-color: #f8fafc; /* bg-slate-50 */
    border: 1px solid #cbd5e1; /* border border-slate-300 */
    border-radius: 100px; /* rounded-full */
    transition: all 150ms ease-in-out;
    font-family: inherit;
    font-size: 1rem;
    -webkit-appearance: none; /* Fix for iOS select styling */
    -moz-appearance: none;
    appearance: none;
}

.form-select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 10 13 14 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-position: right 1rem center;
        background-repeat: no-repeat;
        background-size: 1em 1em;
        padding-right: 2.5rem; /* Make space for arrow */
}

/* Custom focus styles */
.form-input:focus, .form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #B4D332; /* Lime green border */
    box-shadow: 0 0 0 2px #c7d2fe; /* shadow-indigo */
    background-color: #ffffff;
}

/* State Selection Grid (Now just holds one item) */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem; /* gap-5 */
}
/* Side-by-side layout on desktop */
@media (min-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Calculate Button */
#calculate-btn {
    background-color: #B4D332; /* Lime green */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    color: #010245; /* Dark blue text */
    padding: 0.75rem 1rem; /* py-3 px-4 */
    border: none;
    border-radius: 100px; /* rounded-full */
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: all 150ms ease-in-out;
}
#calculate-btn:hover {
    background-color: #a4c02f; /* Darker lime green */
}
#calculate-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #c7d2fe, 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Results Display Area */
#results-area {
    margin-top: 1.5rem; /* mt-6 */
    padding: 1.25rem; /* p-5 */
    background-color: #010245; /* Dark slate */
    border-radius: 0.5rem; /* rounded-lg */
}
#results-area.hidden {
    display: none;
}
#results-area.error-bg {
        background-color: #fee2e2; /* bg-red-100 */
}

#salary-result {
    text-align: center;
}
#results-text {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
    color: #f1f5f9; /* Light slate text */
}
#results-text strong {
    font-weight: 600;
}
#results-text .highlight-salary {
    color: #B4D332; /* Lime green text */
    font-weight: 700;
}

.error-message {
    font-weight: 600; /* font-semibold */
    color: #dc2626; /* text-red-600 */
    text-align: center;
}

/* Style for the comparison details */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155; /* Slate border */
}
.comparison-grid h3 {
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem;
    font-weight: 600; /* font-semibold */
    color: #94a3b8; /* Lighter slate text */
    margin-bottom: 0.25rem; /* mb-1 */
}
.comparison-grid p {
    font-weight: 700; /* font-bold */
    color: #f1f5f9; /* Light slate text */
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75rem;
}
.comparison-grid .highlight-new {
    color: #B4D332; /* Lime green text */
}

/* Responsive grid for comparison */
@media (min-width: 640px) { /* Tablet and up */
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
        .comparison-grid p {
        font-size: 1.25rem; /* md:text-xl */
        line-height: 1.75rem;
    }
}
/* Removed the other media queries for 5 columns */


html #intro .et_pb_column {
    margin-right: 5.5%;
    margin-bottom: 0;
}

@media (max-width: 981px) {

    span.arrow-right {
        display: none;
    }

    html #intro .et_pb_column .et_pb_image:after {
        font-size: 13px !important;
        top: 5px;
        background: #b4d433;
        padding: 5px;
        border-radius: 100px;
        left: 5px;
        font-family: 'ETMODULES';
        content: '\26';
        margin-right: 7px;
        vertical-align: top;
        text-align: left;
        position: absolute;
        padding: 10px;
        color: #010245;
    }
}