/* ======================================================== */
/*   FINAL DEDICATED STYLES FOR MEDICAL CODING PAGE        */
/* ======================================================== */

/* --- 1. Consistent Spacing & Vertical Rhythm --- */
.left_area h2 {
    margin-top: 12px;
    margin-bottom: 20px;
    margin-left: 24px;
    margin-right: 24px;
}
.left_area > h2:first-of-type {
    margin-top: 0;
}
.left_area > p { padding-bottom: 20px; }
.left_area > ul { padding-bottom: 25px; }


/* --- 2. Custom Banner with Animated Text --- */
#medical-coder-slider {
    width: 939px;
    height: 380px;
    background-color: #000;
    margin: 13px auto 0;
    position: relative;
    overflow: hidden;
}
#medical-coder-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes slideUpFromBottom {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#medical-coder-slider .slider-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(216, 39, 49, 0.85);
    color: #ffffff;
    padding: 20px 30px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: slideUpFromBottom 1s ease-out 0.5s forwards;
    opacity: 0;
}


/* --- 3. Compact Gradient Accent Cards --- */
.course-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    padding-top: 10px;
    margin: 0 24px;
}
.course-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.course-card h3 {
    margin: 0;
    padding: 15px; 
    font-size: 17px;
    color: #ffffff;
    background: linear-gradient(45deg, #d82731, #a02027);
    text-align: left !important;
}
.course-card .card-content { padding: 12px 15px; flex-grow: 1; }
.course-card .card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 5px 0; 
    padding-bottom: 0;
    text-align: left !important;
}


/* --- 4. Seamless Infinite Logo Scroller --- */
.logo-scroller-section {
    /* Spacing is handled by the h2 rule in Section 1 */
}
.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.scroller-track {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 60px;
    animation: scroll-left 30s linear infinite;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.scroller-container:hover .scroller-track { animation-play-state: paused; }
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% / 2)); }
}
.scroller-logo { flex-shrink: 0; position: relative; }
.scroller-logo img {
    height: 60px;
    width: auto;
    max-width: none;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroller-logo:hover img {
    opacity: 1;
    transform: scale(1.15);
    z-index: 10;
}


/* --- 5. AUTOMATIC SIDEBAR SLIDESHOW --- */
.teaser-gallery-area {
    margin-top: 20px;
}
.teaser-gallery-content {
    margin-top: 10px;
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: default; /* Changed from pointer to default */
    background-color: #ffffff;
    border-radius: 6px;
}
.teaser-slides {
    list-style: none; padding: 0; margin: 0;
    width: 100%; height: 100%;
}
.teaser-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.teaser-slide.active {
    opacity: 1;
}
.teaser-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes zoom-in-effect {
    from { transform: scale(1.0); }
    to { transform: scale(1.1); }
}
@keyframes zoom-out-effect {
    from { transform: scale(1.1); }
    to { transform: scale(1.0); }
}
.zooming-in { animation: zoom-in-effect 6s ease-in-out forwards; }
.zooming-out { animation: zoom-out-effect 1.5s ease-in-out forwards; }


/* --- 6. DEDICATED CONTACT INFO BOX --- */
.contact-info-box {
    background-color: #f9f9f9;
    border-left: 5px solid #d82731;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 25px 24px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.contact-info-box h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}
.contact-info-box p {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
    padding-bottom: 0 !important; /* Override default p padding */
}
.contact-info-box a {
    color: #d82731;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info-box a:hover {
    color: #a02027;
    text-decoration: underline;
}