* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

:root {
    --primary-color: #0F766E;
    --primary-dark: #115E59;
    --primary-light: #14B8A6;
    --secondary-color: #64748B;
    --ivory-color: #F8FAFC;
    --accent-color: #D97706;
    --accent-light: #FCD34D;
    --icon-color: #06B6D4;
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --gradient-primary: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    --gradient-primary-soft: linear-gradient(135deg, #14B8A6 0%, #0F766E 50%, #115E59 100%);
    --gradient-accent: linear-gradient(135deg, #D97706 0%, #92400E 100%);
    --gradient-ivory: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    --gradient-preloader: linear-gradient(135deg, #115E59 0%, #0F766E 50%, #14B8A6 100%);
    --shadow-sm: 0 5px 20px rgba(15, 118, 110, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 118, 110, 0.12);
    --shadow-lg: 0 15px 40px rgba(15, 118, 110, 0.18);
    --shadow-accent: 0 5px 20px rgba(15, 118, 110, 0.15);
}

.text-accent {
    color: var(--accent-color) !important;
}

::selection {
    background: var(--primary-color);
    color: white;
}

.navbar {
    background: var(--gradient-primary);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 118, 110, 0.95);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: #fff !important;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(15, 118, 110, 0.08);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.hero-content p {
    animation: slideInLeft 1s ease 0.2s both;
}

.hero-content .d-flex {
    animation: slideInLeft 1s ease 0.4s both;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 1s ease 0.3s both;
}

.doctor-image {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.doctor-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, 0.3);
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.doctor-image i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.8);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-ivory);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.image-placeholder i {
    font-size: 100px;
    color: var(--icon-color);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--ivory-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-accent);
    border-color: var(--accent-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: var(--secondary-color);
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item h3.counted {
    animation: countUp 0.5s ease;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: var(--gradient-primary-soft);
}

.service-icon i {
    font-size: 35px;
    color: white;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.qualification-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s ease;
    border-left: 4px solid transparent;
}

.qualification-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
}

.qualification-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.qualification-card:hover .qualification-icon {
    transform: scale(1.1) rotate(10deg);
}

.qualification-icon i {
    font-size: 30px;
    color: white;
}

.qualification-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.qualification-card ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.blog-card:hover h4 {
    color: var(--primary-color);
}

.blog-card h4 {
    transition: color 0.3s ease;
}

.blog-image {
    height: 200px;
    background: var(--gradient-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-image i {
    font-size: 60px;
    color: var(--icon-color);
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image i {
    transform: scale(1.2);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-content h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.blog-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
}

.blog-content .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-content .btn-link:hover {
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-pills .nav-link {
    color: var(--dark-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background: var(--ivory-color);
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-card:hover .video-info h5 {
    color: var(--primary-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.video-info p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.video-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 60px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(15, 118, 110, 0.1);
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease;
}

.page-header .breadcrumb {
    animation: slideInUp 0.8s ease 0.2s both;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--accent-light);
}

.page-header .breadcrumb-item.active {
    color: white;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.search-box button {
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
}

.category-list li a:hover {
    color: var(--primary-color);
    background: rgba(15, 118, 110, 0.05);
    padding-left: 1rem;
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-posts li:hover {
    padding-left: 0.5rem;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.recent-posts li a:hover {
    color: var(--primary-color);
}

.recent-posts small {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud .badge {
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud .badge:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

.cta-widget {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.cta-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(15, 118, 110, 0.1);
    border-radius: 50%;
}

.cta-widget h4 {
    margin-bottom: 0.75rem;
}

.cta-widget p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.cta-widget .btn {
    background: white;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.cta-widget .btn:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 118, 110, 0.4);
}

.blog-detail {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.blog-featured-image {
    height: 300px;
    background: var(--gradient-ivory);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-detail:hover .blog-featured-image img {
    transform: scale(1.02);
}

.blog-featured-image i {
    font-size: 100px;
    color: var(--primary-color);
}

.blog-detail .blog-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.blog-detail h1 {
    font-weight: 700;
    line-height: 1.3;
}

.blog-detail h3 {
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.blog-detail p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-detail ul {
    color: var(--secondary-color);
    line-height: 1.8;
    padding-left: 1.5rem;
}

.blog-detail li {
    margin-bottom: 0.5rem;
}

.treatment-box {
    background: var(--ivory-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.treatment-box h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-tags {
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.blog-tags .badge {
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tags .badge:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

.blog-share {
    padding: 1rem 0;
}

.blog-share .btn {
    transition: all 0.3s ease;
}

.blog-share .btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.blog-share .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.blog-share .btn-outline-info:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: white;
}

.blog-share .btn-outline-danger:hover {
    background: #E60023;
    border-color: #E60023;
    color: white;
}

.author-box {
    background: var(--ivory-color);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.author-box:hover {
    box-shadow: var(--shadow-accent);
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.author-box:hover .author-avatar {
    transform: rotate(10deg) scale(1.1);
}

.author-avatar i {
    font-size: 30px;
    color: white;
}

.author-box h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-box p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.related-posts {
    margin-top: 2rem;
}

.related-posts h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--ivory-color);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-post-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.related-post:hover .related-post-icon {
    transform: scale(1.1) rotate(-10deg);
}

.related-post-icon i {
    font-size: 25px;
    color: white;
}

.related-post-content h6 {
    margin-bottom: 0.25rem;
}

.related-post-content h6 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h6 a:hover {
    color: var(--primary-color);
}

.related-post-content small {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(15, 118, 110, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.testimonial-author .author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author .author-avatar i {
    font-size: 20px;
    color: white;
}

.author-info h5 {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark-color);
}

.author-info small {
    color: var(--secondary-color);
}

.accordion-button {
    font-weight: 500;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}

.accordion-body {
    color: var(--secondary-color);
    line-height: 1.8;
}

.appointment-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.1);
}

.appointment-form .form-control,
.appointment-form .form-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}

.contact-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
    transform: rotateY(180deg);
    background: var(--gradient-primary);
}

.contact-icon i {
    font-size: 30px;
    color: white;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.clinic-hours {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}

.clinic-hours h4 {
    margin-bottom: 1rem;
}

footer {
    background: var(--dark-color);
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .doctor-image {
        width: 300px;
        height: 300px;
    }

    .doctor-image i {
        font-size: 120px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .doctor-image {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
    }

    .doctor-image i {
        font-size: 100px;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .appointment-form {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 118, 110, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s ease;
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-scale.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: var(--secondary-color);
}

#loader {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ivory-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 0.75rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

#end-message {
    display: none;
    text-align: center;
    padding: 2rem 0;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--gradient-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    color: white;
}

.preloader-ribbon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: ribbonPulse 1.5s ease-in-out infinite;
    color: var(--ivory-color);
    position: relative;
}

.preloader-ribbon::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ringExpand 1.5s ease-out infinite;
}

@keyframes ribbonPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes ringExpand {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.preloader-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    animation: float 2s ease-in-out infinite;
}

.preloader-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.preloader-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.preloader-bar {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--ivory-color);
    border-radius: 10px;
    animation: fillBar 1.8s ease-in-out forwards;
}

@keyframes fillBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}
