/* Talent Global Model School — modern redesign
   Distinct identity: vibrant blue + warm amber, playful early-education feel. */

:root {
    --tgms-primary: #1565c0;
    --tgms-primary-dark: #0d3f78;
    --tgms-accent: #f5a623;
    --tgms-cream: #f7f9fc;
    --tgms-text: #1c2733;
    --tgms-muted: #5c6b7a;
    --tgms-font: 'Nunito', system-ui, -apple-system, sans-serif;
    --tgms-heading-font: 'Heebo', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--tgms-font);
    color: var(--tgms-text);
    background: var(--tgms-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tgms-heading-font);
}

a {
    color: var(--tgms-primary);
}

/* Header */
.tgms-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 14px rgba(21, 101, 192, 0.12);
}

.tgms-header .navbar-brand img {
    height: 44px;
    width: 44px;
    object-fit: contain;
}

.tgms-header .brand-text {
    font-family: var(--tgms-heading-font);
    font-weight: 700;
    color: var(--tgms-primary-dark);
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.tgms-header .nav-link {
    color: var(--tgms-text);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.tgms-header .nav-link:hover,
.tgms-header .nav-link.active {
    color: var(--tgms-primary);
}

.tgms-header .btn-apply {
    background: var(--tgms-primary);
    color: #fff;
    border-radius: 30px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
}

.tgms-header .btn-apply:hover {
    background: var(--tgms-primary-dark);
    color: #fff;
}

/* Hero carousel */
.tgms-hero {
    position: relative;
    overflow: hidden;
}

.tgms-hero .owl-carousel-item {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
}

.tgms-hero .owl-carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tgms-hero .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 63, 120, 0.9), rgba(21, 101, 192, 0.72));
    z-index: 1;
    display: flex;
    align-items: center;
}

.tgms-hero .container {
    position: relative;
    z-index: 2;
}

.tgms-hero .eyebrow {
    display: inline-block;
    color: var(--tgms-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.tgms-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.25;
    max-width: 820px;
}

.tgms-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    max-width: 640px;
    margin-top: 1rem;
}

.tgms-hero .hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-tgms-primary {
    background: var(--tgms-accent);
    color: var(--tgms-primary-dark);
    font-weight: 700;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-tgms-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.35);
    color: var(--tgms-primary-dark);
}

.btn-tgms-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: background 0.2s;
}

.btn-tgms-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Owl dots/nav recolor */
.tgms-hero .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5) !important;
}

.tgms-hero .owl-dots .owl-dot.active span {
    background: var(--tgms-accent) !important;
}

/* Section shell */
.tgms-section {
    padding: 4.5rem 0;
}

.tgms-section-alt {
    background: #fff;
}

.tgms-section-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.tgms-section-title .eyebrow {
    display: inline-block;
    color: var(--tgms-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.tgms-section-title h2 {
    font-weight: 800;
    color: var(--tgms-primary-dark);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.tgms-section-title p {
    color: var(--tgms-muted);
    margin-top: 0.75rem;
}

/* About */
.tgms-about-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(21, 101, 192, 0.18);
}

.tgms-about-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: block;
    aspect-ratio: 16 / 10;
}

.tgms-about-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13, 63, 120, 0.92), transparent);
    color: #fff;
    padding: 1.25rem 1.25rem 1rem;
}

.tgms-about-caption h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.tgms-about-caption small {
    color: rgba(255, 255, 255, 0.8);
}

.tgms-about-text h2 {
    font-weight: 800;
    color: var(--tgms-primary-dark);
}

.tgms-about-text p {
    color: var(--tgms-muted);
    line-height: 1.75;
}

.tgms-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.tgms-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--tgms-cream);
    border-radius: 10px;
}

.tgms-fact i {
    color: var(--tgms-primary);
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.tgms-fact span {
    font-weight: 600;
    color: var(--tgms-text);
    font-size: 0.95rem;
}

/* Facilities */
.tgms-facility-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.12);
}

.tgms-facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.tgms-facility-card:hover img {
    transform: scale(1.06);
}

.tgms-facility-card .facility-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13, 63, 120, 0.85), transparent);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
}

/* Admin team */
.tgms-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tgms-people-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tgms-people-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(21, 101, 192, 0.16);
}

.tgms-people-card .people-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tgms-people-card .people-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(13, 63, 120, 0.92), transparent);
    color: #fff;
    padding: 1.25rem 1.1rem 1rem;
    text-align: left;
}

.tgms-people-card h5 {
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #fff;
    font-size: 1.05rem;
}

.tgms-people-card small {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials — unused, kept for potential reuse
.tgms-testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.1);
    height: 100%;
}

.tgms-testimonial-card img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--tgms-accent);
}

.tgms-testimonial-card h6 {
    font-weight: 700;
    color: var(--tgms-primary-dark);
    margin-bottom: 0.1rem;
}

.tgms-testimonial-card small {
    color: var(--tgms-muted);
}
*/

/* CTA band */
.tgms-cta {
    background: linear-gradient(135deg, var(--tgms-primary-dark), var(--tgms-primary));
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.tgms-cta h2 {
    font-weight: 800;
}

.tgms-cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0.75rem auto 1.5rem;
}

/* Footer */
.tgms-footer {
    background: var(--tgms-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3.5rem;
}

.tgms-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tgms-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.tgms-footer a:hover {
    color: var(--tgms-accent);
}

.tgms-footer .footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 0.5rem;
}

.tgms-footer .footer-social a:hover {
    background: var(--tgms-accent);
    border-color: var(--tgms-accent);
    color: var(--tgms-primary-dark);
}

.tgms-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: 0.9rem;
}

.google-maps {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 767px) {
    .tgms-facts {
        grid-template-columns: 1fr;
    }

    .tgms-section {
        padding: 3rem 0;
    }
}
