﻿/* ===========================
    Registration Page Styles
=========================== */
/*OTHER*/
#m_info {
    margin-top: 40px;
    z-index: 999999;
}


.footer-bottom {
    padding: 25px 0 15px;
    background-color: #928678;
    text-align: center
}

.footer-bottom a,
.footer-bottom p {
    color: #fff
}

    .footer-bottom a:hover {
        color: #000
    }

.footer-menu li {
    padding: 0 20px
}

    .footer-menu li:first-child {
        padding-left: 0
    }

    .footer-menu li:last-child {
        padding-right: 0
    }

    .footer-menu li a {
        font-size: 14px;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out
    }

.copy-right p strong {
    font-weight: 500
}

.copy-right a {
    color: #000;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out
}

    .copy-right a:hover {
        color: #fff
    }

/* --------------
    SECTION 1
-------------- */
.section1-container {
    background-image: url('../../images/registration-page/register-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    min-height: 750px;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.section1-content {
    color: #fff;
    max-width: 50%;
    margin-left: 4vw;
    margin-bottom: 40px;
    z-index: 2;
}

    .section1-content h1 {
        font-family: 'Montserrat', 'Arial', sans-serif;
        font-size: 7.2rem;
        font-weight: 300;
        line-height: 1.05;
        margin-bottom: 18px;
        letter-spacing: 0.01em;
    }

    .section1-content .bold {
        font-weight: 700;
    }

    .section1-content .subtitle {
        font-size: 2.15rem;
        font-family: 'Montserrat', 'Arial', sans-serif;
        font-style: italic;
        margin-bottom: 32px;
        color: #fff;
        font-weight: 400;
    }

.register-btn {
    display: inline-block;
    background: #DA983A;
    color: #fff;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    padding: 14px 38px;
    border-radius: 28px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: background 0.2s;
}

    .register-btn:hover,
    .register-btn:focus {
        background: #b97d2c;
        color: #fff;
        text-decoration: none;
    }
.scroll-down-btn {
    left: 47%;
    position: absolute;
    bottom: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    z-index: 10;
    text-decoration: none;
    transition: box-shadow 0.2s;
    border: none;
    cursor: pointer;
    padding: 0px;
}

.scroll-down-icon {
    width: 66px; /* adjust as needed */
    height: 66px;
    object-fit: contain;
    display: block;
}
    .scroll-down-icon:hover {
        width: 66px; /* adjust as needed */
        height: 77px;
    }


@media (max-width: 768px) {
    .section1-container {
        min-height: 450px;
    }

    .section1-content {
        max-width: 90%;
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 40px;
    }

        .section1-content h1 {
            font-size: 3.5rem;
            line-height: 1.1;
            margin-bottom: 15px;
        }

        .section1-content .subtitle {
            font-size: 1.4rem;
            margin-bottom: 25px;
        }

    .register-btn {
        font-size: 1.7rem;
        padding: 10px 25px;
        border-radius: 20px;
    }

    .scroll-down-btn {
        left: 45%;
        bottom: 18px;
        width: 33px;
        height: 33px;
    }
        .scroll-down-btn:hover {
            width: 33px;
            height: 33px;
        }
    .scroll-down-icon {
        width: 36px; /* adjust as needed */
        height: 36px;
        object-fit: contain;
        display: block;
    }

        .scroll-down-icon:hover {
            width: 36px; /* adjust as needed */
            height: 47px;
        }
}
/* -------------- */
/* SECTION 2 (FIXED BUTTON POSITIONING) */
/* -------------- */
.section2-container {
    background-color: #fcfcfc;
    padding: 30px 5vw;
    text-align: center;
}

.section2-header {
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section2-title {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    color: #DA983A;
    margin: 0 0 10px 0;
    word-break: break-word;
}

.section2-subtitle {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 700;
    color: #DA983A;
    line-height: 1.3;
}

/* --- Testimonial Carousel Layout --- */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 90px;
}

.testimonials-carousel {
    display: flex;
    overflow-x: hidden;
    gap: 25px;
    padding: 30px 15px;
    width: 100%;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    /* Hide native scrollbar when present */
    .testimonials-carousel::-webkit-scrollbar {
        display: none;
    }

/* OPTIMIZED TESTIMONIAL CARD - Better content distribution */
.testimonial-card {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 calc(33.333% - 16.666px);
    background-color: #fff;
    padding: 25px 20px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    text-align: left;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    will-change: transform, opacity;
    width: 100%;
    min-height: 280px;
    max-width: 420px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .testimonial-card.active {
        opacity: 1;
        transform: scale(1);
    }

.card-header {
    margin-bottom: 15px;
    flex-shrink: 0;
    text-align: left;
}

.profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.card-name {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 1.8rem;
    color: #333;
    margin: 8px 0 12px 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.card-quote {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quote-preview, .quote-full {
    flex: 1;
    display: block;
}

/* Navigation buttons - PROPERLY POSITIONED */
.carousel-btn {
    background: #fff;
    border: 1px solid #DA983A;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #DA983A;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .carousel-btn:hover,
    .carousel-btn:active,
    .carousel-btn:focus {
        outline: none;
        background: #DA983A;
        color: #fff;
        box-shadow: 0 0 10px rgba(218, 152, 58, 0.3);
    }

/* Default desktop positioning */
.prev-btn {
    left: 30px; /* Changed from -25px to positive value */
}

.next-btn {
    right: 30px; /* Changed from -25px to positive value */
}

/* View-more/link area */
.testimonial-card .view-more-container {
    position: absolute;
    left: 20px;
    bottom: 15px;
    right: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    background: transparent;
    flex-shrink: 0;
}

.testimonial-card .view-more {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1;
    padding: 5px 0;
    color: #DA983A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

    .testimonial-card .view-more:hover {
        color: #b97d2c;
        text-decoration: underline;
    }

/* --- RESPONSIVE MEDIA QUERIES (FIXED BUTTON POSITIONING) --- */

/* Two-up layout: between 688px and 1064px */
@media (min-width: 688px) and (max-width: 1064px) {
    .carousel-wrapper {
        padding: 0 60px; /* Adjusted padding */
    }

    .testimonials-carousel {
        gap: 20px;
        padding: 25px 10px;
        justify-content: flex-start;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
        max-width: 520px;
        min-height: 300px;
        padding: 22px 18px 50px;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .prev-btn {
        left: 15px; /* Proper spacing from edge */
    }

    .next-btn {
        right: 15px; /* Proper spacing from edge */
    }

    .profile-img {
        width: 65px;
        height: 65px;
    }

    .card-name {
        font-size: 1.7rem;
    }

    .card-quote {
        font-size: 1.4rem;
        line-height: 1.5;
    }
}

/* Medium / Desktop adjustments (>=769px) */
@media (min-width: 769px) {
    .carousel-wrapper {
        padding: 0 80px; /* Consistent padding */
    }

    .prev-btn {
        left: 20px; /* Consistent spacing */
    }

    .next-btn {
        right: 20px; /* Consistent spacing */
    }

    .testimonials-carousel {
        padding: 25px 25px;
    }
}

/* Large desktop screens */
@media (min-width: 1065px) {
    .carousel-wrapper {
        padding: 0 90px;
    }

    .prev-btn {
        left: 30px; /* More space on larger screens */
    }

    .next-btn {
        right: 30px; /* More space on larger screens */
    }
}

/* Single-item / Mobile: 0..687px */
@media (max-width: 687px) {
    .section2-header {
        margin-bottom: 15px;
    }

    .carousel-wrapper {
        padding: 0 50px; /* Adequate padding for buttons */
    }

    .testimonials-carousel {
        overflow-x: auto;
        gap: 15px;
        padding: 20px 5px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    /* Keep buttons visible and properly positioned */
    .carousel-btn {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .prev-btn {
        left: 8px; /* Proper spacing from mobile edge */
    }

    .next-btn {
        right: 8px; /* Proper spacing from mobile edge */
    }

    .testimonial-card {
        flex: 0 0 85%;
        max-width: 85vw;
        min-height: 260px;
        margin: 0 auto;
        scroll-snap-align: center;
        padding: 20px 15px 45px;
    }

    .profile-img {
        width: 60px;
        height: 60px;
    }

    .card-name {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .card-quote {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    .testimonial-card .view-more {
        font-size: 1.3rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .prev-btn {
        left: 6px; /* Tighter but still not touching edge */
    }

    .next-btn {
        right: 6px; /* Tighter but still not touching edge */
    }

    .testimonial-card {
        flex: 0 0 90%;
        max-width: 90vw;
        min-height: 240px;
        padding: 18px 12px 40px;
    }

    .card-quote {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .view-more {
        font-size: 1.2rem;
    }

    .section2-title {
        font-size: 2.8rem;
        line-height: 1;
    }

    .section2-subtitle {
        font-size: 1.4rem;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .carousel-wrapper {
        max-width: 1400px;
    }

    .testimonial-card {
        min-height: 300px;
    }

    .prev-btn {
        left: 40px; /* Even more space on extra large screens */
    }

    .next-btn {
        right: 40px; /* Even more space on extra large screens */
    }
}

/* Content balancing for better text distribution */
.testimonial-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-quote {
    hyphens: auto;
    display: flex;
    flex-direction: column;
}

.quote-preview, .quote-full {
    flex: 1;
    min-height: 0;
}


/* 
    SECTION 3: HERO - "What is a medical coder?" (reduced sizes) 

*/

.section3-container {
    position: relative;
    background-image: url('../../images/registration-page/medical-coder-hero.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    min-height: 300px; /* reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0; /* reduced vertical padding */
    color: #fff;
    overflow: hidden;
}

    .section3-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        pointer-events: none;
    }

.section3-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px; /* slightly narrower */
    padding: 18px 16px; /* reduced padding */
}

    .section3-content h2 {
        font-family: 'Century Gothic', 'Arial', sans-serif;
        font-size: 4.2rem; /* reduced headline size */
        font-weight: 700;
        color: #fff;
        margin: 0 0 10px 0;
        line-height: 1.05;
        text-shadow: 0 3px 14px rgba(0,0,0,0.30);
    }

    .section3-content p {
        font-family: 'Century Gothic', 'Arial', sans-serif;
        font-size: 3rem; /* reduced paragraph size */
        color: #fff;
        margin: 0 auto 14px auto;
        line-height: 1.5;
        max-width: 760px; /* keep narrower text column */
        text-shadow: 0 1px 8px rgba(0,0,0,0.20);
    }

/* Learn button */
.learn-btn {
    display: inline-block;
    background: #DA983A;
    color: #fff;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 2.4rem; /* reduced button text */
    font-weight: 600;
    padding: 8px 20px; /* reduced padding */
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: background 0.15s ease;
}

    .learn-btn:hover,
    .learn-btn:focus {
        background: #b97d2c;
        color: #fff;
        text-decoration: none;
    }
/* Responsive tweaks for smaller hero sizes */
@media (max-width: 1064px) {
    .section3-content h2 {
        font-size: 3.9rem;
    }

    .section3-content p {
        font-size: 2.4rem;
    }

    .learn-btn {
        font-size: 2.2rem;
        padding: 7px 18px;
    }

    .section3-container {
        min-height: 260px;
        padding: 22px 0;
    }
}

@media (max-width: 687px) {
    .section3-container {
        min-height: 220px;
        padding: 16px 0;
    }

    .section3-content h2 {
        font-size: 2.3rem;
    }

    .section3-content p {
        font-size: 1.95rem;
        max-width: 88vw;
    }

    .learn-btn {
        font-size: 1.65rem;
        padding: 8px 16px;
    }
}
/* ===========================
    Registration Page Styles
=========================== */
/*OTHER*/
#m_info {
    margin-top: 40px;
    z-index: 999999;
}

/* ---------------------------
   SECTION 4: Event details (wider right panel)
   Left: image | Right: orange info panel
   --------------------------- */
.section4-outer {
    background: transparent;
    box-sizing: border-box;
}

/* inner, centered grid */
.section4-container {
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 600px; /* increased from 460px -> 600px */
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
}

/* LEFT: image column */
.section4-left {
    padding: 10px;
    position: relative;
    min-height: 360px;
    background: #f3f3f3;
    overflow: hidden;
}

    .section4-left img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform .45s ease;
    }

    /* thin white divider */
    .section4-left::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: #ffffff;
        pointer-events: none;
    }

/* RIGHT: info panel */
.section4-right {
    background: #DA983A;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    padding: 36px 34px;
    min-width: 360px; /* increased to match larger panel and prevent collapse */
    box-sizing: border-box;
}
#section4-title {
    margin-bottom: 20px !important;
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
}

.section4-right-inner {
    width: 100%;
    max-width: 560px; /* increased to make use of wider panel (fits within 600px column) */
}

.section4-right h3 {
    font-size: clamp(1.6rem, 3.5vw, 4.7rem);
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #fff;
    line-height: 1.05;
}
.sub-details {
    font-size: clamp(1.5rem, 1.95vw, 2.2rem)!important;
}
.section4-details {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px 0;
    color: rgba(255,255,255,0.95);
    line-height: 1.85;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin-bottom:50px;
}
.section4-contact {
    margin-top: 72px;
}

    .contact-title {
        margin-bottom:20px;
    }

.access-code {
    margin-bottom:30px;
}

.event-btn {
    display: inline-block;
    background: #fff;
    color: #DA983A;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 2px 18px;
    border: 2px solid #DA983A;
    /*border-radius: 24px;*/
    margin: 8px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
/* Make the Section 4 event buttons and their text smaller (override .sub-details !important) */
.section4-right .event-btn.sub-details,
.section4-right .event-btn.sub-details.click-here {
    font-size: 2rem !important; /* smaller text */
    padding: 6px 10px !important; /* smaller button */
    line-height: 1 !important;
    border-radius: 6px !important;
    min-height: auto !important; /* avoid tall default heights */
    display: inline-block !important;
    margin-top:-5px;
}

    .event-btn:hover,
    .event-btn:focus {
        text-decoration: none;
    }
.click-here {
    font-size: 1.2rem;
}
/* Medium: reduce right panel width slightly for narrower viewports */
@media (max-width: 1064px) {
    .section4-container {
        grid-template-columns: minmax(0, 1fr) 540px; /* scaled with new desktop size */
    }

    .section4-right {
        padding: 32px 28px;
    }

    .section4-left::after {
        width: 5px;
    }

    .section4-right-inner {
        max-width: 480px; /* scaled down for this breakpoint */
    }
}

/* Small: stack vertically, image first then panel */
@media (max-width: 687px) {
    .section4-outer {
        padding: 24px 4vw;
    }
    .event-btn {
        margin-top: -20px;
    }

    .section4-container {
        display: block;
        margin: 0 auto;
        border-radius: 6px;
        overflow: hidden;
    }
    .section4-contact {
        margin-top: 25px;
    }
    .section4-left {
        min-height: 220px;
    }

        .section4-left::after {
            display: none;
        }

    .section4-right {
        padding: 28px 20px;
        min-width: auto;
    }

    .section4-right-inner {
        max-width: 100%;
    }

    /* make headings slightly larger on small screens for readability */
    .section4-right h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    /* ensure details and contact text are readable and wrap nicely */
    .section4-details {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .section4-contact h4 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .section4-contact p {
        font-size: 1rem;
        margin: 6px 0;
        line-height: 1.5;
        word-break: break-word; /* prevent overflow on long numbers/emails */
    }

    .section4-contact a {
        color: #fff;
        word-break: break-word;
        text-decoration: underline;
    }
    .section4-right .event-btn.sub-details,
    .section4-right .event-btn.sub-details.click-here {
        font-size: 1.4rem !important; /* smaller text */
        padding: 6px 10px !important; /* smaller button */
        line-height: 1 !important;
        border-radius: 6px !important;
        min-height: auto !important; /* avoid tall default heights */
        display: inline-block !important;
        margin-top: -5px;
    }
}
