/* KSA Dynamic Groups - Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.78;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    flex-grow: 1;
    margin: 0 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #005da8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 15px 0;
    margin-top: 15px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
}

/* CTA Button */
.btn-primary {
    background-color: #005da8;
    color: white;
    padding: 12px 30px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #004a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,93,168,0.3);
}

.btn-disabled {
    background-color: #005da8 !important;
    color: white !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.8;
}

.btn-disabled:hover {
    background-color: #005da8 !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8 !important;
}

.social-disabled {
    pointer-events: none !important;
    cursor: default !important;
}

.social-disabled:hover {
    background: rgba(255,255,255,0.1) !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    color: white;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: calc(15vw / 7.68);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: calc(9vw / 7.68);
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-image {
    flex: 0 0 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Who We Are Section */
.who-we-are {
    position: relative;
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.who-we-are h2 {
    color: #005da8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.who-we-are h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.3;
}

.who-we-are p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

/* Client Groups Section */
.client-groups {
    padding: 80px 0;
    background-color: #fff;
}

.client-groups h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    font-weight: 600;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.group-card {
    background: linear-gradient(135deg, #7faed3 0%, #005ca8 100%);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.group-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.group-card ul {
    list-style: none;
    padding: 0;
}

.group-card li {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 10px;
    padding: 5px 0;
}

/* Training Topics Section */
.training-topics {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.training-topics h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.topics-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    overflow-x: auto;
}

.topic-item {
    background: white;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 220px;
    flex: 0 0 220px;
    min-width: 220px;
}

.topic-item:hover {
    border-color: #005da8;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,93,168,0.2);
}

.topic-item h3 {
    font-size: 20px;
    color: #333;
}

/* Testimonials Section */
.testimonials {
    position: relative;
    padding: 100px 0;
    background-color: #fff;
}

.testimonials .section-bg {
    opacity: 0.05;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 60px;
    color: #005da8;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    padding-top: 20px;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #005da8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Client Logos Section */
.client-logos {
    padding: 50px 0 80px;
    background-color: #f8f9fa;
}

.client-logos h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    width: 150px;
    flex: 0 0 auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.logo-item img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    color: #333;
}

.cta-section .section-bg {
    z-index: -1;
}

.cta-section .section-bg img {
    filter: brightness(0.7);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #666;
    opacity: 1;
}

/* Footer */
.footer {
    position: relative;
    padding: 60px 0 30px;
    background-color: #1a1a1a;
    color: white;
}

.footer .footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.footer .footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.social-links a:hover {
    background: #005da8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,93,168,0.3);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-image {
        flex: 1;
        max-width: 100%;
    }

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

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

    .footer-info {
        flex-direction: column;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 750px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        min-height: 500px;
    }

    .section-content h3 {
        font-size: 24px;
    }

    .training-topics h2,
    .testimonials h2,
    .client-logos h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}