/* Review modal star rating styles */
.star-group {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
    cursor: pointer;
    font-size: 2rem;
}
.star-group i {
    transition: color 0.2s, transform 0.1s;
    color: #bbb;
    cursor: pointer;
}
.star-group i.bi-star-fill.text-warning {
    color: #ffc107 !important;
    transform: scale(1.15);
}
.star-group i:hover {
    color: #ff9800 !important;
    transform: scale(1.2);
}
/* Vazirmatn Font Family */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Vazirmatn to all elements */
body, h1, h2, h3, h4, h5, h6, .navbar, .nav, .card, .footer, .btn, button, input, select, option, textarea, label {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    min-height: 100vh;
}
.hero-section {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.55);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.16);
}
.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.97);
    aspect-ratio: 16 / 9;
}
.card-title {
    font-weight: 700;
    color: #1e293b;
}
.card-text {
    color: #475569;
}
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #6b7280;
    transition: background 0.3s ease;
}

.footer:hover {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}

/* Footer Menu Section with Trust Badges and Brand Logo */
.footer-menu-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.trust-badges-side {
    display: flex;
    align-items: center;
}

.trust-badges-side .badges-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-badges-side .badge-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
}

.trust-badges-side .badge-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trust-badges-side .trust-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Brand Logo in Menu */
.brand-logo-side {
    display: flex;
    align-items: center;
}

.pansionyab-logo-menu {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.pansionyab-logo-menu:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    filter: brightness(1.1) saturate(1.1);
}

/* Responsive Design for Footer */
@media (max-width: 992px) {
    .footer-menu-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .brand-logo-side {
        order: 1;
    }
    
    .footer-links {
        order: 2;
    }
    
    .trust-badges-side {
        order: 3;
    }
}

@media (max-width: 768px) {
    .footer-menu-section {
        justify-content: center !important;
        text-align: center;
    }
    .footer-links {
        width: 100%;
    }
    .footer-links .nav {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    .footer-links .nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-links .nav-item {
        margin: 0;
    }
    
    .footer-links .nav-link {
        padding: 5px 0 !important; /* vertical padding only */
        font-size: 14px;
    }
      .trust-badges-side .trust-logo {
        width: 80px;
        height: 80px;
    }
    
    .pansionyab-logo-menu {
        width: 100px;
    }
}



@media (max-width: 480px) {
    .badges-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-badges {
        margin: 15px 0;
        padding: 15px 0;
    }
}
.navbar-brand img {
    height: 80px;
    width: auto;
    object-fit: contain;
}
.contact-card {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(30, 41, 59, 0.10);
    background: #fff;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}
.contact-title {
    color: #6366f1;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Contact Info Cards */
.contact-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.contact-info-card h5 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-detail {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.contact-detail a {
    color: #6366f1;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-detail a:hover {
    color: #4f46e5;
}

.form-label {
    font-weight: 600;
    color: #374151;
}
.form-control, textarea {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    transition: border-color 0.2s;
}
.form-control:focus, textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99,102,241,.15);
}
.btn-primary {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    /* Vertical only — let Bootstrap's --bs-btn-padding-x provide standard horizontal padding */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: background 0.2s;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #818cf8 0%, #6366f1 100%);
}
.custom-breadcrumb {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.custom-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 50%, #a855f7 100%);
    border-radius: 12px 12px 0 0;
}

.custom-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    color: #64748b;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    letter-spacing: 0.25px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    animation: breadcrumbItemSlide 0.4s ease-out;
    animation-fill-mode: both;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #a5b4fc, #c7d2fe);
    border-radius: 50%;
    margin: 0 0.75rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #6366f1;
    font-weight: 600;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    position: relative;
    animation: activePulse 2s ease-in-out infinite;
}

.custom-breadcrumb .breadcrumb-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(129, 140, 248, 0.05) 100%);
    border-radius: 8px;
    z-index: -1;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    position: relative;
}

.custom-breadcrumb .breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.custom-breadcrumb .breadcrumb-item a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.custom-breadcrumb .breadcrumb-item a:hover::after {
    width: 100%;
}

