/* Custom CSS for Skill Finesse Website */

:root {
    --primary-color: #00a651;
    --secondary-color: #333333;
    --light-color: #f8f9fc;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* Global Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #008c44;
}

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

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

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navbar styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

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

.nav-link {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.btn-join {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-top: 0;
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    bottom: 30%;
    z-index: 2;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.btn-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s;
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-hero {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s;
}

.btn-outline-hero:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Sections */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Features */
.features-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.feature-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-color);
    transition: height 0.5s ease;
}

.feature-box:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Course Cards */
.courses-section {
    padding: 80px 0;
}

.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.course-body {
    padding: 25px;
}

.course-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 166, 81, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.course-card:hover .course-title {
    color: var(--primary-color);
}

.course-info {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.course-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.course-rating {
    color: #FFC107;
}

.btn-view-all {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-view-all:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 30px 0 30px 30px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
}

.about-title::after {
    content: '';
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 30px;
}

.about-text {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.about-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-points li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.about-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.btn-about {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-about:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-body {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 166, 81, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-text {
    color: #666;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: padding-left 0.3s ease;
}

.blog-link::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.blog-link:hover {
    padding-left: 5px;
}

.blog-link:hover::after {
    margin-left: 10px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-info {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    height: 100%;
    color: var(--white);
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.contact-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background-color: var(--white);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--white);
}

.contact-text {
    flex: 1;
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 70px;
}

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

.footer-logo img {
    max-height: 50px;
}

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

.footer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-contact li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-phone,
.footer-email {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Payment Section */
.payment-section {
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
}

.payment-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-title i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.payment-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.payment-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.payment-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.payment-image:hover {
    transform: scale(1.01);
}

.security-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
}

.security-info i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.security-info .mx-2 {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Payment Section */
@media (max-width: 991px) {
    .payment-section {
        padding: 20px;
    }
    
    .payment-container {
        padding: 12px;
    }
    
    .payment-title {
        font-size: 0.95rem;
    }
    
    .security-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .payment-section {
        padding: 18px;
    }
    
    .payment-container {
        padding: 10px;
    }
    
    .payment-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .security-info {
        font-size: 0.7rem;
    }
}

@media (max-width: 575px) {
    .payment-section {
        padding: 15px;
    }
    
    .payment-container {
        padding: 8px;
    }
    
    .payment-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .security-info {
        font-size: 0.65rem;
        margin-top: 8px;
    }
}

@media (max-width: 400px) {
    .payment-section {
        padding: 12px;
    }
    
    .payment-container {
        padding: 6px;
    }
    
    .payment-title {
        font-size: 0.8rem;
    }
    
    .security-info {
        font-size: 0.6rem;
    }
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-close {
    color: var(--white);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        padding: 30px 0;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 10px 0;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 575px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .btn-hero, .btn-outline-hero {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .btn-outline-hero {
        margin-left: 5px;
    }
}
