/* Team Section - Overflow fix */
.team-section {
    overflow: hidden;
}

.team-member {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
}

/* About Banner - Fix responsive banner height */
.banner-section {
    min-height: 200px;
}

.banner-content {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .banner-content {
        padding: 40px 0;
    }
}

/* Service Details - Responsive improvements */
.service-details .service-content {
    padding: 30px;
}

@media (max-width: 768px) {
    .service-details .service-content {
        padding: 20px;
    }
}

/* About Image Grid - Fix overflow */
.about-image-grid {
    overflow: hidden;
}

/* Contact Page - Form improvements */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-control {
    padding: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Portfolio Gallery - Responsive grid */
.portfolio-gallery {
    margin-bottom: 50px;
}

.portfolio-item {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .portfolio-item {
        margin-bottom: 20px;
    }
}

/* Services Grid - Equal height cards */
.services-grid .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-grid .service-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-grid .service-card .card-text {
    flex: 1;
}

/* Blog Posts - Responsive improvements */
.blog-post {
    margin-bottom: 40px;
}

.blog-post .post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.blog-post .post-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .blog-post {
        margin-bottom: 30px;
    }
    
    .blog-post .post-title {
        font-size: 1.3rem;
    }
}

/* Testimonials - Carousel improvements */
.testimonials-carousel .testimonial-item {
    text-align: center;
    padding: 30px;
}

.testimonials-carousel .testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonials-carousel .testimonial-author {
    font-weight: 600;
    color: #333;
}

