/* SPA visual fixes and overrides to match existing PHP theme */

/* Smooth page transitions */
.page-transition { opacity: 0; transform: translateY(8px); transition: all .24s ease-in-out; }
.page-active { opacity: 1; transform: translateY(0); }

/* Utility */
.shadow-soft { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.rounded-10 { border-radius: 10px; }

/* Notice Board cards (match PHP page) */
.notice-item { transition: transform .3s, box-shadow .3s; border-radius: 10px; }
.notice-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.notice-img { height: 440px; overflow: hidden; border-radius: 10px 10px 0 0; }
.notice-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.notice-item:hover .notice-img img { transform: scale(1.05); }
.video-container { position: relative; width: 100%; height: 440px; border-radius: 10px 10px 0 0; overflow: hidden; }
.video-container iframe { width: 100%; height: 100%; border: 0; }
.notice-content { padding: 25px; }
.notice-heading { color: #333; font-weight: 600; margin-bottom: 15px; font-size: 1.2rem; }
.notice-text { color: #666; line-height: 1.6; margin-bottom: 20px; }
.posted-by { color: #06BBCC; font-weight: 500; }

/* Notice detail */
.notice-detail-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.notice-meta { background: #f8f9fa; padding: 20px; border-radius: 10px; margin: 30px 0; }
.notice-meta .meta-item { display: flex; align-items: center; margin-bottom: 10px; }
.notice-meta .meta-item:last-child { margin-bottom: 0; }
.notice-meta i { color: #06BBCC; margin-right: 10px; width: 20px; }
.notice-content { font-size: 1.05rem; line-height: 1.8; color: #444; text-align: justify; }
.notice-content p { margin-bottom: 20px; }
.related-notice { transition: transform .3s; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.related-notice:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.related-notice img { width: 100%; height: 150px; object-fit: cover; }
.related-notice-content { padding: 15px; }
.related-notice h6 { color: #333; margin-bottom: 10px; font-weight: 600; }
.related-notice small { color: #666; }
.back-btn { background: #06BBCC; border: 0; color: #fff; padding: 10px 25px; border-radius: 25px; text-decoration: none; display: inline-flex; align-items: center; transition: all .3s; }
.back-btn:hover { background: #059BB5; color: #fff; transform: translateX(-5px); }
.print-btn { background: #28a745; border: 0; color: #fff; padding: 10px 25px; border-radius: 25px; text-decoration: none; display: inline-flex; align-items: center; transition: all .3s; margin-left: 10px; }
.print-btn:hover { background: #218838; color: #fff; }

/* Pagination color tune (if used inside SPA) */
.pagination .page-link { color: #06BBCC; border-color: #06BBCC; }
.pagination .page-item.active .page-link { background-color: #06BBCC; border-color: #06BBCC; }
.pagination .page-link:hover { background-color: #06BBCC; border-color: #06BBCC; color: #fff; }

/* About big portrait image */
.custom-img { width: 100%; max-width: 500px; height: auto; aspect-ratio: 5 / 8; object-fit: cover; }
@media (min-width: 992px) { .custom-img { width: 500px; height: 800px; } }

/* Classes cards spacing tweaks */
.classes-item .bg-light.rounded { border-radius: 12px !important; }
.classes-item .bg-light.rounded-circle { box-shadow: inset 0 0 0 6px #fff; }
.classes-item .rounded-circle img { border: 4px solid #fff; }

/* Buttons consistent with primary color */
.btn-outline-primary { color: #06BBCC; border-color: #06BBCC; }
.btn-outline-primary:hover { background-color: #06BBCC; border-color: #06BBCC; color: #fff; }

/* Fix anchor focus outlines for accessibility */
a:focus, button:focus { outline: 2px dashed rgba(6,187,204,.6); outline-offset: 2px; }

/* Ensure dropdowns have proper shadow */
.dropdown-menu { box-shadow: 0 10px 30px rgba(0,0,0,.1); }

/* Footer link contrast */
.footer a.btn.btn-link { color: rgba(255,255,255,.7); }
.footer a.btn.btn-link:hover { color: #fff; }

/* Reduce container max width on very large screens for readability */
@media (min-width: 1400px) {
  .container { max-width: 1200px; }
}

/* Activities cards to match activities.php */
.activity-card { transition: all .3s; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,.1); height: 100%; }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.activity-img { height: 200px; overflow: hidden; }
.activity-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.activity-card:hover .activity-img img { transform: scale(1.05); }
.activity-content { padding: 20px; }
.activity-date { color: #06BBCC; font-size: .9rem; margin-bottom: 10px; }
.activity-title { font-size: 1.2rem; margin-bottom: 10px; color: #333; }
.activity-text { color: #666; line-height: 1.6; margin-bottom: 15px; }
.read-more { color: #06BBCC; font-weight: 500; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* Team page styles to match PHP */
/* Gallery styles to match gallery.php */
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,.1); transition: all .3s; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.7); color: #fff; padding: 15px; transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-title { font-size: 1.2rem; margin-bottom: 5px; }
.gallery-description { font-size: .9rem; margin-bottom: 0; }
.team-item { position: relative; text-align: center; }
.team-item .img-fluid.rounded-circle.w-75 { border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.team-text { position: absolute; left: 0; right: 0; bottom: 0; margin: auto; max-width: 300px; background: #fff; padding: 20px; border-radius: 10px; transform: translateY(50%); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.team-text h3 { margin-bottom: 5px; font-size: 1.25rem; }
.team-text p { margin-bottom: 10px; color: #06BBCC; }
.btn.btn-square { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }

/* Admission Modal Styles */
.admission-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 50px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admission-modal-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    margin: 0 auto;
    flex-shrink: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admission-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.admission-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.admission-modal-close span {
    line-height: 1;
}

.admission-modal-content {
    padding: 50px 40px;
    text-align: center;
}

.admission-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admission-modal-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

.admission-modal-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #fff;
}

.admission-highlight-blue {
    color: #4A90E2;
    font-weight: 700;
}

.admission-highlight-purple {
    color: #9B59B6;
    font-weight: 700;
}

.admission-click-text {
    color: #fff;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 400;
}

.admission-buttons-container {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.admission-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    border: 2px solid #28a745;
}

.admission-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: #fff;
}

.admission-btn-primary {
    background: #28a745;
    border-color: #28a745;
}

@media (max-width: 768px) {
    .admission-modal-container {
        width: 95%;
        border-radius: 15px;
    }
    
    .admission-modal-content {
        padding: 40px 25px;
    }
    
    .admission-modal-image {
        margin-bottom: 20px;
    }
    
    .admission-buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .admission-btn {
        min-width: 100%;
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .admission-modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .admission-modal-title {
        font-size: 20px;
    }
    
    .admission-modal-content {
        padding: 35px 20px;
    }
}


