.review-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.review-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.2s;
}

.review-img:hover {
    transform: scale(1.04);
}

@media (max-width: 100px) {
    .review-images-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .review-img {
        height: 120px;
        border-radius: 8px;
    }
}

/* New Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Medical Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumbnail-container iframe,
.video-thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 10px;
}

.video-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #2c5530;
    font-weight: 500;
}

.review-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    min-height: 120px;
    max-height: 220px;
    min-width: 160px;
    max-width: 320px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px var(--shadow);
    margin-left: auto;
    margin-right: auto;
}

.review-card-img .review-card-overlay {
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.2) 100%);
    padding: 6px 6px 6px 6px;
    border-radius: 0 0 10px 10px;
}

.review-card-img .review-author {
    margin-top: 2px;
}

.review-card-img .review-rating i {
    color: #FFD700;
    font-size: 0.8rem;
    margin-right: 1px;
}

.review-card-img p {
    color: var(--light-text);
    line-height: 1.3;
    margin-bottom: 3px;
    font-style: italic;
    font-size: 0.7rem;
}

.review-card-img .review-author h5,
.review-card-img .review-author span {
    color: #fff;
    font-size: 0.7rem;
}

@media (max-width: 480px) {
    .reviews-grid {
        gap: 8px !important;
    }

    .review-card-img {
        min-width: 90vw !important;
        max-width: 98vw !important;
        min-height: 80px !important;
        max-height: 120px !important;
        border-radius: 8px !important;
        padding: 0 !important;
        margin-bottom: 6px !important;
    }

    .review-card-img .review-card-overlay {
        padding: 8px 6px 6px 6px !important;
        border-radius: 0 0 8px 8px !important;
    }

    .review-card-img .review-author {
        margin-top: 2px !important;
    }

    .review-card-img .review-rating i {
        font-size: 0.7rem !important;
        margin-right: 1px !important;
    }

    .review-card-img p {
        font-size: 0.7rem !important;
        margin-bottom: 3px !important;
    }

    .review-card-img .review-author h5,
    .review-card-img .review-author span {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .review-card-img {
        min-width: 90vw !important;
        max-width: 95vw !important;
        min-height: 80px !important;
        height: 100px !important;
        border-radius: 10px;
        padding: 0;
    }

    .review-card-img .review-card-overlay {
        padding: 10px 8px 8px 8px !important;
        border-radius: 0 0 10px 10px !important;
    }

    .review-card-img .review-author {
        margin-top: 6px !important;
    }

    .review-card-img .review-rating i {
        font-size: 1rem !important;
        margin-right: 2px !important;
    }

    .review-card-img p {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .review-card-img {
        min-width: 90vw !important;
        max-width: 95vw !important;
        min-height: 80px !important;
        height: 100px !important;
        border-radius: 10px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .review-card-img {
        min-width: 90vw !important;
        max-width: 95vw !important;
        min-height: 120px !important;
        height: 140px !important;
        border-radius: 10px;
        padding: 0;
    }
}

/* Review Card as Image */
.review-card-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    min-height: 480px;
    /* Increased height for longer photo */
    display: contain;
    align-items: flex-end;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px var(--shadow);
}

.review-card-img .review-card-overlay {
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.2) 100%);
    padding: 40px 32px 28px 32px;
    border-radius: 0 0 24px 24px;
}

.review-card-img .review-rating i {
    color: #FFD700;
}

.review-card-img .review-author h5,
.review-card-img .review-author span {
    color: #fff;
}

.review-card-img .review-author {
    margin-top: 15px;
}

/* Floating WhatsApp Icon */
.floating-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 15px 20px;
    min-width: 60px;
    max-width: 300px;
    overflow: visible;
    animation: pulse 2s infinite;
    cursor: pointer;
    width: auto;
    height: auto;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.whatsapp-content i {
    font-size: 2.2rem;
    flex-shrink: 0;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1;
    min-width: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.floating-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
    max-width: 300px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp:hover .whatsapp-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-weight: 700;
}


/* Detail Modals */
.detail-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.detail-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.detail-modal-header {
    background: linear-gradient(135deg, #2c5530, #3a6b3a);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.close-detail-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-detail-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.detail-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Filters */
.detail-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #2c5530;
    color: #2c5530;
}

.filter-btn.active {
    background: #2c5530;
    border-color: #2c5530;
    color: white;
}

/* Gallery Grid */
.certificates-gallery,
.conferences-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.gallery-item-content {
    padding: 20px;
}

.gallery-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.gallery-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.gallery-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-item-meta i {
    color: #2c5530;
    width: 14px;
}

.gallery-item-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item-category {
    display: inline-block;
    background: #e8f5e8;
    color: #2c5530;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Item Detail Modal */
.item-detail-modal {
    display: flex;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.item-detail-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.item-detail-content {
    background-color: #fff;
    margin: 1% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1000px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(18px) scale(0.985);
    transition: transform 0.28s ease;
}

.item-detail-modal.is-open .item-detail-content {
    transform: translateY(0) scale(1);
}

.item-detail-header {
    background: linear-gradient(135deg, #2c5530, #3a6b3a);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-detail-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-item-detail {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-item-detail:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.item-detail-body {
    padding: 30px;
    max-height: calc(95vh - 100px);
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.item-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.item-detail-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.item-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.meta-item i {
    color: #2c5530;
    width: 16px;
    text-align: center;
}

.item-detail-description h4,
.item-detail-achievements h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.item-detail-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.item-detail-achievements ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.item-detail-achievements li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {

    .detail-modal-content,
    .item-detail-content {
        width: 98%;
        margin: 1% auto;
    }

    .detail-modal-body,
    .item-detail-body {
        padding: 20px;
    }

    .certificates-gallery,
    .conferences-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-detail-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-detail-image {
        height: 250px;
    }

    .item-detail-meta {
        grid-template-columns: 1fr;
    }

    .detail-filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    .detail-modal-header,
    .item-detail-header {
        padding: 15px 20px;
    }

    .detail-modal-header h2,
    .item-detail-header h3 {
        font-size: 1.3rem;
    }

    .detail-modal-body,
    .item-detail-body {
        padding: 15px;
    }

    .gallery-item-content {
        padding: 15px;
    }

    .gallery-item-title {
        font-size: 1.1rem;
    }
}



/* Achievements Section */
.achievements-section {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 12px;
    border: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.achievements-section h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.achievements-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
    border-radius: 2px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.8));
    border-radius: 8px;
    border: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInFromBottom 0.6s ease-out;
    min-height: 50px;
}

.achievement-item i {
    font-size: 1.1rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.achievement-item span {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--dark-text);
    font-weight: 500;
    flex: 1;
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
}

/* RTL Support for Achievements */
[dir="rtl"] .achievement-item {
    text-align: right;
}

[dir="rtl"] .achievement-item span {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .achievement-item i {
    margin-right: 12px;
    margin-left: 0;
}

[dir="rtl"] .achievements-section h4 {
    text-align: right;
    direction: rtl;
}


@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Additional Reviews Section (Veseta) */
.additional-reviews {
    margin-top: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border-radius: 20px;
    border: 2px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.review-image-section {
    margin-bottom: 40px;
    text-align: center;
}

.review-image-section h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.review-image-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
    border-radius: 2px;
}

.review-image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.review-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.veseta-link-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-green), rgba(45, 90, 39, 0.9));
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.3);
}

.veseta-link-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.veseta-link-content i {
    font-size: 2.5rem;
    color: var(--gold);
    animation: pulse 2s infinite;
}

.veseta-text h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.veseta-text p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.veseta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--gold);
    color: var(--primary-green);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
    white-space: nowrap;
}

.veseta-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    color: var(--primary-green);
}

.veseta-btn i {
    font-size: 1.1rem;
}

/* Responsive Design for Veseta Section */
@media (max-width: 768px) {
    .additional-reviews {
        margin-top: 30px;
        padding: 25px 20px;
    }

    .review-image-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .review-image-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-top: 20px;
    }

    .review-image {
        height: 200px;
    }

    .veseta-link-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .veseta-link-content {
        flex-direction: column;
        gap: 15px;
    }

    .veseta-link-content i {
        font-size: 2rem;
    }

    .veseta-text h4 {
        font-size: 1.2rem;
    }

    .veseta-text p {
        font-size: 0.9rem;
    }

    .veseta-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .additional-reviews {
        padding: 20px 15px;
    }

    .review-image-section h3 {
        font-size: 1.3rem;
    }

    .review-image-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .review-image {
        height: 150px;
    }

    .veseta-link-section {
        padding: 15px;
    }

    .veseta-link-content i {
        font-size: 1.8rem;
    }

    .veseta-text h4 {
        font-size: 1.1rem;
    }

    .veseta-text p {
        font-size: 0.85rem;
    }

    .veseta-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Responsive Design for WhatsApp Button */
@media (max-width: 768px) {
    .floating-whatsapp {
        right: 20px;
        bottom: 20px;
        max-width: 250px;
        padding: 12px 16px;
        width: auto;
        height: auto;
    }

    .whatsapp-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 11px;
        font-weight: 600;
    }

    .whatsapp-content i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        right: 15px;
        bottom: 15px;
        max-width: 220px;
        padding: 10px 14px;
        width: auto;
        height: auto;
    }

    .whatsapp-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 10px;
        font-weight: 600;
    }

    .whatsapp-content i {
        font-size: 1.6rem;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: #ffffff;
    overflow-x: hidden;
}

