/* Additional Styles for Creative Engineering & Environment Website */

/* Language Switcher */
.language-switcher-container {
    margin-left: 20px;
    margin-right: 20px;
}

.language-switcher {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.language-switcher:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* About Detailed Page */
.about-detailed {
    padding: 120px 0 60px;
}

.about-detailed h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 36px;
}

.mission-vision-detailed {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.mission-vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.why-choose-us {
    padding: 60px 0;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--secondary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Organizational Chart Styles */
.org-charts {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.org-chart-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.org-chart-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--primary-color);
}

.org-chart {
    overflow-x: auto;
    position: relative;
}

.org-chart-content {
    min-width: 900px;
    margin: 0 auto;
    position: relative;
    background-color: #000;
    padding: 20px;
    border-radius: 8px;
}

.org-level {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

/* Vertical connector lines */
.org-level::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: var(--primary-color);
    z-index: 1;
}

.org-level:last-child::after {
    display: none;
}

/* Horizontal connector lines for departments */
.org-departments {
    justify-content: space-around;
    position: relative;
}

.org-departments::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--primary-color);
    z-index: 0;
}

.org-staff {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    position: relative;
}

.org-cities {
    justify-content: center;
    position: relative;
    padding-top: 20px;
}

.org-box {
    background-color: #e8f5e9;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    min-width: 150px;
    text-align: center;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.org-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.org-director {
    background-color: #c8e6c9;
    border-width: 3px;
    min-width: 200px;
}

.org-box h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--secondary-color);
}

.org-box p {
    margin: 0;
    font-size: 14px;
    color: var(--dark-gray);
}

.org-empty {
    visibility: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.org-empty:hover {
    transform: none;
    box-shadow: none;
}

/* RTL specific org chart adjustments */
html[dir="rtl"] .org-cities {
    justify-content: center;
}

@media (max-width: 992px) {
    .org-chart-content {
        min-width: 700px;
    }
    
    .org-box {
        min-width: 120px;
        padding: 10px;
    }
    
    .org-director {
        min-width: 180px;
    }
}

/* Credentials Section */
.credentials-section {
    padding: 60px 0;
}

.credentials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

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

.credential-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.credential-image {
    height: 200px;
    overflow: hidden;
}

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

.credential-info {
    padding: 20px;
}

.credential-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--secondary-color);
}

/* Services Overview */
.services-overview {
    padding: 120px 0 40px;
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--secondary-color);
}

.additional-services {
    padding: 60px 0;
}

.additional-services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Service Process */
.service-process {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.service-process h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    height: calc(100% - 20px);
    width: 2px;
    background-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    z-index: 1;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 36px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page Styles */
.contact-info-section {
    padding: 120px 0 60px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-10px);
}

.contact-info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.contact-form-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.contact-form-section .contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-text h2 {
    margin-bottom: 20px;
    font-size: 36px;
    color: var(--secondary-color);
}

.contact-text p {
    margin-bottom: 30px;
}

.social-contact {
    margin-top: 40px;
}

.social-contact h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    transition: var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--secondary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--secondary-color);
}

/* Responsive Styles for Additional Elements */
@media (max-width: 992px) {
    .mission-vision-content,
    .contact-form-section .contact-content {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-detailed h2,
    .why-choose-us h2,
    .team-section h2,
    .credentials-section h2,
    .services-overview h2,
    .additional-services h2,
    .service-process h2,
    .cta-section h2,
    .contact-text h2,
    .map-section h2,
    .faq-section h2 {
        font-size: 28px;
    }
    
    .structure-level h3 {
        font-size: 24px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .step:not(:last-child)::after {
        left: 25px;
        top: 50px;
        height: calc(100% - 50px);
    }
}
