/* Franchises Main Section */
.franchises-main {
    padding: 80px 0;
    background: linear-gradient(135deg, #f7faff 60%, #e3e9f7 100%);
}
.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: #0d47a1;
    margin-bottom: 50px;
    font-weight: 800;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1976d2, #64b5f6);
    margin: 16px auto 0;
    border-radius: 2px;
}
.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 36px;
    padding: 0 10px;
}
.franchise-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(30,60,120,0.10);
    padding: 36px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.franchise-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 48px rgba(30,60,120,0.16);
}
.franchise-image {
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    background: #e3e9f7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(30,60,120,0.10);
}
.franchise-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}
.franchise-info h3 {
    font-size: 1.3rem;
    color: #1976d2;
    font-weight: 700;
    margin-bottom: 10px;
}
.franchise-info p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.7;
}
.btn-view-details {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #1976d2, #64b5f6);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}
.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25,118,210,0.18);
    color: #fff;
}
/* Modal Styles */
.franchise-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}
.franchise-modal.active {
    display: flex;
}
.franchise-modal .modal-backdrop {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 60, 120, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1;
}
.franchise-modal .modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(30,60,120,0.18);
    max-width: 500px;
    width: 95vw;
    padding: 38px 28px 28px 28px;
    animation: modalFadeIn 0.4s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.franchise-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1976d2;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
}
.franchise-modal .modal-close:hover {
    color: #0d47a1;
}
.franchise-modal .modal-body {
    width: 100%;
    margin-top: 10px;
    text-align: left;
    color: #222;
}
.franchise-modal .modal-body h2 {
    font-size: 1.5rem;
    color: #1976d2;
    margin-bottom: 10px;
    font-weight: 800;
}
.franchise-modal .modal-body .modal-image {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    background: #e3e9f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    box-shadow: 0 2px 10px rgba(30,60,120,0.10);
}
.franchise-modal .modal-body .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}
.franchise-modal .modal-body .modal-meta {
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.05rem;
    text-align: center;
}
.franchise-modal .modal-body p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: center;
}
@media (max-width: 600px) {
    .franchise-modal .modal-content {
        padding: 16px 4vw 16px 4vw;
        max-width: 98vw;
    }
    .franchise-modal .modal-body .modal-image {
        width: 60px;
        height: 60px;
    }
    .franchise-modal .modal-body h2 {
        font-size: 1.1rem;
    }
}
/* Franchise Info Section (like screenshot) */
.franchise-info-section {
    padding: 60px 0 40px 0;
    background: #fff;
}
.franchise-info-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}
.franchise-info-image {
    flex: 0 0 370px;
    max-width: 370px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.franchise-info-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30,60,120,0.10);
    object-fit: cover;
}
.franchise-info-cards {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}
.franchise-info-card {
    background: rgba(255,255,255,0.85);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(30,60,120,0.10);
    border: 1.5px solid #e3e9f7;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 22px 18px 22px;
    min-height: 100px;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}
.franchise-info-card:hover {
    box-shadow: 0 12px 36px 0 rgba(25,118,210,0.13), 0 2px 16px rgba(30,60,120,0.10);
    border-color: #64b5f6;
    transform: translateY(-3px) scale(1.015);
}
.info-icon {
    color: #1976d2;
    font-size: 2.2rem;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
}
.info-icon .cap-watermark {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.6em;
    height: 2.6em;
    pointer-events: none;
    z-index: 1;
}
.info-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.info-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 7px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}
.info-title .en-title {
    display: block;
    font-size: 1.01rem;
    color: #1976d2;
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 0.01em;
}
.info-desc {
    font-size: 1.01rem;
    color: #444;
    line-height: 1.7;
    margin-top: 2px;
}
.info-desc .en-desc {
    display: block;
    color: #1976d2;
    font-size: 0.96rem;
    margin-top: 4px;
    font-weight: 500;
}
@media (max-width: 1100px) {
    .franchise-info-row {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .franchise-info-image {
        max-width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 800px) {
    .franchise-info-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .franchise-info-image {
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .franchise-info-section {
        padding: 30px 0 18px 0;
    }
    .franchise-info-card {
        padding: 12px 8px 10px 8px;
        min-height: 60px;
    }
    .info-icon {
        font-size: 1.4rem;
    }
    .info-title {
        font-size: 0.98rem;
    }
    .info-title .en-title {
        font-size: 0.9rem;
    }
    .info-desc {
        font-size: 0.93rem;
    }
}
html[dir="rtl"] .franchise-info-row {
    flex-direction: row-reverse;
}
html[dir="rtl"] .franchise-info-cards {
    direction: rtl;
}
html[dir="rtl"] .franchise-info-card {
    text-align: right;
}
html[dir="rtl"] .info-icon {
    margin-left: 0;
    margin-right: 10px;
}
.franchise-info-header {
    text-align: center;
    margin-bottom: 38px;
}
.franchise-info-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0d47a1;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.franchise-info-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 auto;
    position: relative;
    height: 18px;
}
.franchise-info-underline::before,
.franchise-info-underline::after {
    content: '';
    display: block;
    height: 4px;
    width: 80px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1976d2, #64b5f6);
}
.franchise-info-underline::before {
    margin-right: 12px;
}
.franchise-info-underline::after {
    margin-left: 12px;
}
.franchise-info-underline .cap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(30,60,120,0.08);
    padding: 2px;
    z-index: 2;
}
@media (max-width: 600px) {
    .franchise-info-title {
        font-size: 1.2rem;
    }
    .franchise-info-underline::before,
    .franchise-info-underline::after {
        width: 36px;
    }
}
