:root {
    --primary: #6c63ff;
    --accent: #0a0f2c;
    --bg-gradient: linear-gradient(135deg, #6c63ff, #a88beb);
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: #f8f9fd;
    margin: 0;
    overflow-x: hidden;
}

body,
html {
    overflow-x: hidden;
}

.topbar {
    background: var(--primary);
    color: white;
    font-size: 14px;
    padding: 6px 0;
}

.topbar a {
    color: white;
    margin-left: 10px;
    text-decoration: none;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-custom.shrink {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: bold;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--accent) !important;
    font-weight: 500;
    position: relative;
    margin-left: 20px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .topbar .container {
        flex-direction: column;
        text-align: center;
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 100%;
    background: linear-gradient(-90deg, rgba(10, 15, 44, 0.9), rgba(10, 15, 44, 0.4), transparent);
    backdrop-filter: blur(4px);
    z-index: 1;
    mix-blend-mode: multiply;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    background: linear-gradient(45deg, #e5d8fe, #b265ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: #e2e2e2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section .btn {
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-overlay {
        width: 100%;
        background: linear-gradient(180deg, rgba(10, 15, 44, 0.9), rgba(10, 15, 44, 0.7));
        backdrop-filter: blur(4px);
        mix-blend-mode: normal;
    }
    .text-end {
        text-align: left !important;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 60px 20px;
    }
}

.about-section {
    background: #f6f2fd;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.about-img-wrapper img {
    transition: transform 0.5s ease;
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(108, 99, 255, 0.4), transparent);
    border-radius: 1.5rem;
}

.services-section {
    background: #f6f2fd;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    height: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.service-box:hover {
    transform: translateY(-10px) scale(1.02);
}

.service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 0.6s ease;
}

.service-box:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.8), rgba(0, 0, 0, 0));
    transition: background 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #e5d8fe, #b265ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-content p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.banner-section {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(10, 15, 44, 0.6);
    z-index: 1;
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.banner-title span {
    background: linear-gradient(45deg, #cfbbff, #908aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    transition: 0.3s;
}

.btn-outline-light:hover {
    background: #fff;
    color: #1a1a2e;
}

.btn-primary {
    background: linear-gradient(to right, #6c63ff, #a88beb);
    border: none;
    color: white;
    transition: 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(to right, #5b56e9, #9473ee);
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 1.8rem;
    }
    .banner-section {
        height: 280px;
        padding: 20px;
    }
    .lead {
        font-size: 0.95rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

.doctors-section {
    background: #f6f2fd;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doctor-profile {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    position: relative;
}

.doctor-profile:hover {
    transform: translateY(-5px);
}

.doctor-image {
    margin: 0 auto 1.2rem;
    width: 180px;
    height: 180px;
    overflow: hidden;
}

.creative-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    transition: 0.3s ease-in-out;
}

.doctor-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
}

.specialty {
    font-size: 0.95rem;
    color: #6c63ff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.doctor-hover p {
    font-size: 0.9rem;
    color: #555;
    min-height: 60px;
}

.social-icons i {
    font-size: 1.1rem;
    color: #6c63ff;
    margin: 0 6px;
    transition: 0.3s ease;
}

.social-icons i:hover {
    color: #a88beb;
}

@media (max-width: 768px) {
    .creative-shape img {
        clip-path: circle(50% at 50% 50%);
    }
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doctor-profile {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    position: relative;
}

.doctor-profile:hover {
    transform: translateY(-5px);
}

.doctor-image {
    margin: 0 auto 1.2rem;
    width: 180px;
    height: 180px;
    overflow: hidden;
}

.creative-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    transition: 0.3s ease-in-out;
}

.doctor-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
}

.specialty {
    font-size: 0.95rem;
    color: #6c63ff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.doctor-hover p {
    font-size: 0.9rem;
    color: #555;
    min-height: 60px;
}

.social-icons i {
    font-size: 1.1rem;
    color: #6c63ff;
    margin: 0 6px;
    transition: 0.3s ease;
}

.social-icons i:hover {
    color: #a88beb;
}

@media (max-width: 768px) {
    .creative-shape img {
        clip-path: circle(50% at 50% 50%);
    }
}

.appointment-section {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.appointment-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
}

.overlay-purple {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(108, 99, 255, 0.6), rgba(168, 139, 235, 0.6));
    mix-blend-mode: multiply;
    z-index: 1;
}

.overlay-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
}

.appointment-section .container {
    position: relative;
    z-index: 2;
    overflow: visible;
}

.appointment-image img {
    width: 80%;
}

.glass-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 1rem;
}

.glass-box .form-control,
.glass-box .form-select {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.glass-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-box .form-select option {
    color: #000;
}

.glass-box .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.btn-gradient {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #6c63ff, #a88beb);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .appointment-section {
        min-height: auto;
        padding: 4rem 1rem;
    }
    .appointment-image {
        text-align: center;
        margin-bottom: 2rem;
    }
    .glass-box {
        padding: 2rem !important;
    }
}

.testimonial-carousel-section {
    background: #f6f2fd;
}

.testimonial-box {
    max-width: 700px;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.1);
    transition: all 0.4s ease;
}

.patient-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #6c63ff;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
}

.patient-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.patient-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}

.patient-role {
    font-size: 0.9rem;
    color: #6c63ff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #6c63ff;
    border-radius: 50%;
    padding: 15px;
    background-size: 60%;
    filter: drop-shadow(0 0 4px rgba(108, 99, 255, 0.3));
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 10px 15px;
}

.gallery-section {
    background: #f6f2fd;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    height: 260px;
    box-shadow: 0 15px 25px rgba(166, 146, 242, 0.1);
    border: 2px solid #eae4f9;
}

.gallery-card img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
    border-radius: 1.5rem;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.1), rgba(108, 99, 255, 0.8));
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 1.5rem;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    padding: 0 10px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blogs-section {
    background: #f6f2fd;
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-post {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(166, 146, 242, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(108, 99, 255, 0.2);
}

.blog-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(108, 99, 255, 0.3);
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #1a1a2e;
    font-weight: 700;
}

.blog-excerpt {
    color: #555;
    font-size: 1rem;
    margin: 0.6rem 0 1rem;
}

.read-more {
    font-weight: 600;
    color: #6c63ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #a88beb;
    text-decoration: underline;
}

.faq-section {
    background: #f6f2fd;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.section-title span {
    background: linear-gradient(45deg, #a88beb, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accordion-item {
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(166, 146, 242, 0.1);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    background-color: #fff;
    border: none;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: #6c63ff;
    background: linear-gradient(135deg, #f0e9ff, #ede6ff);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg fill='%236c63ff' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 6.5L8 13l6.5-6.5L13.5 5 8 10.5 2.5 5z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 1rem 1.25rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-image-wrapper img {
    width: 70%;
}

.oncocare-footer {
    background: linear-gradient(to right, #6c63ff, #9e74ff);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-heading {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.footer-heading span {
    color: #3c35bb;
    padding: 0 0.4rem;
    border-radius: 0.2rem;
}

.footer-subtext {
    font-size: 1rem;
    color: #eee;
}

.newsletter-form input {
    max-width: 300px;
    border-radius: 30px;
    border: none;
    padding: 0.75rem 1rem;
}

.btn-subscribe {
    background: #fff;
    color: #6c63ff;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-subscribe:hover {
    background: #f2f2f2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo span {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 0.3rem;
    border-radius: 5px;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.oncocare-footer ul li a {
    color: #eee;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: 0.3s ease;
}

.oncocare-footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        width: 100%;
        margin-bottom: 1rem;
    }
    .btn-subscribe {
        width: 100%;
    }
}