/**
 * SkillHub - Main Stylesheet
 * الأنماط الرئيسية لمنصة SkillHub
 */

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0D6EFD;
    --secondary-color: #6C757D;
    --success-color: #198754;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --info-color: #0DCAF0;
    --dark-color: #212529;
    --light-color: #F8F9FA;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

p {
    line-height: 1.8;
    color: #6c757d;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--primary-color) !important;
}

/* ===== Top Bar ===== */
.top-bar {
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.top-bar-item i {
    flex-shrink: 0;
}

.top-bar-item span[dir="ltr"] {
    direction: ltr;
    display: inline-block;
}

.top-bar a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.top-bar a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.top-bar .social-links a i {
    font-size: 1.1rem;
}

/* Top Bar Responsive */
@media (max-width: 768px) {
    .top-bar {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .top-bar .row > div {
        justify-content: center;
    }
    
    .top-bar .d-flex {
        justify-content: center !important;
    }
    
    .top-bar-item {
        font-size: 0.8rem;
    }
    
    .top-bar .social-links a {
        width: 28px;
        height: 28px;
    }
    
    .top-bar .social-links a i {
        font-size: 1rem;
    }
}

/* ===== Navbar ===== */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    margin-left: 1rem;
    flex-shrink: 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 50px;
    height: auto;
    width: auto;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    margin: 0 0.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: var(--dark-color) !important;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.nav-link i {
    margin-right: 5px;
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.navbar .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.navbar .dropdown-item.active {
    background-color: rgba(13, 110, 253, 0.15);
    color: var(--primary-color);
}

.navbar .dropdown-item i {
    margin-left: 8px;
    width: 20px;
    text-align: center;
}

/* Fix navbar overlap on medium screens */
@media (max-width: 1200px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.9rem;
    }
    
    .navbar .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar-brand img {
        max-height: 45px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar .d-flex {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(rgba(40, 80, 120, 0.85), rgba(40, 80, 120, 0.85)), 
                url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920') center/cover;
    padding: 120px 0 80px;
    color: white;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-search {
    background: white;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    max-width: 600px;
}

.hero-search .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    flex: 1;
}

.hero-search .form-control:focus {
    box-shadow: none;
    outline: none;
}

.hero-search .btn {
    border-radius: 6px 0 0 6px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-search .form-control {
    border-radius: 0 6px 6px 0;
}

/* Keep search button at the far right in RTL */
.hero-search .input-group, .search-form .input-group {
    flex-direction: row-reverse;
}

/* ===== Category Cards ===== */
.category-section {
    padding: 60px 0;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.category-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ===== Course Cards ===== */
.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.course-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #10B981;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-badge.online {
    background: #10B981;
}

.course-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    color: #1e40af;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-institute {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.course-meta-item i {
    font-size: 1.3rem;
    color: #0ea5e9;
    margin-left: 0.5rem;
}

.course-meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
}

.course-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 1rem;
}

.course-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-price-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-size: 1.2rem;
}

.course-price small {
    font-size: 1rem;
    color: #1e40af;
    font-weight: 600;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wishlist-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.wishlist-btn.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.wishlist-btn i {
    font-size: 1.1rem;
}

/* ===== Institute Cards ===== */
.institute-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.institute-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.institute-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #e9ecef;
}

.institute-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.institute-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.institute-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.institute-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    width: 100%;
    justify-content: center;
}

.institute-stat {
    text-align: center;
}

.institute-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.institute-stat span {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== Filters ===== */
.filters-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark-color);
}

.filter-group .form-control,
.filter-group .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
}

.filter-group .form-control:focus,
.filter-group .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* ===== Pagination ===== */
.pagination {
    margin: 2rem 0;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background-color: #1a1d29 !important;
}

.footer-section {
    padding: 0;
}

.footer-section h4,
.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section .d-flex.align-items-center {
    gap: 0.5rem;
}

.footer-section img {
    max-height: 40px;
    width: auto;
    flex-shrink: 0;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.footer .hover-link {
    transition: all 0.3s ease;
}

.footer .hover-link:hover {
    color: var(--primary-color) !important;
    padding-right: 5px;
}

.footer .social-links a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-section img {
        max-height: 35px;
    }
    
    .footer-section h4 {
        font-size: 1.25rem;
    }
    
    .footer-section h5 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-section img {
        max-height: 30px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section .d-flex.align-items-center {
        flex-wrap: wrap;
    }
}

/* ===== Back to Top Button ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 999;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* ===== Section Titles ===== */
.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ===== Hover Effects ===== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

/* ===== About Page Specific ===== */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* ===== RTL Specific Fixes ===== */
[dir="rtl"] .pagination .page-link {
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="rtl"] .navbar-brand img {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .footer-section img {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Input Group */
.input-group > .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.input-group > .form-control:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .course-card {
        margin-bottom: 1rem;
    }
    
    #backToTop {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ===== Loading Spinner ===== */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
}

/* ===== Badges ===== */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border-radius: 6px;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ===== Tables ===== */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Stats Cards ===== */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #6c757d;
    font-size: 0.95rem;
}

/* ===== Default Images Styles ===== */
.course-card-image img[src*="default-course"],
.institute-logo img[src*="default-institute"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
}

.course-card-image img[src*="default-course"] {
    object-fit: contain;
}

.institute-logo img[src*="default-institute"] {
    object-fit: contain;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Default image for course details page */
.img-fluid[src*="default-course"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    object-fit: contain !important;
}

/* Ensure SVG images scale properly */
img[src$=".svg"] {
    max-width: 100%;
    height: auto;
}

/* ===== CTA Box (Call to Action) ===== */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4) !important;
}

.cta-box h2 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-box p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.cta-box .btn-light {
    position: relative;
    z-index: 1;
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
}

.cta-box .btn-light:hover {
    background: #f8f9fa;
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* CTA Box Responsive */
@media (max-width: 768px) {
    .cta-box h2 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .cta-box h2 {
        font-size: 1.3rem;
    }
    
    .cta-box p {
        font-size: 0.95rem;
    }
    
    .cta-box .btn-light {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===== Contact Info Box ===== */
.contact-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.contact-info-box h4,
.contact-info-box h5 {
    position: relative;
    z-index: 1;
    color: white !important;
}

.contact-info-box i {
    position: relative;
    z-index: 1;
}

.contact-info-box .d-flex {
    position: relative;
    z-index: 1;
}

.contact-info-box strong {
    color: white !important;
    opacity: 0.95;
}

.contact-info-box a.text-white:hover {
    opacity: 0.8;
    text-decoration: underline !important;
}

.contact-info-box hr {
    background-color: rgba(255,255,255,0.3) !important;
    opacity: 1;
}

/* Contact Info Responsive */
@media (max-width: 992px) {
    .contact-info-box {
        margin-top: 2rem;
    }
}

/* ===== Footer Titles Fix ===== */
.footer-section h4,
.footer-section h5 {
    color: white !important;
}

.footer h4,
.footer h5 {
    color: white !important;
}
