/* ==========================================================================
   Aum ENT Hospital & Vertigo Center - Custom Modern UI/UX Overrides
   ========================================================================== */

:root {
    --primary: #1a56db; /* Ecount Royal Blue */
    --primary-light: #3f70eb;
    --accent: #ff7800; /* Ecount Orange Accent */
    --surface: #ffffff;
    --bg-alt: #f8f9fa; /* Clean light grey */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --radius: 16px; /* Softer radius */
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* Modern subtle shadow */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card {
    transition: var(--transition);
}
.hover-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(26, 86, 219, 0.15) !important;
}

/* ── Global Overrides ────────────────────────────────────────── */
body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-main);
    background-color: var(--surface);
    line-height: 1.8 !important;
    font-size: 17px !important; /* Increased from default */
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

h1 { font-size: 3.5rem !important; }
h2 { font-size: 2.2rem !important; margin-bottom: 20px; }
h3 { font-size: 1.8rem !important; margin-bottom: 15px; }

p {
    margin-bottom: 20px;
}

/* ── Header & Navigation ───────────────────────────────────────── */
.top-bar {
    background: var(--primary) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: none !important;
}

.top-bar a, .top-bar span {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

header.top-head.fixedHead {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

header.top-head.fixedHead .logo a {
    height: 70px !important;
    transition: var(--transition);
}

header.top-head.fixedHead .top-nav > ul > li > a {
    height: 70px !important;
}

/* Remove legacy skewed borders */
.top-nav > ul > li:after {
    display: none !important;
}

.top-nav > ul > li {
    border-left: none !important;
    height: auto !important;
}

.top-nav > ul > li > a {
    height: 90px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px !important;
    transition: var(--transition);
}

.top-nav > ul > li > a i {
    font-size: 1.2rem !important;
    margin-bottom: 4px;
    transition: var(--transition);
}

.top-nav > ul > li > a span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-nav > ul > li.selected > a,
.top-nav > ul > li:hover > a {
    background: transparent !important;
    color: var(--primary-light) !important;
}

.top-nav > ul > li.selected > a i,
.top-nav > ul > li:hover > a i {
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

/* ── Page Titles ─────────────────────────────────────────────── */
.page-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
    color: #fff !important;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/pattern.png'); /* If exists, or just opacity */
    opacity: 0.1;
}

.page-title h1 {
    color: #fff !important;
    font-size: 3rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-title h1 span {
    color: var(--accent) !important;
}

/* ── Service Boxes ────────────────────────────────────────────── */
.service-box-3 {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px 30px !important;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.service-box-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 76, 117, 0.12);
}

.service-box-3 .icon {
    width: 70px !important;
    height: 70px !important;
    line-height: 70px !important;
    border-radius: 50% !important;
    margin: 0 auto 25px !important;
    background: rgba(26, 86, 219, 0.08) !important; /* Light blue bg */
    color: var(--primary) !important; /* Royal blue icon */
    font-size: 35px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.service-box-3 h4 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-box-3 .r-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--accent) !important;
    background: transparent !important;
    padding: 0 !important;
}

.service-box-3 .r-more::after {
    content: ' →';
    transition: var(--transition);
}

.service-box-3 .r-more:hover::after {
    padding-left: 5px;
}

/* ── Portfolio / Gallery ───────────────────────────────────────── */
.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: none !important;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item .img-holder {
    position: relative;
    overflow: hidden;
}

/* ── 5. Responsiveness & Mobile Fixes ────────────────────────── */

/* Global container fix to prevent horizontal scroll */
html, body {
    overflow-x: hidden !important;
    width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

.pageWrapper {
    overflow-x: hidden !important;
    width: 100%;
}

/* Fluid Typography for Hero/Main Headings */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    .page-title h1 { font-size: 1.8rem !important; padding: 0 10px; }
    
    /* Ensure containers don't overflow */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Force column stacking */
    .row [class*="cell-"] {
        width: 100% !important;
        float: none !important;
        margin-bottom: 25px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix Logo Breaking */
    .logo a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background-position: center top !important;
        padding-top: 50px !important; /* Space for the icon in background */
        height: auto !important;
    }
    
    .logo a span {
        letter-spacing: 1px !important;
        font-size: 12px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* Revolution Slider Overrides for Mobile */
@media (max-width: 768px) {
    .tp-banner-container {
        width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Hide secondary captions to reduce clutter */
    .tp-caption:not(.large_text):not(.very_large_text) {
        display: none !important;
    }
    
    .tp-caption.large_text, 
    .tp-caption.very_large_text {
        font-size: 20px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        width: 100% !important;
        text-align: center !important;
        left: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }
}

/* Fix service box overlapping */
.service-box-3 {
    margin-bottom: 20px !important;
    height: auto !important;
}

/* Sticky Header Mobile Adjustments */
@media (max-width: 768px) {
    header.top-head.fixedHead {
        height: auto !important;
        padding: 10px 0;
    }
    
    header.top-head.fixedHead .logo a {
        padding-top: 40px !important;
    }
}

/* Fix for horizontal wobble during menu interaction */
.responsive-nav {
    max-width: 80% !important;
}

.portfolio-item .img-over {
    background: rgba(15, 76, 117, 0.8) !important;
    backdrop-filter: blur(4px);
}

/* ── Footer ──────────────────────────────────────────────────── */
#footWrapper {
    background: #1b262c !important;
    color: #fff;
    padding-top: 80px;
}

#footWrapper h4 {
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.footer-bottom {
    background: #0f4c75 !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn, .main-bg {
    border-radius: 30px !important; /* Pill shape like Ecount */
    background-color: var(--accent) !important; /* Orange accent */
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    transition: var(--transition) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(255, 120, 0, 0.3) !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn:hover, .main-bg:hover {
    background-color: #e66b00 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 120, 0, 0.4) !important;
}

/* Remove Skews from everything */
.skew-25, .skew25 {
    transform: none !important;
}

/* ── 6. Professional Image Enhancements ──────────────────────── */

/* Slider Overlay for Professional Text Contrast */
.tp-banner-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 76, 117, 0.7) 0%, rgba(15, 76, 117, 0.1) 60%);
    pointer-events: none;
    z-index: 5;
}

/* Ensure Slider Images are Sharp but Toned */
.tp-banner img {
    filter: contrast(1.1) saturate(0.9) brightness(0.85);
    object-fit: cover !important;
}

/* Professional Caption Styling */
.tp-caption {
    text-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    font-weight: 700 !important;
}

.tp-caption.large-title {
    color: #fff !important;
    font-size: 56px !important;
    letter-spacing: -1px;
}

.tp-caption.large-desc {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(15, 76, 117, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px !important;
    border-radius: 4px;
    border-left: 4px solid var(--accent);
}

/* Global Medical Image Treatment */
img {
    max-width: 100%;
    height: auto;
}

/* Service Box Image Refinement */
.details-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.details-img:hover img {
    transform: scale(1.01);
}


/* ── 7. Trust & Review Section ──────────────────────────────── */
.review-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: inline-flex;
}

.review-summary .stars {
    color: #f39c12;
    font-size: 18px;
}

.review-summary .rating {
    font-weight: 700;
    color: var(--primary);
}

.review-summary .count {
    color: var(--text-muted);
    font-size: 14px;
}

/* ── 8. Elegant Icons & Counters ───────────────────────────── */

/* Modern Social Icons List - Premium Hover */
.social-list-modern {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
}

.social-list-modern li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff !important;
    font-size: 15px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-list-modern li a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.social-list-modern li a.facebook::before { background: #1877F2; }
.social-list-modern li a.youtube::before { background: #FF0000; }
.social-list-modern li a.instagram::before { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}

.social-list-modern li a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-list-modern li a:hover::before {
    top: 0;
}

.social-list-modern li a i,
.social-list-modern li a svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-list-modern li a:hover i,
.social-list-modern li a:hover svg {
    transform: scale(1.15);
}

/* Contact Links in Topbar */
.top-contact li i {
    margin-right: 8px;
    color: var(--accent);
}

/* Modern Counter Section */
.fun-box {
    text-align: center;
    padding: 30px 15px;
    transition: var(--transition);
}

.fun-icon-modern {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
    opacity: 0.9;
}

.fun-number-modern {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 5px;
}

.fun-text-modern {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.fun-box:hover .fun-icon-modern {
    transform: scale(1.1);
    opacity: 1;
}

@media (max-width: 768px) {
    .top-bar .cell-5, .top-bar .cell-7 {
        width: 100% !important;
        text-align: center !important;
    }
} /* <--- Added missing closing brace! */

/* ── 9. Google Review Carousel ──────────────────────────────── */
.reviews-slider .slick-slide {
    outline: none !important;
}

.review-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    border-radius: var(--radius) !important;
    padding: 30px !important;
    box-shadow: var(--shadow) !important;
    transition: var(--transition);
    display: flex !important;
    flex-direction: column;
    text-align: left !important;
    min-height: 280px;
    margin: 15px;
}

.review-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    width: 100%;
}

.user-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important; /* Prevent shrinking */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info .user-name {
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 16px !important;
    margin: 0 !important;
}

.user-info .review-date {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

.stars-row {
    color: #fbbc05 !important; /* Google Yellow */
    margin-bottom: 15px !important;
    font-size: 16px !important;
    display: flex !important;
    gap: 2px;
}

.review-text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: var(--text-main) !important;
    font-style: italic !important;
    margin-bottom: 20px !important;
    flex-grow: 1;
}

.verified-tag {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #34a853 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Slick Slider Customization */
.reviews-slider .slick-dots {
    bottom: -40px;
}

.reviews-slider .slick-dots li button:before {
    font-size: 10px;
    color: var(--primary);
}
