/* LinkedIn-style Cover and Profile Header */

/* Submit Review Button Styles */
.submit-review-section {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.submit-review-section h4 {
    margin-bottom: 15px;
    color: #1f1c35;
}

.submit-review-section p {
    margin-bottom: 20px;
    color: #4f536c;
}

.submit-review-section .ep-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.college-cover-image {
    height: auto;
    overflow: hidden;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.college-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 600px;
}

.college-profile-header {
    position: relative;
    padding: 20px 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.college-main-info {
    display: block;
}

.college-basic-info {
    padding-top: 0;
}

.college-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.college-tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
}

.college-meta-info {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.college-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.college-meta-info a {
    color: var(--ep-primary-color-1);
    text-decoration: none;
}

.college-stats-quick {
    color: #666;
    font-size: 14px;
}

/* Verified Badge Tooltip */
.verified-badge {
    position: relative;
    cursor: pointer;
}

.verified-badge:hover::after {
    content: "Yuwah Verified";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.verified-badge:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000;
}

.college-action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ep-btn-outline {
    background: transparent;
    border: 1px solid var(--ep-primary-color-1);
    color: var(--ep-primary-color-1);
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ep-btn-outline:hover {
    background: var(--ep-primary-color-1);
    color: #fff;
}

/* LinkedIn-style Navigation Tabs */
.college-navigation {
  margin-bottom: 2px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.college-cover-section {
    border-bottom: 1px solid #e6e6e6;
}

.college-nav-tabs .nav-tabs {
    border: none;
    margin: 0;
}

.college-nav-tabs .nav-link {
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.college-nav-tabs .nav-link.active {
    color: var(--ep-primary-color-1);
    border-bottom-color: var(--ep-primary-color-1);
    background: none;
}

.college-nav-tabs .nav-link:hover {
    color: var(--ep-primary-color-1);
    border-color: transparent;
}

/* Content Cards */
.college-content-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.college-content-card:hover {
    box-shadow: 0 4px 12px rgba(0,115,177,0.15);
    border-color: var(--ep-primary-color-1);
}

.college-content-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

.college-content-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
    line-height: 1.4;
}

.college-content-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    font-size: 14px;
}

.college-content-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.college-content-card li {
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Highlights Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.highlight-item strong {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.highlight-item span {
    color: #333;
    font-weight: 600;
}

/* Specialty Tags */
.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: #f3f3f3;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

/* Accreditations Section */
.college-accreditations {
    margin-top: 30px;
}

.accreditation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.accreditation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--ep-primary-color-1);
    transition: all 0.3s ease;
}

.accreditation-item:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,177,0.15);
}

.accreditation-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,115,177,0.1);
    border-radius: 50%;
    font-size: 18px;
}

.accreditation-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.accreditation-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Programs List */
.program-category {
    margin-bottom: 30px;
}

.program-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.program-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--ep-primary-color-1);
}

.program-info h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.program-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.apply-btn {
    background: var(--ep-primary-color-1);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #005a8b;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.person-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.person-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.person-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.person-info h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.person-info p {
    color: var(--ep-primary-color-1);
    font-weight: 500;
    margin-bottom: 2px;
}

.person-info span {
    color: #666;
    font-size: 14px;
}

/* FAQ Section */
.faq-section {
    margin-top: 20px;
}

.faq-category {
    margin-bottom: 30px;
}

