/* CSS Variables */
:root {
    --primary: #0D7C66;
    --primary-light: #41b3a2d2;
    --accent: #E8A87C;
    --dark: #1A3A3A;
    --text: #2C3E50;
    --text-light: #5A6C7D;
    --background: #FAFCFC;
    --white: #FFFFFF;
    --border: #E1E8ED;
    --shadow: rgba(13, 124, 102, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--background);
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Add semi-transparent overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 252, 252, 0.95);
    z-index: -1;
    pointer-events: none;
}

/* 
ADJUST BACKGROUND VISIBILITY:
Change the last number (0.80) to control how visible the background is:
- 0.95 = background barely visible (most overlay)
- 0.85 = background moderately visible
- 0.80 = background well visible (current setting)
- 0.70 = background very visible
- 0.60 = background highly visible
- 0.50 = background and content equally visible
Lower values = more background visible, but text may be harder to read
*/

h1,
h2,
h3,
h4 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3.0rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.logo-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
    text-align: left;
}

.logo-accent {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

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

.btn-secondary {
    background: var(--primary-light);
    color: var(--dark);
    border: 2px solid var(--primary);
}

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

/* Hero Section */
.hero {
    margin-top: 15px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, #F0F9F7 0%, #FAFCFC 100%); */
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 124, 102, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-50px, 50px) rotate(180deg);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-light);
    box-shadow: 0 4px 15px var(--shadow);
}

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

.hero-logo {
    float: right;
    height: 170px;
    width: auto;
    margin-left: 2rem;
    margin-bottom: 1rem;
    shape-margin: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
}

/* Certification Logos */
.certification-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(13, 124, 102, 0.2);
}

