/* Page-specific styles for calligraphers.html — base/navbar/footer/popup inherited from style.css */

/* ==================== Page Title ==================== */
.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #212B40;
}

/* ==================== Search Section ==================== */
.search-filter-section {
    max-width: 1400px;
    margin: 0 auto;
}

/* Search Input */
.search-wrapper {
    max-width: 580px;
}

.search-input {
    padding: 14px 45px 14px 20px;
    border: 1px solid #d1d5da;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 60, 92, 0.1);
    outline: none;
}

.search-input::placeholder {
    color: #959da5;
}

.search-icon {
    position: absolute;
    width: 70px;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 13px;
    border: 1px solid #C3BFBF;
    box-shadow: 0px 4px 4px 0px #0000000A;
}
:dir(rtl) .search-icon{
    left: 0px;
}
:dir(ltr) .search-icon{
    right: 0px;
}
.search-icon img{
    width: 24px;
    height: 24px;
}
/* ==================== Cards ==================== */
.card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 1.4px 6.14px 0.7px #00000040;

}

.card:hover {
    transform: translateY(-4px);
}

.card.highlighted {
    animation: highlightPulse 2s ease-in-out 3;
    box-shadow: 0 0 0 4px var(--primary-color), 0 8px 24px rgba(46, 60, 92, 0.3);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--primary-color), 0 8px 24px rgba(46, 60, 92, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px var(--primary-color), 0 12px 32px rgba(46, 60, 92, 0.4);
    }
}

/* Maximize Icon */
.maximize-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.maximize-icon:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maximize-icon svg {
    color: #2F4C88;
    width: 18px;
    height: 18px;
}

/* Calligraphy Logo */
.calligraphy-cover {
    text-align: center;
    padding: 20px ;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e1e4e8;
    cursor: pointer;
}

.calligraphy-cover img {
    max-width: 250px;
    height: -webkit-fill-available;
    object-fit: contain;
}

/* Card Body */
.card-body-custom {
    padding: 24px;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 20px;
}

.profile-info {
    flex: 1;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    color: #3C578F;
    margin-bottom: 4px;
}

.card-status {
    font-size: 14px;
    color: #d4a574;
    margin-bottom: 0;
}

/* Card Description */
.card-description {
    font-size: small;
    color: #212B40;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-portfolio {
    background: white;
    color: #2F4C88;
    border: 1px solid #d1d5da;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    cursor: pointer;
}

.btn-portfolio:hover {
    background: #f6f8fa;
    border-color: #2F4C88;
    color: #2F4C88;
}

.btn-contact,
.btn-whatsapp,
.btn-share {
    border: none;
    padding: 0;
    border-radius: 9px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-contact {
    background: #3C578F
}

.btn-whatsapp {
    background: #25D366;
}

.btn-share {
    background: #fff;
    border: 1px solid #2F4C88;
}

.btn-contact svg,
.btn-whatsapp svg,
.btn-share svg {
    width: 24px;
    height: 24px;
    color: white;
}

.btn-contact:hover,
.btn-whatsapp:hover,
.btn-share:hover {
    transform: scale(1.1);
}

/* ==================== Modal ==================== */
.modal-content {
    border-radius: 0;
    border: none;
}

/* ==================== Image Viewer Modal ==================== */
#imageViewerModal .modal-content {
    background: #000;
    border: none;
}

#imageViewerModal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#imageViewerModal.show {
    z-index: 9999;
}

/* Viewer Header */
.viewer-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.viewer-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.viewer-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.viewer-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.viewer-icon-btn svg {
    width: 22px;
    height: 22px;
}

/* Main Image Area */
.viewer-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Watermark Logo */
.watermark-logo {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

.watermark-logo img {
    width: 150px;
    height: auto;
    opacity: 1;
    filter: grayscale(100%);
}

.viewer-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.viewer-image {
    max-width: 100%;
    max-height: calc(100vh - 240px);
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.viewer-image.zoomed {
    cursor: move;
}

/* Navigation Buttons */
.viewer-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2F4C889E;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
    z-index: 10;
}


.viewer-nav-btn svg {
    width: 24px;
    height: 24px;
}

.viewer-nav-right {
    right: 30px;
}

.viewer-nav-left {
    left: 30px;
}

/* Thumbnails */
.viewer-thumbnails {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.viewer-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.viewer-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.viewer-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    opacity: 0.5;
}

.viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    opacity: 0.8
}

.viewer-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    opacity: 1;
}

/* ==================== Pagination ==================== */
.pagination {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Page Number */
.page-number {
    border: 1px solid #2F4C88;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 9px;
    padding: 5px 8px;
    margin-inline: 6px;
    font-size: 14px;
}

/* Page Item */
.page-item {
    list-style: none;
}

/* Page Link */
.page-link {
    background: #ffffff;
    border: 1px solid #2F4C88;
    border-radius: 10px !important;
    padding: 12px ;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.page-link:hover {
    background: #f6f8fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link svg {
    width: 20px;
    height: 20px;
}

/* Disabled */
.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Page Info */
.page-info {
    padding: 12px 24px;
    color: #2F4C88;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

/* ==================== Tablet ==================== */
@media (max-width: 992px) {
    .page-link {
        padding: 10px ;
        font-size: 14px;
    }

    .page-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .page-info {
        padding: 10px ;
        font-size: 13px;
    }
}

/* ==================== Mobile ==================== */
@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }

    .page-link {
        padding: 8px ;
        font-size: 11px;
        border-radius: 8px;
    }

    .page-link svg {
        width: 16px;
        height: 16px;
    }

    .page-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-inline: 4px;
    }

    .page-info {
        width: 100%;
        order: 3;
        padding: 6px 0;
        font-size: 10px;
    }
}


