/* --- GLOBAL STYLES --- */
:root {
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

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

.dark-section {
    padding: 100px 0;
}

/*.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}*/

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; }

.text-center {
    text-align: center;
}
.text-center h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

/* --- BUTTONS --- */
/*.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}
.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}
.btn-dark {
    background-color: var(--background-color);
    color: var(--text-color);
}*/


/* --- HEADER --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.header-top {
    background-color: rgba(24, 24, 24, 0.7);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info span {
    margin-right: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
}
.social-links a {
    color: var(--text-gray);
    margin-left: 15px;
}
.social-links a:hover {
    color: var(--primary-color);
}
.main-nav {
    background-color: rgba(24, 24, 24, 0.9);
    padding: 15px 0;
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav ul {
    display: flex;
    gap: 30px;
}
.main-nav ul a {
    font-weight: 500;
    position: relative;
    padding: 10px 0;
}
.main-nav ul a.active,
.main-nav ul a:hover {
    color: var(--primary-color);
}
.main-nav ul a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-cta i {
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://placehold.co/1920x1080/444444/ffffff') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 150px;
    position: relative;
}
.hero-content {
    margin-bottom: 50px;
}
.hero-content h1 {
    max-width: 800px;
    margin: 10px auto 30px;
}
.hero-search-bar {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    width: 60%;
    max-width: 700px;
}
.hero-search-bar input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    background-color: #fff;
    color: #333;
}
.hero-search-bar input:focus {
    outline: none;
}
.hero-search-bar button {
    border: none;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.hero-search-bar button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* --- FEATURES SECTION --- */
#features .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -80px; /* Pulls cards up over hero */
    position: relative;
    z-index: 10;
}
.feature-card {
    background-color: var(--surface-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}
.feature-card img {
    border-radius: 5px;
    margin-bottom: 20px;
}
.feature-card h3 {
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-gray);
}

/* --- ABOUT SECTION --- */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    position: relative;
}
.about-image img {
    border-radius: 10px;
}
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}
.experience-badge span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    max-width: 500px;
}
.benefits-list {
    margin-bottom: 30px;
}
.benefits-list li {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.benefits-list i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--surface-bg);
    padding: 40px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-gray);
}
.service-card.active,
.service-card:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-10px);
}
.service-card.active h3 {
    color: var(--primary-color);
}

/* --- VIDEO PROMO SECTION --- */
#video-promo {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://placehold.co/1920x500/555555/ffffff') no-repeat center center/cover;
    padding: 120px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.video-promo-content {
    background: rgba(24, 24, 24, 0.9);
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    margin-right: 80px;
}
.video-promo-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.video-promo-content ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.video-promo-content ul i {
    color: var(--primary-color);
    margin-right: 10px;
}
.play-button {
    width: 90px;
    height: 90px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}
.play-button:hover {
    transform: scale(1.1);
}

/* --- STATS SECTION --- */
#stats {
    background-color: var(--primary-color);
    padding: 60px 0;
}
#stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}
.stat-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}
.stat-item h3 {
    font-size: 3rem;
}
.stat-item p {
    font-weight: 500;
}

/* --- TRAININGS SECTION --- */
.training-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.training-card {
    background-color: var(--surface-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}
.training-info {
    padding: 25px;
}
.training-info h3 {
    margin-bottom: 15px;
}
.training-info a {
    color: var(--primary-color);
    font-weight: 600;
}
.training-info a:hover {
    text-decoration: underline;
}

/* --- EXPERTS SECTION --- */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.expert-card {
    background-color: var(--surface-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.expert-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(232, 0, 68, 0.9);
    padding: 20px;
    transition: bottom 0.4s ease;
}
.expert-card:hover .expert-info {
    bottom: 0;
}
.expert-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.expert-socials a {
    margin-right: 10px;
}
.expert-socials a:hover {
    opacity: 0.8;
}

/* --- CALLBACK SECTION --- */
#callback {
    padding: 100px 0;
    background-color: var(--background-color);
}
.callback-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1300px;
    margin: 0 auto;
}
.callback-form-wrapper {
    background-color: var(--primary-color);
    padding: 60px;
    position: relative;
    z-index: 5;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z" fill="%23FFFFFF" fill-opacity="0.1" fill-rule="evenodd"/></svg>');
}
/*.callback-form-wrapper .subtitle {
    color: rgba(255,255,255,0.8);
}*/
.callback-form-wrapper h2 {
    color: white;
}
.callback-form-wrapper form {
    margin-top: 30px;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.callback-form-wrapper input,
.callback-form-wrapper textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    border-radius: 5px;
    color: white;
    font-family: var(--font-family);
}
.callback-form-wrapper input::placeholder,
.callback-form-wrapper textarea::placeholder {
    color: rgba(255,255,255,0.7);
}
.callback-form-wrapper textarea {
    height: 120px;
    resize: vertical;
    margin-bottom: 20px;
}
.callback-map {
    background: url('https://placehold.co/600x600/eeeeee/181818?text=Map') no-repeat center center/cover;
    position: relative;
}
.office-info {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.office-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.office-details {
    margin-bottom: 20px;
}
.office-details h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.office-details p {
    color: var(--text-gray);
    margin-bottom: 5px;
}
.office-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 15px;
}

