/* Root Variables */
:root {
    --primary-red: #C5192D;
    --primary-dark: #A01322;
    --dark-text: #1F2937;
    --secondary-grey: #4B5563;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    height: 45px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.8)), url('pthclassroom.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 6rem 5%;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Trust Banner */
.trust-banner {
    background-color: var(--light-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-weight: 600;
    color: var(--secondary-grey);
    border-bottom: 1px solid #E5E7EB;
}

/* Sections & Layout */
.section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--dark-text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    width: 40px;
    height: 40px;
    stroke: var(--primary-red);
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.card p {
    color: var(--secondary-grey);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.card-action {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-action:hover {
    text-decoration: underline;
}

/* Group Training Section */
.group-training-section {
    background-color: var(--light-bg);
}

.group-training-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.group-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.group-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.group-card p {
    color: var(--secondary-grey);
    font-size: 0.95rem;
}

/* Instructor Section */
.instructor-section {
    background-color: var(--white);
}

.instructor-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.instructor-image-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Pills Section */
.pills-section {
    background-color: var(--light-bg);
    padding: 3rem 5%;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pill-item {
    background: var(--white);
    border: 1px solid #E5E7EB;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pill-icon {
    color: var(--primary-red);
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.faq-item p {
    color: var(--secondary-grey);
    font-size: 0.95rem;
}

.faq-action {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-action:hover {
    text-decoration: underline;
}

/* Resources Section */
.resources-section {
    background-color: var(--light-bg);
}

.resources-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.resource-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.resource-card p {
    color: var(--secondary-grey);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.resource-link {
    color: var(--primary-red);
    font-weight: 700;
}

/* Booking Section */
.booking-section {
    background-color: var(--white);
    text-align: center;
}

.calendar-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 3rem 2rem;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-grey);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info p {
    opacity: 0.9;
}

.contact-info a {
    color: var(--white);
    text-decoration: underline;
}

footer > p {
    opacity: 0.6;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-text);
    color: var(--white);
    padding: 1rem 5%;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cookie-decline-btn {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-decline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Privacy Policy Modal */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.privacy-modal-content {
    background: var(--white);
    color: var(--dark-text);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.privacy-modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.privacy-modal-content p {
    color: var(--secondary-grey);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.privacy-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-grey);
}

.privacy-close-btn:hover {
    color: var(--dark-text);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    nav {
        width: 100%;
    }

    nav ul {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    header .btn-primary {
        display: inline-block;
        margin-top: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .instructor-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}