/* CP Academy Modern CSS */
:root {
    --primary-color: #FBDA06;
    --primary-dark: #E5C406;
    --primary-light: #FDE68A;
    --secondary-color: #1F2937;
    --dark-bg: #111827;
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    overflow-x: hidden;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Header Styles - 25% Qara Kölgə */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.25); /* 25% opacity qara kölgə */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.35); /* Scroll zamanı bir az daha qararlıq */
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(251, 218, 6, 0.1);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section - Modern və Responsive */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    margin-top: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Image loading states */
.hero-slide-img:not([src]),
.hero-slide-img[src=""] {
    opacity: 0;
}

.hero-slide-img[src]:not([src=""]) {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-default-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-slide::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: heroFadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: calc(100vh - 140px); /* Header space-i hesabına alır */
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Button Styles */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 25px;
    min-width: 160px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

/* Section Styles - Modern Layout */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateX(-50%);
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Card Styles */
.service-card,
.blog-card,
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
}

.service-card::before,
.blog-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover,
.blog-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before,
.blog-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}

.card-img-top {
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .card-img-top,
.blog-card:hover .card-img-top,
.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Doctor Section - Premium Look */
.doctor-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.doctor-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 218, 6, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.doctor-image-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.doctor-content {
    position: relative;
    z-index: 2;
}

.doctor-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.doctor-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    opacity: 0.9;
}

.doctor-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Modern Appointment Form Card */
.appointment-form-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.appointment-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.appointment-form-card .card-header {
    background: var(--gradient-primary);
    border: none;
    position: relative;
}

.appointment-form-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.appointment-form-card .card-body {
    background: var(--white);
    position: relative;
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(251, 218, 6, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.form-label i {
    width: 16px;
}

/* Button Styles */
.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary.btn-lg {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-dark);
}

.btn-primary.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(251, 218, 6, 0.4);
}

/* Legacy Form Styles (for backwards compatibility) */

/* Modern Form Styles */
.appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.appointment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(251, 218, 6, 0.1);
    outline: none;
    background: #fffef7;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery Styles - Modern Grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 218, 6, 0.9) 0%, rgba(229, 196, 6, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Footer - Modern Dark */
.main-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-widget h5 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1.3rem;
    position: relative;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-widget p,
