/* ========================================
   UI Enhancement Styles for Butlerz Healthcare
   Modern, Accessible, and Professional Design
   ======================================== */

/* ===== 1. MODERN COLOR PALETTE ===== */
:root {
    --primary-color: #2E7D9A;
    --primary-dark: #1E5D7A;
    --primary-light: #44B9D6;
    --secondary-color: #6A4C7C;
    --secondary-dark: #4A2E5A;
    --accent-teal: #3FBEAA;
    --accent-coral: #FF6B6B;
    --neutral-dark: #2C3E50;
    --neutral-medium: #555555;
    --neutral-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 2. ENHANCED BUTTONS ===== */
.btn-style-one {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--white);
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    border: 2px solid transparent;
    overflow: visible;
}

.btn-style-one:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

.btn-style-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 154, 0.4);
    color: var(--white);
}

.btn-style-one:hover:before {
    opacity: 1;
}

.btn-style-one:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-style-two {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-color);
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--white);
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.btn-style-two:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== 3. ENHANCED CARDS & BOXES ===== */
.news-block,
.service-block,
.team-block,
.testimonial-block {
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.news-block:hover,
.service-block:hover,
.team-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-block .image img,
.service-block .image img,
.team-block .image img {
    transition: var(--transition-slow);
}

.news-block:hover .image img,
.service-block:hover .image img,
.team-block:hover .image img {
    transform: scale(1.05);
}

.news-block .lower-content,
.service-block .inner-box,
.team-block .lower-content {
    padding: 24px;
}

/* ===== 4. IMPROVED TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--neutral-dark);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 16px;
}

h3 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.text,
p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--neutral-medium);
}

/* ===== 5. ENHANCED HEADER ===== */
.main-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: var(--white);
}

.main-header .header-top,
.main-header .header-top-two {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 12px 0;
}

.main-header .header-upper {
    padding: 16px 0;
    background: var(--white);
}

.main-menu .navigation>li>a {
    position: relative;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-fast);
}

.main-menu .navigation>li>a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.main-menu .navigation>li:hover>a:after,
.main-menu .navigation>li.current>a:after {
    width: 80%;
}

/* ===== 6. MODERN SECTIONS ===== */
section {
    position: relative;
    padding: 80px 0;
}

.sec-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.sec-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-teal) 100%);
    border-radius: 2px;
}

.sec-title.centered h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== 7. IMPROVED FORMS ===== */
.default-form input[type="text"],
.default-form input[type="email"],
.default-form input[type="tel"],
.default-form textarea,
.default-form select {
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    transition: var(--transition-fast);
    background: var(--white);
}

.default-form input:focus,
.default-form textarea:focus,
.default-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 154, 0.1);
    outline: none;
}

/* ===== 8. ICON ENHANCEMENTS ===== */
.icon {
    transition: var(--transition-medium);
}

.icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ===== 9. IMAGE OVERLAYS ===== */
.image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
}

.news-block:hover .image:before,
.service-block:hover .image:before,
.team-block:hover .image:before {
    opacity: 1;
}

/* ===== 10. ENHANCED FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, #1a252f 100%);
    position: relative;
}

.main-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-teal) 50%, var(--primary-color) 100%);
}

/* ===== 11. SOCIAL LINKS ===== */
.social-links li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
}

.social-links li a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 125, 154, 0.4);
}

/* ===== 12. TESTIMONIALS ===== */
.testimonial-block {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-block:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== 13. RATINGS ===== */
.rating {
    display: flex;
    gap: 4px;
}

.rating .fa-star {
    color: #FFB800;
    font-size: 16px;
    transition: var(--transition-fast);
}

.rating .fa-star:hover {
    transform: scale(1.2);
}

/* ===== 14. BADGES & TAGS ===== */
.post-date,
.badge,
.tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-teal) 100%);
    color: var(--white);
    letter-spacing: 0.5px;
}

/* ===== 15. BREADCRUMBS ===== */
.page-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.page-breadcrumb li {
    position: relative;
    padding-right: 20px;
}

.page-breadcrumb li:after {
    content: '/';
    position: absolute;
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.page-breadcrumb li:last-child:after {
    display: none;
}

/* ===== 16. HOVER EFFECTS ===== */
.read-more,
.learn-more,
.view-more {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition-medium);
    padding-right: 20px;
}

.read-more:after,
.learn-more:after,
.view-more:after {
    content: '→';
    position: absolute;
    right: 0;
    transition: var(--transition-medium);
}

.read-more:hover,
.learn-more:hover,
.view-more:hover {
    color: var(--secondary-color);
    padding-right: 25px;
}

.read-more:hover:after,
.learn-more:hover:after,
.view-more:hover:after {
    right: -5px;
}

/* ===== 17. LOADING ANIMATION ===== */
.preloader {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* ===== 18. SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-teal) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== 19. ACCESSIBILITY IMPROVEMENTS ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== 20. SMOOTH ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== 21. RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .btn-style-one,
    .btn-style-two {
        padding: 12px 24px;
        font-size: 13px;
    }

    section {
        padding: 60px 0;
    }
}

/* ===== 22. PRINT STYLES ===== */
@media print {

    .main-header,
    .main-footer,
    .preloader,
    .social-links {
        display: none !important;
    }
}

/* ===== 23. DARK MODE SUPPORT (OPTIONAL) ===== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ===== 24. HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}