/* Custom styles for WordPress Course Platform */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(45deg, #007bff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-card.featured {
    border: 2px solid #3498db;
}

.course-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #3498db;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.course-header {
    padding: 30px;
    background: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.course-header h3 {
    margin: 0;
    color: #2c3e50;
}

.price {
    display: block;
    font-size: 2rem;
    color: #3498db;
    font-weight: bold;
    margin-top: 10px;
}

.course-body {
    padding: 30px;
}

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

.course-features li {
    margin-bottom: 15px;
    color: #666;
}

.course-features i {
    color: #3498db;
    margin-right: 10px;
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.testimonial-content {
    display: flex;
    align-items: center;
}

.testimonial-image {
    margin-right: 20px;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #3498db;
}

.testimonial-text h5 {
    margin: 0;
    color: #2c3e50;
}

.quote {
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #007bff, #00ff88);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Section Titles */
.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #00ff88);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-light {
    background: white;
    color: #3498db;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

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

    .cta-section .text-center {
        text-align: center !important;
    }

    .cta-section .text-lg-end {
        text-align: center !important;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General spacing and typography */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #2c3e50;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .text-muted {
    color: #a0a0a0 !important;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff !important;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }

    .footer .social-links {
        justify-content: center;
    }
}

/* Course Categories */
.course-categories .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

.course-categories .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 1rem;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 1rem;
    margin: 0 auto;
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease;
    background: #ffffff;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card img {
    border: 3px solid #007bff;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .btn {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-section p {
    animation-delay: 0.2s;
}

.hero-section .btn {
    animation-delay: 0.4s;
}

/* Custom Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Typography */
.display-3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Card Styles */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.list-unstyled li i {
    margin-right: 0.5rem;
    color: #28a745;
}

/* Image Styles */
.rounded-4 {
    border-radius: 1rem !important;
}

/* Background Colors */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Text Colors */
.text-muted {
    color: #6c757d !important;
}

/* Spacing Utilities */
.min-vh-75 {
    min-height: 75vh;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Courses Page Styles */
.courses-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

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

/* Course Cards */
.course-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1;
}

.course-features {
    background: rgba(0, 123, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.course-features h5 {
    color: #2c3e50;
    font-weight: 600;
}

.course-price {
    padding: 1rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 0.5rem;
    text-align: center;
}

.course-price h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Section Backgrounds */
.web-dev-courses {
    background-color: #f8f9fa;
}

/* Course Features Section */
.course-features .feature-card {
    background: #ffffff;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.course-features .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.course-card:nth-child(2) {
    animation-delay: 0.2s;
}

.course-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .course-features {
        padding: 1rem;
    }

    .course-price {
        padding: 0.75rem;
    }

    .course-price h4 {
        font-size: 1.25rem;
    }
}

/* Icon Styles */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 1rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.course-card:hover .icon-box {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 0.15);
}

/* List Styles */
.course-features ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.course-features ul li i {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Button Styles */
.course-card .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.course-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Typography */
.display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Background Colors */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Text Colors */
.text-muted {
    color: #6c757d !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Registration Page Styles */
.register-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

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

.registration-form .card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.registration-form .card:hover {
    transform: translateY(-5px);
}

.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating>label {
    padding: 1rem 0.75rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    color: #3498db;
}

.form-control:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background: #3498db;
    color: white;
}

.cta-section {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .register-hero h1 {
        font-size: 2.5rem;
    }

    .registration-form .card {
        margin: 0 15px;
    }

    .feature-card {
        margin-bottom: 20px;
    }

    .cta-section .text-center {
        text-align: center !important;
    }

    .cta-section .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

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

.contact-form .card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-form .card:hover {
    transform: translateY(-5px);
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-card:hover .icon-wrapper {
    background: #3498db;
    color: white;
}

/* Form Styles */
.form-floating>textarea.form-control {
    height: auto;
    min-height: 150px;
}

.form-floating>textarea.form-control:focus~label,
.form-floating>textarea.form-control:not(:placeholder-shown)~label {
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    color: #3498db;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form .card {
        margin: 0 15px;
    }

    .contact-card {
        margin-bottom: 20px;
    }
}

/* congratulation section */
.congrats-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.congrats-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.congrats-icon {
    width: 80px;
    margin-bottom: 1rem;
}

.congrats-title {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.congrats-message {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