.footer-widget li {
    color: #D1D5DB;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: block;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Contact page social buttons - dark background */
.card .social-links a,
.card-body .social-links a {
    background: var(--dark-bg) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card .social-links a:hover,
.card-body .social-links a:hover {
    background: var(--primary-color) !important;
    color: var(--dark-bg) !important;
    border-color: var(--primary-color);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 0;
    position: fixed;
    width: 250px;
    z-index: 1000;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-left-color: var(--white);
    font-weight: 600;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.admin-content {
    padding: 0 30px 30px;
}

.admin-content .card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.admin-content .card-header {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

.admin-content .table th {
    background: var(--bg-light);
    font-weight: 600;
    border: none;
    padding: 15px;
}

.admin-content .table td {
    padding: 15px;
    vertical-align: middle;
    border-color: var(--border-color);
}

/* CKEditor Custom Styles */
.ck-editor__editable {
    min-height: 300px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.ck-editor__editable:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(251, 218, 6, 0.25);
}

.ck.ck-toolbar {
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--bg-light);
}

.ck.ck-editor__main > .ck-editor__editable {
    border-radius: 0 0 8px 8px;
}

/* CKEditor responsive */
@media (max-width: 768px) {
    .ck.ck-toolbar {
        flex-wrap: wrap;
    }
    
    .ck-editor__editable {
        min-height: 200px;
    }
}

/* Admin panel textarea fallback */
.admin-content textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.admin-content textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(251, 218, 6, 0.25);
}

/* Textarea formatting help */
.text-muted code {
    background: rgba(251, 218, 6, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

/* Modal Improvements */
.modal-xl .modal-body {
    padding: 30px;
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Blog Content Preview */
.blog-preview {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }
    
    .admin-content {
        padding: 0 15px 15px;
    }
    
    .admin-header {
        padding: 15px 20px;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    padding: 120px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1,
.page-header .display-4 {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p,
.page-header .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
    color: var(--white) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb Modern */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Detail pages breadcrumb - dark text */
section[style*="margin-top: 70px"] .breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

section[style*="margin-top: 70px"] .breadcrumb-item a {
    color: var(--dark-bg);
    opacity: 0.8;
}

section[style*="margin-top: 70px"] .breadcrumb-item a:hover {
    color: var(--dark-bg);
    opacity: 1;
}

section[style*="margin-top: 70px"] .breadcrumb-item.active {
    color: var(--primary-color);
}

/* Table Styles - Modern */
.table-responsive {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    border: none;
    vertical-align: middle;
    padding: 20px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Alert Styles - Modern */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid;
    backdrop-filter: blur(8px);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-left-color: #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left-color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left-color: #f59e0b;
}

/* Badge Modern */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 0;
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide-img {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }
    
    .hero-content {
        min-height: calc(70vh - 56px);
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 50px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .doctor-section {
        padding: 60px 0;
    }
    
    .doctor-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .doctor-title {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .doctor-description {
        text-align: center;
        font-size: 1rem;
    }
    
    .appointment-form-card .card-header {
        padding: 24px 20px;
    }
    
    .appointment-form-card .card-body {
        padding: 24px 20px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
}

/* Tablet Responsive */
@media (max-width: 991.98px) and (min-width: 769px) {
    .hero-slider {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-slide-img {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        margin-top: 0;
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slide-img {
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-content {
        padding: 0 15px;
        min-height: calc(60vh - 56px);
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .btn-lg.ms-3 {
        margin-top: 10px !important;
        margin-left: 0 !important;
    }
    
    .doctor-name {
        font-size: 1.8rem;
    }
    
    .doctor-title {
        font-size: 1.1rem;
    }
    
    .appointment-form-card .card-header h3 {
        font-size: 1.5rem;
    }
    
    .appointment-form-card .card-header p {
        font-size: 14px;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

/* ============ CKEditor Content Styling ============ */
.content-area, .rendered-content, .doctor-description {
    line-height: 1.7;
    color: var(--text-dark);
}

.content-area h1, .rendered-content h1, .doctor-description h1,
.content-area h2, .rendered-content h2, .doctor-description h2,
.content-area h3, .rendered-content h3, .doctor-description h3,
.content-area h4, .rendered-content h4, .doctor-description h4,
.content-area h5, .rendered-content h5, .doctor-description h5,
.content-area h6, .rendered-content h6, .doctor-description h6 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.content-area h1, .rendered-content h1, .doctor-description h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.content-area h2, .rendered-content h2, .doctor-description h2 {
    font-size: 1.75rem;
}

.content-area h3, .rendered-content h3, .doctor-description h3 {
    font-size: 1.5rem;
}

.content-area h4, .rendered-content h4, .doctor-description h4 {
    font-size: 1.25rem;
}

.content-area p, .rendered-content p, .doctor-description p {
    margin-bottom: 16px;
    text-align: justify;
}

.content-area ul, .rendered-content ul, .doctor-description ul,
.content-area ol, .rendered-content ol, .doctor-description ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-area li, .rendered-content li, .doctor-description li {
    margin-bottom: 6px;
}

.content-area blockquote, .rendered-content blockquote, .doctor-description blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--bg-light);
    font-style: italic;
    color: var(--text-light);
    border-radius: 0 8px 8px 0;
}

.content-area strong, .rendered-content strong, .doctor-description strong {
    font-weight: 600;
    color: var(--text-dark);
}

.content-area em, .rendered-content em, .doctor-description em {
    font-style: italic;
}

.content-area a, .rendered-content a, .doctor-description a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.content-area a:hover, .rendered-content a:hover, .doctor-description a:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

/* Responsive content */
@media (max-width: 768px) {
    .content-area h1, .rendered-content h1, .doctor-description h1 {
        font-size: 1.75rem;
    }
    
    .content-area h2, .rendered-content h2, .doctor-description h2 {
        font-size: 1.5rem;
    }
    
    .content-area h3, .rendered-content h3, .doctor-description h3 {
        font-size: 1.25rem;
    }
}

/* ============ Footer Styles ============ */
.main-footer {
    color: white !important;
}

.main-footer .footer-title {
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.main-footer .footer-links li a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.main-footer .footer-links li a:hover {
    color: var(--primary-color) !important;
    opacity: 1;
    padding-left: 5px;
}

.main-footer .contact-info span {
    color: white !important;
    opacity: 0.9;
}

.main-footer .contact-icon i {
    color: var(--primary-color) !important;
    width: 20px;
    text-align: center;
}

.main-footer .working-hours span {
    color: white !important;
}

.main-footer .working-hours .text-primary {
    color: var(--primary-color) !important;
}

.main-footer .working-hours .text-danger {
    color: #dc3545 !important;
}

.main-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.main-footer .social-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
}

.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .footer-bottom p {
    color: white !important;
}

/* Responsive footer */
@media (max-width: 768px) {
    .main-footer .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .main-footer .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .main-footer .contact-item {
        margin-bottom: 1rem !important;
    }
}

/* ============ Contact Form Alerts ============ */
.contact-form-alert {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form-alert.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #b8dacc;
    color: #155724;
}

.contact-form-alert.alert-success .alert-icon {
    color: #28a745;
}

.contact-form-alert.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border-color: #f1aeb5;
    color: #721c24;
}

.contact-form-alert.alert-danger .alert-icon {
    color: #dc3545;
}

/* ============ Mobile Appointment Form - Hide Background Image ============ */
@media (max-width: 780px) {
    .appointment-bg-image {
        display: none !important;
    }
    
    .appointment-section {
        background: var(--primary-color) !important;
    }
    
    .appointment-section .col-lg-6:last-child {
        display: none !important;
    }
    
    .appointment-section .col-lg-6:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}