:root {
    --primary-color: #1F4D3F;
    --secondary-color: #059669;
    --accent-color: #10B981;
    --emerald-light: #ECFDF5;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #FAF3E0;
    --background-white: #ffffff;
    --background-slate: #F8FAFC;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-emerald: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-light: linear-gradient(135deg, var(--background-light) 0%, #F1F5F9 100%);
}

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

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

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

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.credential {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

section {
    padding: 4rem 0;
}

.about-section {
    background: var(--background-light);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-section {
    background: var(--background-white);
}

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

.service-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.testimonials-section {
    background: var(--gradient-light);
}

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

.testimonial {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 500;
}

.achievements-section {
    background: var(--background-white);
    padding: 0.5rem 0 2rem 0;
}

.achievements-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 300px;
}

.achievement:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-bottom: 0.5rem;
}

.achievement-text {
    width: 100%;
}

.achievement-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    line-height: 1.3;
}

.achievement-text p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

/* Mobile responsive for achievements */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .achievement {
        padding: 1.5rem 1rem;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Teaching Experience Section */
.teaching-experience-section {
    background: var(--background-slate);
    padding: 4rem 0;
}

.teaching-experience-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.teaching-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.teaching-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.teaching-timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.teaching-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-left: 0;
}

.teaching-item::before {
    content: '';
    position: absolute;
    left: 114px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.teaching-item.current::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 3px var(--primary-color), 0 0 0 6px rgba(31, 77, 63, 0.3);
    }
    50% {
        box-shadow: 0 0 0 3px var(--primary-color), 0 0 0 12px rgba(31, 77, 63, 0.1);
    }
    100% {
        box-shadow: 0 0 0 3px var(--primary-color), 0 0 0 6px rgba(31, 77, 63, 0.3);
    }
}

.teaching-year {
    background: var(--gradient-emerald);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 100px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.teaching-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaching-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.teaching-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.teaching-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.teaching-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-section {
    background: var(--gradient-primary);
    color: white;
}

.contact-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-section h3 {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Contact Social Section */
.contact-social-section {
    padding-right: 1rem;
}

.contact-social-section .display-cards-container {
    margin-top: 2rem;
    min-height: 300px;
}

.contact-social-section .display-cards-stack {
    height: 250px;
    max-width: 600px;
}

.contact-social-section .display-card {
    width: 280px;
    height: 180px;
}

/* Responsive for Contact Layout */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-social-section {
        padding-right: 0;
        order: 2;
    }

    .contact-form-modern {
        order: 1;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: background 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.location {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.submit-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 4rem 0 1rem;
}

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

.footer-section h4 {
    color: #10B981;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #10B981;
    padding-bottom: 0.5rem;
}

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

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #10B981;
    transform: translateX(5px);
}

.footer-link i {
    width: 16px;
    color: #10B981;
}

/* Social Links */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    transform: translateX(5px);
}

.social-link i {
    width: 20px;
    font-size: 1.1rem;
}

.social-link.linkedin:hover { color: #10B981; }
.social-link.facebook:hover { color: #10B981; }
.social-link.instagram:hover { color: #10B981; }
.social-link.twitter:hover { color: #10B981; }

/* BACB Info */
.bacb-info {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
    border-left: 3px solid #10B981;
}

.bacb-details p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #cccccc;
}

.ace-logo {
    width: 60px;
    height: auto;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom-content p {
    margin: 0.5rem 0;
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-note {
    font-style: italic;
    color: #999;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .training-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .training-content h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card.featured {
        transform: none;
        margin: 1rem 0;
    }

    /* Section spacing optimization */
    .section-premium {
        padding: 3rem 0;
    }

    .section-header-premium {
        margin-bottom: 2rem;
    }

    /* Responsive Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bacb-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    h2 {
        font-size: 2rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .achievement-icon {
        margin: 0 auto;
    }

    .teaching-experience-section h2 {
        font-size: 2rem;
    }

    .teaching-timeline::before {
        left: 2rem;
    }

    .teaching-item {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-left: 3rem;
    }

    .teaching-item::before {
        left: 1.4rem;
    }

    .teaching-year {
        align-self: flex-start;
        min-width: auto;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .bacb-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile optimization for smaller screens */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section-premium {
        padding: 2rem 0;
    }

    .hero-content {
        gap: 1rem;
        padding: 1rem 0;
    }

    .section-header-premium {
        margin-bottom: 1.5rem;
    }

    .section-title-premium {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .cards-grid-premium {
        gap: 1rem;
    }

    .card-premium {
        padding: 1.5rem;
    }

    .achievements-grid {
        gap: 1rem;
    }

    .achievement {
        padding: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .teaching-item {
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }

    .legal-content {
        padding: 1rem;
    }
}

/* Legal Pages Styles */
.simple-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-content nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header-content nav a:hover {
    opacity: 0.8;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.last-updated {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    text-align: left;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Contact Form Enhancements */
.contact-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.status-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Loading spinner animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive YouTube Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}