/* Modern Design System Variables - Beautiful Red Theme */
:root {
    --primary-color: #DC2626;
    --primary-dark: #991B1B;
    --primary-light: #FCA5A5;
    --hover-color: #EF4444;
    --gradient-start: #DC2626;
    --gradient-end: #F97316;
    --bg-color: #fff;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --accent-light: #FEE2E2;
    --accent-red: #FECACA;
    --shadow-color: rgba(220, 38, 38, 0.25);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-red: 0 10px 40px rgba(220, 38, 38, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --max-width: 1200px;
}

/* Modern Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    font-size: 1.1875rem; /* Slightly increased paragraph size */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--hover-color);
}

/* Modern Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.flex {
    display: flex;
    gap: var(--spacing-md);
}

/* Modern Typography - UNIFORM SIZES */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

/* All main titles uniform */
h1, h2, h3 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1875rem; /* Slightly increased paragraph size */
    line-height: 1.8;
}

ul, ol {
    font-size: 1.1875rem; /* Slightly increased list size */
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: 0.5rem;
}

/* Responsive Text Classes */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Modern Hero Section */
.page-hero {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: clamp(4rem, 10vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before { display: none; }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    animation: fadeInUp 1s var(--transition-normal);
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content p {
    color: #ffffff;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    color: #ffffff;
}

/* Modern Card Design */
.card {
    background: var(--bg-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.card-content {
    color: var(--text-light);
}

/* Grid System for Cards */
.cards-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    padding: var(--spacing-md) 0;
}

/* Testimonials Section */
.testimonials {
    background: #ffffff;
    padding: var(--spacing-lg) 0;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1875rem; /* Slightly increased paragraph size */
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.author-org {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Button styling for hero sections */
.hero-content .cta-button {
    display: inline-block;
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Common Components */
.section-title {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.75rem); /* Uniform with h1-h3 */
    margin-bottom: 2rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1875rem; /* Slightly increased paragraph size */
}

/* Programs Section */
.programs {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, rgba(var(--gradient-start), 0.05) 0%, rgba(var(--gradient-end), 0.02) 100%);
}

.programs-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.program-card {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.program-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.program-header h3 {
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.75rem); /* Uniform with other titles */
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.program-header h4 {
    color: var(--text-light);
    font-size: clamp(1.5rem, 3vw, 2rem); /* Increased and uniform */
    font-weight: 500;
    line-height: 1.4;
}

.program-content {
    margin-bottom: 2.5rem;
}

.program-content p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1875rem; /* Slightly increased paragraph size */
    margin-bottom: 1.5rem;
}

.program-content p:last-child {
    margin-bottom: 0;
}

.program-description h5 {
    color: var(--primary-color);
    font-size: 1.5rem; /* Increased to match h5 standard */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.program-topics {
    background: var(--accent-light);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin: 2rem 0;
}

.program-topics h5 {
    color: var(--primary-color);
    font-size: 1.5rem; /* Increased to match h5 standard */
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.program-topics ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.program-topics li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-color);
    font-size: 1.125rem; /* Increased list item size */
}

.program-topics li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.program-cta {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    font-size: 1.1rem;
}

.program-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: var(--hover-color);
}

@media (min-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
        margin: 3rem auto 0;
    }
    
    .program-card {
        max-width: none;
        margin: 0;
    }
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before { display: none; }

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem); /* Uniform with other titles */
    margin-bottom: 2rem;
}

.cta-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.cta-benefit {
    display: flex;
    gap: 1rem;
    align-items: start;
    background: rgba(255,255,255,0.1);
    padding: 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-benefit:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.cta-benefit::before {
    content: "→";
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 20px;
    color: var(--accent-light);
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    gap: var(--spacing-xs);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.btn-primary:hover {
    background: var(--hover-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Modern Form Elements */
.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition-normal);
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    background: var(--bg-color);
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--shadow-color);
}

.form-group:focus-within .form-label {
    color: var(--primary-color);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Custom Select Styling */
select.form-control {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Common Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--accent-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--bg-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--shadow-color);
}

/* Contact / Booking form layout */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 2.75rem); /* Uniform with other titles */
    font-weight: 800;
    color: var(--primary-color);
}

.contact-copy p {
    color: var(--text-light);
}

.contact-side-image {
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contact-side-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
}

.contact-form-grid .form-group:nth-last-child(2) {
    grid-column: 1 / -1;
}

.contact-submit-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-side-image {
        max-width: 500px;
        margin-inline: auto;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Common Card Styles */
.card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
}

.alert-success {
    background: var(--accent-light);
    color: var(--primary-color);
    border: 1px solid #ffc1bd;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cta-benefit p {
    margin: 0;
    opacity: 0.95;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-benefits {
        grid-template-columns: 1fr;
    }

    /* Programs Section Mobile */
    .programs-grid {
        gap: 2rem;
        margin-top: 2rem;
    }

    .program-card {
        padding: 1.5rem;
        margin: 0;
    }

    .program-header h3 {
        font-size: clamp(1.75rem, 5vw, 2.25rem); /* Mobile uniform size */
    }

    .program-subtitle {
        font-size: 1.0625rem; /* Increased mobile size */
    }

    .program-description {
        font-size: 1.0625rem; /* Increased mobile size */
    }

    .program-topics li {
        font-size: 1.0625rem; /* Increased mobile size */
        padding: 0.4rem 0;
    }

    .program-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Section Padding */
    .section {
        padding: 3rem 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}