.faq-category h4 {
    color: var(--ep-primary-color-1);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e6e6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,115,177,0.1);
    border-color: var(--ep-primary-color-1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-question i {
    color: var(--ep-primary-color-1);
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    background: #fff;
}

.faq-answer.show {
    padding: 20px;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Sidebar */
.college-sidebar {
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-card:hover {
    box-shadow: 0 4px 15px rgba(0,115,177,0.15);
    border-color: var(--ep-primary-color-1);
}

.sidebar-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-btn:hover {
    background: #f3f3f3;
    color: var(--ep-primary-color-1);
    border-color: var(--ep-primary-color-1);
    cursor: pointer;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: #666;
    font-size: 14px;
}

.stat-row strong {
    color: #333;
    font-weight: 600;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.update-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f3f3;
}

.update-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.update-date {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.update-item p {
    color: #333;
    margin: 5px 0 0 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .college-main-info {
        text-align: center;
    }
    
    .college-name {
        font-size: 2rem;
    }
    
    .college-meta-info {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .college-action-buttons {
        justify-content: center;
        margin-top: 20px;
    }
    
    .photo-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }
    
    .program-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .college-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .college-content-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .college-content-card h3 {
        font-size: 1.3rem;
    }
    
    .college-content-card h4 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .ep-footer__bottom-link {
        text-align: center;
        margin-top: 15px;
    }
    
    .ep-footer__bottom-link ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .ep-footer__copyright {
        text-align: center;
    }
}

/* Enquiry Modal Styles */
#enquiryModal {
    z-index: 9999 !important;
}

#enquiryModal .modal-dialog {
    max-width: 700px;
    z-index: 10000;
}

#enquiryModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
    z-index: 10001;
}

#enquiryModal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

#enquiryModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    z-index: 10002;
}

#enquiryModal .btn-close:hover {
    opacity: 1;
    background: #f0f0f0;
    color: #333;
}

#enquiryModal .btn-close span {
    font-size: 24px;
    line-height: 1;
}

#enquiryModal .modal-body {
    padding: 0;
}

.enquiry-form-container {
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.enquiry-form-container iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Modal backdrop z-index */
.modal-backdrop {
    z-index: 9998 !important;
}

#enquiry-backdrop {
    z-index: 9998 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Manual modal fallback styles */
#enquiryModal.show {
    display: block !important;
    z-index: 9999 !important;
}

.modal-backdrop.fade.show {
    opacity: 0.5;
    z-index: 9998 !important;
}

body.modal-open {
    overflow: hidden;
    padding-right: 17px;
}

/* Ensure modal appears above sticky elements */
.college-navigation {
    z-index: 100;
}

.ep-header {
    z-index: 99;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #enquiryModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
        z-index: 10000;
    }
    
    #enquiryModal .modal-title {
        font-size: 1.1rem;
    }
    
    .enquiry-form-container iframe {
        min-height: 500px;
    }
    
    body.modal-open {
        padding-right: 0;
    }
}

/* Apply Modal Styles */
#applyModal {
    z-index: 9999 !important;
}

#applyModal .modal-dialog {
    max-width: 700px;
    z-index: 10000;
}

#applyModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
    z-index: 10001;
}

#applyModal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

#applyModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    z-index: 10002;
}

#applyModal .btn-close:hover {
    opacity: 1;
    background: #f0f0f0;
    color: #333;
}

#applyModal .btn-close span {
    font-size: 24px;
    line-height: 1;
}

#applyModal .modal-body {
    padding: 0;
}

.apply-form-container {
    background: #fff;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.apply-form-container iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Apply modal backdrop z-index */
#apply-backdrop {
    z-index: 9998 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Manual apply modal fallback styles */
#applyModal.show {
    display: block !important;
    z-index: 9999 !important;
}

/* Reviews Tab Styles */
.reviews-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--ep-primary-color-1, #007bff);
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.rating-stars i {
    font-size: 1.5rem;
    color: #ffc107;
}

.rating-stars i:not(.filled) {
    color: #e9ecef;
}

.rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info h5 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.1rem;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.stars i {
    font-size: 1rem;
    color: #ffc107;
}

.stars i:not(.filled) {
    color: #e9ecef;
}

.rating-score {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.review-content p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-rating {
        align-self: flex-start;
    }
}

/* Related Colleges Styles */
.related-colleges-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-college-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.related-college-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--ep-primary-color-1);
    transform: translateY(-1px);
}

.college-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ep-primary-color-1) 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.college-logo i {
    font-size: 1.5rem;
    color: #fff;
}

.college-info {
    flex: 1;
    min-width: 0;
}

.college-info h5 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.college-info h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.college-info h5 a:hover {
    color: var(--ep-primary-color-1);
}

.college-location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 6px 0;
    color: #666;
    font-size: 0.8rem;
}

