/* School Detail Page Styles */

/* Add padding for fixed header */
body {
    padding-top: 80px;
}

/* Breadcrumb */
.breadcrumb {
    background: #F5F5F5;
    padding: 1rem 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: var(--primary);
}

.breadcrumb-content .separator {
    color: var(--text-light);
}

.breadcrumb-content .current {
    color: var(--text);
    font-weight: 600;
}

/* Main Content Section */
.detail-content-section {
    padding: 3rem 2rem;
    background: #FAFAFA;
}

.detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Main Content */
.detail-main {
    min-width: 0;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* School Header */
.school-header {
    margin-bottom: 2.5rem;
}

.school-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge-area {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.badge-curriculum {
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.school-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.school-title-en {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.school-title-ja {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.4;
}

.school-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Gallery Slider */
.gallery-section {
    margin-bottom: 2.5rem;
}

.gallery-slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    background: #F5F5F5;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.thumbnail {
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick Info */
.quick-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #FFF8E1;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.info-value {
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 900;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #F0F0F0;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.section-content p {
    margin-bottom: 1rem;
}

/* Curriculum Grid */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.curriculum-item {
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.curriculum-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.curriculum-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Fee Table */
.fee-table {
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #E0E0E0;
}

.fee-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.fee-header {
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.fee-row:not(.fee-header) {
    background: white;
    border-bottom: 1px solid #E0E0E0;
}

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

.fee-row:not(.fee-header):hover {
    background: #FFF8E1;
}

.fee-cell {
    padding: 1rem 1.5rem;
}

.fee-notes {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.fee-notes p {
    margin-bottom: 0.75rem;
}

.fee-notes ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.fee-notes li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.facility-item {
    text-align: center;
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.facility-item:hover {
    background: #FFF8E1;
    transform: translateY(-5px);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.facility-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.facility-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Activities List */
.activities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.activity-category {
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
}

.activity-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.activity-category p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Staff Recommendation */
.recommendation-box {
    background: #FFF8E1;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary);
    margin-top: 1.5rem;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #FFE082;
}

.staff-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--primary);
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.staff-role {
    font-size: 0.9rem;
    color: var(--text-light);
}

.recommendation-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.recommendation-content h4:first-child {
    margin-top: 0;
}

.recommendation-content p {
    margin-bottom: 1rem;
    color: var(--text);
}

.recommendation-list {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.recommendation-list li {
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.7;
}

.recommendation-list li strong {
    color: var(--primary);
    font-weight: 700;
}

/* Admission Steps */
.admission-steps {
    margin-top: 1.5rem;
}

.admission-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #F9F9F9;
    border-radius: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.admission-notes {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #FFF8E1;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.admission-notes h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.admission-notes ul {
    margin-left: 1.5rem;
}

.admission-notes li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Location */
.location-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.address h4,
.access-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.address p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.access-info ul {
    margin-left: 1.5rem;
}

.access-info li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #F5F5F5;
    border-radius: 1rem;
    border: 2px dashed #D0D0D0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Contact Form */
.contact-form-section {
    background: #FFF8E1;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 0;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
}

/* Sidebar */
.sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-sticky > div {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #F0F0F0;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.search-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.search-field select {
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Zen Maru Gothic', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-search:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
}

/* Sidebar CTA */
.sidebar-cta h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.sidebar-cta p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-sidebar-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-sidebar-cta:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .detail-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .detail-main {
        padding: 2.5rem;
    }

    .gallery-main {
        height: 400px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .detail-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static;
        flex-direction: row;
    }

    .detail-main {
        padding: 2rem;
    }

    .school-title {
        font-size: 2rem;
    }

    .gallery-main {
        height: 350px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .curriculum-grid,
    .location-info {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .detail-content-section {
        padding: 2rem 1rem;
    }

    .detail-main {
        padding: 1.5rem;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
    }

    .breadcrumb-content {
        font-size: 0.8rem;
    }

    .school-title {
        font-size: 1.6rem;
    }

    .school-subtitle {
        font-size: 1rem;
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .thumbnail {
        height: 80px;
    }

    .quick-info {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-sticky {
        flex-direction: column;
    }
}

/* Info Table Styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th,
.info-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.info-table th {
    background: #F5F5F5;
    font-weight: 700;
    color: var(--text);
    width: 35%;
    vertical-align: top;
}

.info-table td {
    color: var(--text-light);
    line-height: 1.8;
}

.info-table td a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-table td a:hover {
    color: #FF8800;
    text-decoration: underline;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Location & Access Styles */
.location-address {
    margin-bottom: 2rem;
}

.location-address h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.location-address p {
    color: var(--text-light);
    line-height: 1.8;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.access-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.access-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-col ul li {
    color: var(--text-light);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.access-col ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.access-col p {
    color: var(--text-light);
    line-height: 1.8;
}

.map-container {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.contact-form-section {
    background: #F5F5EB;
    padding: 3rem 3rem 5rem;
    border-radius: 1.5rem;
    margin-top: 3rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    max-width: 300px;
    margin: 2rem auto 0;
    display: block;
    padding: 1.2rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #FF8800;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 158, 0, 0.3);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .school-title-en {
        font-size: 1.6rem;
    }

    .school-title-ja {
        font-size: 1rem;
    }

    .info-table th,
    .info-table td {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .info-table th {
        background: transparent;
        padding-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .info-table td {
        padding-top: 0;
        padding-bottom: 1.5rem;
    }

    .access-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-section {
        padding: 2rem 1.5rem 4rem;
    }
}

/* Updated Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.form-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0;
    font-weight: 400;
}

.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E0E0E0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.1);
}

/* Sidebar CTA Center Alignment */
.sidebar-cta h4,
.sidebar-cta p {
    text-align: center;
}

