/* Custom styles for Knit Courses Landing Page */

:root {
    --primary-color: #d63384;
    --secondary-color: #6f42c1;
    --accent-color: #fd7e14;
    --text-dark: #212529;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Bootstrap fallback styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6, .col-md-6, .col-lg-4 {
    padding: 0 15px;
    flex: 1;
    min-width: 300px;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.py-5 {
    padding: 3rem 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px;
    color: #212529;
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    background-color: #f8f9fa !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #212529 !important;
}

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

.navbar-toggler {
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: var(--gradient);
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="scissors" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M10 10h30v30H10z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23scissors)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1,
.hero-content p,
.hero-content h3 {
    color: white !important;
}

.hero-stats h3,
.hero-stats p {
    color: white !important;
}

/* Section styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529 !important;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d !important;
    margin-bottom: 3rem;
}

/* Ensure all section content is visible */
section h2,
section h3,
section h4,
section p {
    color: #212529 !important;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529 !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

/* Cards */
.card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: white !important;
}

.card * {
    color: #212529 !important;
}

.card-body {
    background: white !important;
}

.card-body h4,
.card-body p,
.card-body li {
    color: #212529 !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--gradient) !important;
    color: white !important;
    border: none;
    padding: 1.5rem;
}

.card-header * {
    color: white !important;
}

/* Benefits icons */
.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white !important;
}

/* Benefits section */
.benefits-section h4 {
    color: #212529 !important;
    font-weight: bold;
}

.benefits-section p {
    color: #6c757d !important;
}

/* Courses section */
.courses-section h4 {
    color: #212529 !important;
    font-weight: bold;
}

.courses-section p {
    color: #495057 !important;
}

/* General section styling */
.py-5 h2,
.py-5 h3,
.py-5 h4,
.py-5 p {
    color: #212529 !important;
}

/* Testimonials */
.testimonial-card {
    background: white !important;
    border-radius: 15px;
    padding: 2rem;
    margin: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card * {
    color: #212529 !important;
}

.testimonial-card p {
    color: #495057 !important;
}

.testimonial-card h6 {
    color: #212529 !important;
    font-weight: bold;
}

.testimonial-card small {
    color: #6c757d !important;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color) !important;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.testimonial-info {
    flex-grow: 1;
}

/* Course price */
.course-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-price-old {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Footer */
.footer-section,
#contact {
    background: #212529 !important;
    color: white !important;
}

.footer-section *,
#contact * {
    color: white !important;
}

#contact {
    background-color: #212529 !important;
}

#contact h5,
#contact h6,
#contact p,
#contact span,
#contact div,
#contact a {
    color: white !important;
}

.footer-section h5,
.footer-section h6,
#contact h5,
#contact h6 {
    color: var(--primary-color) !important;
    margin-bottom: 1rem;
}

.footer-section .social-links a,
#contact .social-links a {
    color: white !important;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.footer-section .social-links a:hover,
#contact .social-links a:hover {
    color: var(--primary-color) !important;
}

.footer-section a,
#contact a {
    color: white !important;
    text-decoration: none;
}

.footer-section a:hover,
#contact a:hover {
    color: var(--primary-color) !important;
}

.footer-section p,
#contact p {
    color: white !important;
}

.footer-section .btn,
#contact .btn {
    border-color: white;
    color: white !important;
    background-color: transparent;
}

.footer-section .btn:hover,
#contact .btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

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

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

/* Additional navbar styles */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contact items */
.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Loading animation - disabled for immediate visibility */
body {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Enhanced card hover effects */
.card:hover .card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Statistics counter animation */
.statistics-counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.statistics-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-section {
        min-height: 75vh;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .course-price {
        font-size: 1.8rem;
    }

    .testimonial-card {
        margin: 0.5rem 0;
        padding: 1.5rem;
    }

    .col-xl-3,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        display: block;
        margin: 0 0 1rem 0 !important;
        width: 100%;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand i {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }

    .working-hours .d-flex {
        flex-direction: column;
        text-align: left;
    }

    .social-links a {
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer-section,
    .btn {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-title {
        color: #000 !important;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f8f9fa;
        --text-light: #adb5bd;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-primary:hover {
        background: #333;
        border-color: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-fade-in-up {
        animation: none;
    }
}