/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .page-title {
        font-size: 20px;
    }
    
    .card-actions {
        flex-wrap: nowrap;
    }
    
    .btn-portfolio {
        flex: 1;
    }

    .btn-contact,
    .btn-whatsapp,
    .btn-share {
        width: 44px;
        height: 44px;
    }

    .btn-contact svg,
    .btn-whatsapp svg,
    .btn-share svg {
        width: 20px;
        height: 20px;
    }
    
    .card-body-custom {
        padding: 15px ;
    }
    
    .calligraphy-cover {
        height: 180px;
        padding: 30px 24px;
    }

    .card-name {
        font-size: 18px;
    }
    
    .viewer-nav-btn {
        width: 40px;
        height: 40px;
    }

    .viewer-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .viewer-nav-right {
        right: 15px;
    }

    .viewer-nav-left {
        left: 15px;
    }

    .viewer-thumbnail {
        width: 60px;
        height: 45px;
    }

    .viewer-icon-btn {
        width: 40px;
        height: 40px;
    }

    .viewer-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    .watermark-logo img {
        width: 100px;
    }

    .viewer-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .calligraphy-cover {
        height: 160px;
        padding: 24px 20px;
    }
    
    .calligraphy-cover img {
        max-width: 140px;
        max-height: 110px;
    }
}



.creators-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: #F0F7FB;
}

/* Watermark images */
.watermark-right {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    width: 755px;
    height: auto;
}

.watermark-left {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    width: 670px;
    height: auto;
}

.main-title {
    margin-bottom: 25px;
    width: fit-content;
}

.main-title h2 {
    font-size: 34px;
    font-weight: 800;
    color: #232b40;
    margin-bottom: 10px;
    display: inline-block;
}
.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.features-list li {
    font-size: 17px;
    color: #212B40;
    margin-bottom: 15px;
    position: relative;
}
:dir(rtl) .features-list li{
    padding-right: 30px;
}
:dir(ltr) .features-list li{
    padding-left: 30px;
}
.features-list li::before {
    content: "•";
    position: absolute;
    color: #212B40;
    font-size: 24px;
    font-weight: bold;
}
:dir(rtl) .features-list li::before{
    right: 0;
}
:dir(ltr) .features-list li::before{
    left: 0;
}
.join-button {
    background-color: transparent;
    border: 2px solid #212B40;
    color: #212B40;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.join-button:hover {
    background-color: #232b40;
    color: white;
}
.join-button:hover .email-icon{
    filter: brightness(0) invert(1);
}
.email-icon {
    width: 24px;
    height: 24px;
    transition: all 300ms ease-in-out;
}

.info-card {
    background: #FFFFFFC2;
    border: 1px solid #CA975461;
    border-radius: 12px;
    position: relative;
    margin-top: 30px;
    width: fit-content;
    box-shadow: 0px 4px 9.4px 0px #00000017;

}
:dir(rtl) .info-card {
    padding: 20px 70px 20px 30px;
}
:dir(ltr) .info-card {
    padding: 20px 30px 20px 70px;
}
.warning-icon-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
:dir(rtl) .warning-icon-wrapper{
    right: 20px;
}
:dir(ltr) .warning-icon-wrapper{
    left: 20px;
}
.warning-icon {
    width: 36px;
    height: 36px;
}

.info-title {
    font-size: 16px;
    font-weight: 700;
    color: #B87E32;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-description {
    font-size: 16px;
    color: #B87E32;
    font-weight: 500;
    margin-bottom: 0;
}

/* ==================== Small Screens (Mobile) ==================== */
@media (max-width: 575px) {
.main-title h2{
    font-size: 24px;
}
.creators-section{
    padding-block: 30px;
}
    .features-list li {
        font-size: 12px;
        margin-bottom: 12px;
    }

    :dir(rtl) .features-list li {
        padding-right: 22px;
    }

    :dir(ltr) .features-list li {
        padding-left: 22px;
    }

    .features-list li::before {
        font-size: 15px;
    }

    .join-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        gap: 8px;
    }

    .email-icon {
        width: 20px;
        height: 20px;
    }

    .info-card {
        width: 100%;
        margin-top: 15px;
    }

    :dir(rtl) .info-card {
        padding: 15px 55px 15px 15px;
    }

    :dir(ltr) .info-card {
        padding: 15px 15px 15px 55px;
    }

    .warning-icon-wrapper {
        width: 34px;
        height: 34px;
    }

    .warning-icon {
        width: 30px;
        height: 30px;
    }

    .info-title,
    .info-description {
        font-size: 12px;
    }
}



