/* Terms Page Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::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='%23ffffff' fill-opacity='0.1'%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");
}

.page-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.breadcrumb {
    background: transparent;
    margin-top: 1.5rem;
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

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

/* General Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Terms Container */
.terms-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.terms-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.terms-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Terms Cards */
.terms-card {
    background-color: var(--light-color);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.terms-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.list-unstyled li i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

/* Footer Styles */
.terms-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .terms-container {
        padding: 1.5rem;
    }

    .terms-section {
        padding: 1rem;
    }

    .terms-footer {
        text-align: center;
    }

    .terms-footer .btn {
        margin-top: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-section {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* Base icon styles */
.fas,
.fab,
.far {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fix for all circular icons */
.rounded-circle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rounded-circle i {
    font-size: 16px;
    width: auto;
    height: auto;
}

/* Card header icons */
.card-header i.fa-2x {
    font-size: 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

/* Term section icons */
.term-section i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* List icons */
.list-group-item i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Alert icons */
.alert i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Navigation icons */
.nav-link i {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

/* Footer icons */
.footer-contact i {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

.social-links .social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links .social-link i {
    font-size: 16px;
}

/* Badge icons */
.badge i {
    margin-left: 4px;
    font-size: inherit;
}

/* Mobile specific adjustments */
@media (max-width: 991.98px) {
    .sticky-lg-top {
        position: relative !important;
        top: 0 !important;
        z-index: 1 !important;
        margin-bottom: 1rem;
    }

    .card.mt-4.border-info {
        margin-top: 1rem !important;
    }

    /* Adjust icon sizes for mobile */
    .card-header i.fa-2x {
        font-size: 20px;
    }

    .rounded-circle {
        width: 28px;
        height: 28px;
    }

    .rounded-circle i {
        font-size: 14px;
    }

    .term-section {
        padding: 1rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Mobile menu icons */
    .offcanvas .list-group-item i {
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }
}

/* Desktop specific adjustments */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky;
        top: 100px;
        z-index: 1020;
    }
}

/* Smooth transitions */
.sticky-lg-top {
    transition: all 0.3s ease;
}

i {
    transition: all 0.2s ease;
}

/* Terms and Conditions Page Styles */

/* Sticky sidebar */
.sticky-lg-top {
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Term sections */
.term-section {
    transition: all 0.3s ease;
    background: linear-gradient(to right, rgba(13, 110, 253, 0.05), transparent);
}

.term-section:hover {
    transform: translateX(5px);
    border-left-width: 6px !important;
}

/* Table styles */
.table {
    --bs-table-striped-bg: rgba(13, 110, 253, 0.02);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Card enhancements */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-bottom: none;
}

/* Quick navigation buttons */
.btn-outline-primary {
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.375rem 1rem;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* Icons in headings */
.card-header i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card:hover .card-header i {
    opacity: 1;
    transform: scale(1.1);
}

/* Alert boxes */
.alert {
    border-radius: 10px;
}

.alert i {
    transition: all 0.3s ease;
}

.alert:hover i {
    transform: scale(1.1);
}

/* List group items */
.list-group-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    border-left-color: var(--bs-primary);
    padding-left: 1.5rem;
}

.list-group-item i {
    transition: all 0.3s ease;
    width: 20px;
    text-align: center;
}

.list-group-item:hover i {
    transform: scale(1.2);
}

/* Help box */
.help-box {
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
}

.help-box .btn {
    transition: all 0.3s ease;
}

.help-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 202, 240, 0.3);
}

/* RTL Support */
[dir="rtl"] .term-section {
    background: linear-gradient(to left, rgba(13, 110, 253, 0.05), transparent);
}

[dir="rtl"] .term-section:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .list-group-item {
    border-left: none;
    border-right: 3px solid transparent;
}

[dir="rtl"] .list-group-item:hover {
    border-right-color: var(--bs-primary);
    padding-right: 1.5rem;
    padding-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sticky-lg-top {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .term-section:hover {
        transform: none;
    }
}
