/* ======================================
   Modern Beauty Clinic CSS
   with RTL/LTR Support & Animations
   ====================================== */

/* ============= Global Styles ============= */
* {
    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;
}

/* Arabic Font Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ============= Header & Navigation ============= */
header {
    background: var(--gradient);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    animation: slideInLeft 0.8s ease;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    animation: slideInRight 0.8s ease;
}

nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

[dir="rtl"] nav a::after {
    left: auto;
    right: 0;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: white;
    color: var(--main-color);
    transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============= Hero Section ============= */
.hero {
    background: var(--gradient);
    color: white;
    padding: 180px 2rem 120px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============= Buttons ============= */
.btn {
    display: inline-block;
    background: white;
    color: var(--main-color);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ============= Section Styles ============= */
section {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--main-color);
    position: relative;
    padding-bottom: 1.5rem;
    animation: fadeIn 1s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient);
    border-radius: 3px;
}

/* ============= About Section ============= */
#about {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 1s ease;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
}

.about-image {
    background: var(--gradient);
    height: 450px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    animation: slideInRight 1s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* ============= Services Section ============= */
#services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.service-card h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============= Booking Section ============= */
#booking {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.booking-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: zoomIn 0.8s ease;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--main-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.text-danger {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ============= Testimonials Section ============= */
#testimonials {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    font-size: 6rem;
    color: var(--main-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

[dir="rtl"] .testimonial-card::before {
    right: 20px;
}

[dir="ltr"] .testimonial-card::before {
    left: 20px;
}

.testimonial-text {
    margin-bottom: 2rem;
    line-height: 1.9;
    color: #555;
    font-size: 1.05rem;
}

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

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
    text-align: right;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.author-info h4 {
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.rating {
    color: #ffc107;
    font-size: 1.1rem;
}

/* ============= Footer ============= */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

[dir="rtl"] .footer-content {
    text-align: right;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
}

.footer-section p {
    line-height: 1.8;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

[dir="rtl"] .footer-section a:hover {
    transform: translateX(-5px);
}

.footer-section a i {
    margin-right: 0.5rem;
}

[dir="rtl"] .footer-section a i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-5px) rotate(360deg);
    border-color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    margin-top: 2rem;
}

/* ============= Alerts/Notifications ============= */
.toast-notification {
    position: fixed;
    top: 80px;
    z-index: 9999;
    min-width: 300px;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.5s ease;
}

[dir="rtl"] .toast-notification {
    right: 20px;
}

[dir="ltr"] .toast-notification {
    left: 20px;
}

.alert i {
    margin-right: 0.5rem;
}

[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ============= Animations ============= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

[dir="rtl"] @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);
    }
}

[dir="rtl"] @keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============= Scroll to Top Button ============= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

[dir="rtl"] .scroll-to-top {
    left: 30px;
}

[dir="ltr"] .scroll-to-top {
    right: 30px;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

/* ============= Responsive Design ============= */

/* Tablets */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .about-content {
        gap: 3rem;
    }
}