.custom-breadcrumb .breadcrumb-item:hover + .breadcrumb-item::before {
    background: linear-gradient(45deg, #6366f1, #818cf8);
    transform: scale(1.2);
}

.custom-breadcrumb .breadcrumb-item svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.custom-breadcrumb .breadcrumb-item:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.breadcrumb-rtl {
    margin-right: 2rem;
    margin-left: 0;
}
@media (max-width: 576px) {
    .breadcrumb-rtl {
        margin-right: 1rem;
    }
    
    .custom-breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        width: 4px;
        height: 4px;
        margin: 0 0.5rem;
    }
    
    .custom-breadcrumb .breadcrumb-item.active {
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
    }
    
    .custom-breadcrumb .breadcrumb-item svg {
        width: 16px;
        height: 16px;
    }
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.login-step {
    transition: opacity 0.4s;
}
.login-step.fade-in {
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}
.popup-error {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 576px) {
    .popup-error {
        top: 10px;
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: calc(100vw - 20px);
        width: auto;
    }
}
.popup-error.show {
    opacity: 1;
}

.code-input {
    background-color: #e3e8ef !important;
    border: 2px solid #6366f1 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.10) !important;
    color: #1e293b !important;
    font-weight: bold;
    font-size: 1.7rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input:focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 2px #19875433 !important;
    background-color: #e9f7ef !important;
}

/* Featured Photo Selection Styles */
.featured-photo-option {
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

.featured-photo-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.featured-photo-option img {
    transition: filter 0.3s ease;
}

/* Drag and Drop Styles */
.photo-preview-item {
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.photo-preview-item:hover {
    transform: scale(1.05);
}

.photo-preview-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.photo-preview-item.drag-over {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
}

.photo-preview-item[draggable="true"] {
    cursor: grab;
}

.photo-preview-item[draggable="true"]:active {
    cursor: grabbing;
}

/* Featured Photo Indicator */
.featured-badge {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
}

/* Photo Container */
#photoContainer {
    min-height: 140px;
    padding: 10px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

#photoContainer:empty::before {
    content: 'عکس‌ها را اینجا ببینید و مرتب کنید';
    display: block;
    text-align: center;
    color: #6c757d;
    padding: 40px 0;
    font-style: italic;
}

#photoContainer.drag-active {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* Vue Photo Upload Component Styles */
.photo-preview-item {
    position: relative;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.photo-preview-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.photo-preview-item.featured {
    border-color: #28a745 !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.photo-preview-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.photo-preview-item.drag-over {
    border-color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
}

.drag-active {
    background-color: rgba(0, 123, 255, 0.05);
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 10px;
}

.drag-active .photo-preview-item:not(.dragging) {
    opacity: 0.7;
}

/* Fade in animation for photo previews */
.photo-preview-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive grid for photo previews */
@media (max-width: 768px) {
    .photo-preview-item img {
        height: 100px !important;
        width: 100px !important;
    }
}

/* Loading spinner styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Discount Badge Styles */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    transform: rotate(15deg);
    animation: pulse 2s infinite;
}

.discount-badge .badge {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: rotate(15deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.05);
    }
}

@media (max-width: 576px) {
    .discount-badge {
        top: 8px;
        right: 8px;
    }

    .discount-badge .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Underline accent for section titles */
.underline-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
    border-radius: 2px;
    margin: 0.5rem auto;
}

/* Leaflet Map Styles */
#map {
    height: 400px;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1;
}

@media (max-width: 768px) {
    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    #map {
        height: 250px;
    }
}

.leaflet-container {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    direction: rtl;
    text-align: center;
    font-size: 14px;
}

.leaflet-control-zoom {
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    border-radius: 0 !important;
    border: none !important;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

.leaflet-control-attribution {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    font-size: 10px !important;
    direction: ltr;
}

/* Map loading state */
#map.loading {
    position: relative;
    opacity: 0.7;
}

#map.loading::before {
    content: "در حال بارگذاری نقشه...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: #666;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Persian Calendar Popup Styles */
#calendar-popup {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    direction: rtl;
    z-index: 1050;
    max-width: 320px;
    min-width: 280px;
}

#calendar-popup .btn {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    border-radius: 8px;
    font-size: 0.9rem;
}

#calendar-popup #month-year-display {
    font-size: 1.1rem;
    font-weight: bold;
    color: #495057;
    padding: 8px 0;
}

