/* Global Styles */
:root {
    --primary-green: #198754;
    --dark-green: #146c43;
    --light-green: #d1e7dd;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    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;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

p {
    max-width: 700px;
}

.lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(25, 135, 84, 0.3);
}

.btn-outline-success {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(25, 135, 84, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 4rem 0;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-section img {
    transition: transform 0.5s ease;
}

.hero-section img:hover {
    transform: scale(1.03);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 1.5rem;
}

/* Statistics Section */
.stat-item {
    padding: 1rem;
}

.stat-item h2 {
    font-weight: 700;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Disclaimer Box */
.disclaimer-box {
    background-color: #fff3cd;
    border: 2px solid #dc3545;
    border-radius: 12px;
    padding: 1.5rem;
}

.disclaimer-box h6 {
    color: #dc3545;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner a {
    color: var(--light-green);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--white);
}

/* Footer */
footer {
    background-color: #212529;
}

footer h5, footer h6 {
    color: var(--white);
}

.text-light-gray {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-light-gray:hover {
    color: var(--white);
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-green) !important;
}

.contact-info li {
    color: #adb5bd;
}

.contact-info a {
    color: #adb5bd;
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-meta i {
    margin-right: 0.5rem;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--light-green);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 500;
    background-color: var(--bg-light);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-green);
    color: var(--dark-green);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
    border-color: var(--primary-green);
}

/* Course Detail Page */
.course-detail-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 3rem 0;
}

.course-info-box {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.course-features {
    list-style: none;
    padding: 0;
}

.course-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

/* Responsive Design */

/* Mobile: 1 column */
@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .feature-card,
    .service-card,
    .blog-card,
    .team-card {
        margin-bottom: 1rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
    
    p, .lead {
        max-width: 100%;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Desktop: 3 columns, max-width 1200px */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.rounded-4 {
    border-radius: 12px !important;
}

.shadow-lg {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-5px);
}

/* Loading Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background-color: var(--light-green);
    color: var(--dark-green);
}

/* Badge */
.badge {
    border-radius: 8px;
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: var(--primary-green);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}