/* --- NEWS SECTION --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}
.news-card {
    background-color: var(--surface-bg);
    border-radius: 10px;
    overflow: hidden;
}
.news-image {
    position: relative;
}
.news-date {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    line-height: 1;
    font-weight: 700;
    color: white;
}
.news-date span {
    font-size: 1.5rem;
    display: block;
}
.news-content {
    padding: 40px 25px 25px;
}
.news-category {
    color: var(--text-gray);
    margin-bottom: 10px;
}
.news-content h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.news-content a {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- FOOTER --- */
#footer {
    background-color: var(--primary-dark-color);
    padding-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-col .logo {
    margin-bottom: 20px;
    display: inline-block;
}
.footer-col > p {
    color: var(--text-gray);
    max-width: 300px;
}
.footer-col .social-links {
    margin-top: 20px;
}
.footer-col .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid var(--text-gray);
    border-radius: 50%;
    margin-right: 10px;
}
.footer-col .social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.footer-col ul li {
    margin-bottom: 15px;
}
.footer-col ul li a {
    color: var(--text-gray);
}
.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.instagram-grid img {
    border-radius: 5px;
}
.footer-col p {
    color: var(--text-gray);
}
.footer-col p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 15px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    color: var(--text-gray);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1200px) {
    .callback-map {
        display: none; /* Hide map on smaller screens for simplicity */
    }
    .callback-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .dark-section { padding: 80px 0; }
    
    .main-nav .container ul { display: none; } /* Simplified for demo */
    
    #features .container, .services-grid, .training-grid, .experts-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #about .container { grid-template-columns: 1fr; text-align: center;}
    .about-image { margin-bottom: 80px; }
    .about-image img { margin: 0 auto; }
    .experience-badge { left: 50%; transform: translateX(-50%); }
    .about-content p, .about-content ul { max-width: 100%; margin-left: auto; margin-right: auto;}
    .benefits-list { justify-content: center; }

    #video-promo { flex-direction: column; text-align: center;}
    .video-promo-content { margin: 0 0 40px 0; }
    
    #stats .container { grid-template-columns: repeat(2, 1fr); }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .main-nav .container { justify-content: space-between; }
    .main-nav .nav-cta .btn { display: none; }
    
    #hero { height: auto; padding: 150px 0 100px; }
    .hero-search-bar { width: 90%; }
    
    #features .container { margin-top: 50px; grid-template-columns: 1fr; }
    .services-grid, .training-grid, .experts-grid, .news-grid { grid-template-columns: 1fr; }
    
    #callback { padding: 80px 15px; }
    .callback-form-wrapper { padding: 40px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row input { margin-bottom: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; }
}


/* Articles List Styling */
.articles-list {
    flex: 3; /* Allow articles list to take up more space */
    min-width: 300px; /* Ensure it doesn't get too small */
}

    .articles-list h2 {
        margin-top: 0;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

/* Individual Blog Post Styling */
.blog-post {
    background: #fff; /* White background for posts */
    padding: 20px;
    margin-bottom: 30px; /* Space between posts */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    display: flex; /* Use flexbox for image and content side-by-side on larger screens */
    gap: 20px; /* Space between image and text */
}

    .blog-post img {
        max-width: 250px; /* Set a max width for the image */
        height: auto;
        border-radius: 5px;
        flex-shrink: 0; /* Prevent image from shrinking */
    }

    .blog-post .post-content {
        flex-grow: 1; /* Allow content to fill available space */
    }


    .blog-post h3 {
        margin-top: 0;
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

        .blog-post h3 a {
            
            text-decoration: none;
        }

            .blog-post h3 a:hover {
                color: #007bff; /* Blue on hover */
            }

.post-meta {
    font-size: 0.9rem;
    color: #777; /* Lighter grey for metadata */
    margin-bottom: 15px;
}

.blog-post p {
    margin-bottom: 20px;
}

.read-more {
    display: inline-block; /* Allow padding/margin */
    background: var(--primary-color); /* Blue button */
    color: #fff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}





/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack columns vertically on smaller screens */
        gap: 20px; /* Adjust gap */
        padding: 0 10px;
        margin: 10px auto;
    }

    .articles-list {
        flex: auto; /* Allow items to take full width */
        width: 100%; /* Ensure they take full width */
        min-width: auto; /* Reset min-width */
    }

    .blog-post {
        flex-direction: column; /* Stack image and content vertically */
        gap: 15px; /* Adjust gap */
    }

        .blog-post img {
            max-width: 100%; /* Image takes full width */
            margin-bottom: 0; /* Remove margin below image */
        }
}

@media (max-width: 480px) {

    .blog-post h3 {
        font-size: 1.5rem;
    }
}