#calendar-popup .row {
    margin: 0;
}

#calendar-popup .col {
    padding: 2px;
}

#calendar-popup .btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#calendar-popup .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

#calendar-popup .btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: white;
}

#calendar-popup .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#calendar-popup .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Calendar animation */
#calendar-popup {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Persian date input styling */
#persianDateInput {
    cursor: pointer;
    background-color: white !important;
    border-radius: 8px;
}

#persianDateInput:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.input-group-text {
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.input-group-text:hover {
    background-color: #e9ecef;
}

/* Contact Info Cards Compact */
.contact-info-card-compact {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.08);
    margin-bottom: 0.5rem;
}

.contact-info-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.12);
    border-color: rgba(99, 102, 241, 0.15);
}

.contact-info-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact-info-card-compact h6 {
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-info-card-compact .contact-detail {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-info-card-compact .contact-detail a {
    color: #6366f1;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info-card-compact .contact-detail a:hover {
    color: #4f46e5;
}

/* About Page Styles */
.hero-section-about {
    position: relative;
    overflow: hidden;
}

.icon-box {
    flex-shrink: 0;
}

.icon-circle {
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.counter-item h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.avatar {
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Animation for counters */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item {
    animation: countUp 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section-about {
        padding: 60px 0 !important;
    }
    
    .hero-section-about h1 {
        font-size: 2rem !important;
    }
    
    .hero-section-about .lead {
        font-size: 1.1rem !important;
    }
    
    .icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-circle i {
        font-size: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

/* Purple badge for mixed gender study halls */
.bg-purple {
    background-color: #9c27b0 !important;
    color: white;
}

/* Card hover effects for about page */
.card.h-100:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(30, 41, 59, 0.15);
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.copyright-text {
    flex: 1;
    text-align: right;
    color: #6b7280;
    font-size: 14px;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.pansionyab-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.pansionyab-logo:hover {
    transform: scale(1.05);
}

/* Search Form Responsive Design */
.search-form-modern {
    margin-top: -60px;
    z-index: 10;
    position: relative;
}

.search-form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 200px;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .search-form-modern {
        margin-top: -20px;
        padding: 1.5rem !important;
    }
    
    .search-form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-form-group .form-select {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 0.95rem !important;
        padding: 0.5rem 0.75rem !important;
        text-align: center !important;
        text-align-last: center !important;
    }
    
    .search-form-group button[type="submit"] {
        width: 100%;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        margin-top: 0.5rem !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .search-form-group .btn-group {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-form-group .btn-group .btn {
        width: 100%;
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 0.5rem !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .d-flex.flex-wrap.justify-content-center.align-items-end.gap-4.gap-md-5.w-100 {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-form-modern {
        padding: 1rem !important;
        margin-top: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .search-form-group .form-label {
        font-size: 0.9rem;
    }
    
    .search-form-group .btn-group .btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
    }
    
    .card-text {
        font-size: 0.9rem !important;
    }
}

/* Card Responsive Design */
@media (max-width: 768px) {
    .col-12.col-md-6.col-lg-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .alert {
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
    
    .discount-badge .badge {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.6rem !important;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 160px !important;
    }
    
    .card-body {
        padding: 0.75rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .display-6 {
        font-size: 1.3rem !important;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Navbar Responsive Design */
@media (max-width: 992px) {
    .navbar-brand img {
        height: 90px !important;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
        margin-inline-start: 0 !important;
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem !important;
        font-size: 1.15rem !important;
        border-bottom: 1px solid #f1f5f9;
        text-align: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .navbar-brand img {
        height: 75px !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* General Mobile Optimizations */
@media (max-width: 768px) {
    body {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    h1, .h1 {
        font-size: 2rem !important;
    }
    
    h2, .h2 {
        font-size: 1.6rem !important;
    }
    
    h3, .h3 {
        font-size: 1.4rem !important;
    }
    
    h4, .h4 {
        font-size: 1.2rem !important;
    }
    
    h5, .h5 {
        font-size: 1.1rem !important;
    }
    
    /* Touch-friendly button sizes */
    .btn {
        min-height: 48px;
        touch-action: manipulation;
        font-size: 1rem !important;
    }
    
    /* Better spacing for mobile */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Form improvements */
    .form-select, .form-control {
        min-height: 48px;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem !important;
    }
    
    /* Better readability */
    .small, small {
        font-size: 0.9rem !important;
    }
    
    /* Modal improvements for mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .modal-content {
        border-radius: 1rem;
    }
    
    .modal-header, .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /* Star rating improvements for mobile */
    .star-group {
        font-size: 2.5rem !important;
        gap: 0.5rem !important;
    }
    
    .star-group i {
        cursor: pointer;
        padding: 0.25rem;
    }
    
    /* Review modal specific */
    #reviewModal .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    #reviewModal label {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Contact modal improvements */
    .contact-info-card-compact {
        padding: 1.25rem !important;
        gap: 1rem !important;
    }
    
    .contact-info-icon-small {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 50px;
    }
    
    .shadow-lg {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    }
    
    .rounded-4 {
        border-radius: 1rem !important;
    }
    
    /* Extra small screen optimizations */
    .hero-section {
        min-height: 180px !important;
        padding: 1rem 0 !important;
    }
    
    .hero-content h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Card optimizations */
    .card {
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Modal optimizations for very small screens */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100vw - 0.5rem);
    }
    
    .modal-content {
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
    
    /* Form optimizations */
    .form-label {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-control, .form-select {
        font-size: 16px !important; /* Prevent zoom */
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
    }
    
    /* Star rating for very small screens */
    .star-group {
        font-size: 2rem !important;
        gap: 0.25rem !important;
    }
    
    /* Footer optimizations */
    .footer-menu-section {
        gap: 1rem !important;
    }
    
    .trust-badges-side .trust-logo {
        width: 70px !important;
        height: 70px !important;
    }
    
    .pansionyab-logo-menu {
        width: 90px !important;
    }
    
    /* Navigation optimizations */
    .navbar-brand img {
        height: 66px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 1.15rem !important;
        text-align: center;
    }
}

/* Center align text in select and buttons for mobile */
@media (max-width: 768px) {
    /* Center text in select dropdown */
    .search-form-group .form-select {
        text-align: center !important;
        text-align-last: center !important;
    }
    
    /* Center text in search button */
    .search-form-group button[type="submit"] {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Center text in gender buttons */
    .search-form-group .btn-group .btn {
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    /* Ensure center alignment on smaller screens */
    .form-select {
        text-align: center !important;
        text-align-last: center !important;
    }
    
    .btn {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Breadcrumb Animation & Loading Effects */
.custom-breadcrumb {
    animation: breadcrumbFadeIn 0.6s ease-out;
    transform-origin: top;
}

@keyframes breadcrumbFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-breadcrumb .breadcrumb-item {
    animation: breadcrumbItemSlide 0.4s ease-out;
    animation-fill-mode: both;
}

.custom-breadcrumb .breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.custom-breadcrumb .breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.custom-breadcrumb .breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.custom-breadcrumb .breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes breadcrumbItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Advanced Hover Effects */
.custom-breadcrumb .breadcrumb-item {
    position: relative;
    overflow: hidden;
}

.custom-breadcrumb .breadcrumb-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s ease;
}

.custom-breadcrumb .breadcrumb-item:hover::after {
    left: 100%;
}

/* Pulse effect for active item */
.custom-breadcrumb .breadcrumb-item.active {
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    }
}

/* Dark Mode Support for Breadcrumb */
@media (prefers-color-scheme: dark) {
    .custom-breadcrumb {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(148, 163, 184, 0.3);
        color: #e2e8f0;
    }
    
    .custom-breadcrumb::before {
        background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    }
    
    .custom-breadcrumb .breadcrumb-item {
        color: #cbd5e1;
    }
    
    .custom-breadcrumb .breadcrumb-item.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
        color: #a5b4fc;
    }
    
    .custom-breadcrumb .breadcrumb-item a {
        color: #cbd5e1;
    }
    
    .custom-breadcrumb .breadcrumb-item a:hover {
        color: #a5b4fc;
        background: rgba(99, 102, 241, 0.1);
    }
    
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        background: linear-gradient(45deg, #6366f1, #8b5cf6);
    }
}

/* Breadcrumb Icons & Enhanced Styling */
.custom-breadcrumb .breadcrumb-icon {
    width: 16px;
    height: 16px;
    margin-left: 0.4rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0, 1px, 2px, rgba(0, 0, 0, 0.1));
}

.custom-breadcrumb .breadcrumb-item:hover .breadcrumb-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0, 2px 4px, rgba(99, 102, 241, 0.3));
}

/* Specific page type icons */
.breadcrumb-icon-home { color: #10b981; }
.breadcrumb-icon-contact { color: #f59e0b; }
.breadcrumb-icon-about { color: #8b5cf6; }
.breadcrumb-icon-search { color: #06b6d4; }
.breadcrumb-icon-details { color: #ef4444; }
.breadcrumb-icon-admin { color: #f97316; }

/* Enhanced separator with gradient */
.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #6366f1 30%, #a5b4fc 70%);
    border-radius: 50%;
    margin: 0 0.75rem;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transition: all 0.4s ease;
    position: relative;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-breadcrumb .breadcrumb-item:hover + .breadcrumb-item::before {
    background: radial-gradient(circle, #818cf8 30%, #c7d2fe 70%);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-breadcrumb {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: rgba(75, 85, 99, 0.6);
        color: #e5e7eb;
    }
    
    .custom-breadcrumb .breadcrumb-item {
        color: #d1d5db;
    }
    
    .custom-breadcrumb .breadcrumb-item.active {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        color: #a5b4fc;
    }
}

/* Fix extra padding-right on mobile footer menu */
@media (max-width: 768px) {
    .footer-links .nav {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
    }
}

/* Mobile-first breadcrumb responsive adjustments */
@media (max-width: 576px) {
    .custom-breadcrumb {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }
    .custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        width: 4px;
        height: 4px;
        margin: 0 0.4rem;
    }
    .custom-breadcrumb .breadcrumb-item svg,
    .custom-breadcrumb .breadcrumb-icon {
        width: 14px;
        height: 14px;
    }
}
/* Map Search Page Responsive Styles */
.map-search-container {
    padding: 0 15px;
}

@media (min-width: 768px) {
    .map-search-container {
        padding: 0 30px;
    }
}

.map-search-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.map-search-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: center;
    color: #6c757d;
}

.btn-nearby-responsive {
    font-size: 0.9rem;
    padding: 10px 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .btn-nearby-responsive {
        font-size: 1rem;
        padding: 12px 24px;
        width: auto;
    }
}

.stats-card-mobile {
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .stats-card-mobile {
        margin-bottom: 1rem;
    }
}

.map-container-responsive {
    height: 60vh;
    min-height: 400px;
}

@media (min-width: 992px) {
    .map-container-responsive {
        height: 80vh;
        min-height: 600px;
    }
}

/* Persian Number Conversion - Global */
.persian-numbers,
.stats-number,
.badge,
.counter-item h2,
.display-4,
.display-5 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Force Persian numerals for all numbers */
body {
    font-variant-numeric: normal;
}

/* Persian number styles */
.persian-number {
    direction: ltr;
    unicode-bidi: embed;
}

/* Navigation Hover Effects */
.navbar-nav .nav-link {
    position: relative;
    color: #1e293b !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    z-index: -1;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Dropdown Menu Hover Effects */
.dropdown-menu {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #374151;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    transform: translateX(4px);
}

.dropdown-item:focus {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.dropdown-item i {
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

/* Social Icons Enhanced Hover */
.social-icons a {
    color: #6366f1;
    font-size: 1.4rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.social-icons a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Footer Navigation Hover Effects */
.footer-links .nav-link {
    position: relative;
    color: #6b7280 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.footer-links .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links .nav-link:hover {
    color: #6366f1 !important;
    transform: translateY(-2px);
}

.footer-links .nav-link:hover::before {
    width: 80%;
}

/* Navbar Brand Logo Hover */
.navbar-brand {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: brightness(1.1) saturate(1.1);
}

/* Trust Badges Hover Effects */
.trust-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 0.5rem;
}

.trust-logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

/* Enhanced Mobile Hover States */
@media (hover: none) {
    .navbar-nav .nav-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    .footer-links .nav-link:hover {
        transform: none;
    }
    
    .social-icons a:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Navbar Toggler Animation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
}

.navbar-toggler:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.navbar-toggler-icon {
    transition: transform 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Admin Panel Dropdown Special Effects */
.nav-item.dropdown .nav-link.text-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626 !important;
}

.nav-item.dropdown .nav-link.text-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* Navbar Container Shadow Effect */
.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Smooth Page Transition - only on desktop for performance */
@media (min-width: 768px) {
    .container {
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Social Icons in Center */
.footer .social-icons {
    justify-content: center;
}

.footer .social-icons a {
    margin: 0 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.footer .social-icons a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    border-color: transparent;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Footer Copyright Hover */
.footer .text-center {
    transition: color 0.3s ease;
    cursor: default;
}

.footer .text-center:hover {
    color: #6366f1;
}

/* ============================================================
   Header / Footer 2026 redesign
   ============================================================ */

/* Skip-to-content link (accessibility) */
.skip-link {
    position: fixed;
    top: -120px;
    inset-inline-start: 1rem;
    z-index: 2000;
    background: #4f46e5;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    transition: top 0.2s ease;
}
.skip-link:focus-visible {
    top: 1rem;
    color: #fff;
}

/* Slim, crisp brand logo in the header */
.navbar-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navbar primary CTA button */
.btn-nav-cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff !important;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-nav-cta:hover,
.btn-nav-cta:focus,
.btn-nav-cta.active {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
}

/* Mobile full-screen overlay menu */
.nav-overlay-close {
    display: none;
}
@media (max-width: 991.98px) {
    .navbar.nav-overlay-open .navbar-collapse.show {
        position: fixed;
        inset: 0;
        z-index: 1040;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0.25rem;
        margin: 0;
        padding: 4.5rem 1.5rem 2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow-y: auto;
    }
    .navbar.nav-overlay-open .navbar-collapse.show .nav-overlay-close {
        display: inline-flex;
        position: fixed;
        top: 1rem;
        inset-inline-start: 1rem;
        z-index: 1050;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: #f1f5f9;
        color: #1e293b;
        font-size: 1.25rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .navbar.nav-overlay-open .navbar-collapse.show .navbar-nav {
        align-items: stretch;
        margin: 0;
        margin-inline-start: 0 !important;
    }
    .navbar.nav-overlay-open .navbar-collapse.show .nav-link {
        font-size: 1.15rem !important;
        padding: 0.9rem 1rem !important;
        border-bottom: none !important;
        text-align: center;
    }
    .navbar.nav-overlay-open .navbar-collapse.show .btn-nav-cta {
        display: inline-block;
        width: 100%;
        text-align: center;
        margin: 0.75rem 0 0;
        padding: 0.8rem 1rem;
    }
    .navbar.nav-overlay-open .navbar-collapse.show .social-icons {
        justify-content: center;
        margin: 1.5rem 0 0;
    }
    .navbar.nav-overlay-open .navbar-collapse.show .dropdown-menu {
        text-align: center;
        background: #fff;
    }
}

/* ===== Footer 2026 ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
    text-align: start;
}
.footer-col {
    min-width: 0;
}
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-list a:hover {
    color: #4f46e5;
}
.footer-about {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #64748b;
    margin: 0 0 1.25rem;
    max-width: 34ch;
}
.footer .footer-social {
    justify-content: flex-start;
}
.footer .footer-social a {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}
.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #475569;
}
.footer-contact-list i {
    color: #6366f1;
}
.footer .trust-logo {
    width: 76px;
    height: 76px;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #eef2f7;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-legal a:hover {
    color: #4f46e5;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-about {
        max-width: none;
        margin-inline: auto;
    }
    .footer .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 1.75rem;
        text-align: center;
    }
    .footer-title {
        margin-bottom: 0.6rem;
    }
    .footer-list {
        align-items: center;
        gap: 0.3rem;
    }
    .footer-list a {
        font-size: 0.9rem;
    }
    .footer-contact-list li {
        justify-content: center;
    }
    .trust-badges-side {
        justify-content: center;
    }
    .footer .trust-logo {
        width: 64px;
        height: 64px;
    }
    .footer-bottom {
        flex-direction: column;
    }
}