/* Академия Нова Стъпка - Основни стилове */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Force center for all containers */
.container > * {
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(52, 152, 219, 0.9)),
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1600&h=900&fit=crop') center/cover;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary:hover {
    background-color: #2980b9;
}

/* Sections */
section {
    padding: 4rem 0;
}

/* Center Fix for Grid Elements */
.features-grid > *,
.courses-grid > *,
.blog-grid > *,
.team-grid > *,
.stats-grid > * {
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Feature Cards */
.features-grid,
.courses-grid,
.blog-grid,
.team-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    margin: 2rem auto 0 auto !important;
    justify-content: center !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.feature-card,
.course-card,
.blog-card,
.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    flex: 0 1 auto !important;
    min-width: 250px !important;
    max-width: 300px !important;
    width: 280px !important;
}

.feature-card:hover,
.course-card:hover,
.blog-card:hover,
.team-member:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3,
.course-card h3,
.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p,
.course-card p,
.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Course Cards */
.course-card img,
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Statistics Section */
.stats-section {
    background-color: var(--bg-light);
}

.stats-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    margin: 0 auto !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 1200px !important;
}

.stat-item {
    flex: 0 1 auto !important;
    min-width: 200px !important;
    max-width: 250px !important;
    width: 220px !important;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.cta-section .btn:hover {
    background-color: var(--bg-light);
}

/* Disclaimer */
.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.disclaimer h4 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.disclaimer p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: var(--bg-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

/* Contact Info */
.contact-info {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Map */
.map-container {
    margin: 3rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Blog Article */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
}

.cookie-content a {
    color: var(--primary-color);
}

/* Team Member */
.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Privacy & Terms */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .courses-grid,
    .blog-grid,
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card,
    .course-card,
    .blog-card,
    .team-member {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .stats-grid {
        justify-content: space-around;
    }
    
    .stat-item {
        flex: 0 1 calc(50% - 1rem);
        min-width: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .feature-card,
    .course-card,
    .blog-card,
    .team-member {
        flex: 0 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .stat-item {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (min-width: 1025px) {
    .features-grid .feature-card {
        flex: 0 1 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
    
    .courses-grid .course-card,
    .blog-grid .blog-card {
        flex: 0 1 calc(33.333% - 1.4rem);
        max-width: calc(33.333% - 1.4rem);
    }
    
    .team-grid .team-member {
        flex: 0 1 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
    
    .stat-item {
        flex: 0 1 calc(25% - 1.5rem);
    }
}