.cert-logo {
    height: 95px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cert-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* IEA Logo - no resizing, natural size */
.cert-logo-iea {
    width: 175px;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cert-logo-iea:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Paolo's Portrait - About Page */
.about-portrait {
    float: right;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 0 1.5rem 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 3px solid var(--white);
    object-fit: cover;
}

.stat {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.stat:nth-child(1) {
    animation-delay: 0.2s;
}

.stat:nth-child(2) {
    animation-delay: 0.4s;
}

.stat:nth-child(3) {
    animation-delay: 0.6s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'DM Sans', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.hero-visual {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-card {
    background: var(--white);
    padding: 2rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

/* Add logo as background - right-justified and subtle */
.visual-card::before {
    content: '';
    position: absolute;
    right: 2%;
    top: 45%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above the background logo */
.visual-card h3,
.visual-card .visual-list {
    position: relative;
    z-index: 1;
}

.visual-icon {
    margin-left: auto;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d7c662e 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.visual-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 15px;
}

.visual-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text);
}

.visual-list li::before {
    content: '\f00c';
    /* Font Awesome checkmark code */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 28px;
    height: 28px;
    background: rgba(13, 124, 102, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Page Header (for interior pages) */
.page-header {
    margin-top: 80px;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Section Styles */
section {
    padding: 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.section-badge {
    display: inline-block;
    background: rgba(13, 124, 102, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem;
    border-radius: 24px;
    color: var(--white);
    box-shadow: 0 20px 60px var(--shadow);
    position: sticky;
    top: 120px;
}

.credential-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.credential-badge h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.credential-badge p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.highlight-box {
    background: rgba(13, 124, 102, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0rem 0.5rem 0rem;
}

.highlight-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* NEW Ã¢â‚¬â€ wrapper for title + icon */
.service-header {
    display: flex;
    align-items: center;
}

/* icon aligns right now */
.service-header .service-icon {
    margin-left: auto;
}

/* icon styling */
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 124, 102, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-types {
    list-style: none;
    margin: 1.5rem 0;
}

.service-types li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.service-types li:last-child {
    border-bottom: none;
}

.service-types li strong {
    color: var(--primary);
    min-width: 120px;
    flex-shrink: 0;
}

/* Training Section */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.training-header {
    display: flex;
    justify-content: space-between;
    /* icon on right */
    align-items: center;
    /* vertical centering */
    margin-bottom: 1rem;
}

.training-header h3 {
    margin: 0;
}

.training-card .service-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.training-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.training-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Testimonials Page Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px var(--shadow);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -1rem;
}

.testimonial-text {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: 0 8px 25px var(--shadow);
    transform: translateX(5px);
}

.contact-item-content p {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 124, 102, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form>p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group label span {
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.8rem;
        box-shadow: 0 10px 30px var(--shadow);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .hero-logo {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
        height: 120px;
    }

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

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
        margin-top: 2rem;
    }

    .certification-logos {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .cert-logo {
        height: 50px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.0rem;
    }

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

    .page-header {
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    /* Reduce card padding on mobile */
    .service-card,
    .testimonial-card,
    .training-card {
        padding: 0.8rem;
    }

        .visual-card {
            padding: 2rem;
        }
    
        .visual-card::before {
            width: 150px;
            height: 150px;
            opacity: 0.06;
        }

    /* Reduce section padding */
    section {
        padding: 2rem 1.0rem;
    }

    /* Make stats more compact */
    .stat-number {
        font-size: 2rem;
    }

    /* Reduce margins in hero */
    .cta-buttons {
        margin-top: 1.0rem;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {

    /* Navigation */
    .nav-container {
        padding: 1rem 1rem;
    }

    .logo-text {
        gap: 0.2rem;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.5rem;
    }

    .logo-image {
        height: 40px;
    }

    /* Hero section - more compact */
    .hero {
        min-height: auto;
        margin-top: 70px;
    }

    .hero-logo {
        height: 100px;
        margin-bottom: 1rem;
    }

    .hero-container {
        padding: 1.5rem 0.5rem;
        gap: 1.0rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .certification-logos {
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .cert-logo {
        height: 40px;
    }

    /* Portrait on mobile - smaller and centered */
    .about-portrait {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
        width: 140px;
        height: 140px;
    }

    .hero-stats {
        gap: 0.8rem;
        margin-top: 1.0rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        text-align: center;
    }

    .stat:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Cards - very compact */
        .visual-card {
            padding: 1.0rem;
        }
    
        .visual-card::before {
            width: 120px;
            height: 120px;
            opacity: 0.05;
        }

    .visual-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .visual-list {
        gap: 0.5rem;
    }

    .visual-list li {
        font-size: 0.95rem;
    }

    .service-card,
    .testimonial-card,
    .training-card {
        padding: 1.0rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Sections - minimal padding */
    section {
        padding: 1.5rem 0.5rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Page header - more compact */
    .page-header {
        padding: 2rem 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Services grid */
    .services-grid {
        gap: 1rem;
    }

    /* Override inline styles for mobile - grids */
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(auto-fit"],
    [style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Override inline padding for CTA sections */
    [style*="padding: 4rem"],
    [style*="padding: 3rem"] {
        padding: 2rem 1.5rem !important;
    }

    /* Override inline margins */
    [style*="margin-top: 3rem"] {
        margin-top: 1.5rem !important;
    }

    /* Make CTA headings smaller */
    [style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }

    /* Highlight boxes */
    .highlight-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Form elements */
    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .contact-item {
        padding: 1rem;
    }

    /* About page credentials */
    .credential-badge {
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }

    .about-card {
        padding: 2rem;
    }

    /* Testimonials */
    .testimonials-grid {
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .quote-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-container {
        padding: 1.5rem 0.8rem;
    }

    section {
        padding: 1.5rem 0.8rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .service-card,
    .testimonial-card,
    .training-card {
        padding: 1rem;
    }

    [style*="padding: 4rem"],
    [style*="padding: 3rem"],
    [style*="padding: 2rem"] {
        padding: 1.5rem 1rem !important;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .page-header {
        padding: 1.5rem 0.8rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }
}

/* ============================================
   UTILITY CLASSES - Replacing Inline Styles
   ============================================ */

/* Results Overview Grid */
.results-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.results-stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #F0F9F7 0%, #FAFCFC 100%);
    border-radius: 16px;
}

.results-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.results-stat-label {
    color: var(--text);
    font-weight: 600;
}

.results-stat-context {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Service Cards Grid - 3 columns */
.services-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Highlight Boxes Grid - 2 columns */
.highlight-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* CTA Section Styling */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* Case Study Box */
.case-study-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #F0F9F7 0%, #FAFCFC 100%);
    padding: 3rem;
    border-radius: 24px;
}

.case-study-box h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-section h4 {
    margin-bottom: 1rem;
}

.case-study-section p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Results Grid - 3 columns */
.results-grid-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-context {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.industry-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.industry-card h4 {
    margin-bottom: 0.5rem;
}

.industry-card p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Approach/Steps Grid */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.approach-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(13, 124, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    font-weight: 700;
}

.approach-step h3 {
    margin-bottom: 1rem;
}

.approach-step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Available Options Grid */
.options-grid {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.options-grid h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.options-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
}

.option-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Industry Tags Grid */
.industry-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.industry-tag {
    padding: 1rem;
    background: rgba(13, 124, 102, 0.05);
    border-radius: 8px;
    text-align: center;
}

/* Training Benefits Grid */
.training-benefits {
    background: rgba(13, 124, 102, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 3rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.training-benefits h3 {
    margin-bottom: 1rem;
}

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

.benefit-item h4 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
}

/* Contact Why Choose Us Grid */
.contact-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.contact-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 124, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 1.5rem auto;
}

.contact-feature-card h3 {
    margin-bottom: 1rem;
}

.contact-feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* What to Expect Box */
.what-to-expect-box {
    background: rgba(13, 124, 102, 0.05);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    border-left: 4px solid var(--primary);
}

.what-to-expect-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.what-to-expect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.what-to-expect-list li {
    display: flex;
    align-items: start;
    gap: 0.8rem;
}

.what-to-expect-list li .check-icon {
    color: var(--primary);
    font-weight: 700;
}

/* Center Content Wrapper */
.center-content {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive adjustments for utility classes */
@media (max-width: 968px) {

    .services-grid-3col,
    .highlight-grid-2col,
    .results-grid-3col,
    .industries-grid,
    .approach-grid,
    .options-grid-inner,
    .industry-tags-grid,
    .benefits-grid,
    .contact-features-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {

    .results-overview-grid,
    .results-grid-3col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .results-stat-card,
    .result-card {
        padding: 1.5rem;
    }

    .results-stat-number,
    .result-number {
        font-size: 2rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .case-study-box {
        padding: 2rem 1.5rem;
    }
}

/* Form Select Styling */
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: var(--background);
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Form Checkbox Label */
.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-checkbox-label span {
    color: var(--text-light);
}

/* Form Submit Button */
.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* Form Note */
.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.form-note span {
    color: var(--primary);
}