﻿.ie-panel {
    display: none;
    background: #212121;
    padding: 10px 0;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,.3);
    clear: both;
    text-align: center;
    position: relative;
    z-index: 1;
}

html.ie-10 .ie-panel, html.lt-ie-10 .ie-panel {
    display: block;
}

/* Slider text positioning and flow */
.tour-1-2 {
    position: relative;
}

.tour-1-title, .tour-subtitle {
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
}

/* Mobile adjustments - lower the text */
@media (max-width: 768px) {
    .tour-1-2 {
        padding-top: 200px;
    }

    .tour-1-title {
        margin-top: 80px;
    }

    .tour-subtitle {
        margin-top: 40px;
    }

    .tour-1-2 .button.button-lg.shadow-2.button-primary {
        align-self: flex-end !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        width: auto !important;
        float: right !important;
        clear: both !important;
        display: block !important;
        text-align: right !important;
    }

    /* Override any conflicting styles for mobile button alignment */
    .swiper-slide .tour-1-2 .button {
        align-self: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    /* Ensure the container maintains right alignment */
    .swiper-slide .tour-1-2 {
        align-items: flex-end !important;
    }
}

/* Desktop - limit text width and allow flow */
@media (min-width: 769px) {
    .tour-1-title, .tour-subtitle {
        text-align: right;
    }

    .tour-1-2 {
        padding-top: 0 !important;
        align-items: flex-end !important;
    }

    .tour-1-title {
        margin-top: 0 !important;
        text-align: right !important;
    }

    .tour-subtitle {
        margin-top: 0 !important;
        text-align: right !important;
    }

    .swiper-slide .tour-1-2 {
        align-items: flex-end !important;
    }
}

/* CTA Section Improvements */
.parallax-container {
    position: relative;
}

    .parallax-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

.parallax-content {
    position: relative;
    z-index: 2;
}

    .parallax-content .col-sm-10 {
        text-align: right !important;
    }

.parallax-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

    .parallax-heading a {
        color: #3498db;
        text-decoration: none;
        font-size: 1.8rem;
        display: block;
        margin-top: 10px;
        text-align: right !important;
        width: 100%;
    }

.parallax-subtitle {
    font-size: 1.3rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.parallax-content .button {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center !important;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

    .parallax-content .button:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

/* Add spacing between all sections except slider and navbar */
.section-lg:not(.page-header),
.section:not(.page-header) {
    margin-bottom: 40px !important;
}

/* Ensure slider stays touching navbar - no margin-top */
.section-main {
    margin-top: 0 !important;
}

/* Add extra spacing for specific sections that need more breathing room */
.section-lg.text-center {
    margin-bottom: 50px !important;
}

/* Programs section spacing */
.programs-section {
    margin-bottom: 60px !important;
}

/* What We Offer section spacing */
#what-we-offer {
    margin-bottom: 50px !important;
}

/* Our Team section spacing */
.bg-color-gray-100 {
    margin-bottom: 50px !important;
    padding-top: 50px !important;
}

/* Gallery section spacing */
.section-lg.section {
    margin-bottom: 50px !important;
}

/* CTA section spacing */
.parallax-container {
    margin-bottom: 50px !important;
}

/* Testimonials section spacing */
.bg-default {
    margin-bottom: 50px !important;
}

/* Contacts section spacing and padding */
.bg-img-2 {
    margin-bottom: 50px !important;
    padding: 50px 70px 50px 70px !important;
}

/* Get in Touch section spacing */
.section-lg.bg-default:last-of-type {
    margin-bottom: 50px !important;
}

/* Sun effect for nibras-sun image */
.label-box img {
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.4)) drop-shadow(0 0 40px rgba(255, 152, 0, 0.3)) drop-shadow(0 0 60px rgba(255, 87, 34, 0.2));
    transition: all 0.3s ease;
}

    .label-box img:hover {
        filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.6)) drop-shadow(0 0 60px rgba(255, 152, 0, 0.4)) drop-shadow(0 0 90px rgba(255, 87, 34, 0.3));
        transform: scale(1.05);
    }

/* Center all section headers except slider */
section:not(.section-main) h2,
section:not(.section-main) h3 {
    text-align: center !important;
}

