/**
 * Branches Page Styles
 * Primary: #19868b | Secondary: #e1273d | Dark: #0d6b6f
 */

/* ===========================================
   Hero Section
   =========================================== */
.branches-hero-section {
    min-height: 380px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.branches-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.branches-hero-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.branches-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.branches-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.branches-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.branches-hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.branches-hero-section .breadcrumb-item a:hover {
    color: #ffffff;
}

.branches-hero-section .breadcrumb-item.active {
    color: #ffffff;
}

.branches-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.branches-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.branches-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================================
   Section Header
   =========================================== */
.branches-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(25, 134, 139, 0.3);
}

.branches-section-badge i {
    font-size: 14px;
}

.branches-section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.branches-section-subtitle {
    font-size: 17px;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================================
   Branches List Section
   =========================================== */
.branches-list-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* ===========================================
   Branch Card
   =========================================== */
.branch-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.branch-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Branch Header */
.branch-header {
    position: relative;
    padding: 30px 30px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.branch-logo-wrapper {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}

.branch-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.branch-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 8px;
}

.branch-logo-placeholder i {
    font-size: 28px;
    color: #94a3b8;
}

.branch-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(25, 134, 139, 0.3);
}

/* Branch Content */
.branch-content {
    padding: 25px 30px 30px;
}

.branch-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.branch-location {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.08) 0%, rgba(13, 107, 111, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #19868b;
}

[dir="rtl"] .branch-location {
    border-left: none;
    border-right: 4px solid #19868b;
}

.branch-location i {
    color: #19868b;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.branch-location span {
    font-size: 15px;
    color: #5a5a5a;
    line-height: 1.6;
}

/* Branch Hours */
.branch-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #5a5a5a;
    font-size: 15px;
}

.branch-hours i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.15) 100%);
    border-radius: 10px;
    color: #19868b;
    font-size: 14px;
    flex-shrink: 0;
}

/* Branch Actions */
.branch-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-branch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.btn-directions {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(25, 134, 139, 0.3);
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(25, 134, 139, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-call {
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.15) 100%);
    color: #19868b;
    border: 2px solid transparent;
}

.btn-call:hover {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    text-decoration: none;
}

/* Branch Map Preview */
.branch-map-preview {
    height: 200px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.branch-map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================================
   Empty State
   =========================================== */
.branches-empty-section {
    background: #f8fafc;
}

.empty-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.15) 100%);
    border-radius: 50%;
    margin: 0 auto;
}

.empty-icon i {
    font-size: 50px;
    color: #19868b;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.empty-text {
    font-size: 16px;
    color: #64748b;
}

/* ===========================================
   CTA Section
   =========================================== */
.branches-cta-section {
    background: #ffffff;
}

.branches-cta-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
}

.branches-cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(25, 134, 139, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.branches-cta-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 39, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(25, 134, 139, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(25, 134, 139, 0.5);
    color: #ffffff;
    text-decoration: none;
}

/* ===========================================
   Animation Classes
   =========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 991px) {
    .branches-hero-title {
        font-size: 38px;
    }
    
    .branches-section-title {
        font-size: 34px;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .branches-cta-wrapper {
        padding: 40px 30px;
        text-align: center;
    }
    
    .text-lg-right {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .branches-hero-section {
        min-height: 300px;
    }
    
    .branches-hero-content {
        padding: 60px 0;
    }
    
    .branches-hero-title {
        font-size: 30px;
    }
    
    .branches-hero-subtitle {
        font-size: 16px;
    }
    
    .branches-section-title {
        font-size: 28px;
    }
    
    .branch-header {
        padding: 20px 20px 0;
    }
    
    .branch-content {
        padding: 20px;
    }
    
    .branch-name {
        font-size: 20px;
    }
    
    .branch-actions {
        flex-direction: column;
    }
    
    .btn-branch {
        width: 100%;
    }
    
    .branch-map-preview {
        height: 180px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ===========================================
   Company Profile Download Section
   =========================================== */
.company-profile-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.company-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2319868b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.company-profile-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 15px 50px rgba(25, 134, 139, 0.1);
    border: 1px solid rgba(25, 134, 139, 0.1);
    position: relative;
    overflow: hidden;
}

.company-profile-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #19868b 0%, #e1273d 100%);
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #e1273d 0%, #c41e32 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(225, 39, 61, 0.3);
}

.profile-icon i {
    font-size: 36px;
    color: #ffffff;
}

.profile-text {
    flex: 1;
}

.profile-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.profile-description {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.btn-download-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #e1273d 0%, #c41e32 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(225, 39, 61, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-download-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download-profile:hover::before {
    left: 100%;
}

.btn-download-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 39, 61, 0.4);
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #c41e32 0%, #a91828 100%);
}

.btn-download-profile i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-download-profile:hover i {
    transform: translateY(2px);
}

/* RTL Support for Company Profile */
[dir="rtl"] .company-profile-wrapper::before {
    left: auto;
    right: 0;
}

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

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

/* Responsive Styles for Company Profile */
@media (max-width: 991px) {
    .company-profile-wrapper {
        padding: 30px;
        text-align: center;
    }
    
    .profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-icon {
        margin: 0 auto;
    }
    
    .btn-download-profile {
        width: 100%;
        justify-content: center;
    }
    
    [dir="rtl"] .profile-content {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .company-profile-wrapper {
        padding: 25px 20px;
    }
    
    .profile-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .profile-icon i {
        font-size: 30px;
    }
    
    .profile-title {
        font-size: 20px;
    }
    
    .profile-description {
        font-size: 14px;
    }
    
    .btn-download-profile {
        padding: 16px 30px;
        font-size: 15px;
    }
}

/* ===========================================
   RTL Support
   =========================================== */
[dir="rtl"] .text-lg-right {
    text-align: left !important;
}

@media (max-width: 991px) {
    [dir="rtl"] .text-lg-right {
        text-align: center !important;
    }
}

