/* Teacherg Custom Styles */

:root {
    --tg-primary: #00AEEF;
    --tg-secondary: #FF6F6C;
    --tg-accent-yellow: #FFD44A;
    --tg-accent-green: #39B54A;
    --tg-section-blue: #E7F4FF;
    --tg-section-pink: #FFE6EC;
    --tg-section-mint: #E5F8F0;
    --tg-dark: #123047;

    /* legacy helpers */
    --primary-color: var(--tg-primary);
    --primary-dark: var(--tg-dark);
    --primary-light: #5cd0ff;
    --secondary-color: var(--tg-secondary);
    --accent-color: var(--tg-accent-green);
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f4f6fb;
}

.bg-tg-primary { background-color: var(--tg-primary) !important; }
.bg-tg-blue { background-color: var(--tg-section-blue) !important; }
.bg-tg-pink { background-color: var(--tg-section-pink) !important; }
.bg-tg-mint { background-color: var(--tg-section-mint) !important; }

.text-tg-primary { color: var(--tg-primary) !important; }
.text-tg-coral { color: var(--tg-secondary) !important; }
.text-tg-dark { color: var(--tg-dark) !important; }

.btn-tg-primary {
    background-color: var(--tg-secondary);
    border-color: var(--tg-secondary);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.75rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-tg-primary:hover {
    background-color: #ff5a55;
    border-color: #ff5a55;
    color: #fff;
    transform: translateY(-2px);
}

.btn-tg-outline-light {
    background-color: transparent;
    border-radius: 999px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-tg-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.btn-tg-light {
    background-color: #fff;
    color: var(--tg-primary);
    border-radius: 999px;
    border: none;
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-tg-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-rounded {
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-top: 76px; /* Account for fixed navbar */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    gap: 0.5rem;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

footer .brand-logo {
    height: 40px;
}

.brand-text {
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-brand {
    color: #ffffff !important;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, var(--tg-primary) 0%, rgba(0, 174, 239, 0.9) 40%, rgba(255, 111, 108, 0.95) 100%);
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(255, 212, 74, 0.5), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(57, 181, 74, 0.35), transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Full Width Hero Banner */
.hero-banner-full {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-image: url('/Logo/banner-teacherg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.85) 0%, rgba(255, 111, 108, 0.75) 100%);
    z-index: 1;
}

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

.min-vh-70 {
    min-height: 70vh;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 200px;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slider .slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-heading {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subheading {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Services Preview */
.services-preview {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-badge {
    text-align: center;
    color: #ffffff;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.service-badge i {
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .hero-banner-full {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero-heading {
        font-size: 2.5rem !important;
    }
    
    .hero-subheading {
        font-size: 1.25rem !important;
    }
    
    .min-vh-70 {
        min-height: 50vh;
    }
}

.trusted-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-banner-image,
.media-banner-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-banner-image {
    max-height: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.media-banner-image {
    max-height: 400px;
}

.hero-banner-image:hover,
.media-banner-image:hover {
    transform: translateY(-5px);
}

.hero-highlights {
    background: var(--bg-light);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.highlight-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}

.highlight-card i {
    display: inline-block;
    color: var(--tg-secondary);
}

/* Program Cards */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    border: none;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.program-icon {
    font-size: 1.5rem;
}

.who-card,
.mode-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(18, 48, 71, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tg-section-blue);
    color: var(--tg-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mode-card .icon-circle {
    background: var(--tg-section-mint);
    color: var(--tg-secondary);
}

.who-card ul,
.mode-card ul {
    padding-left: 1.2rem;
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 45%, rgba(34, 197, 94, 0.95) 100%);
    padding: 3rem 0;
}

.stat-item {
    padding: 1rem;
}

.stat-item .display-3 {
    font-size: 3rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 36px;
    }

    .stat-item .display-3 {
        font-size: 2rem;
    }
}

/* Testimonials */
.trust-stats {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.trust-stats h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: var(--tg-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(34, 197, 94, 0.95) 70%, rgba(249, 115, 22, 0.95) 100%);
    padding: 4rem 0;
}

/* About Page */
.about-hero,
.contact-hero {
    background: linear-gradient(120deg, var(--primary-color) 0%, rgba(34, 197, 94, 0.95) 70%, rgba(249, 115, 22, 0.9) 100%);
    padding: 3rem 0;
}

.about-image-placeholder {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.about-image-placeholder:hover {
    transform: scale(1.02);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    font-size: 1rem;
    font-weight: 600;
}

/* Contact Page */
.contact-page .card {
    border-radius: 8px;
    border: none;
}

.contact-page .form-control,
.contact-page .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.contact-page .form-control:focus,
.contact-page .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 122, 123, 0.25);
}

.contact-page .btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-page .btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Utility Classes */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .stats-banner {
        padding: 2rem 0;
    }

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Section spacing */
section {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
}
