@import "./common-var.css";

.network-section {
    position: relative;
    overflow: hidden;
}

.network-background {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.network-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.8) 50%, rgba(15, 52, 96, 0.9) 100%);
    z-index: -1;
}

@media (max-width: 991px) {
    .network-background {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .network-background {
        padding: 60px 0;
    }
}
.network-content{
    .network-top-content{
        margin-bottom: 180px;
    }
    .hd-type2{
        max-width: 885px;
    }
    .cms-text{
        max-width: 625px;
    }
}

/* RTL Support */
[dir="rtl"] .network-content {
    text-align: center;
}

.network-building-section {
    margin-top: 60px;
}

@media (max-width: 991px) {
    .network-building-section {
        margin-top: 50px;
    }
}

@media (max-width: 576px) {
    .network-building-section {
        margin-top: 40px;
    }
}

.network-cards {
    margin-top: 40px;
    justify-content: center;
}

@media (max-width: 991px) {
    .network-cards {
        margin-top: 30px;
    }
}

.network-card {
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 20px 32px 40px;
    height: 223px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* RTL Support for cards */
[dir="rtl"] .network-card {
    align-items: flex-end;
}

.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RTL Support for icon position */
[dir="rtl"] .card-icon {
    right: auto;
    left: 20px;
}

.card-icon svg {
    width: 68px;
    height: 68px;
}

.card-title {
    color: var(--white);
    font-family: var(--font-type2);
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
    margin: 0;
    margin-top: auto;
    text-align: left;
    display: flex;
    align-items: flex-end;
}

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

@media (max-width: 1200px) {
    .card-title {
        font-size: 36px;
        line-height: 38px;
    }
}

@media (max-width: 991px) {
    .network-card {
        height: 200px;
        padding: 20px 28px 35px;
    }
    
    .card-title {
        font-size: 32px;
        line-height: 34px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .network-cards .col-md-6 {
        margin-bottom: 20px;
    }
    
    .network-cards .col-md-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .network-card {
        height: 180px;
        padding: 18px 24px 30px;
    }
    
    .card-title {
        font-size: 28px;
        line-height: 30px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        top: 18px;
        right: 18px;
    }
    
    /* RTL Support for mobile icon position */
    [dir="rtl"] .card-icon {
        right: auto;
        left: 18px;
    }
    
    .card-icon svg {
        width: 50px;
        height: 50px;
    }
}


/* Accessibility improvements */
.network-card {
    cursor: pointer;
}

.network-card:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .network-background {
        background: #1a1a2e !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}
