/* Custom properties for easy color changes */
:root {
    --primary-blue: #00b4f0;
    --background-teal: #34989e; /* The main section background color */
    --text-white: #ffffff;
    --text-dark: #333333;
    --contact-box-bg: #1c1c1c; /* Blackish background for the contact box */
    --call-button-color: #3fccc8; /* Greenish/Teal color from the image button */
    --progress-bar-shell: #ffffff;
}

/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* 1. Main Section Styling & Layout (The Teal Background) */
.why-choose-us-new {
    background-color: #309ab3;
    padding: 60px 20px;
    color: var(--text-white) !important; /* Forces all text inside to be white */
    position: relative;
    overflow: hidden;
}

/* Ensure all elements within the left section inherit white color */
.why-choose-us-new .content-left,
.why-choose-us-new .content-left h1,
.why-choose-us-new .content-left h5,
.why-choose-us-new .content-left p {
    color: var(--text-white) !important;
}


.container-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center; 
    position: relative;
    z-index: 2;
}

/* 2. Left Content (Text and Progress Bars) */
.content-left {
    flex: 1 1 400px; 
    max-width: 450px;
}

.section-tag {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    border-left: 2px solid var(--text-white);
    padding-left: 10px;
    margin-bottom: 10px;
}

.main-heading {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-white) !important; /* Ensure H1 is white */
}

.invisalign-logo {
    width: 200px; 
    height: auto;
    margin-bottom: 20px;
}

.description-text {
    font-size: 16px;
    margin-bottom: 30px;
}

/* --- Progress Bar Animation Keyframes --- */
@keyframes progress-animation {
    from { width: 0; }
    to { width: var(--progress-width); } 
}

.progress-container {
    margin-top: 40px;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-white) !important; /* Ensure progress labels are white */
}

.progress-bar-shell {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5); 
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--progress-bar-shell); 
    width: 0; 
    animation: progress-animation 1.5s ease-out forwards;
}


/* 3. Center Content (Doctor Image) */
.content-center {
    flex: 1 1 300px;
    text-align: center;
    position: relative;
    top: -50px; /* Lift the image up as per the design */
    /* Set a maximum size for the image container */
    max-width: 350px; 
    align-self: flex-end; /* Align to the bottom of the section for the floating effect */
}

.doctor-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: 50px !important;
    object-fit: contain;
    /* Ensure the image is properly contained and looks proportional */
}

/* 4. Right Content (Contact Box) */
.content-right {
    flex: 1 1 300px;
    display: flex;
    justify-content: flex-end; 
}

.contact-box {
    background-color: var(--contact-box-bg);
    color: var(--text-white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
}

.box-heading {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 15px;
}

.box-text {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7) !important; /* Lighter white for body text */
}

.timing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.timing-list li {
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: var(--text-white) !important; /* Ensure list items are white */
}

/* --- Radio/Bullet Animation Keyframes --- */
.timing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    animation: pulse 2s infinite; 
}

.timing-list li:nth-child(2)::before {
    animation-delay: 1s; 
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 240, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 180, 240, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 240, 0); }
}

.day-time {
    font-weight: bold;
}

.note-text {
    font-size: 12px;
    margin-bottom: 25px;
    display: block;
    color: rgba(255, 255, 255, 0.7) !important; /* Lighter white for note text */
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:#309ab3; 
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 3px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 16px;
}

.call-button:hover {
    background-color: #34b3af;
}

.call-button svg {
    fill: var(--text-dark);
    margin-right: 8px;
    width: 18px;
    height: 18px;
}


/* 5. Responsiveness (Mobile and Tablet) */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 40px;
    }
    .content-center {
        top: -20px;
        flex: 0 0 250px; 
    }
}

/* Mobile Devices (Stacks Content Vertically) */
@media (max-width: 768px) {
    .container-new {
        flex-direction: column; 
        gap: 40px;
    }
    
    .content-left,
    .content-center,
    .content-right {
        max-width: 100%; 
        flex: 1 1 auto;
    }

    .content-left {
        text-align: center;
        order: 1; 
    }

    .section-tag {
        border-left: none;
        padding-left: 0;
        display: inline-block;
        border-bottom: 2px solid var(--text-white);
        padding-bottom: 5px;
    }
    
    .content-center {
        order: 2; 
        top: 0; /* Reset vertical offset */
    }

    .contact-box {
        order: 3; 
        max-width: 450px;
        margin: 0 auto; 
        text-align: left;
    }

    .call-button {
        width: 100%;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .main-heading {
        font-size: 32px;
    }
}