/* Use Cairo for Arabic content */
[dir="rtl"] body,
[dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text font rules */
[lang="ar"],
[lang="ar-EG"],
[lang="ar-SA"] {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in data attributes */
[data-ar] {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in specific elements */
body:lang(ar),
html:lang(ar) {
    font-family: 'Cairo', sans-serif !important;
}

/* Ensure Arabic text in all elements uses Cairo */
*[lang="ar"],
*[lang="ar-EG"],
*[lang="ar-SA"] {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in navigation and UI elements */
.nav-lang-btn,
.desktop-nav-link,
.mobile-nav-link {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in hero section */
.hero-title,
.hero-subtitle {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in section titles and content */
.section-title,
.section-subtitle,
.about-text h3,
.about-text p {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in buttons and links */
.btn,
.clinic-btn,
.contact-btn,
.reservation-btn {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in cards and content areas */
.clinic-card,
.review-card,
.achievement-frame,
.credential-frame {
    font-family: 'Cairo', sans-serif !important;
}

/* Use Cairo for Supabase-rendered content only when the site is in Arabic */
html[lang="ar"] .blog-title,
html[lang="ar"] .blog-excerpt,
html[lang="ar"] .blog-date,
html[lang="ar"] .read-more,
html[lang="ar"] .video-title,
html[lang="ar"] .video-description,
html[lang="ar"] .platform-info,
html[lang="ar"] .item-detail-header h3,
html[lang="ar"] .item-detail-meta,
html[lang="ar"] .item-detail-description h4,
html[lang="ar"] .item-detail-description p,
html[lang="ar"] .item-detail-achievements h4,
html[lang="ar"] .item-detail-achievements li {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in footer */
.footer-content,
.footer-section {
    font-family: 'Cairo', sans-serif !important;
}

/* Arabic text in forms and modals */
.admin-modal,
.blog-form,
.video-form {
    font-family: 'Cairo', sans-serif !important;
}

/* Force Cairo font for Arabic text elements only */
body:has([data-ar]) [data-ar] {
    font-family: 'Cairo', sans-serif !important;
}

/* Restore Font Awesome icons globally */
.fas,
.far,
.fab,
.fa,
i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Font Awesome brand icons */
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Regular Font Awesome icons */
.far {
    font-weight: 400 !important;
}

/* Ensure all icons are visible throughout the website */
.navbar i,
.hero-section i,
.about-section i,
.clinic-section i,
.reviews-section i,
.footer i,
.btn i,
.contact-btn i,
.floating-whatsapp i,
.medical-icon i,
.info-icon i,
.credential-icon i,
.achievement-icon i,
.clinic-icon i,
.review-rating i,
.author-avatar i,
.reservation-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Brand icons (WhatsApp, Facebook, etc.) */
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* Specific WhatsApp icon fixes */
.fa-whatsapp,
.fab.fa-whatsapp,
i.fa-whatsapp {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* WhatsApp buttons and links */
.whatsapp-btn i,
.floating-whatsapp i,
.contact-btn.whatsapp i,
.reservation-btn.whatsapp i,
.clinic-btn.whatsapp i {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* All WhatsApp icons throughout the site */
.fab.fa-whatsapp,
i.fab.fa-whatsapp,
.fa-whatsapp {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* WhatsApp content and floating button */
.whatsapp-content i,
.floating-whatsapp .whatsapp-content i {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Location button styling */
.clinic-btn.location-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 2px solid #ff6b6b;
    transition: all 0.3s ease;
}

.clinic-btn.location-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #e74c3c);
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.clinic-btn.location-btn i {
    color: white;
    font-size: 1rem;
    margin-right: 8px;
}

.clinic-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.clinic-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

/* Arabic text font rules - more specific */
[lang="ar"],
[lang="ar-EG"],
[lang="ar-SA"],
[data-ar] {
    font-family: 'Cairo', sans-serif !important;
}

/* RTL content font */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif !important;
}

/* Body font for Arabic content */
body:lang(ar),
html:lang(ar) {
    font-family: 'Cairo', sans-serif !important;
}

/* Override for English content to use Inter when not in Arabic mode */
body:not([dir="rtl"]) {
    font-family: 'Inter', sans-serif !important;
}

/* Ensure Arabic text always uses Cairo regardless of parent font */
[data-ar],
[lang="ar"],
[lang="ar-EG"],
[lang="ar-SA"],
.arabic-text,
.rtl-text {
    font-family: 'Cairo', sans-serif !important;
}

/* Specific elements that should use Cairo for Arabic content only */
[data-ar] h1,
[data-ar] h2,
[data-ar] h3,
[data-ar] h4,
[data-ar] h5,
[data-ar] h6,
[data-ar] p,
[data-ar] span,
[data-ar] div,
[data-ar] a,
[data-ar] button,
[data-ar] input,
[data-ar] textarea,
[data-ar] label {
    font-family: 'Cairo', sans-serif !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-green: #172e14;
    --light-green: #2d502d;
    --beige: #ac9577;
    --light-beige: #FAF1E8;
    --white: #FFFFFF;
    --gold: #aa681c;
    --dark-text: #2C2C2C;
    --light-text: #666;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Screenshot Protection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection and copying */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Allow text selection for input fields only */
input,
textarea,
[contenteditable] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Disable right-click context menu */
body {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    -ms-context-menu: none;
    context-menu: none;
}

/* Prevent drag and drop */
img,
a,
* {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable image saving */
img {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Screenshot protection overlay */
.screenshot-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999999;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

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

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

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

[dir="rtl"] .about-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

[dir="rtl"] .clinics-grid {
    direction: rtl;
}

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

[dir="rtl"] .clinic-schedule {
    justify-content: flex-end;
}

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

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

[dir="rtl"] .review-card {
    text-align: right;
}

[dir="rtl"] .author-info {
    text-align: right;
}

[dir="rtl"] .reservation-content {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .credential-item {
    text-align: right;
}

[dir="rtl"] .credential-item span {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .credential-item i {
    margin-right: 0;
    margin-left: 15px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    left: 20px;
    top: 24px;
    transform: none;
    z-index: 3001;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

[dir="rtl"] .language-toggle {
    left: auto;
    right: 20px;
    top: 24px;
    transform: none;
    z-index: 3001;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-arrow-1 {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 2;
}

.logo-arrow-2 {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--light-text);
    line-height: 1;
}

/* Desktop Navigation Menu */
.desktop-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.desktop-nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.desktop-nav-link:hover {
    color: var(--primary-green);
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after {
    width: 100%;
}

.desktop-nav-link.admin-nav-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.desktop-nav-link.admin-nav-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

/* Language Toggle Button */
.nav-lang-btn {
    background: var(--primary-green);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

.nav-lang-btn:hover {
    background: var(--light-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.4);
}

.nav-lang-btn:active {
    transform: translateY(0);
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(45, 90, 39, 0.1);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
    color: var(--primary-green);
    background: rgba(45, 90, 39, 0.05);
    border-left-color: var(--primary-green);
    padding-left: 40px;
}

.mobile-nav-link.admin-nav-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    margin: 10px 30px;
    border-radius: 8px;
    text-align: center;
    border: none;
    width: calc(100% - 60px);
    font-size: 1rem;
    font-weight: 600;
}

.mobile-nav-link.admin-nav-btn:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}


.reservation-btn {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.reservation-btn:hover {
    background: var(--light-green) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 24px;
    z-index: 4100;
    background: var(--white);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 50%, #0f2a0f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0;
}

/* Background image with green overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('back-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: grayscale(80%) brightness(0.5) sepia(100%) hue-rotate(60deg) saturate(150%);
    z-index: 1;
}

/* Responsive background adjustments */
@media (max-width: 768px) {
    .hero-section::before {
        opacity: 0.4;
        filter: grayscale(70%) brightness(0.6) sepia(100%) hue-rotate(60deg) saturate(120%);
    }
}

@media (max-width: 480px) {
    .hero-section::before {
        opacity: 0.35;
        filter: grayscale(60%) brightness(0.7) sepia(100%) hue-rotate(60deg) saturate(100%);
    }
}

/* Mobile certificates gallery row spacing adjustments */
@media (max-width: 768px) {
    .carousel-row {
        padding-bottom: 25% !important;
        aspect-ratio: 4/1 !important;
        margin: 0 0 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .carousel-row {
        padding-bottom: 28% !important;
        aspect-ratio: 4/1.1 !important;
        margin: 0 0 10px 0 !important;
    }
}

@media (max-width: 360px) {
    .carousel-row {
        padding-bottom: 30% !important;
        aspect-ratio: 4/1.2 !important;
        margin: 0 0 10px 0 !important;
    }
}

/* Green overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 46, 20, 0.8) 0%, rgba(45, 80, 45, 0.6) 50%, rgba(15, 42, 15, 0.9) 100%);
    z-index: 2;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-photo {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 5;
    /* Professional floating effect */
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.1),
        0 0 0 16px rgba(255, 255, 255, 0.05),
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 100px rgba(0, 0, 0, 0.1);
    animation: professionalFloat 6s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-photo:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow:
        0 0 0 12px rgba(255, 255, 255, 0.15),
        0 0 0 24px rgba(255, 255, 255, 0.08),
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 120px rgba(0, 0, 0, 0.15);
}

/* Professional floating animation */
@keyframes professionalFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

/* Add a subtle glow effect */
.hero-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-photo:hover::before {
    opacity: 1;
}

/* Animated Medical Icons */
.medical-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.medical-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    animation: floatMedical 8s ease-in-out infinite, iconGlow 4s ease-in-out infinite;
    transition: all 0.3s ease;
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.3)) brightness(1.2);
    }
}

.medical-icon:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: scale(1.3) rotate(15deg);
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1.3) rotate(15deg);
    }

    50% {
        transform: scale(1.5) rotate(20deg);
    }
}

/* Individual icon positioning and animations */
.kidney-icon {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.stethoscope-icon {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.hospital-icon {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.pill-icon {
    top: 70%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 6.5s;
}

.syringe-icon {
    top: 40%;
    left: 8%;
    animation-delay: 4s;
    animation-duration: 7.5s;
}

.dna-icon {
    top: 20%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 6s;
}

.microscope-icon {
    top: 80%;
    right: 10%;
    animation-delay: 6s;
    animation-duration: 8s;
}

.heartbeat-icon {
    top: 50%;
    right: 5%;
    animation-delay: 7s;
    animation-duration: 5.5s;
}

/* Animation keyframes */
@keyframes floatMedical {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg) scale(1.1);
    }

    75% {
        transform: translateY(-15px) rotate(3deg) scale(1.02);
    }
}

/* Additional pulse animation for heartbeat icon */
.heartbeat-icon {
    animation: floatMedical 8s ease-in-out infinite, pulseHeartbeat 2s ease-in-out infinite;
}

@keyframes pulseHeartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Responsive adjustments for medical icons */
@media (max-width: 768px) {
    .medical-icon {
        font-size: 1.5rem;
    }

    .kidney-icon {
        top: 10%;
        left: 5%;
    }

    .stethoscope-icon {
        top: 20%;
        right: 10%;
    }

    .hospital-icon {
        top: 70%;
        left: 3%;
    }

    .pill-icon {
        top: 80%;
        right: 15%;
    }

    .syringe-icon {
        top: 35%;
        left: 5%;
    }

    .dna-icon {
        top: 15%;
        left: 45%;
    }

    .microscope-icon {
        top: 85%;
        right: 8%;
    }

    .heartbeat-icon {
        top: 45%;
        right: 3%;
    }
}

@media (max-width: 480px) {
    .medical-icon {
        font-size: 1.2rem;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: var(--white);
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.hero-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    line-height: 1.4;
    text-align: left;
    word-spacing: 0.08em;
    letter-spacing: 0.015em;
    hyphens: none;
    word-break: keep-all;
    white-space: normal;
    overflow-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--white);
}

/* Arabic text alignment for hero section */
[dir="rtl"] .hero-title,
[data-ar] .hero-title {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: embed !important;
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .hero-subtitle,
[data-ar] .hero-subtitle {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: embed !important;
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .hero-text,
[data-ar] .hero-text {
    text-align: right !important;
    direction: rtl !important;
}

.no-break {
    white-space: nowrap;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    /* Add vertical gap between children */
}

.hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--white);
    text-align: left;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Arabic button alignment for hero section */
[dir="rtl"] .hero-buttons,
[data-ar] .hero-buttons {
    justify-content: flex-end !important;
    direction: rtl !important;
}

[dir="rtl"] .hero-buttons .btn,
[data-ar] .hero-buttons .btn {
    font-family: 'Cairo', sans-serif !important;
    direction: rtl !important;
    text-align: center !important;
}

/* Mobile Arabic text alignment for hero section */
@media (max-width: 768px) {

    [dir="rtl"] .hero-title,
    [data-ar] .hero-title {
        text-align: center !important;
        direction: rtl !important;
        unicode-bidi: embed !important;
        font-family: 'Cairo', sans-serif !important;
    }

    [dir="rtl"] .hero-subtitle,
    [data-ar] .hero-subtitle {
        text-align: center !important;
        direction: rtl !important;
        unicode-bidi: embed !important;
        font-family: 'Cairo', sans-serif !important;
    }

    [dir="rtl"] .hero-text,
    [data-ar] .hero-text {
        text-align: center !important;
        direction: rtl !important;
    }

    [dir="rtl"] .hero-buttons,
    [data-ar] .hero-buttons {
        justify-content: center !important;
        direction: rtl !important;
    }
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Section Styles */
.section {
    padding: 100px 0;
    background: #e9ecef;
    color: var(--dark-text);
}

.bg-light {
    background: #dee2e6;
    color: var(--dark-text);
}

.bg-primary {
    background: var(--primary-green);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    animation: titleSlideIn 1s ease-out;
    transform: translateY(0);
    opacity: 1;
}

@keyframes titleSlideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.bg-primary .section-title {
    color: var(--white);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.bg-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.3), rgba(201, 169, 110, 0.3));
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
}

/* Doctor Information Frames */
.doctor-info-frames {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Memberships List Styling */
.memberships-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.memberships-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    text-align: left;
}

.memberships-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: bold;
}

/* RTL support for memberships list */
[dir="rtl"] .memberships-list li,
[data-ar] .memberships-list li {
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
    flex-direction: row-reverse;
    direction: rtl;
    justify-content: flex-end;
}

[dir="rtl"] .memberships-list li:before,
[data-ar] .memberships-list li:before {
    left: auto;
    right: 0;
    margin-left: 8px;
    margin-right: 0;
}

.memberships-list li:last-child {
    margin-bottom: 0;
}

.info-frame {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #2d4a2d;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease-out;
    transform: translateY(0);
    opacity: 1;
}

@keyframes cardSlideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-frame:hover {
    transform: translateY(-8px) scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: #1e3a1e;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f0 100%);
    animation: cardPulse 0.6s ease-in-out;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: translateY(-8px) scale(1.03) rotate(1deg);
    }

    50% {
        transform: translateY(-10px) scale(1.05) rotate(1.5deg);
    }
}

.info-icon {
    margin-bottom: 10px;
}

.info-icon i {
    font-size: 2rem;
    color: #4a90e2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.info-frame:hover .info-icon i {
    color: #2c5aa0;
    transform: scale(1.2) rotate(10deg);
    animation: iconSpin 0.6s ease-in-out;
}

@keyframes iconSpin {
    0% {
        transform: scale(1.2) rotate(10deg);
    }

    50% {
        transform: scale(1.3) rotate(20deg);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

.info-content h4 {
    font-size: 0.9rem;
    color: var(--primary-green);
    margin-bottom: 6px;
    font-weight: 600;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--dark-text);
    line-height: 1.4;
    margin: 0;
}

.credentials {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.credential-frame {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #2d4a2d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease-out;
    transform: translateY(0);
    opacity: 1;
}

.credential-frame:hover {
    transform: translateY(-8px) scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: #1e3a1e;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f0 100%);
    animation: cardPulse 0.6s ease-in-out;
}

.credential-icon {
    margin-bottom: 10px;
}

.credential-icon i {
    font-size: 2rem;
    color: #4a90e2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 3s ease-in-out infinite;
}

.credential-frame:hover .credential-icon i {
    color: #2c5aa0;
    transform: scale(1.2) rotate(10deg);
    animation: iconSpin 0.6s ease-in-out;
}

.credential-content h4 {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive grid for achievements */
@media (max-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .achievement-frame {
        min-height: 180px;
        padding: 15px;
    }

    .achievement-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 12px;
    }

    .achievement-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .achievement-frame {
        min-height: 160px;
        padding: 12px;
    }

    .achievement-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 10px;
    }

    .achievement-icon i {
        font-size: 1.3rem;
    }

    .achievement-content h4 {
        font-size: 0.9rem;
    }
}

.achievement-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
}

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

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.achievement-card h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.achievement-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.achievement-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.achievement-link:hover {
    color: var(--primary-green);
}

/* Clinic Information */
/* New Clinic Grid Layout */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Clinic Card Styles */
.clinic-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 139, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.clinic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
}

.clinic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

/* Clinic Icon */
.clinic-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(34, 139, 34, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.clinic-icon:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    transform: scale(1.05);
}

.clinic-icon:hover i {
    color: var(--white) !important;
}

.clinic-icon i {
    font-size: 2.5rem !important;
    color: var(--primary-green) !important;
    display: block !important;
    line-height: 1;
    text-align: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback for icon display */
.clinic-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    z-index: -1;
}

/* Clinic Content */
.clinic-content h4 {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.clinic-address {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.clinic-schedule {
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clinic-schedule::before {
    content: '📅';
    font-size: 1.1rem;
}

/* Clinic Actions */
.clinic-actions {
    margin-top: 20px;
}

.clinic-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Phone Links Styles */
.phone-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.phone-link,
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phone-link {
    background: var(--primary-green);
    color: var(--white);
}

.phone-link:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

.whatsapp-link {
    background: #25D366;
    color: var(--white);
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.phone-link i,
.whatsapp-link i {
    font-size: 1rem;
}

.clinic-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
}

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

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.contact-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.contact-btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.contact-btn.location {
    background: var(--gold);
    color: var(--white);
}

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

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 36px;
}

.review-card-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    min-height: 480px;
    min-width: 400px;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px var(--shadow);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.review-rating i {
    color: #FFD700;
    margin-right: 5px;
}

.review-card p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.review-author h5 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.review-author span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* New Review Card Styles */
.review-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 139, 34, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    color: #FFD700;
    font-size: 1.2rem;
}

.review-date {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Review Content */
.review-content {
    flex: 1;
    margin-bottom: 25px;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}


/* Review Author */
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(34, 139, 34, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info h5 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.author-info span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Instructions Section */
.instructions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.instruction-category {
    background: var(--light-beige);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.instruction-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.instruction-category h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-category h3 i {
    color: var(--gold);
}

.instruction-category ul {
    list-style: none;
}

.instruction-category li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    position: relative;
    padding-left: 25px;
}

.instruction-category li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Arabic alignment for instruction list items */
[dir="rtl"] .instruction-category li,
[data-ar] .instruction-category li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .instruction-category li:before,
[data-ar] .instruction-category li:before {
    left: auto;
    right: 0;
}

.instruction-category li:last-child {
    border-bottom: none;
}

/* Reservation Section */
.reservation-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.reservation-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.reservation-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.reservation-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.feature i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* Reservation Action */
.reservation-action {
    margin-top: 20px;
}

.reservation-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
}

.phone-btn {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
}

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

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

.footer-logo i {
    font-size: 2.2rem;
    color: var(--gold);
    flex-shrink: 0;
}

/* Logo Image Styling */
.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.achievement-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-section h4 {
    margin-bottom: 25px;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

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

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-section i {
    color: var(--gold);
    margin-right: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Contact info specific styling */
.footer-section p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-section p i {
    margin-right: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   SPECTACULAR VIDEO CARDS DESIGN
   ======================================== */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
    margin-top: 60px;
    padding: 0 20px;
    perspective: 1000px;
}

/* ========================================
   MAGICAL CARD ANIMATIONS
   ======================================== */

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    33% {
        transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
    }

    66% {
        transform: translateY(-4px) rotateX(-1deg) rotateY(-1deg);
    }
}

@keyframes cardGlow {

    0%,
    100% {
        box-shadow:
            0 20px 60px rgba(23, 46, 20, 0.15),
            0 8px 32px rgba(45, 80, 45, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    50% {
        box-shadow:
            0 30px 80px rgba(23, 46, 20, 0.25),
            0 12px 40px rgba(45, 80, 45, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 15px 50px rgba(170, 104, 28, 0.4),
            0 8px 25px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow:
            0 20px 60px rgba(170, 104, 28, 0.6),
            0 12px 30px rgba(0, 0, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(20deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* ========================================
   STUNNING VIDEO CARD DESIGN
   ======================================== */

.video-card {
    position: relative;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 250, 252, 0.9) 50%,
            rgba(241, 245, 249, 0.85) 100%);
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(23, 46, 20, 0.15),
        0 8px 32px rgba(45, 80, 45, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation:
        slideInUp 0.8s ease-out,
        cardFloat 6s ease-in-out infinite 1s,
        cardGlow 4s ease-in-out infinite 2s;
    transform-style: preserve-3d;
}

.video-card:nth-child(1) {
    animation-delay: 0.1s, 0.1s, 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s, 0.2s, 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s, 0.3s, 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.4s, 0.4s, 0.4s;
}

.video-card:nth-child(5) {
    animation-delay: 0.5s, 0.5s, 0.5s;
}

.video-card:nth-child(6) {
    animation-delay: 0.6s, 0.6s, 0.6s;
}

.video-card:hover {
    transform: translateY(-25px) rotateX(5deg) rotateY(5deg) scale(1.03);
    box-shadow:
        0 40px 100px rgba(23, 46, 20, 0.3),
        0 20px 60px rgba(45, 80, 45, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(23, 46, 20, 0.4);
}

/* ========================================
   MAGICAL THUMBNAIL AREA
   ======================================== */

.video-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg,
            #172e14 0%,
            #2d502d 25%,
            #aa681c 50%,
            #2d502d 75%,
            #172e14 100%);
    border-radius: 28px 28px 0 0;
    transform: translateZ(0);
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
    transform: translateZ(0);
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail video {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

/* ========================================
   SPECTACULAR PLAY BUTTON
   ======================================== */

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg,
            #aa681c 0%,
            #d4af37 25%,
            #ffd700 50%,
            #d4af37 75%,
            #aa681c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 15px 50px rgba(170, 104, 28, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
}

.video-card:hover .video-play-button {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow:
        0 25px 70px rgba(170, 104, 28, 0.6),
        0 12px 35px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    animation: none;
}

/* ========================================
   ELEGANT BADGES & OVERLAYS
   ======================================== */

.video-category {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg,
            rgba(23, 46, 20, 0.9) 0%,
            rgba(45, 80, 45, 0.8) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 8px 25px rgba(23, 46, 20, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    animation: pulse 3s ease-in-out infinite;
}

.video-duration {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

/* ========================================
   BEAUTIFUL CONTENT AREA
   ======================================== */

.video-content {
    padding: 35px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 250, 252, 0.9) 100%);
    color: #2d3748;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
}

.video-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #172e14 0%,
            #2d502d 25%,
            #aa681c 50%,
            #2d502d 75%,
            #172e14 100%);
}

.video-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 800;
    background: linear-gradient(135deg,
            #172e14 0%,
            #2d502d 25%,
            #aa681c 50%,
            #2d502d 75%,
            #172e14 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 400;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg,
            rgba(23, 46, 20, 0.08) 0%,
            rgba(45, 80, 45, 0.08) 50%,
            rgba(170, 104, 28, 0.08) 100%);
    border-radius: 20px;
    border: 2px solid rgba(23, 46, 20, 0.15);
    backdrop-filter: blur(10px);
}

.video-date,
.video-views {
    color: #4a5568;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.video-date i,
.video-views i {
    color: #aa681c;
    font-size: 1.1rem;
}

/* ========================================
   MAGICAL HOVER EFFECTS
   ======================================== */

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(23, 46, 20, 0.1) 0%,
            transparent 50%,
            rgba(170, 104, 28, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover::before {
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .video-card {
        border-radius: 24px;
    }

    .video-thumbnail {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .video-content {
        padding: 25px;
        border-radius: 0 0 20px 20px;
    }

    .video-title {
        font-size: 1.3rem;
    }

    .video-play-button {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .video-category,
    .video-duration {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .video-card {
        border-radius: 20px;
    }

    .video-thumbnail {
        height: 180px;
        border-radius: 16px 16px 0 0;
    }

    .video-content {
        padding: 20px;
        border-radius: 0 0 16px 16px;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-play-button {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

.video-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    color: var(--primary-green) !important;
    background: transparent !important;
    border: 2px solid var(--primary-green) !important;
    padding: 10px 16px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
}

.video-actions .btn:hover {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3) !important;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: block;
    opacity: 1;
}

.video-modal-content {
    background: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: translateY(0);
}

.video-modal-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
    margin-right: 20px;
}

.close-video-modal {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-video-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-modal-body {
    padding: 0;
}

.video-player {
    width: 100%;
    height: 500px;
    background: #000;
    position: relative;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-info {
    padding: 20px 30px;
    background: var(--light-beige);
}

.video-modal-info p {
    margin: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card {
        margin-bottom: 20px;
    }

    .video-content {
        padding: 20px;
    }

    .video-title {
        font-size: 1.2rem;
    }

    .video-actions {
        flex-direction: column;
        gap: 10px;
    }

    .video-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .video-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .video-player {
        height: 300px;
    }

    .video-modal-header {
        padding: 15px 20px;
    }

    .video-modal-header h3 {
        font-size: 1.2rem;
    }

    .video-modal-info {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
    }

    .video-player {
        height: 250px;
    }

    .video-modal-header h3 {
        font-size: 1rem;
    }
}

/* Facebook Video Card Styles */
.facebook-video-card {
    border: 2px solid #1877f2;
    background: linear-gradient(135deg, #f8f9ff, #e3f2fd);
    transition: all 0.3s ease;
}

.facebook-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(24, 119, 242, 0.2);
}

.facebook-thumbnail {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 8px 8px 0 0;
}

.facebook-preview {
    text-align: center;
    color: white;
}

.facebook-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.facebook-text {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.facebook-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.facebook-link {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(24, 119, 242, 0.1);
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.facebook-link small {
    color: #1877f2;
    font-weight: 500;
}

.facebook-link i {
    margin-right: 5px;
}

/* Enhanced Video Card Styles */
.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail video {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border-radius: 12px;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 5px solid rgba(255, 255, 255, 0.95);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.video-card:hover .video-play-button {
    transform: scale(1.15);
    background: linear-gradient(135deg, #ff3333, #ff0000);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.video-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.platform-info {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border-radius: 25px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.platform-info i {
    font-size: 14px;
}

.video-card:hover .platform-info {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

.video-card:hover .video-platform-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
}

.no-thumbnail i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #007bff;
    opacity: 0.8;
}

.no-thumbnail span {
    font-size: 14px;
    font-weight: 500;
}

.video-content {
    padding: 20px;
    background: white;
}

.video-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.video-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-platform-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: platformBadgeGlow 3s ease-in-out infinite;
}

.video-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.meta-item i {
    font-size: 11px;
    color: #007bff;
    opacity: 0.8;
}

.platform-link {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.platform-link small {
    color: #6c757d;
    font-weight: 500;
    font-size: 11px;
}

.platform-link i {
    margin-right: 6px;
    font-size: 10px;
    color: #007bff;
}

/* Platform-specific styles */
.youtube-video-card {
    border-left: 4px solid #ff0000;
}

.youtube-video-card:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.15);
}

.facebook-video-card {
    border-left: 4px solid #1877f2;
}

.facebook-video-card:hover {
    box-shadow: 0 20px 40px rgba(24, 119, 242, 0.15);
}

.vimeo-video-card {
    border-left: 4px solid #1ab7ea;
}

.vimeo-video-card:hover {
    box-shadow: 0 20px 40px rgba(26, 183, 234, 0.15);
}

.device-video-card {
    border-left: 4px solid #28a745;
}

.device-video-card:hover {
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .video-card {
        margin-bottom: 20px;
    }

    .video-thumbnail {
        height: 180px;
    }

    .video-content {
        padding: 16px;
    }

    .video-title {
        font-size: 15px;
    }

    .video-meta {
        gap: 12px;
    }

    .meta-item {
        font-size: 11px;
    }
}

/* Loading animation for video cards */
.video-card.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Hover effects for platform badges */
.video-platform-badge {
    transition: all 0.3s ease;
}

.video-card:hover .video-platform-badge {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Enhanced play button animation */
.video-play-button {
    animation: playButtonPulse 2s ease-in-out infinite;
}

@keyframes playButtonPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 10px 35px rgba(255, 0, 0, 0.7);
    }
}

@keyframes platformBadgeGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Platform-specific hover effects */
.youtube-video-card:hover .video-platform-badge {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.facebook-video-card:hover .video-platform-badge {
    background: linear-gradient(135deg, #1877f2, #0d5bb8);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vimeo-video-card:hover .video-platform-badge {
    background: linear-gradient(135deg, #1ab7ea, #0d8bb8);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.device-video-card:hover .video-platform-badge {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Default platform badge colors */
.youtube-video-card .video-platform-badge {
    background: linear-gradient(135deg, #ff0000, #e60000);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.facebook-video-card .video-platform-badge {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vimeo-video-card .video-platform-badge {
    background: linear-gradient(135deg, #1ab7ea, #17a2b8);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.device-video-card .video-platform-badge {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* Thumbnail Upload Styles */
.thumbnail-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail-upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.thumbnail-upload-area i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 8px;
}

.thumbnail-upload-area p {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.thumbnail-upload-link {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.thumbnail-upload-link:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.thumbnail-preview {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-preview img {
    display: block;
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.remove-thumbnail-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-thumbnail-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Blog Section Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    min-height: 200px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    opacity: 1;
    visibility: visible;
    display: block;
}

.blog-card.is-clickable {
    cursor: pointer;
}

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

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

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

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

.blog-image img,
.video-thumbnail img {
    will-change: transform;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
    background: var(--white);
    color: var(--dark-text);
}

.blog-title {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-date {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category-tag {
    background: var(--light-beige);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.no-posts i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

/* Full Article Modal Styles */
.full-article-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.full-article-modal.active {
    display: block;
    opacity: 1;
}

.full-article-content {
    background: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.full-article-modal.active .full-article-content {
    transform: translateY(0);
}

.full-article-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.full-article-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    margin-right: 20px;
}

.close-full-article {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-full-article:hover {
    background: rgba(255, 255, 255, 0.2);
}

.full-article-meta {
    padding: 15px 30px;
    background: var(--light-beige);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.full-article-category {
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.full-article-date {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.full-article-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.8;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.full-article-footer {
    padding: 20px 30px;
    background: var(--light-beige);
    text-align: center;
    border-top: 1px solid rgba(45, 90, 39, 0.1);
}

/* Responsive Full Article Modal */
@media (max-width: 768px) {
    .full-article-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .full-article-header {
        padding: 15px 20px;
    }

    .full-article-title {
        font-size: 1.4rem;
        margin-right: 15px;
    }

    .full-article-meta {
        padding: 12px 20px;
        gap: 15px;
    }

    .full-article-body {
        padding: 20px;
        font-size: 1rem;
    }

    .full-article-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .full-article-content {
        width: 98%;
        margin: 2% auto;
        max-height: 90vh;
    }

    .full-article-title {
        font-size: 1.2rem;
    }

    .full-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Admin Panel Styles */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.admin-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-green), #2d5a27);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-actions {
    background: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.refresh-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.refresh-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
}

.filter-btn {
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.filter-btn:hover {
    border-color: #007bff !important;
    color: #007bff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15) !important;
}

.filter-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border-color: #007bff !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.tab-btn {
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    color: #6c757d !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-right: 8px !important;
}

.tab-btn:hover {
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.15) !important;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-green), #2d5a27) !important;
    border-color: var(--primary-green) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3) !important;
}

/* Content List Styles */
.content-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 0 0 20px 20px;
    margin: 0;
}

.content-list::-webkit-scrollbar {
    width: 8px;
}

.content-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 4px;
}

.content-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.content-item {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.content-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #007bff !important;
}

.content-item:hover::before {
    opacity: 1;
}

.content-item.video-item::before {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.content-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.content-item:hover .content-icon {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.content-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.content-info h4 {
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #2c3e50 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.content-meta {
    font-size: 13px !important;
    color: #6c757d !important;
    margin-bottom: 8px !important;
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.status-badge {
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.status-published {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    color: #155724 !important;
}

.status-draft {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    color: #856404 !important;
}

.content-actions {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.content-actions .btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.content-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.content-actions .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
}

.content-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

.content-actions .btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}


.videos-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.video-item {
    background: white !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.video-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
}

.video-item-info {
    flex: 1 !important;
}

.video-item-info h4 {
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    color: var(--text-color) !important;
    font-size: 16px !important;
}

.video-item-actions {
    display: flex !important;
    gap: 8px !important;
}

.video-item-actions .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.video-item-actions .btn-primary {
    background: #007bff !important;
    color: white !important;
}

.video-item-actions .btn-primary:hover {
    background: #0056b3 !important;
}

.video-item-actions .btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.video-item-actions .btn-danger:hover {
    background: #c82333 !important;
}

/* Content Type Selector */
.content-type-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.content-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid var(--light-beige);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.content-type-option:hover {
    border-color: var(--primary-green);
    background: var(--light-beige);
}

.content-type-option input[type="checkbox"] {
    margin: 0;
}

.content-type-option input[type="checkbox"]:checked+span {
    color: var(--primary-green);
    font-weight: 600;
}

.content-type-option:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-green);
    background: var(--light-beige);
}

/* File Upload Styles */
.file-upload-section {
    margin-top: 20px;
}

.file-upload-area {
    border: 2px dashed var(--primary-green);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: var(--light-beige);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--secondary-green);
    background: rgba(45, 125, 210, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--secondary-green);
    background: rgba(45, 125, 210, 0.1);
    transform: scale(1.02);
}

.file-upload-content i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.file-upload-content p {
    margin: 10px 0;
    color: var(--text-dark);
}

.file-upload-link {
    color: var(--primary-green);
    text-decoration: underline;
    cursor: pointer;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* File Preview */
.file-preview {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid var(--light-beige);
    border-radius: 8px;
    background: white;
}

.file-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.file-preview-icon.pdf {
    background: #e74c3c;
}

.file-preview-icon.image {
    background: #3498db;
}

.file-preview-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: var(--text-dark);
}

.file-size {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.file-remove-btn:hover {
    background: #c0392b;
}

/* URL Input Section */
.url-input-section,
.link-input-section {
    margin-top: 20px;
}

.link-input-section label:not(:first-child) {
    margin-top: 15px;
    display: block;
}

/* Content Type Badges */
.content-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdf-badge {
    background: rgba(231, 76, 60, 0.9);
}

.link-badge {
    background: rgba(39, 174, 96, 0.9);
}

/* No Image Card Layout */
.blog-card.no-image {
    display: flex;
    flex-direction: column;
}

.blog-card.no-image .blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card.no-image .blog-title {
    margin-top: 0;
}

/* Multiple Content Type Indicators */
.blog-card .blog-image {
    position: relative;
}

.blog-card .blog-image .content-type-badge:not(:last-child) {
    margin-bottom: 5px;
}

/* Enhanced Action Buttons */
.blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.blog-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    color: var(--primary-green) !important;
    background: transparent !important;
    border: 2px solid var(--primary-green) !important;
    padding: 10px 16px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
}

.blog-actions .btn:hover {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3) !important;
}

.blog-actions .btn.btn-primary {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    border-color: var(--primary-green) !important;
}

.blog-actions .btn.btn-primary:hover {
    background: var(--light-green) !important;
    border-color: var(--light-green) !important;
}

.blog-actions .btn.btn-secondary {
    background: var(--light-green) !important;
    color: var(--white) !important;
    border-color: var(--light-green) !important;
}

.blog-actions .btn.btn-secondary:hover {
    background: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
}

/* Hide action section if no buttons */
.blog-actions:empty {
    display: none;
}

/* Content Type Overlays (Legacy) */
.pdf-overlay,
.link-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 2;
}

.pdf-overlay {
    background: rgba(231, 76, 60, 0.8);
}

.link-overlay {
    background: rgba(39, 174, 96, 0.8);
}

/* File Upload Responsive */
@media (max-width: 768px) {
    .content-type-selector {
        flex-direction: column;
        gap: 10px;
    }

    .content-type-option {
        justify-content: center;
        padding: 15px;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .file-upload-content i {
        font-size: 2rem;
    }
}

/* Login Modal Styles */
.login-modal .admin-modal-content {
    max-width: 400px;
    margin: 10% auto;
}

.login-form {
    max-width: 300px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-green);
    text-align: left;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-beige);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.login-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.admin-modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.admin-header {
    background: var(--primary-green);
    color: var(--white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-admin {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-admin:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-body {
    padding: 0;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--light-beige);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
    background: var(--light-beige);
}

.tab-content {
    display: none;
    padding: 30px;
}

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

/* Blog Form Styles */
.blog-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-green);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-beige);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Admin Actions */
.admin-actions {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-beige);
    border-radius: 10px;
    text-align: center;
}

.admin-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Posts List Styles */
.posts-list {
    max-height: 500px;
    overflow-y: auto;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--light-beige);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 5px 15px var(--shadow);
    transform: translateY(-2px);
}

.post-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-wrap: wrap;
}

.status {
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status.published {
    background: #4CAF50;
    color: white;
}

.status.draft {
    background: #FF9800;
    color: white;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-danger:hover {
    background: #d32f2f;
}


/* Admin Navigation Button */
.admin-nav-btn {
    background: var(--gold) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.admin-nav-btn:hover {
    background: var(--primary-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Footer Admin Button */
.footer-admin-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-admin-btn:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure blog cards are always visible */
.blog-card.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive navigation adjustments */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* Certificates & Conferences Section */
#certificates {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0 0 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Achievements Section */
.achievements-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--primary-green);
}

/* Certificates Carousel - 3 Row Layout */
.certificates-carousel-section {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px 20px 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: titleSlideIn 1s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-title::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--white));
    border-radius: 2px;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--white), var(--gold));
    border-radius: 2px;
}

/* Carousel Rows */
.carousel-row {
    position: relative;
    width: 100vw;
    height: 0;
    padding-bottom: 20%;
    /* Decreased height to reduce padding between rows */
    margin: 0 0 15px 0;
    /* Added 15px bottom margin for spacing between rows */
    overflow: hidden;
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 100%);
    aspect-ratio: 4/0.8;
    left: 0;
    right: 0;
    direction: ltr;
    unicode-bidi: isolate;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
    width: max-content;
    min-width: max-content;
    will-change: transform;
    padding-left: 0;
    cursor: grab;
    user-select: none;
    direction: ltr;
    unicode-bidi: isolate;
}

.carousel-track:active {
    cursor: grabbing;
}

/* First Row: Right to Left */
.track-1 {
    --loop-distance: 0px;
    animation: carouselLoopForward 85s linear infinite;
}

/* Second Row: Left to Right */
.track-2 {
    --loop-distance: 0px;
    animation: carouselLoopReverse 90s linear infinite;
}

/* Third Row: Right to Left */
.track-3 {
    --loop-distance: 0px;
    animation: carouselLoopForward 65s linear infinite;
}

/* Animations - distance is computed from the rendered slide widths */
@keyframes carouselLoopForward {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(var(--loop-distance) * -1));
    }
}

@keyframes carouselLoopReverse {
    0% {
        transform: translateX(calc(var(--loop-distance) * -1));
    }

    100% {
        transform: translateX(0);
    }
}

/* Carousel Slides */
.carousel-slide {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    /* Contain the image within the container */
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    margin: 0 16px;
    /* Increased spacing between slides */
    transition: border 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1/1;
    /* 1:1 aspect ratio for each image (square) */
    border-radius: 12px;
    /* More rounded corners */
    background: #ffffff;
    /* White background for certificates */
    width: 300px;
    /* Fixed width for all desktop/laptop screens */
    height: 300px;
    /* Fixed height for all desktop/laptop screens */
    transform-origin: center center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.2s ease;
    filter: brightness(0.9);
    background: #ffffff;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto !important;
    /* Override global img pointer-events: none */
}

.carousel-slide {
    will-change: auto;
}

.carousel-row:hover .carousel-slide {
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.carousel-slide:hover {
    border: 3px solid var(--gold);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    z-index: 10;
}

.carousel-row:hover .carousel-slide .carousel-image {
    filter: brightness(0.9);
}

.carousel-slide:hover .carousel-image {
    filter: brightness(1.1) contrast(1.05);
}

/* Pause animation on hover - smooth transition */
.carousel-track {
    transition: none;
}

.carousel-row:hover .carousel-track {
    animation-play-state: paused !important;
}

/* Desktop and Laptop (768px and above) - Consistent layout for all desktop/laptop screens */
@media (min-width: 768px) {
    .carousel-slide {
        width: 300px !important;
        height: 300px !important;
        margin: 0 16px;
        /* Increased spacing for all desktop/laptop screens */
    }

    .carousel-track {
        width: max-content;
        min-width: max-content;
    }
}

/* Mobile (767px and below) - Only mobile devices get different sizing */
@media (max-width: 767px) {
    .carousel-slide {
        width: 150px !important;
        height: 150px !important;
        margin: 0 10px;
        /* Increased spacing for all mobile devices */
    }

    .carousel-track {
        width: max-content;
        min-width: max-content;
    }

    .carousel-row {
        padding-bottom: 25%;
        /* Reduced from 50% to minimize spacing */
        aspect-ratio: 4/1;
        margin: 0 0 10px 0;
        /* Reduced margin from 15px to 10px */
    }

    .carousel-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
        padding: 20px 15px 15px 15px;
    }
}

.achievements-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 50px;
}

/* RTL Support for Achievements Title */
[dir="rtl"] .achievements-title,
[data-ar] .achievements-title {
    text-align: center !important;
    direction: rtl !important;
    unicode-bidi: embed !important;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
}

.achievement-frame {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #2d4a2d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease-out;
    transform: translateY(0);
    opacity: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.achievement-frame:hover {
    transform: translateY(-8px) scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-color: #1e3a1e;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f0 100%);
    animation: cardPulse 0.6s ease-in-out;
}

.achievement-icon {
    margin-bottom: 15px !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    z-index: 10 !important;
}

.achievement-icon i {
    font-size: 1.8rem !important;
    color: var(--white) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: iconFloat 3s ease-in-out infinite !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.achievement-frame:hover .achievement-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--gold), var(--beige));
}

.achievement-frame:hover .achievement-icon i {
    color: var(--white);
    transform: scale(1.2) rotate(10deg);
    animation: iconSpin 0.6s ease-in-out;
}

.achievement-content h4 {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

/* RTL Support for Achievement Content */
[dir="rtl"] .achievement-content h4,
[data-ar] .achievement-content h4 {
    text-align: center !important;
    direction: rtl !important;
    unicode-bidi: embed !important;
}

/* Arabic text alignment in achievement frames */
[dir="rtl"] .achievement-frame,
[data-ar] .achievement-frame {
    text-align: center !important;
}

[dir="rtl"] .achievement-content,
[data-ar] .achievement-content {
    text-align: center !important;
    direction: rtl !important;
}

/* Ensure Arabic text is properly centered */
.achievement-content h4[data-ar] {
    text-align: center !important;
    direction: rtl !important;
    unicode-bidi: embed !important;
}

/* Enhanced achievement frame animations */
.achievement-frame:nth-child(1) {
    animation-delay: 0.1s;
}

.achievement-frame:nth-child(2) {
    animation-delay: 0.2s;
}

.achievement-frame:nth-child(3) {
    animation-delay: 0.3s;
}

.achievement-frame:nth-child(4) {
    animation-delay: 0.4s;
}

.achievement-frame:nth-child(5) {
    animation-delay: 0.5s;
}

.achievement-frame:nth-child(6) {
    animation-delay: 0.6s;
}

.achievement-frame:nth-child(7) {
    animation-delay: 0.7s;
}

.achievement-frame:nth-child(8) {
    animation-delay: 0.8s;
}

.achievement-frame:nth-child(9) {
    animation-delay: 0.9s;
}

.achievement-frame:nth-child(10) {
    animation-delay: 1.0s;
}

/* Force icon visibility - debugging */
.achievements-section .achievement-frame .achievement-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #2d4a2d, #4a7c59) !important;
    border-radius: 50% !important;
    margin: 0 auto 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.achievements-section .achievement-frame .achievement-icon i {
    font-size: 1.8rem !important;
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.certificate-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 25px;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #28a745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.certificate-icon i {
    font-size: 32px;
    color: white;
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-content h3 {
    color: #007bff;
}

.certificate-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.certificate-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.certificate-arrow {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.certificate-card:hover .certificate-arrow {
    background: #007bff;
    transform: translateX(5px);
}

.certificate-arrow i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-arrow i {
    color: white;
}

/* Certificate Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #28a745);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.certificate-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.certificate-item-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.certificate-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-item-image img {
    transform: scale(1.05);
}

.certificate-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover .certificate-item-overlay {
    opacity: 1;
}

.certificate-item-overlay i {
    font-size: 40px;
    color: white;
}

.certificate-item-content {
    padding: 20px;
}

.certificate-item-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.certificate-item-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.certificate-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Certificate Detail Modal */
.detail-modal .modal-content {
    max-width: 800px;
}

.certificate-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.certificate-detail-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-detail-info h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.certificate-detail-info p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
}

.certificate-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-item i {
    width: 20px;
    color: #007bff;
    font-size: 16px;
}

.meta-item span {
    color: #495057;
    font-weight: 500;
}

/* RTL Support for Certificates */
[dir="rtl"] .certificate-card {
    flex-direction: row-reverse;
}

[dir="rtl"] .certificate-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .certificate-card:hover .certificate-arrow {
    transform: scaleX(-1) translateX(-5px);
}

[dir="rtl"] .certificate-detail-content {
    direction: rtl;
}

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

/* Responsive Design for Certificates */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .carousel-container {
        height: 0;
        padding-bottom: 37.5%;
        /* Half of 4:3 aspect ratio for two rows */
        max-width: 100%;
        aspect-ratio: 4/1.5;
    }

    .carousel-title {
        font-size: 2rem;
        margin-bottom: 40px;
        letter-spacing: 1px;
    }

    .carousel-overlay h4 {
        font-size: 1rem;
        padding: 15px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .achievement-frame {
        padding: 12px;
        border-radius: 10px;
    }

    .achievement-icon i {
        font-size: 1.8rem;
        color: #4a90e2;
    }

    .achievement-content h4 {
        font-size: 0.9rem;
    }

    .achievements-title {
        font-size: 1.6rem;
    }

    .certificate-card {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .certificate-icon {
        width: 60px;
        height: 60px;
    }

    .certificate-icon i {
        font-size: 24px;
    }

    .certificate-content h3 {
        font-size: 20px;
    }

    .certificate-stats {
        justify-content: center;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .certificate-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-detail-info h4 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #certificates {
        padding: 60px 0;
    }

    .certificate-card {
        padding: 20px;
    }

    .certificate-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-number {
        font-size: 24px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .nav-container {
        padding: 0 20px;
        position: relative;
        height: 70px;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 100px 0 50px 0;
        z-index: 4000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(23, 46, 20, 0.05), rgba(172, 149, 119, 0.05));
        z-index: -1;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInFromTop 0.3s ease forwards;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active li {
        animation: slideInFromTop 0.3s ease forwards;
    }

    .nav-menu li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-menu li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-menu li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-menu li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-menu li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-menu li:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-menu li:nth-child(8) {
        animation-delay: 0.8s;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 25px;
        display: block;
        border-radius: 10px;
        margin: 0 20px;
        transition: all 0.3s ease;
        width: calc(100% - 40px);
        text-align: center;
    }

    .nav-link:hover {
        background-color: var(--light-beige);
        transform: translateX(5px);
    }

    .admin-nav-btn {
        background: var(--primary-green) !important;
        color: var(--white) !important;
        border: none !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        width: calc(100% - 40px) !important;
        margin: 0 20px !important;
    }

    .admin-nav-btn:hover {
        background: var(--secondary-green) !important;
        transform: translateX(5px) !important;
    }

    .hamburger {
        display: flex !important;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 4100;
        background: var(--white);
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--primary-green);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .hamburger:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .hamburger:active {
        transform: scale(0.95);
    }

    .hamburger.active {
        background: var(--primary-green);
        border-color: var(--primary-green);
        transform: scale(1.05);
    }

    .hamburger.active span {
        background: var(--white);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile navigation language toggle */
    @media (max-width: 768px) {
        .nav-lang-item {
            margin-left: 5px;
        }

        .nav-lang-btn {
            padding: 6px 12px;
            font-size: 0.8rem;
            min-width: 50px;
            border-width: 2px;
            background: var(--primary-green);
            color: var(--white);
            border-color: var(--primary-green);
        }

        .nav-lang-btn:hover {
            background: var(--light-green);
            color: var(--white);
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(45, 90, 39, 0.3);
        }

        .nav-lang-btn i {
            font-size: 0.8rem;
        }

        .nav-lang-btn span {
            font-size: 0.7rem;
        }
    }

    /* Ensure hero title doesn't overlap with navigation */
    .hero-title {
        margin-top: 60px;
        padding-top: 20px;
        transition: all 0.3s ease;
    }

    /* Prevent scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Smooth transition for hero content when menu opens */
    .hero-content {
        transition: all 0.3s ease;
    }

    body.menu-open .hero-content {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 100px 0 40px 0 !important;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.4;
        word-spacing: 0.06em;
        letter-spacing: 0.01em;
        padding: 0 10px;
    }

    .hero-container {
        flex-direction: column;
        gap: 5px !important;
        text-align: center;
        padding: 0 20px !important;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-image {
        max-width: 250px;
        order: 1;
        margin-bottom: 0 !important;
    }

    .hero-title {
        text-align: center;
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 0.5rem !important;
    }

    .hero-text {
        gap: 0.3rem;
        width: 100%;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.3rem !important;
    }

    .hero-photo {
        max-width: 250px;
        border-radius: 50%;
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 0.1),
            0 0 0 12px rgba(255, 255, 255, 0.05),
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 0 80px rgba(0, 0, 0, 0.1);
    }

    .btn {
        padding: 12px 25px;
        width: 200px;
    }

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

/* Extra styles for smaller mobile devices */
@media (max-width: 480px) {
    .hero-section {
        min-height: auto !important;
        padding: 90px 0 30px 0 !important;
    }

    .hero-container {
        gap: 5px !important;
        padding: 0 15px !important;
    }

    .hero-image {
        max-width: 200px !important;
        margin-bottom: 0 !important;
    }

    .hero-photo {
        max-width: 200px !important;
        margin-bottom: 0 !important;
    }

    .hero-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem !important;
        margin-top: 0 !important;
        padding: 0 5px !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        padding: 0 5px;
    }

    .hero-text {
        gap: 0.25rem;
        width: 100%;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-buttons {
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.2rem !important;
    }

    .btn {
        padding: 10px 20px;
        width: 180px;
        font-size: 0.9rem;
    }

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

    .about-content,
    .clinics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .clinic-card {
        padding: 25px 20px;
    }

    .clinic-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
        border: 2px solid var(--primary-green);
    }

    .clinic-icon i {
        font-size: 2rem !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        color: var(--primary-green) !important;
    }

    .clinic-content h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .clinic-address {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .clinic-schedule {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .clinic-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .about-image img,
    .clinic-image img {
        height: 250px;
    }

    /* About Section Mobile Optimization */
    .about-text h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: center;
        color: var(--primary-green);
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        padding-bottom: 15px;
    }

    .about-text h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(135deg, var(--primary-green), var(--gold));
        border-radius: 2px;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
        text-align: center;
        color: var(--dark-text);
        background: linear-gradient(135deg, rgba(45, 90, 39, 0.03), rgba(201, 169, 110, 0.03));
        padding: 20px;
        border-radius: 15px;
        border: 1px solid rgba(45, 90, 39, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: relative;
        overflow: hidden;
    }

    .about-text p::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.05), transparent);
        transition: left 0.8s ease;
    }

    .about-text p:hover::before {
        left: 100%;
    }

    .doctor-info-frames {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 15px 0;
    }

    .memberships-list li {
        font-size: 0.75rem;
        margin-bottom: 6px;
        padding-left: 18px;
    }

    [dir="rtl"] .memberships-list li,
    [data-ar] .memberships-list li {
        padding-left: 0;
        padding-right: 18px;
        flex-direction: row-reverse;
        direction: rtl;
        text-align: right;
        justify-content: flex-end;
    }

    .info-frame {
        padding: 10px;
        border-radius: 8px;
    }

    .info-icon i {
        font-size: 1.8rem;
        color: #4a90e2;
    }

    .info-content h4 {
        font-size: 0.9rem;
    }

    .info-content p {
        font-size: 0.8rem;
    }

    .credentials {
        margin-top: 15px;
        display: grid;
        gap: 12px;
    }

    .credential-item {
        padding: 18px 20px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
        border: 2px solid rgba(45, 90, 39, 0.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        animation: slideInFromBottom 0.6s ease-out;
        animation-fill-mode: both;
    }

    .credential-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .credential-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .credential-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .credential-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .credential-item:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-green);
    }

    .credential-item i {
        font-size: 1.3rem;
        margin-right: 15px;
        color: var(--primary-green);
        transition: all 0.3s ease;
    }

    .credential-item:hover i {
        color: var(--gold);
        transform: scale(1.1);
    }

    .credential-item span {
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--dark-text);
        font-weight: 500;
    }

    /* About Section Animation for Mobile */
    .about-text.animate-on-scroll {
        animation: slideInFromLeft 0.8s ease-out;
    }

    .about-image.animate-on-scroll {
        animation: slideInFromRight 0.8s ease-out;
    }

    /* Mobile About Section Enhancements */
    .about-content {
        padding: 30px 0;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-text {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
        padding: 25px;
        border-radius: 25px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
    }

    .about-text::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary-green), var(--gold));
    }

    .about-image {
        border-radius: 25px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        transform: perspective(1000px) rotateY(-3deg);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .about-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(45, 90, 39, 0.1), rgba(201, 169, 110, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .about-image:hover {
        transform: perspective(1000px) rotateY(0deg) scale(1.02);
    }

    .about-image:hover::before {
        opacity: 1;
    }


    .achievements-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .review-card {
        padding: 25px 20px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .review-rating i {
        font-size: 1rem;
    }

    .review-date {
        font-size: 0.8rem;
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .author-info h5 {
        font-size: 1rem;
    }

    .author-info span {
        font-size: 0.8rem;
    }

    .instructions-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        min-width: 200px;
    }

    .reservation-content {
        text-align: center;
    }

    .reservation-text h2 {
        font-size: 2rem;
    }

    .reservation-text p {
        font-size: 1.1rem;
    }

    .reservation-features {
        margin-bottom: 25px;
    }

    .feature {
        justify-content: center;
    }

    /* Blog responsive styles */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        margin-bottom: 20px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Admin panel responsive */
    .admin-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .admin-header {
        padding: 15px 20px;
    }

    .admin-header h2 {
        font-size: 1.3rem;
    }

    .tab-content {
        padding: 20px;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .post-actions {
        width: 100%;
        justify-content: flex-end;
    }

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

    .form-actions .btn {
        width: 100%;
    }


    .admin-nav-btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .footer-admin-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-section h4 {
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .footer-logo-image {
        width: 30px;
        height: 30px;
    }

    .achievement-logo {
        width: 40px;
        height: 40px;
        padding: 6px;
    }
}

/* Tablet footer responsive design */
@media (max-width: 768px) and (min-width: 481px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-top: 80px;
        padding-top: 30px;
        line-height: 1.4;
        word-spacing: 0.03em;
        letter-spacing: 0.005em;
        padding: 30px 15px 0 15px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        line-height: 1.5;
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

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

    .achievement-card,
    .review-card {
        padding: 25px 20px;
    }

    .detail-item {
        padding: 20px;
    }

    /* Mobile phone links */
    .phone-links {
        flex-direction: column;
        gap: 8px;
    }

    .phone-link,
    .whatsapp-link {
        padding: 10px 12px;
        font-size: 0.85rem;
        justify-content: center;
    }

    .instruction-category {
        padding: 25px 20px;
    }

    /* Mobile navigation improvements for very small screens */
    .hamburger {
        right: 15px;
        top: 15px;
        padding: 10px 12px;
    }

    .language-toggle {
        left: 15px;
        top: 15px;
    }

    .nav-menu {
        padding: 80px 0 40px 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 25px;
        margin: 0 15px;
    }

    .nav-menu li {
        margin: 15px 0;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.1rem;
        margin-top: 100px;
        padding-top: 40px;
        line-height: 1.4;
        word-spacing: 0.015em;
        letter-spacing: 0.002em;
        padding: 40px 10px 0 10px;
    }

    .hamburger {
        right: 10px;
        top: 10px;
        padding: 8px 10px;
    }

    .language-toggle {
        left: 10px;
        top: 10px;
    }

    .nav-menu {
        padding: 70px 0 30px 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 20px;
        margin: 0 10px;
    }

    /* Keep title visible on very small screens */
    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo i {
        font-size: 1.2rem;
    }

    /* Navigation language toggle for very small screens */
    .nav-lang-item {
        margin-left: 3px;
    }

    .nav-lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 45px;
        border-width: 2px;
        background: linear-gradient(135deg, var(--gold), #f4d03f);
        color: var(--primary-green);
        border-color: var(--primary-green);
    }

    .nav-lang-btn i {
        font-size: 0.75rem;
    }

    .nav-lang-btn span {
        font-size: 0.65rem;
    }

    /* About Section for Very Small Screens */
    .about-text h3 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .about-text h3::after {
        width: 50px;
        height: 2px;
    }

    .about-text p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 15px;
        padding: 15px;
    }

    .credentials {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .credential-frame {
        padding: 20px;
        border-radius: 12px;
    }

    .credential-icon i {
        font-size: 2rem;
        color: #4a90e2;
    }

    .credential-content h4 {
        font-size: 1rem;
    }

    .about-image img {
        height: 220px;
    }

    .about-content {
        gap: 25px;
        padding: 25px 0;
    }

    .about-text {
        padding: 20px;
        border-radius: 20px;
    }
}

/* Desktop Navigation - Hide on mobile */
@media (max-width: 768px) {
    .desktop-nav-menu {
        display: none;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
        padding: 6px;
        order: 1;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .nav-lang-btn {
        display: flex;
        padding: 6px 12px;
        font-size: 0.75rem;
        min-width: 50px;
        flex-shrink: 0;
        order: 2;
        margin: 0 10px;
    }

    .nav-logo {
        flex: 1;
        min-width: 0;
        order: 3;
        text-align: right;
    }

    .logo-main {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .logo-sub {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .logo-arrow-1 {
        width: 20px;
        height: 20px;
    }

    .logo-arrow-2 {
        width: 12px;
        height: 12px;
    }

    /* Arabic mode - hamburger on left */
    [dir="rtl"] .nav-container {
        gap: 20px;
    }

    [dir="rtl"] .hamburger {
        order: 1;
        margin-left: 0;
        margin-right: 10px;
    }

    [dir="rtl"] .nav-lang-btn {
        order: 2;
        margin: 0 10px;
    }

    [dir="rtl"] .nav-logo {
        order: 3;
        text-align: right;
        margin-right: 15px;
    }
}

@media (max-width: 360px) {
    .nav-container {
        gap: 15px;
        padding: 0 15px;
    }

    .hamburger {
        padding: 6px;
        order: 1;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .nav-lang-btn {
        padding: 5px 8px;
        font-size: 0.7rem;
        min-width: 45px;
        order: 2;
        margin: 0 8px;
    }

    .nav-logo {
        flex: 1;
        order: 3;
        text-align: right;
    }

    .logo-main {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .logo-sub {
        font-size: 0.55rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .logo-arrow-1 {
        width: 18px;
        height: 18px;
    }

    .logo-arrow-2 {
        width: 10px;
        height: 10px;
    }

    /* Arabic mode for small screens */
    [dir="rtl"] .nav-container {
        gap: 15px;
    }

    [dir="rtl"] .hamburger {
        order: 1;
        margin-left: 0;
        margin-right: 8px;
    }

    [dir="rtl"] .nav-lang-btn {
        order: 2;
        margin: 0 8px;
    }

    [dir="rtl"] .nav-logo {
        order: 3;
        text-align: right;
        margin-right: 12px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .nav-container {
        gap: 12px;
        padding: 0 10px;
    }

    .hamburger {
        padding: 4px;
        order: 1;
    }

    .hamburger span {
        width: 16px;
        height: 2px;
    }

    .nav-lang-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
        min-width: 40px;
        order: 2;
        margin: 0 6px;
    }

    .nav-logo {
        flex: 1;
        order: 3;
        text-align: right;
    }

    .logo-main {
        font-size: 0.75rem;
    }

    .logo-sub {
        font-size: 0.5rem;
    }

    /* Arabic mode for extra small screens */
    [dir="rtl"] .nav-container {
        gap: 12px;
    }

    [dir="rtl"] .hamburger {
        order: 1;
        margin-left: 0;
        margin-right: 6px;
    }

    [dir="rtl"] .nav-lang-btn {
        order: 2;
        margin: 0 6px;
    }

    [dir="rtl"] .nav-logo {
        order: 3;
        text-align: right;
        margin-right: 10px;
    }
}

/* Final UI polish fixes */

/* Keep brand icons on the correct Font Awesome family. */
.contact-btn i.fab,
.clinic-btn i.fab,
.floating-whatsapp i.fab,
.review-lightbox-close i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.contact-btn.facebook i,
.contact-btn.whatsapp i,
.clinic-btn.whatsapp-btn i,
.floating-whatsapp .whatsapp-content i {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

/* Scroll-to-top button should sit above the floating WhatsApp CTA. */
.scroll-to-top {
    position: fixed;
    right: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #153a2f, #2d6b54);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.35rem;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 14px 30px rgba(10, 36, 29, 0.24);
    z-index: 1900;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(10, 36, 29, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        right: 18px;
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
}

/* Professional alignment for clinic cards and contact links. */
.clinic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
}

.clinic-icon {
    margin-left: auto;
    margin-right: auto;
}

.clinic-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clinic-content h4 {
    width: 100%;
    min-height: 3.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    text-align: center;
    text-wrap: balance;
}

.clinic-address {
    width: 100%;
    min-height: 3.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    text-align: center;
    text-wrap: balance;
}

.clinic-schedule {
    width: 100%;
    min-height: 1.8em;
    justify-content: center;
    margin-bottom: 18px;
    text-align: center;
}

.clinic-actions {
    width: 100%;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.clinic-actions .clinic-btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    border-radius: 16px;
    padding: 14px 18px;
}

.clinic-actions .clinic-btn:only-child {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: center;
}

.contact-links {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.contact-btn {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    justify-content: center;
    text-align: center;
}

[dir="rtl"] .clinic-card .clinic-content,
[dir="rtl"] .clinic-card .clinic-content h4,
[dir="rtl"] .clinic-card .clinic-address,
[dir="rtl"] .clinic-card .clinic-schedule {
    text-align: center;
}

[dir="rtl"] .clinic-card .clinic-schedule {
    justify-content: center;
}

@media (max-width: 900px) {
    .contact-links {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .clinic-content h4 {
        min-height: auto;
    }

    .clinic-address {
        min-height: auto;
    }

    .clinic-actions {
        grid-template-columns: 1fr;
    }

    .clinic-actions .clinic-btn:only-child {
        max-width: none;
    }
}

/* Arabic desktop navbar order: logo first, then menu, then language button. */
@media (min-width: 769px) {
    [dir="rtl"] .navbar .nav-container {
        flex-direction: row;
    }

    [dir="rtl"] .nav-logo {
        order: 1;
        flex: 0 1 auto;
        flex-direction: row-reverse;
        justify-content: flex-start;
        text-align: right;
        margin-left: 28px;
        margin-right: 0;
    }

    [dir="rtl"] .logo-text {
        align-items: flex-end;
        text-align: right;
    }

    [dir="rtl"] .desktop-nav-menu {
        order: 2;
        flex: 1 1 auto;
        justify-content: flex-start;
    }

    [dir="rtl"] .nav-lang-btn {
        order: 3;
        margin-right: 24px;
        margin-left: 0;
    }
}

/* Hero alignment polish for both languages, with Arabic anchored properly on desktop. */
.hero-text {
    width: 100%;
    align-items: flex-start;
}

.hero-title,
.hero-subtitle,
.hero-buttons {
    width: 100%;
}

.hero-title,
.hero-subtitle {
    text-wrap: balance;
}

@media (min-width: 769px) {
    [dir="rtl"] .hero-container {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .hero-content,
    [dir="rtl"] .hero-text {
        align-items: flex-end;
    }

    [dir="rtl"] .hero-title,
    [dir="rtl"] .hero-subtitle {
        text-align: right !important;
    }

    [dir="rtl"] .hero-buttons {
        justify-content: flex-end !important;
    }
}

@media (max-width: 768px) {
    .hero-text {
        align-items: center;
    }

    [dir="rtl"] .hero-content,
    [dir="rtl"] .hero-text {
        align-items: center;
    }
}