.college-location i {
    font-size: 0.7rem;
    color: #999;
}


@media (max-width: 768px) {
    .related-college-item {
        padding: 10px;
    }
    
    .college-logo {
        width: 45px;
        height: 45px;
    }
    
    .college-logo i {
        font-size: 1.3rem;
    }
    
    .college-info h5 {
        font-size: 0.85rem;
    }
    
    .college-location {
        font-size: 0.75rem;
    }
}

/* Photo Modal Styles */
#photoModal {
    z-index: 9999 !important;
}

#photoModal .modal-dialog {
    max-width: 95vw;
    z-index: 10000;
}

#photoModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    z-index: 10001;
}

#photoModal .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

#photoModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    z-index: 10002;
}

#photoModal .btn-close:hover {
    opacity: 1;
    background: #f0f0f0;
    color: #333;
}

#photoModal .btn-close span {
    font-size: 24px;
    line-height: 1;
}

#photoModal .modal-body {
    padding: 0;
    background: #000;
    text-align: center;
}

.photo-modal-container {
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.photo-modal-container {
    position: relative;
}

.photo-modal-container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.photo-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-prev {
    left: 20px;
}

.photo-nav-next {
    right: 20px;
}

.photo-counter {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 15px;
}

/* Photo modal backdrop z-index */
#photo-backdrop {
    z-index: 9998 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Manual photo modal fallback styles */
#photoModal.show {
    display: block !important;
    z-index: 9999 !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    #photoModal .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
        z-index: 10000;
    }
    
    #photoModal .modal-title {
        font-size: 1rem;
    }
    
    .photo-modal-container img {
        max-height: 70vh;
    }
    
    .photo-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .photo-nav-prev {
        left: 10px;
    }
    
    .photo-nav-next {
        right: 10px;
    }
    
    .photo-counter {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin-left: 10px;
    }
}

/* Fee Structure Tab Styles */
.fee-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.fee-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fee-section h4 {
    color: var(--ep-primary-color-1);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

/* Fee Table */
.fee-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.fee-table thead {
    background: linear-gradient(135deg, var(--ep-primary-color-1) 0%, var(--ep-primary-color-9) 100%);
    color: white;
}

.fee-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.fee-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.fee-table tbody tr:hover {
    background: #f8f9fa;
}

.fee-table td {
    padding: 15px 12px;
    color: #555;
}

.fee-table .total-row {
    background: #f8f9fa;
    font-weight: 600;
}

.fee-table .total-row td {
    color: #333;
    font-size: 15px;
    padding: 18px 12px;
}

/* Fee Summary */
.fee-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid var(--ep-primary-color-1);
}

.summary-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ep-primary-color-1);
}

/* Fee Breakdown */
.fee-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fee-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.fee-name {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.fee-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Fee Contact */
.fee-contact {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    text-align: center;
}

.fee-contact p {
    font-size: 15px;
    margin-bottom: 15px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ep-primary-color-1);
    font-weight: 600;
    font-size: 14px;
}

.contact-details i {
    font-size: 18px;
}

/* Fee Enquiry Button */
.fee-enquiry-btn {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6eeff 100%);
    border-radius: 8px;
    border: 2px dashed var(--ep-primary-color-1);
}

.fee-enquiry-btn .ep-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 55, 235, 0.2);
    transition: all 0.3s ease;
}

.fee-enquiry-btn .ep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 55, 235, 0.3);
}

.fee-enquiry-btn .ep-btn i {
    font-size: 18px;
}

/* Responsive Fee Structure Styles */
@media (max-width: 992px) {
    .fee-table-wrapper {
        font-size: 13px;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .summary-value {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .fee-section h4 {
        font-size: 1.1rem;
    }
    
    .fee-table {
        font-size: 12px;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .fee-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        padding: 15px;
    }
    
    .summary-label {
        font-size: 13px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .fee-contact {
        padding: 20px 15px;
    }
    
    .fee-enquiry-btn {
        padding: 15px;
    }
    
    .fee-enquiry-btn .ep-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .fee-enquiry-btn .ep-btn i {
        font-size: 16px;
    }
}