/* APEX Medical Laboratories - Modern UI Styles
   Author: GitHub Copilot
   Date: September 4, 2025
*/

:root {
    --primary: #0056b3;
    --primary-rgb: 0, 86, 179;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
}

/* Global Styles */
body {
    font-family: "Poppins", sans-serif;
    line-height: 1.7;
    color: #555;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #333;
}

.btn {
    border-radius: 4px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Section Spacing */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hero Section Styles */
.hero-section .carousel-caption {
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-content .lead {
    font-size: 1.1rem;
    color: #666;
}

/* Section Styling */
.section-divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 25px;
}

/* About Us Section Enhanced */
.about-image-wrapper {
    position: relative;
    padding-right: 30px;
}

.about-image-main {
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.about-image-main img {
    transition: transform 0.5s ease;
}

.about-image-main:hover img {
    transform: scale(1.05);
}

.about-image-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: var(--primary);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.badge-inner {
    text-align: center;
}

.badge-inner .years {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.badge-inner .text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-box-modern {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-box-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-box-modern:before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.feature-box-modern:hover:before {
    transform: scale(7);
    opacity: 0.1;
}

.feature-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.feature-box-modern:hover .feature-icon-bg {
    background-color: var(--primary);
}

.feature-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-box-modern:hover .feature-icon-wrapper i {
    color: white;
}

.hours-card-mobile {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hours-list-mobile li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.hours-list-mobile li:last-child {
    border-bottom: none;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section Enhanced */
.service-card {
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card .card-text {
    color: #666;
    font-size: 0.9rem;
}

/* Review Section */
.review-section {
    background-color: #f9f9f9;
}

.rating-container {
    border: 1px solid #e0e0e0;
}

/* Custom Input Styles */
.form-control {
    border-radius: 4px;
    padding: 10px 15px;
    height: auto;
    border-color: #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

/* Media Queries */
@media (max-width: 992px) {
    .what-we-do-content,
    .appointment-content {
        padding: 3rem !important;
    }
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .what-we-do-content,
    .appointment-content {
        padding: 2rem !important;
    }
}

/* Call-to-action styles */
.cta-box {
    background-color: var(--primary);
    padding: 3rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.cta-box:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Modern Footer Styles */
.modern-footer {
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    color: white;
    position: relative;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.contact-info li i {
    color: var(--primary);
}

.bg-darker {
    background-color: #1a1a1a;
}

.payment-link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    margin-left: 15px;
    text-decoration: none;
}

.payment-link:hover {
    color: white;
    text-decoration: none;
}

/* Scroll to top button */
.cd-top {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    right: 20px;
    bottom: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cd-top:hover {
    opacity: 1;
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Enhanced Services Styles */
.service-card-featured {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card-featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(var(--primary-rgb), 0.7),
        rgba(var(--primary-rgb), 0.9)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-icon-large i {
    font-size: 30px;
    color: var(--primary);
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.service-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.service-list li i {
    color: var(--primary);
    margin-right: 8px;
}

.service-card-modern {
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-header {
    padding: 30px 25px 10px;
    position: relative;
}

.service-icon-wrapper {
    margin-bottom: 20px;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon {
    background-color: var(--primary);
}

.service-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon i {
    color: white;
}

.service-body {
    padding: 0 25px 25px;
    flex-grow: 1;
}

.service-list-small {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.service-list-small li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.service-list-small li i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 14px;
}

.service-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-cta-banner {
    margin-top: 50px;
    background-color: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-cta-banner:before {
    content: "";
    position: absolute;
    top: -30%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.service-cta-banner:after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}
