:root {
    --primary: #d32f2f;
    --secondary: #fff0f0;
    --dark: #2c2c2c;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    scroll-behavior: smooth;
    padding: 0px;
}

.topbar {
    background: var(--secondary);
    color: var(--primary);
    font-size: 14px;
}

.topbar {
    background-color: #fcecec;
    color: var(--primary);
    padding: 5px 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #ffdada;
    font-family: 'Segoe UI', sans-serif;
}

.fixed-top {
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar {
    background: linear-gradient(to right, #b61428, #e53935);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 24px;
    color: white;
}

.nav-link {
    color: white !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffe0e0 !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.carousel-item img {
    height: 100vh;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    bottom: 20%;
}

.carousel-caption h1 {
    font-size: 3rem;
    animation: fadeInDown 1s;
}

.carousel-caption p {
    font-size: 1.2rem;
    animation: fadeInUp 1s;
}

.carousel-inner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

.navbar.fixed-top.scrolled {
    background-color: #b71c1c !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-us-section {
    background: linear-gradient(to right, #fff5f5, #ffecec);
}

.about-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-card .btn-outline-danger {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.about-card .btn-outline-danger:hover {
    background-color: #e53935;
    color: #fff;
}

.equal-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(178, 34, 34, 0.2);
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img img {
    object-fit: cover;
    height: 100%;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #fff;
    color: #B22222;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.service-card:hover .icon-overlay {
    transform: scale(1.1);
}

.appointment-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.form-box-red {
    background-color: #8e2020;
}

.form-box-red .form-control,
.form-box-red .form-select,
.form-box-red textarea {
    border: none;
    border-radius: 8px;
    background-color: #fff5f5;
    color: #B22222;
}

.form-box-red .form-control::placeholder,
.form-box-red .form-select,
.form-box-red textarea::placeholder {
    color: #B22222;
    opacity: 0.8;
}

.text-custom h2,
.text-custom h5,
.text-custom p {
    color: #fffdfd;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.overlay-red {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.12);
    z-index: 1;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.doctor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.doctor-img {
    height: 260px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.testimonial-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.date-badge {
    position: absolute;
    bottom: -15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1;
}

.blog-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.footer-modern {
    background: #dc3545;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-modern .footer-top {
    position: relative;
    background: #dc3545;
    z-index: 1;
}

.footer-modern .footer-curve {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 0;
}

.footer-modern .footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-modern .footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-modern input[type="email"] {
    border-radius: 30px;
    border: none;
    padding: 0.5rem 1rem;
    min-width: 200px;
}

.footer-modern button.btn-danger {
    border-radius: 30px;
    padding: 0.5rem 1rem;
}

.footer-modern i.fab,
.footer-modern i.fas {
    transition: 0.3s ease;
}

.footer-modern i:hover {
    transform: scale(1.2);
    color: #ffffff;
}

.cardio-footer {
    background: linear-gradient(to right, #fff5f5, #fbe9e7);
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
    padding: 2rem 0 0;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e57373;
}

.footer-top h2 {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.8rem;
}

.footer-top h2 i {
    color: #c62828;
    margin-right: 10px;
}

.footer-top h4 {
    margin-bottom: 0.5rem;
    color: #d32f2f;
}

.footer-top p {
    margin: 5px 0;
}

.footer-social .social-icons a {
    color: #c62828;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social .social-icons a:hover {
    color: #e53935;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2rem;
    background-color: #fff5f5;
}

.footer-links div {
    flex: 1 1 250px;
    margin-bottom: 1.5rem;
}

.footer-links h5 {
    margin-bottom: 1rem;
    color: #d32f2f;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: #4a4a4a;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #d32f2f;
}

.footer-links input[type="email"] {
    padding: 8px;
    width: 80%;
    margin-top: 10px;
    border: 1px solid #f28b82;
    border-radius: 5px;
}

.footer-links button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background-color: #e53935;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.footer-links button:hover {
    background-color: #c62828;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    background-color: #fdecea;
    font-size: 14px;
    color: #7a7a7a;
}