/* Fellowship & Diplomate Awards Custom Styles */

.fa-container {
    background-color: #cbedec; /* The light blue background from original */
    padding: 64px 0;
    margin-top: 0;
}

.fa-content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
}

.nav-btn-container {
    display: flex; 
    justify-content: center; 
    margin-bottom: 48px; 
    padding-top: 80px;
}

.nav-scroll-btn {
    display: none;
}

.nav-btn-wrapper {
    background-color: #ffffff; 
    border-radius: 8px; 
    padding: 10px 32px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 16px;
}

.nav-btn {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #1f2937;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: 8px;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    min-width: 125px;
    cursor: pointer;
}

.nav-btn:hover {
    background-color: #f3f4f6;
}

.active-nav {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.fa-tab-heading {
    font-size: 30px !important;
    font-weight: 600 !important;
    margin-bottom: 48px;
    text-align: center;
}

/* Upload Document Form Styles */
.fa-form-wrapper {
    max-width: 896px;
    margin: 48px auto 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 32px;
}

.fa-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fa-form-group {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: center;
}

.fa-form-group-top {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.fa-label {
    font-weight: 500;
    color: #374151;
    text-align: left;
}

.fa-input-text {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    background-color: #ffffff;
}

.fa-file-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    height: 56px;
    padding: 0 20px;
}

.fa-file-hint {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

/* Payment Box */
.fa-payment-box {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    margin: 24px 0;
    text-align: center;
}

.fa-payment-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.fa-payment-details {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
}

.fa-payment-qr {
    display: flex;
    justify-content: center;
}

.fa-qr-img {
    width: 200px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
}

.fa-submit-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 14px 48px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.fa-submit-btn:hover {
    background-color: #1f2937;
}

.fa-banner {
    background-size: cover;
    background-position: center;
    margin-top: -130px;
    margin-bottom: 0;
}

.fa-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fa-text-center {
    text-align: center;
}

.fa-mt-40 {
    margin-top: 40px;
}

.fa-mb-48 {
    margin-bottom: 48px;
}

.hidden {
    display: none;
}

/* Nav Button Hover (Overrides) */
.nav-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Custom File Input */
.custom-file-input {
    background: transparent;
    border: none;
    width: 100%;
    outline: none;
    cursor: pointer;
    display: block;
    padding: 0;
    margin: 0;
}

.custom-file-input::-webkit-file-upload-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 20px;
    margin-right: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 0;
}

.custom-file-input::file-selector-button {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 20px;
    margin-right: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 0;
}

.custom-file-input::-webkit-file-upload-button:hover,
.custom-file-input::file-selector-button:hover {
    background-color: #e5e7eb;
}

/* Utility Classes for Typography */
.fa-text-accent {
    color: #ff4d05 !important;
}

.fa-text-muted {
    color: #374151 !important;
    font-weight: 600 !important;
}

.fa-underlined {
    border-bottom: 2px solid #374151;
    padding-bottom: 2px;
}

.fa-underlined-black {
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
}

.fa-section-title {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 32px;
}

.fa-list-decimal {
    list-style-type: decimal;
    margin-left: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #374151;
}

.fa-list-disc {
    list-style-type: disc;
    margin-left: 24px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #374151;
}

.fa-bold-black {
    font-weight: bold;
    color: #000000;
}

/* Image Galleries & Grids */
.fa-image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 13px;
    margin-top: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.fa-gallery-img {
    width: calc(33.333% - 16px);
    max-width: 250px;
    height: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.fa-ppt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.fa-ppt-img {
    width: 180px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Buttons */
.fa-download-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 48px;
    transition: background-color 0.3s;
}

.fa-download-btn:hover {
    background-color: #1f2937;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .nav-btn-container {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        margin: 40px 15px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-scroll-btn {
        display: flex;
        position: relative;
        width: 32px;
        height: 32px;
        background: #000000;
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 20;
        cursor: pointer;
        padding: 0;
        font-size: 11px;
        color: #ffffff;
        flex-shrink: 0;
    }

    .nav-scroll-btn:active {
        background-color: #374151;
        transform: scale(0.9);
    }

    .nav-scroll-btn.left { left: auto; }
    .nav-scroll-btn.right { right: auto; }

    .nav-btn-wrapper {
        flex: 1;
        background-color: transparent !important;
        box-shadow: none !important;
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
        gap: 12px;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: 0;
    }

    .nav-btn-wrapper::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        flex-shrink: 0;
        min-width: auto;
        font-size: 13px;
        padding: 7px 14px;
        border-radius: 8px;
    }

    .fa-tab-heading {
        font-size: 24px !important;
        margin-bottom: 32px;
    }

    /* Show 2 images per row on mobile as per user's preference */
    .fa-gallery-img {
        width: calc(50% - 10px);
        max-width: 100%;
    }

    /* Fixed PPT Template layout for mobile (1-2-2-2-2-1) */
    .fa-ppt-grid {
        gap: 12px;
    }

    .fa-ppt-img {
        width: calc(50% - 8px);
    }

    /* First and Last slides take full width to be centered alone */
    .fa-ppt-img:first-child, 
    .fa-ppt-img:last-child {
        width: 100%;
        max-width: 250px;
    }

    /* Fix Upload Document Form for Mobile */
    .fa-form-wrapper {
        padding: 20px;
        margin-top: 24px;
    }

    .fa-form-group, 
    .fa-form-group-top {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fa-label {
        margin-bottom: 0px;
    }

    .fa-payment-box {
        padding: 20px;
    }

    .fa-qr-img {
        width: 150px;
    }
}
