/**
 * TC School Partners - School Pages Styles
 * Standalone — no theme CSS loaded, so no !important needed
 */

/* =============================================
   RESETS & BASE
   ============================================= */
body.tc-school-standalone {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

body.tc-school-standalone * {
    box-sizing: border-box;
}

body.tc-school-standalone a {
    color: inherit;
    text-decoration: none;
}

body.tc-school-standalone a.tc-school-sign-in-button {
    color: #ffffff !important;
}

body.tc-school-standalone h1,
body.tc-school-standalone h2,
body.tc-school-standalone h3,
body.tc-school-standalone p {
    margin: 0;
    padding: 0;
}

body.tc-school-standalone img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   TOP HEADER (School logo centered)
   ============================================= */
.tc-school-top-header {
    background: #ffffff;
    padding: 25px 0 20px;
    border-bottom: 1px solid #eee;
}

.tc-school-top-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-school-top-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tc-school-top-logo img {
    max-width: 80px;
    height: auto;
    display: block;
}

.tc-school-top-logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =============================================
   BANNER
   ============================================= */
.tc-school-banner {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-school-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.tc-school-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    padding: 60px 30px;
    text-align: center;
}

.tc-school-hero {
    text-align: center;
}

.tc-school-hero-headline {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tc-school-hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.tc-school-hero-description p {
    margin: 0;
    color: inherit;
}

/* =============================================
   SIGN IN BUTTON (below banner)
   ============================================= */
.tc-school-sign-in-cta {
    text-align: center;
    padding: 35px 20px;
    background: #ffffff;
}

body.tc-school-standalone .tc-school-sign-in-button {
    display: inline-block;
    padding: 14px 55px;
    background-color: #1a3a5c;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1a3a5c;
    cursor: pointer;
    line-height: 1.4;
    text-align: center;
}

body.tc-school-standalone .tc-school-sign-in-button:hover {
    background-color: #0d2240;
    border-color: #0d2240;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

/* =============================================
   CONTAINER
   ============================================= */
.tc-school-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* =============================================
   CONTENT
   ============================================= */
.tc-school-content {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.tc-school-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a5c;
    text-align: center;
    margin: 0 0 35px;
}

.tc-school-section-title-lined {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tc-school-section-title-lined::before,
.tc-school-section-title-lined::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #c8d6e5;
}

.tc-school-section-title-lined span {
    white-space: nowrap;
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.tc-school-features-section {
    text-align: center;
    margin-bottom: 50px;
}

.tc-school-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tc-school-feature {
    text-align: center;
    padding: 25px 15px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tc-school-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tc-school-feature-image {
    margin-bottom: 15px;
}

.tc-school-feature-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
}

.tc-school-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a3a5c;
}

.tc-school-feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* =============================================
   TESTIMONIALS (2 columns)
   ============================================= */
.tc-school-testimonials {
    margin-bottom: 50px;
}

.tc-school-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tc-school-testimonial-card {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 25px 20px;
    border-left: 4px solid #1a3a5c;
    text-align: left;
}

.tc-school-testimonial-quote {
    font-size: 2rem;
    line-height: 1;
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.tc-school-testimonial-text {
    font-size: 0.95rem;
    font-style: normal;
    color: #444;
    line-height: 1.6;
    margin: 0 0 15px;
}

.tc-school-testimonial-author {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* =============================================
   FOOTER CTA
   ============================================= */
.tc-school-footer-cta {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.tc-school-footer-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 25px;
}

/* =============================================
   COURSES PAGE
   ============================================= */
.tc-school-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.tc-school-breadcrumb {
    font-size: 0.95rem;
    color: #666;
}

.tc-school-breadcrumb a {
    color: #1a3a5c;
    text-decoration: none;
}

.tc-school-breadcrumb a:hover {
    text-decoration: underline;
}

.tc-school-breadcrumb .separator {
    margin: 0 10px;
}

.tc-school-courses-header {
    text-align: center;
    margin-bottom: 50px;
}

.tc-school-courses-header h1 {
    font-size: 2.5rem;
    color: #1a3a5c;
    margin-bottom: 15px;
}

.tc-school-courses-header p {
    font-size: 1.125rem;
    color: #666;
}

.tc-school-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tc-school-course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tc-school-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tc-course-thumbnail {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: #f0f0f0;
}

.tc-course-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tc-school-course-card:hover .tc-course-thumbnail img {
    transform: scale(1.05);
}

.tc-course-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tc-course-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.tc-course-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tc-course-title a:hover {
    color: #1a3a5c;
}

.tc-course-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tc-course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #999;
}

.tc-course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tc-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tc-course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a5c;
}

.tc-course-enroll-button {
    padding: 10px 25px;
    background-color: #1a3a5c;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tc-course-enroll-button:hover {
    background-color: #0d2240;
    color: #fff;
}

.tc-school-cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: #1a3a5c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tc-school-cta-button:hover {
    background-color: #0d2240;
    color: #fff;
}

.tc-school-no-courses {
    text-align: center;
    padding: 60px 20px;
}

.tc-school-no-courses p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
}

.tc-school-suspended-message {
    text-align: center;
    padding: 80px 20px;
}

.tc-school-suspended-message h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.tc-school-suspended-message p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 30px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .tc-school-banner {
        min-height: 320px;
    }

    .tc-school-banner-content {
        padding: 40px 20px;
    }

    .tc-school-hero-headline {
        font-size: 1.8rem;
    }

    .tc-school-hero-description {
        font-size: 1rem;
    }

    .tc-school-section-title {
        font-size: 1.3rem;
    }

    .tc-school-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tc-school-testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tc-school-container {
        padding: 30px 20px;
    }

    .tc-school-footer-cta h2 {
        font-size: 1.3rem;
    }

    .tc-school-courses-grid {
        grid-template-columns: 1fr;
    }

    .tc-school-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tc-school-section-title-lined {
        flex-direction: column;
        gap: 8px;
    }

    .tc-school-section-title-lined::before,
    .tc-school-section-title-lined::after {
        width: 60px;
        flex: none;
    }

    .tc-school-sign-in-button {
        padding: 12px 40px;
        font-size: 1rem;
    }
}