/* 
 * Thrive Together Training
 * Main Stylesheet
 * Colors: #0f50b9 (Primary Blue), #ee3843 (Accent Red), #ffffff (White)
 * font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
 */

/* === Reset and Base Styles === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0f50b9;
    --primary-dark: #0b3d8e;
    --primary-light: #3a70c9;
    --accent: #ee3843;
    --accent-dark: #d02631;
    --accent-light: #f16770;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --mid-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --black: #1a202c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
   font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
/* === ECG Animation === */
.ecg-animation {
    background-color: var(--light-gray);
    padding: 2rem 0;
    overflow: hidden;
}

.ecg-container {
    position: relative;
    height: 100px;
    width: 100%;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: 50px;
}

/* Semicircular mask with gentle fade */
.ecg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        var(--light-gray) 0%, 
        rgba(245, 247, 250, 0.5) 8%, 
        rgba(245, 247, 250, 0) 15%, 
        rgba(245, 247, 250, 0) 85%, 
        rgba(245, 247, 250, 0.5) 92%, 
        var(--light-gray) 100%);
    z-index: 2;
    pointer-events: none;
    border-radius: 50px;
}

.ecg-container svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ecg-animation {
        padding: 1.5rem 0;
    }
    
    .ecg-container {
        height: 60px;
        border-radius: 30px;
    }
    
    .ecg-container::before {
        border-radius: 30px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ecg-animation {
        padding: 20px 0;
    }
    
    .ecg-container,
    .ecg-container-masked,
    .ecg-container-with-caps {
        height: 60px;
    }
    
    .ecg-container-with-caps {
        border-radius: 30px;
    }
    
    .ecg-container-with-caps::before {
        border-radius: 30px;
    }
}

/* === Header & Navigation === */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    max-width: 180px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav li a {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav li a:hover::after,
.main-nav li.active a::after {
    width: 100%;
}

.main-nav li a:hover {
    color: var(--primary);
}

.main-nav li.active a {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* === Hero Section === */
.hero {
    min-height: 80vh;
    background-image: linear-gradient(rgba(15, 80, 185, 0.7), rgba(15, 80, 185, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* === ECG Animation === */
.ecg-animation {
    background-color: var(--light-gray);
    padding: 2rem 0;
}

.ecg-container {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.ecg-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

/* === Features Section === */
.features {
    text-align: center;
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* === Upcoming Courses Section === */
.upcoming-courses {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.courses-list {
    margin-top: 2rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.course-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-actions {
    text-align: center;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: var(--dark-gray);
}

/* === Team Section === */
.team {
    padding: 5rem 0;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.member-details {
    padding: 2rem;
}

.member-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* === Values Section === */
.values {
    background-color: var(--light-gray);
    padding: 5rem 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* === Course Types Section === */
.course-types {
    padding: 5rem 0;
}

.course-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-type-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-type-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-type-card h3 {
    color: var(--primary);
    padding: 1.5rem 1.5rem 0.5rem;
}

.course-type-card p {
    padding: 0 1.5rem 1.5rem;
}

/* === Custom Booking Section === */
.custom-booking {
    background-color: var(--light-gray);
    padding: 5rem 0;
}

.custom-booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.custom-booking-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* === Course Filter === */
.course-filter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-filter select {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--mid-gray);
    background-color: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

/* === Admin Panel === */
.admin-dashboard {
    background-color: var(--light-gray);
    padding: 3rem 0;
}

.admin-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--mid-gray);
}

.admin-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.admin-tab:hover {
    color: var(--primary);
}

.admin-tab.active {
    color: var(--primary);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: none;
}

.admin-form.show-form {
    display: block;
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-course-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-course-card.past-course {
    opacity: 0.7;
}

.admin-course-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.admin-course-card .course-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #bd2130;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--mid-gray);
    font-family: inherit;
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* === Contact Section === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* === Social Links Styling === */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.social-link:hover {
    color: var(--white);
    opacity: 0.8;
    transform: translateY(-2px);
}

.social-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.5rem;
   /* filter: brightness(0) invert(1); /* Makes logos white */
    transition: var(--transition);
}

.social-link:hover .social-logo {
    transform: scale(1.1);
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Alternative: Horizontal layout (image next to text) */
.social-links-horizontal .social-link {
    flex-direction: row;
    align-items: center;
}

.social-links-horizontal .social-logo {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
    
    .social-logo {
        width: 28px;
        height: 28px;
    }
}
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
}

/* === Testimonials === */
.testimonials {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.testimonials h2 {
    color: var(--white);
}

.testimonial-slider {
    margin: 3rem auto;
    max-width: 800px;
    position: relative;
}

.testimonial {
    padding: 0 3rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.testimonial-prev,
.testimonial-next {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* === FAQs === */
.faqs {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* === About Company Section === */
.about-company {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* === Footer === */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

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

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--white);
}

.social-links {
    margin-top: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Admin Statistics === */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.courses-chart {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.simple-chart {
    margin-top: 2rem;
}

.chart-bar-container {
    margin-bottom: 1.5rem;
}

.chart-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.chart-bar {
    height: 2rem;
    background-color: var(--primary);
    border-radius: 4px;
    min-width: 2%;
    position: relative;
    transition: width 0.5s ease;
}

.chart-value {
    position: absolute;
    right: 0;
    top: -25px;
    font-weight: 600;
    color: var(--primary);
}
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid,
    .about-content,
    .custom-booking-content,
    .footer-content,
    .course-content,
    .material-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-card {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        grid-template-columns: 1fr;
    }
    
    .member-image img {
        height: 300px;
        object-fit: cover;
    }
    
    .course-body {
        flex-direction: column;
    }
    
    .course-image {
        flex: 0 0 100%;
        max-height: 250px;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .