/* ===== SECTORS PAGE SPECIFIC STYLES ===== */

/* Updated: Hero Section for Sectors Page */
.sectors-hero {
    height: 40vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sectors-hero .hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.sectors-hero .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.sectors-hero .hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 36, 99, 0.85) 0%, rgba(46, 46, 46, 0.75) 100%);
    z-index: -1;
}

.sectors-hero .hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin: 80px auto 0;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.sectors-hero .hero-title-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.sectors-hero .hero-title-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0 auto 25px auto;
    opacity: 0;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Intro Section */
.sectors-intro-section {
    background-color: var(--white);
    padding-top: 80px;
}

.sectors-intro-text {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    color: var(--charcoal);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.9;
}

/* Sectors Grid Section */
.sectors-grid-section {
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

.sector-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card-inner {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 36, 99, 0.05);
    position: relative;
    overflow: hidden;
}

.sector-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card:hover .sector-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
}

.sector-card:hover .sector-card-inner::before {
    opacity: 1;
}

.sector-card-header {
    padding: 30px 30px 20px;
    position: relative;
    z-index: 2;
}

.sector-card-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sector-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sector-card:hover .sector-card-icon {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c542 100%);
}

.sector-card-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
    background: rgba(212, 175, 55, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.sector-card-content {
    padding: 0 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.sector-card-title {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.sector-card-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

/* Sectors Features Section */
.sectors-features-section {
    background-color: var(--white);
    padding: 80px 0;
}

.sectors-features-intro {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: var(--charcoal);
    line-height: 1.7;
    max-width: 700px;
    margin: 20px auto 40px;
    text-align: center;
    opacity: 0.9;
}

.feature-item {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(10, 36, 99, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    margin: 0 auto 25px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover .feature-item-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c542 100%);
}

.feature-item-title {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-item-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Sectors Process Section */
.sectors-process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.sectors-process-content {
    padding-right: 40px;
    text-align: right;
}

.sectors-process-content .divider-left {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0 0 30px 0;
}

.sectors-process-text {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 40px;
    opacity: 0.9;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(10, 36, 99, 0.1);
}

.process-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c542 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step-content {
    flex: 1;
}

.process-step-content h4 {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.process-step-content p {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.sectors-process-visual {
    text-align: center;
}

.process-visual-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.2);
    color: var(--white);
    max-width: 400px;
    margin: 0 auto;
}

.process-visual-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    margin: 0 auto 25px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-visual-card:hover .process-visual-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.process-visual-title {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.process-visual-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .sectors-hero {
        height: 40vh;
        min-height: 450px;
    }
    
    .sector-card-title {
        font-size: 19px;
    }
}

@media (max-width: 992px) {
    .sectors-hero {
        height: 35vh;
        min-height: 400px;
    }
    
    .sectors-hero .hero-title-ar {
        font-size: 28px;
    }
    
    .sectors-intro-text {
        font-size: 20px;
    }
    
    .sectors-process-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .process-visual-card {
        max-width: 500px;
    }
    
    .sector-card-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .sectors-hero {
        height: 30vh;
        min-height: 350px;
        max-height: 450px;
    }
    
    .sectors-hero .hero-content {
        margin-top: 60px;
    }
    
    .sectors-hero .hero-title-ar {
        font-size: 24px;
    }
    
    .sector-card-header {
        padding: 25px 25px 15px;
    }
    
    .sector-card-content {
        padding: 0 25px 25px;
    }
    
    .sector-card-title {
        font-size: 18px;
    }
    
    .sector-card-desc {
        font-size: 14px;
    }
    
    .sectors-intro-text {
        font-size: 18px;
    }
    
    .sectors-process-text {
        font-size: 16px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .feature-item-title {
        font-size: 20px;
    }
    
    .feature-item-desc {
        font-size: 15px;
    }
    
    .process-step {
        padding: 15px;
    }
    
    .process-visual-card {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .sectors-hero {
        min-height: 300px;
        max-height: 400px;
        height: auto;
    }
    
    .sectors-hero .hero-title-ar {
        font-size: 22px;
    }
    
    .sector-card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .sector-card-title {
        font-size: 19px;
    }
    
    .sector-card-desc {
        font-size: 14px;
    }
    
    .sectors-intro-section {
        padding-top: 60px;
    }
    
    .sectors-intro-text {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .process-step-number {
        margin: 0 auto;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    .sectors-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .sectors-hero .hero-title-ar {
        font-size: 20px;
    }
    
    .sector-card-header {
        padding: 20px 20px 10px;
    }
    
    .sector-card-content {
        padding: 0 20px 20px;
    }
    
    .sector-card-title {
        font-size: 18px;
    }
    
    .sector-card-desc {
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .sectors-hero {
        height: auto;
        min-height: auto;
        max-height: none;
        break-inside: avoid;
    }
    
    .sectors-hero .hero-bg,
    .sectors-hero .hero-overlay {
        display: none;
    }
    
    .sectors-hero .hero-content {
        color: #000;
        animation: none;
        opacity: 1;
    }
    
    .sectors-hero .hero-title-ar {
        color: #000;
        animation: none;
        opacity: 1;
    }
    
    .sector-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .sector-card-inner {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}