/* Remove text-align right from text-decor-1 */
.text-decor-1 {
    text-align: center !important;
}

/* Mobile responsive styles for slider text */
@media (max-width: 768px) {
    .slider-text-content {
        right: 5% !important;
        left: 5% !important;
        width: 90% !important;
        max-width: none !important;
        top: 15% !important;
        padding: 15px !important;
    }
    
    .slider-text-content h2 {
        font-size: 2.8em !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }
    
    .slider-text-content p {
        font-size: 1.6em !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }
    
    .slider-text-content a {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Show more of vertical photos on mobile */
    .slide {
        background-size: cover !important;
        background-position: center top !important;
    }
}

@media (max-width: 480px) {
    .slider-text-content {
        right: 3% !important;
        left: 3% !important;
        width: 94% !important;
        top: 10% !important;
        padding: 10px !important;
    }
    
    .slider-text-content h2 {
        font-size: 2.2em !important;
        margin-bottom: 8px !important;
    }
    
    .slider-text-content p {
        font-size: 1.4em !important;
        margin-bottom: 12px !important;
    }
    
    .slider-text-content a {
        padding: 10px 16px !important;
        font-size: 15px !important;
    }
    
    /* Show more of vertical photos on mobile */
    .slide {
        background-size: cover !important;
        background-position: center top !important;
    }
}

    /* Center the decorative element before text-decor-1 */
    .text-decor-1::before {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

/* Team Section - Complete Redesign */
.team-section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-main-display {
    position: relative;
    min-height: 400px;
    margin-bottom: 5px;
    background: transparent;
}

.team-member-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
    padding: 40px 0;
    gap: 40px;
}

.team-content-left {
    flex: 1;
    padding-right: 40px;
    text-align: right;
    direction: rtl;
}

.team-content-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: -1;
}

.team-article-content {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease 0.2s;
    text-align: right !important;
    direction: rtl !important;
    font-family: 'Tajawal', Arial, sans-serif !important;
}

.team-article-content * {
    text-align: right !important;
    direction: rtl !important;
}

.team-member-card.active .team-article-content {
    opacity: 1;
    transform: translateX(0);
}

.team-member-card.active {
    opacity: 1;
    transform: translateX(0);
}

.team-photo-container {
    margin-bottom: 20px;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: block;
}

.team-info {
    text-align: center;
}

.team-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.3;
}

.team-role {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-block;
}

.team-role span {
    font-size: 1em;
    color: #3b82f6;
    font-weight: 600;
    font-family: 'Tajawal', Arial, sans-serif;
}

/* Thumbnail Navigation */
.team-thumbnail-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.team-thumb {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    overflow: hidden;
    position: relative;
}

.team-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.team-thumb:hover {
    transform: scale(1.1);
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.team-thumb.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 5px 15px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-main-display {
        position: static;
        min-height: auto;
        height: auto;
        margin: 0 10px 20px 10px;
    }
    
    .team-member-card {
        position: static;
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
        display: none;
    }
    
    .team-member-card.active {
        display: flex;
    }
    
    .team-content-left {
        padding-right: 0;
        order: 2;
        text-align: right;
        direction: rtl;
    }
    
    .team-content-right {
        order: 1;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
        border: 4px solid white;
    }
    
    .team-name {
        font-size: 1.5em;
        margin-bottom: 8px;
    }
    
    .team-role span {
        font-size: 0.9em;
    }
    
    .team-thumbnail-nav {
        gap: 10px;
        padding: 0 20px;
    }
    
    .team-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .team-main-display {
        position: static;
        min-height: auto;
        height: auto;
        margin: 0 5px 15px 5px;
    }
    
    .team-member-card {
        position: static;
        padding: 25px 15px;
        gap: 15px;
        display: none;
    }
    
    .team-member-card.active {
        display: flex;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
        border: 3px solid white;
    }
    
    .team-name {
        font-size: 1.3em;
        margin-bottom: 6px;
    }
    
    .team-role span {
        font-size: 0.85em;
    }
    
    .team-thumb {
        width: 50px;
        height: 50px;
    }
}