/* Mobile Landscape & Portrait */
@media (max-width: 768px) {
    /* Navigation */
    nav ul {
        position: fixed;
        top: 60px;
        background: var(--gradient);
        width: 100%;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-200%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    [dir="rtl"] nav ul {
        right: 0;
    }

    [dir="ltr"] nav ul {
        left: 0;
    }

    nav ul.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero */
    .hero {
        padding: 140px 1.5rem 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Sections */
    section {
        padding: 60px 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Booking */
    .booking-form {
        padding: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Alerts */
    .toast-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        height: 30px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

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

/* ============= Authentication Pages ============= */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin-top: 60px;
}

.auth-card {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    animation: slideInLeft 0.8s ease;
}

.register-card {
    padding: 3rem 4rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-header h2 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1.05rem;
}

.auth-form-content {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-content .form-group {
    margin-bottom: 1.5rem;
}

.auth-form-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.auth-form-content label i {
    margin-right: 0.5rem;
    color: var(--main-color);
}

[dir="rtl"] .auth-form-content label i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.auth-form-content input,
.auth-form-content select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-form-content input:focus,
.auth-form-content select:focus {
    outline: none;
    border-color: var(--main-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

[dir="rtl"] .toggle-password {
    left: 10px;
}

[dir="ltr"] .toggle-password {
    right: 10px;
}

.toggle-password:hover {
    color: var(--main-color);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: var(--main-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.forgot-password:hover {
    opacity: 0.8;
}

.auth-submit-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    color: #666;
    margin-bottom: 1rem;
}

.auth-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

[dir="rtl"] .auth-link:hover {
    transform: translateX(-3px);
}

.auth-link-inline {
    color: var(--main-color);
    text-decoration: underline;
}

.auth-image {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s ease;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.auth-image-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 4rem;
    text-align: center;
}

.auth-image-overlay h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-image-overlay p {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    cursor: pointer;
}

/* ============= Profile Page ============= */
.profile-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 100px auto 3rem;
    padding: 0 2rem;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.profile-avatar img,
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--main-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    background: var(--main-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[dir="rtl"] .avatar-edit-btn {
    left: 0;
}

[dir="ltr"] .avatar-edit-btn {
    right: 0;
}

.avatar-edit-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.profile-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.profile-phone {
    color: #666;
    font-size: 0.95rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--main-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

.profile-menu {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
}

.menu-item:hover {
    background: #f8f9fa;
    color: var(--main-color);
}

.menu-item.active {
    background: var(--gradient);
    color: white;
}

.profile-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    color: var(--main-color);
    font-size: 2rem;
}

.btn-edit,
.btn-add {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-edit:hover,
.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item label i {
    color: var(--main-color);
}

.info-item input,
.info-item select,
.info-item textarea {
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.info-item input.view-mode,
.info-item select.view-mode,
.info-item textarea.view-mode {
    cursor: default;
}

.info-item input.edit-mode,
.info-item select.edit-mode,
.info-item textarea.edit-mode {
    background: white;
    border-color: var(--main-color);
}

.info-item input:focus,
.info-item select:focus,
.info-item textarea:focus {
    outline: none;
    border-color: var(--main-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-save,
.btn-cancel {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-save {
    background: var(--gradient);
    color: white;
    flex: 1;
}

.btn-cancel {
    background: #e0e0e0;
    color: #666;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cancel:hover {
    background: #d0d0d0;
}

/* Appointments */
.appointments-list,
.diagnoses-list,
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.appointment-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 5px solid var(--main-color);
    transition: all 0.3s ease;
}

[dir="rtl"] .appointment-card {
    border-left: none;
    border-right: 5px solid var(--main-color);
}

.appointment-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.appointment-card.status-pending {
    border-left-color: #ffc107;
}

.appointment-card.status-confirmed {
    border-left-color: #28a745;
}

.appointment-card.status-completed {
    border-left-color: #007bff;
}

.appointment-card.status-cancelled {
    border-left-color: #dc3545;
}

[dir="rtl"] .appointment-card.status-pending {
    border-right-color: #ffc107;
}

[dir="rtl"] .appointment-card.status-confirmed {
    border-right-color: #28a745;
}

[dir="rtl"] .appointment-card.status-completed {
    border-right-color: #007bff;
}

[dir="rtl"] .appointment-card.status-cancelled {
    border-right-color: #dc3545;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.appointment-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.appointment-detail i {
    color: var(--main-color);
}

.appointment-detail.full {
    grid-column: 1 / -1;
}

.appointment-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-cancel-appointment {
    background: #dc3545;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-cancel-appointment:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Diagnoses */
.diagnosis-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
}

.diagnosis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.diagnosis-header h4 {
    color: var(--main-color);
    font-size: 1.3rem;
}

.diagnosis-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view-details {
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.diagnosis-summary {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-item {
    color: #666;
    line-height: 1.6;
}

.summary-item strong {
    color: #333;
}

.diagnosis-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h5 {
    color: var(--main-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.detail-section p {
    color: #666;
    line-height: 1.8;
}

.medications-table {
    overflow-x: auto;
}

.medications-table table {
    width: 100%;
    border-collapse: collapse;
}

.medications-table th,
.medications-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

[dir="rtl"] .medications-table th,
[dir="rtl"] .medications-table td {
    text-align: right;
}

.medications-table th {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.next-visit-alert {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 1rem;
    color: #0c5460;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.next-visit-alert i {
    font-size: 1.5rem;
}

/* Invoices */
.invoice-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.invoice-header h4 {
    color: var(--main-color);
    font-size: 1.3rem;
}

.invoice-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.payment-status {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.payment-status.status-unpaid {
    background: #f8d7da;
    color: #721c24;
}

.payment-status.status-partial {
    background: #fff3cd;
    color: #856404;
}

.payment-status.status-paid {
    background: #d4edda;
    color: #155724;
}

.invoice-items {
    margin-bottom: 1.5rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.item-description {
    color: #333;
}

.item-price {
    color: var(--main-color);
    font-weight: 600;
}

.invoice-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total {
    border-top: 2px solid var(--main-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--main-color);
}

.summary-row.discount {
    color: #28a745;
}

.summary-row.paid {
    color: #007bff;
}

.summary-row.remaining {
    color: #dc3545;
    font-weight: 600;
}

.invoice-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn-download {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

.security-form {
    max-width: 600px;
}

/* Print Styles */
@media print {
    header,
    footer,
    .scroll-to-top,
    .mobile-menu-btn {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Responsive - Authentication */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-image {
        display: none;
    }

    .auth-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 2rem 1.5rem;
    }
}

/* Responsive - Profile */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        margin-top: 80px;
    }

    .profile-sidebar {
        position: static;
    }

    .profile-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .menu-item {
        justify-content: center;
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 0 1rem;
    }

    .profile-content {
        padding: 1.5rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .appointment-body {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}

/* ============= WhatsApp Floating Button ============= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
    left: 30px;
}

[dir="ltr"] .whatsapp-float {
    right: 30px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    font-size: 32px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip for WhatsApp button */
.whatsapp-float::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] .whatsapp-float::before {
    right: 70px;
}

[dir="ltr"] .whatsapp-float::before {
    left: 70px;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }

    [dir="rtl"] .whatsapp-float {
        left: 20px;
    }

    [dir="ltr"] .whatsapp-float {
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 26px;
    }

    .whatsapp-float::before {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ============= Blogs Section ============= */
#blogs {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
}

.blog-date {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.blog-title {
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-read-more {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-read-more:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

[dir="rtl"] .blog-read-more i {
    transform: rotate(180deg);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .blog-read-more:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* ============= Videos Section ============= */
#videos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

.video-play-overlay:hover .video-play-btn {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 1);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

[dir="rtl"] .video-modal-close {
    left: 0;
}

[dir="ltr"] .video-modal-close {
    right: 0;
}

.video-modal-close:hover {
    background: white;
    color: #000;
    transform: rotate(90deg);
}

.video-modal-body {
    position: relative;
    padding-bottom: 56.25%;
}

.video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============= Section Footer ============= */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline i {
    transition: transform 0.3s ease;
}

[dir="rtl"] .btn-outline i {
    transform: rotate(180deg);
}

.btn-outline:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .btn-outline:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* ============= Responsive Design ============= */
@media (max-width: 768px) {
    .blogs-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card,
    .video-card {
        max-width: 100%;
    }

    .video-modal {
        padding: 1rem;
    }

    .video-modal-close {
        top: 10px;
        right: 10px;
        left: auto;
    }

    [dir="rtl"] .video-modal-close {
        right: auto;
        left: 10px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.3rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* ============= Page Header ============= */
.page-header {
    background: var(--gradient);
    color: white;
    padding: 150px 2rem 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ============= Blogs Listing ============= */
.blogs-listing {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============= Blog Detail ============= */
.blog-detail-header {
    margin-top: 60px;
}

.blog-header-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: flex-end;
}

.blog-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.blog-meta {
    margin-bottom: 1.5rem;
}

.blog-meta .blog-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.blog-detail-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}

.blog-detail-content {
    padding: 80px 2rem;
    background: #f8f9fa;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.blog-main {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-article {
    line-height: 1.9;
}

.blog-body {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 3rem;
}

.blog-body p {
    margin-bottom: 1.5rem;
}

.blog-share {
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.blog-share h4 {
    color: var(--main-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar-card h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sidebar-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.related-blogs {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.back-to-blogs {
    padding: 40px 2rem;
    text-align: center;
    background: #f8f9fa;
}

/* ============= Videos Listing ============= */
.videos-listing {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.videos-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.video-card-page {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: white;
}

.video-card-page:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.video-info {
    padding: 1.5rem;
    background: white;
}

.video-date {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-date i {
    color: var(--main-color);
}

/* ============= Pagination ============= */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination-wrapper .page-item {
    margin: 0;
}

.pagination-wrapper .page-link {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: white;
    color: var(--main-color);
    border: 2px solid #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.pagination-wrapper .page-item.active .page-link {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============= Empty State ============= */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.empty-state h3 {
    color: #666;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
    font-size: 1.1rem;
}

/* ============= Responsive Design ============= */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 1.5rem 80px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .blog-header-image {
        height: 350px;
    }

    .blog-detail-title {
        font-size: 2rem;
    }

    .blog-main {
        padding: 2rem 1.5rem;
    }

    .blog-body {
        font-size: 1.05rem;
    }

    .videos-grid-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .blog-detail-title {
        font-size: 1.6rem;
    }

    .share-buttons {
        justify-content: center;
    }
}
