/* ========================================
   MCI Private Website - Global Styles
   ======================================== */

/* === DESIGN SYSTEM === */
:root {
    --primary-color: #0D6EFD;
    --secondary-color: #20C997;
    --dark-text: #212529;
    --light-bg: #F8F9FA;
    --accent-color: #FF7A00;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* === TYPOGRAPHY === */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* === GLOBAL UTILITIES === */
.container-custom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* === BUTTONS === */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: #e66d00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #1fb855;
    color: var(--white);
}

.btn-call {
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === CARDS === */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* === NAVBAR === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 18px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 260px;
}

/* Hover to open dropdown on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown-hover:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.3s ease-in-out;
    }
    
    .navbar-nav .dropdown-submenu:hover > .dropdown-submenu-menu {
        display: block;
        animation: fadeInRight 0.3s ease-in-out;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.navbar-nav .dropdown-item {
    color: var(--dark-text);
    padding: 12px 25px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
}

.navbar-nav .dropdown-item:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding-left: 30px;
}

.navbar-nav .dropdown-item i {
    font-size: 1rem;
    width: 20px;
}

.navbar-nav .dropdown-item .fa-chevron-right {
    margin-left: auto;
    font-size: 0.75rem;
    transition: var(--transition);
}

.navbar-nav .dropdown-item:hover .fa-chevron-right {
    transform: translateX(3px);
}

.navbar-nav .dropdown-divider {
    margin: 8px 0;
    border-color: var(--gray-200);
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

/* Nested Dropdown / Submenu Styles */
.navbar-nav .dropdown-submenu {
    position: relative;
}

.navbar-nav .dropdown-submenu-menu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0;
    margin-top: 0;
    display: none;
    background: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 220px;
}

.navbar-nav .dropdown-submenu > .dropdown-toggle::after {
    display: none;
}

/* Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: var(--gray-100);
        margin-top: 5px;
        margin-left: 15px;
        border-radius: var(--border-radius-sm);
        padding: 5px 0;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: var(--primary-color);
        padding-left: 25px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    /* Mobile submenu styles */
    .navbar-nav .dropdown-submenu-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-200);
        margin-left: 20px;
        margin-top: 5px;
        border-radius: var(--border-radius-sm);
        padding: 5px 0;
    }
    
    .navbar-nav .dropdown-submenu-menu .dropdown-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Click to toggle submenu on mobile */
    .navbar-nav .dropdown-submenu > .dropdown-toggle {
        cursor: pointer;
    }
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(13,110,253,0.8), rgba(32,201,151,0.6)); */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.95);
}

/* === QUICK HIGHLIGHTS === */
.highlight-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.highlight-card h4 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.highlight-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* === VIDEO SECTION === */
.video-section {
    background: var(--light-bg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === TESTIMONIALS === */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-text);
}

.testimonial-position {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* === PRODUCT CARDS === */
.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

/* === DOCTOR CARD === */
.doctor-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.doctor-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.doctor-info {
    padding: 25px;
    text-align: center;
}

.doctor-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.doctor-designation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.doctor-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.doctor-actions .btn {
    flex: 1;
    max-width: 150px;
}

/* === GALLERY === */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
}

/* === FILTER SIDEBAR === */
.filter-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.filter-option {
    display: block;
    margin-bottom: 10px;
}

.filter-option input {
    margin-right: 8px;
}

.filter-option label {
    color: var(--gray-600);
    cursor: pointer;
}

/* === SPECIFICATIONS TABLE === */
.spec-table {
    width: 100%;
    margin-top: 30px;
}

.spec-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.spec-table td {
    padding: 15px 10px;
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--dark-text);
    width: 30%;
}

.spec-table td:last-child {
    color: var(--gray-600);
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* === CONTACT FORM === */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.form-control {
    padding: 12px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 8px;
}

/* === MAP === */
.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 400px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === FOOTER === */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* === JOB CARD === */
.job-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.job-meta span {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === BREADCRUMB === */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: var(--white);
}

.breadcrumb-section h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255,255,255,0.9);
}

.breadcrumb-item.active {
    color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide {
        height: 500px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0;
        padding-left: 70px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
    }
    
    .timeline-dot {
        left: 21px !important;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .doctor-actions {
        flex-direction: column;
    }
    
    .doctor-actions .btn {
        max-width: 100%;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* === ACCORDION === */
.accordion-button {
    font-weight: 600;
    color: var(--dark-text);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* === BADGES === */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* === PARTNER LOGOS === */
.partner-logo {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* === SIDEBAR CARDS FIX === */
/* Override height: 100% for sidebar cards that stack vertically */
.col-lg-4 .card,
.col-lg-5 .card {
    height: auto;
}

/* Ensure news article cards maintain proper height */
.col-lg-8 .card {
    height: auto;
}

/* Form wrapper */
.contact-form {
    height: 100%;
}
