/* General Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    position: relative;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    min-width: 100%; 
}

/* --- Navbar Section start --- */


.navbar-wrapper {
    position: absolute;
    top: 20px;
    width: 100%;
    z-index: 9999; 
    padding: 0 50px;
    overflow: visible !important; 
}

.navbar-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}


.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.main-logo {
    height: 45px;    
    width: auto;    
    display: block;
    object-fit: contain;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li a small {
    font-size: 10px;
    color: #999;
}

.nav-menu li a:hover {
    color: #810e4c;
}


.cta-nav {
    display: inline-block;
    background-color: #810e4c;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-nav:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(129, 14, 76, 0.2);
}

.menu-toggle, .mobile-cta {
    display: none;
}

.menu-toggle {
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #810e4c;
    transition: all 0.3s ease;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .navbar-wrapper {
        padding: 0 20px;
        top: 10px;
    }

    .menu-toggle {
        display: flex; 
    }

    .nav-action {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 15px;
    }

    .cta-nav{
        color: white;
    }
    .nav-menu {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0; 
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1001; 
    }

   
    .nav-menu.active {
        max-height: 100vh; 
        padding: 25px 0;
        overflow-y: auto; 
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        padding: 15px;
        justify-content: center;
        width: 100%;
        font-size: 16px;
    }

    
    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* navbar end */

/* home start */

.hero-section {
    position: relative;
    height: 100vh;
    background: url('./img/cover.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

.hero-text h1 {
    color: #810e4c;
    font-size: 56px;
    max-width: 600px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text p {
    color: black;
    font-size: 18px;
    max-width: 450px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background: #810e4c;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.stats-bar {
    position: absolute;
    bottom: 30px;
    left: 5%;
    right: 5%;
    background: #810e4c;
    backdrop-filter: blur(45px);
    display: flex;
    justify-content: space-around;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.stat-item h2 { 
    font-size: 32px; 
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-item p { 
    font-size: 14px; 
    color: #ffffff;
    opacity: 0.8; 
}




@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 42px;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 5%;
        height: auto;
        min-height: 100vh;
        text-align: center;
        justify-content: flex-start; 
    }

    .hero-text {
        margin-top: 100px;
    }

    .hero-text h1 {
        font-size: 32px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

   
    .stats-bar {
        position: relative; 
        bottom: 0;
        left: 0;
        right: 0;
        margin: 40px 0 20px;
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 20px;
        padding: 30px 15px;
        opacity: 0.9;
    }

    .stat-item h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .stats-bar {
        grid-template-columns: 1fr; 
        padding: 20px;
    }
}
/* home end */

/* services start */


.medical-services-area {
    background-color: #ffffff;
    padding: 80px 20px;
    font-family: 'Inter', sans-serif; 
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}


.services-header-group {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.services-label {
    color: #810e4c; 
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
}

.services-main-title {
    font-size: 42px;
    color: #1a1a1a;
    margin-top: 10px;
}


.services-nav-controls {
    display: flex;
    gap: 10px;
}

.nav-arrow-control {
    width: 50px;
    height: 50px;
    border: none;
    background: #f8f8f8;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow-control:hover {
    background: #810e4c; 
    color: #fff;
}


.services-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-info-card {
    background: #ffffff;
    border-radius: 0; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-media-top {
    position: relative;
    overflow: visible; 
}

.service-media-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}


.service-floating-icon {
    position: absolute;
    bottom: -15px;
    left: 0;
    background-color: #810e4c; 
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}


.service-text-bottom {
    padding: 35px 20px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: none;
}

.service-text-bottom h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #222;
}

.service-text-bottom p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-action-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.service-action-link:hover {
    color: #810e4c; 
}


@media (max-width: 768px) {
    .services-header-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .services-main-title {
        font-size: 32px;
    }
}

/* services end */

/* booking section start */

.appointment-module {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f4f7f9;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.booking-container {
    display: flex;
    background: #ffffff;
    max-width: 1000px;
    width: 100%;
    border-radius: 25px;
    border: 1px solid #810e4c;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.booking-form-area {
    flex: 2;
    padding: 50px;
}

.form-title {
    color: #810e4c;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.pill-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e1e8ee;
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.pill-input:focus {
    border-color: #810e4c;
}

.submit-btn {
    width: 100%;
    background: #810e4c;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #a11b63;
}


.contact-sidebar {
    flex: 1;
    background-color: #810e4c;
    color: #ffffff;
    padding: 50px;
    display: none;
    flex-direction: column;
    justify-content: center;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 800px) {
    .booking-container { flex-direction: column; }
    .form-row { flex-direction: column; gap: 10px; }
    .contact-sidebar { order: -1; } 
}

/* booking section end */

/* department start */


.services-section {
    background-color: #810e4c; 
    padding: 80px 50px;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}


.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0.9;
}


.department-grid {
    display: grid;
    
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px 20px; 
}


.dep-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dep-img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    border-radius: 12px;
}

.dep-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}


.dep-card:hover .dep-img img {
    transform: scale(1.05);
}

.dep-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

.dep-btn{
    background-color: white;
    color: black;
    border: none;
}

@media (max-width: 992px) {
    .department-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .department-grid {
        grid-template-columns: 1fr;
    }
}

/* department end */

/* our doctor start */

.doctors-section {
    padding: 80px 20px;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #0a1d4a; 
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}


.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.doctor-card {
    text-align: left; 
}


.doctor-image {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 8px; 
}

.doctor-image img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    display: block;
}


.doctor-info h3 {
    font-size: 22px;
    color: #0a1d4a;
    margin-bottom: 8px;
}

.specialty {
    display: block;
    color: #810e4c; 
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-info p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: #0a1d4a;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.read-more:hover {
    color: #810e4c;
}


@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }
}

/* our doctor end */

/* blog start */

.lecturer-blog {
    background-color: #f4f7f9;
    padding: 60px 20px;
    font-family: 'Times New Roman', Times, serif; 
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.section-heading p {
    color: #555;
    font-style: italic;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.post-card {
    background: #ffffff;
    width: 550px;
    border: 1px solid #810e4c;
    border-radius: 4px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-tag {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #004a99; 
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.2;
}

.post-content p {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.btn-link {
    text-decoration: none;
    color: #004a99;
    font-weight: bold;
    font-family: Arial, sans-serif;
}


.newsletter-box {
    background-color: #1a2a3a; 
    color: #ffffff;
    padding: 40px;
    width: 350px;
    border-radius: 4px;
    text-align: center;
}

.newsletter-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-box p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-box input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 2px;
}

.newsletter-box button {
    width: 95%;
    padding: 10px;
    background-color: #004a99;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}


@media (max-width: 768px) {
    .post-card, .newsletter-box {
        width: 100%;
    }
}

/* blog end */

/* footer start */

/* --- Original Desktop Code (Unchanged) --- */
.main-footer {
    background-color: #810e4c;
    color: #ffffff;
    padding: 80px 0 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    gap: 40px;
}

.footer-col { flex: 1; }

.footer-logo-img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.brand-info p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
}

.newsletter-mini {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px;
}

.newsletter-mini input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    font-size: 13px;
    width: 100%;
}

.newsletter-mini button {
    background: #ffffff;
    border: none;
    color: #810e4c;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links { 
    list-style: none; 
    padding: 0; 
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover { 
    color: #fff; 
    padding-left: 5px; 
}

.contact-card {
    background-color: #ffffff;
    color: #333;
    padding: 35px;
    border-radius: 15px;
    flex: 1.2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: -40px; 
    position: relative;
    z-index: 5;
}

.phone-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #810e4c;
    text-decoration: none;
    margin: 15px 0;
}

.get-directions {
    color: #810e4c;
    font-weight: bold;
    text-decoration: none;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #810e4c;
    color: #fff;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    transition: 0.3s;
    margin-right: 5px;
}

.footer-bottom {
    background-color: #f4f4f4;
    padding: 70px 0 30px;
    text-align: center;
    color:#810e4c;
}

.footer-bottom a {
    color: #810e4c;
    text-decoration: none;
    font-weight: bold;
}

/* --- Mobile Responsive Fixes --- */

/* Ensures no horizontal overflow */
html, body {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .main-footer {
        padding: 50px 0 0;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap; 
        padding: 0 20px;
        gap: 30px 2%;
    }

    .brand-info {
        width: 100%;
        text-align: center;
    }

    /* Keeps Departments and Quick Links side-by-side */
    .footer-container .footer-col:nth-child(2),
    .footer-container .footer-col:nth-child(3) {
        width: 48%;
        flex: none;
        text-align: left;
    }

    .contact-card {
        width: 100%;
        margin-bottom: 20px; /* Removes overlap for mobile */
        padding: 25px;
    }

    .footer-bottom {
        padding: 40px 15px;
        font-size: 13px;
    }

    /* Moves credit to the next line on mobile ONLY */
    .footer-credit {
        display: block;
        margin-top: 8px;
    }
}

/* fotter end */

/* index.html closed */

/* ---------------------------------------------------------------------------------------------------------------------------- */




