/* School Detail Page - New Design Based on test.html */
/* Matches the design structure while fitting into existing theme */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide layout banner image but keep header visible */
.banner-1.cover-image.bg-background2 .banner-background-image {
    display: none;
}

.banner-1.cover-image.bg-background2 {
    background: transparent !important;
    min-height: 200px !important;
    height: 200px !important;
    overflow: visible !important;
}

/* Ensure header is visible and properly positioned */
.banner-1.cover-image.bg-background2 .header-main {
    position: relative;
    z-index: 10;
    background: transparent;
}

/* Make sure navigation menu is visible */
.banner-1.cover-image.bg-background2 .horizontal-main {
    background: rgba(0, 0, 0, 0.8) !important;
}

.school-detail-wrapper {
    background: #f5f7fa;
    min-height: 100vh;
    width: 100%;
}

/* Banner Section */
.school-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.school-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.school-info-box {
    position: absolute;
    bottom: 25px;
    left: 35px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    width: 55%;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.school-info-box h1 {
    font-size: 26px;
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.info-tags span {
    background: #eef1f4;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

.info-tags span.admission-open {
    background: #d6f8d6;
    color: #1b7a1b;
}

.apply-btn {
    margin-top: 14px;
    background: #ffb400;
    color: #222;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.apply-btn:hover {
    background: #e6a200;
}

/* Navigation Tabs */
.school-nav-tabs {
    display: flex;
    padding: 14px 30px;
    background: #fff;
    border-bottom: 1px solid #ccc;
    overflow-x: auto;
    gap: 24px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.school-nav-tabs a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.school-nav-tabs a:hover,
.school-nav-tabs a.active {
    color: #032b5f;
    border-bottom-color: #032b5f;
}

/* Sticky header version of school tabs */
.school-nav-tabs-sticky {
    margin-top: 5px;
    padding: 8px 0 10px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    justify-content: flex-start;
}

.school-nav-tabs-sticky a {
    color: #fff;
}

.school-nav-tabs-sticky a.active {
    border-bottom-color: #ffb400;
}

/* Main Container Layout */
.school-detail-container {
    display: grid;
    grid-template-columns: 68% 30%;
    gap: 2%;
    padding: 25px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Styles */
.school-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.school-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.school-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.school-card p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.school-card ul {
    margin-top: 10px;
    line-height: 26px;
    padding-left: 20px;
}

.school-card ul li {
    margin-bottom: 8px;
    color: #555;
}

/* Table Styles */
.school-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.school-card table th,
.school-card table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.school-card table th {
    background: #f2f2f2;
    font-weight: 600;
    color: #222;
}

.school-card table tr:hover {
    background: #f9f9f9;
}

/* Contact Box in Sidebar */
.map-box {
    margin-bottom: 20px;
}

.map-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.map-box p {
    margin-bottom: 8px;
    color: #555;
}

/* Similar Schools Grid */
.similar-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.similar-grid::-webkit-scrollbar {
    height: 6px;
}

.similar-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.similar-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.similar-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.school-card-item {
    min-width: 180px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 4px #ddd;
    transition: transform 0.2s ease;
}

.school-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.school-card-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.school-card-item p {
    margin-top: 6px;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.school-card-item button {
    margin-top: 8px;
    padding: 6px;
    width: 100%;
    background: #ffb400;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: #222;
    transition: background 0.3s ease;
}

.school-card-item button:hover {
    background: #e6a200;
}

/* Gallery Image */
.school-card .gallery-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

/* Action Message */
.school-action-message {
    display: none;
    margin: 20px auto;
    max-width: 960px;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid #4c6fff;
    background: #f4f6ff;
    color: #1f2a44;
    font-weight: 500;
}

.school-action-message.visible {
    display: block;
}

.school-action-message.is-error {
    border-color: #dc3545;
    background: #ffe5e8;
    color: #7a1f2b;
}

.school-action-message.is-success {
    border-color: #28a745;
    background: #e9f9ef;
    color: #1b4b2c;
}

/* Modal Styles */
.school-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.school-modal.is-visible {
    display: flex;
}

.school-modal__content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.school-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.school-modal__close:hover {
    color: #222;
}

.school-modal form .form-group {
    margin-bottom: 16px;
}

.school-modal form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.school-modal form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .school-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .school-info-box {
        width: 90%;
        left: 5%;
        bottom: 15px;
    }
    
    .school-nav-tabs {
        padding: 14px 20px;
    }
}

@media (max-width: 768px) {
    .school-banner img {
        height: 250px;
    }
    
    .school-info-box {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .school-info-box h1 {
        font-size: 22px;
    }
    
    .school-detail-container {
        padding: 15px;
    }
    
    .school-nav-tabs {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .school-card {
        padding: 15px;
    }
    
    .school-card table {
        font-size: 14px;
    }
    
    .school-card table th,
    .school-card table td {
        padding: 8px;
    }
}

/* Section Spacing */
.content-section {
    scroll-margin-top: 100px;
}

/* Rating Display */
.rating-display {
    font-size: 18px;
    color: #ffb400;
    margin-top: 10px;
}

/* Key Highlights List */
.key-highlights {
    list-style: none;
    padding-left: 0;
}

.key-highlights li {
    padding-left: 25px;
    position: relative;
}

.key-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Address Text */
.address-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Criteria Item */
.criteria-item {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
    border-radius: 4px;
}

.criteria-item h5 {
    margin-bottom: 10px;
    color: #333;
}

.criteria-item p {
    margin: 0;
    line-height: 1.7;
}

/* Highlight, Achievement, Awards Sections */
.highlight-section,
.achievement-section,
.awards-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.highlight-section h5,
.achievement-section h5,
.awards-section h5 {
    color: #333;
    margin-bottom: 10px;
}

/* Videos Container */
.videos-container {
    padding: 20px 0;
}

.video-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
}

.video-item h5 {
    margin-bottom: 15px;
    color: #333;
}

/* Social Links in Sidebar */
.map-box .social-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.map-box .social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