/* CTA Section - Button improvements */
.cta-section .btn-cta {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer - Responsive improvements */
.footer-section {
    padding: 60px 0 30px;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #ff6b35;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

/* Animation improvements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Button hover effects */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image lazy loading placeholder */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Partner Businesses Tab Content */
.tab-content {
    margin-top: 30px;
}

.nav-tabs .nav-link {
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
    color: #666;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    color: #007bff;
    border-color: #ddd #ddd #fff;
}

.nav-tabs .nav-link:hover {
    background-color: #e9ecef;
}

/* Partner Business Cards */
.partner-business-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.partner-business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-business-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.partner-business-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.partner-business-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.partner-business-card .card-text {
    flex: 1;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.partner-business-card .business-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.partner-business-card .business-meta .meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.partner-business-card .business-meta .meta-label {
    color: #888;
}

.partner-business-card .business-meta .meta-value {
    font-weight: 600;
    color: #333;
}

.partner-business-card .points-badge {
    background: linear-gradient(135deg, #ff6b35, #ff8a56);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.partner-business-card .action-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 10px;
}

.partner-business-card .action-btn:hover {
    background: #ff5722;
    color: white;
    text-decoration: none;
}

/* Responsive Partner Business Cards */
@media (max-width: 768px) {
    .partner-business-card .card-img-top {
        height: 150px;
    }
    
    .partner-business-card .card-body {
        padding: 15px;
    }
    
    .partner-business-card .card-title {
        font-size: 1.1rem;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .action-btn span {
        font-size: 14px;
    }
}

/* Partner Businesses Responsive Styles */
/* Masaüstü görünümü - yan yana */
.partner-businesses-area .section-title {
    text-align: left !important;
    margin-bottom: 3rem;
    display: flex !important;
    align-items: flex-start;
    gap: 2rem;
}

.partner-businesses-area .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
    flex: 0 0 auto;
    min-width: 300px;
}

.partner-businesses-area .section-title p,
.partner-businesses-area .section-title div {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

/* Mobil için özel düzenleme */
@media (max-width: 768px) {
    .partner-businesses-area .section-title {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 15px;
        margin-bottom: 2rem;
    }
    
    .partner-businesses-area .section-title h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
    }
    
    .partner-businesses-area .section-title p,
    .partner-businesses-area .section-title div {
        font-size: 0.95rem !important;
        line-height: 1.5;
        padding: 0;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
        clear: both !important;
    }
}

@media (max-width: 576px) {
    .partner-businesses-area .section-title {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }
    
    .partner-businesses-area .section-title h2 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.6rem;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
    }
    
    .partner-businesses-area .section-title p,
    .partner-businesses-area .section-title div {
        font-size: 0.9rem !important;
        line-height: 1.4;
        padding: 0;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        float: none !important;
        clear: both !important;
    }
}

/* Minimal Sorting Indicator */
.sort-indicator-minimal {
    margin-top: 1rem;
}

.sort-indicator-minimal .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6 !important;
    font-weight: 500;
}

.sort-indicator-minimal .badge i {
    font-size: 0.7rem;
}

/* Partner Businesses Table Fixes */
.partner-businesses-area .table {
    margin-bottom: 0;
}

.partner-businesses-area .table td {
    vertical-align: middle;
    padding: 15px 8px;
}

.partner-businesses-area .table th {
    vertical-align: middle;
    padding: 15px 8px;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Logo boyutunu küçült */
.partner-businesses-area .table td img {
    max-width: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 8px;
}

/* Tablo satır yüksekliğini sabitle */
.partner-businesses-area .table tbody tr {
    height: 80px;
}

/* İşletme adı sütunu düzenleme */
.partner-businesses-area .table td:nth-child(3) {
    max-width: 300px;
    word-wrap: break-word;
}

.partner-businesses-area .table td:nth-child(3) h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.partner-businesses-area .table td:nth-child(3) p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Adres sütunu düzenleme */
.partner-businesses-area .table td:nth-child(4) {
    max-width: 200px;
    font-size: 0.9rem;
}

.partner-businesses-area .table td:nth-child(4) i {
    margin-right: 5px;
    color: #666;
}

/* İletişim sütunu düzenleme */
.partner-businesses-area .table td:nth-child(5) {
    max-width: 180px;
    font-size: 0.9rem;
}

.partner-businesses-area .table td:nth-child(5) i {
    margin-right: 5px;
    color: #666;
}

/* Puan sütunu düzenleme */
.partner-businesses-area .table td:nth-child(6) {
    text-align: center;
    font-weight: 600;
    color: #ff6b35;
}

/* İşlemler sütunu düzenleme */
.partner-businesses-area .table td:nth-child(7) {
    text-align: center;
}

.partner-businesses-area .table td:nth-child(7) a {
    margin: 0 3px;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.partner-businesses-area .table td:nth-child(7) a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .partner-businesses-area .table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .partner-businesses-area .table td img {
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .partner-businesses-area .table tbody tr {
        height: auto;
        min-height: 60px;
    }
    
    .partner-businesses-area .table td:nth-child(3) {
        max-width: 200px;
    }
    
    .partner-businesses-area .table td:nth-child(4),
    .partner-businesses-area .table td:nth-child(5) {
        max-width: 150px;
    }
}

/* Liderlik Sıralaması - İlk 3 İşletme */
.partner-businesses-area .table tbody tr:nth-child(1) {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border-left: 4px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}

.partner-businesses-area .table tbody tr:nth-child(1) td {
    position: relative;
}

.partner-businesses-area .table tbody tr:nth-child(1) td:first-child::before {
    content: "🥇";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.partner-businesses-area .table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-left: 4px solid #c0c0c0;
    box-shadow: 0 2px 6px rgba(192, 192, 192, 0.15);
}

.partner-businesses-area .table tbody tr:nth-child(2) td:first-child::before {
    content: "🥈";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
}

.partner-businesses-area .table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8f0 100%);
    border-left: 4px solid #cd7f32;
    box-shadow: 0 2px 6px rgba(205, 127, 50, 0.15);
}

.partner-businesses-area .table tbody tr:nth-child(3) td:first-child::before {
    content: "🥉";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
}

/* Hover efektleri için liderlik sıralaması */
.partner-businesses-area .table tbody tr:nth-child(1):hover {
    background: linear-gradient(135deg, #fff6d9 0%, #fff9e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.partner-businesses-area .table tbody tr:nth-child(2):hover {
    background: linear-gradient(135deg, #eeeeee 0%, #f5f5f5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(192, 192, 192, 0.2);
}

.partner-businesses-area .table tbody tr:nth-child(3):hover {
    background: linear-gradient(135deg, #ffe8cc 0%, #fff2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(205, 127, 50, 0.2);
}

/* Partner Business Detail Page Styles */
.business-detail-section {
    background-color: #f8f9fa;
    min-height: 80vh;
}

.business-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.business-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.business-logo {
    margin-right: 25px;
    flex-shrink: 0;
}

.business-logo .logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.business-info {
    flex: 1;
}

.business-name {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.business-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.business-rank {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.business-rank.rank-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
}

.business-rank.rank-silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #666;
}

.business-rank.rank-bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}

.business-points {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b35, #ff8a56);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.business-rank i,
.business-points i {
    margin-right: 8px;
    font-size: 1rem;
}

.business-description,
.business-contact,
.business-discount {
    margin-bottom: 30px;
}

.business-description h3,
.business-contact h3,
.business-discount h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.business-description h3 i,
.business-contact h3 i,
.business-discount h3 i {
    margin-right: 10px;
    color: #ff6b35;
    font-size: 1.2rem;
}

.business-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #ff6b35;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}



.contact-item strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.contact-item a,
.contact-item span {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: #ff6b35;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6b35, #ff8a56);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.discount-rate {
    font-size: 2rem;
    font-weight: 700;
    margin-right: 8px;
}

.discount-text {
    font-size: 1rem;
    font-weight: 500;
}

.discount-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Sidebar Styles */
.business-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.sidebar-card h4 i {
    margin-right: 8px;
    color: #ff6b35;
    font-size: 1.1rem;
}

.performance-stats {
    text-align: center;
}

.perf-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.perf-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.perf-content {
    text-align: left;
}

.perf-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.perf-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.discount-highlight {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff3e0, #ffe8cc);
    border-radius: 12px;
}

.discount-big {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
    margin-bottom: 8px;
}

.discount-highlight .discount-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.discount-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.business-details {
    space-y: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    font-size: 1.1rem;
    color: #ff6b35;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.detail-item a,
.detail-item span {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.detail-item a:hover {
    color: #ff6b35;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.call-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.email-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.map-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.action-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-header {
        flex-direction: column;
        text-align: center;
    }
    
    .business-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .business-logo .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .business-name {
        font-size: 1.5rem;
    }
    
    .business-meta {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .business-detail-card {
        padding: 20px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .quick-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 120px;
    }
}