/* Mentor Horizon - Custom Styles */

/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --whatsapp-color: #25d366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-logo {
    max-width: 120px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: white;
    padding: 10px;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Franchise Badges */
.franchise-badges {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.franchise-badge {
    transition: all 0.3s ease;
    border: none;
}

.franchise-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

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

.course-card .card-body {
    padding: 2rem;
}

.course-card .btn {
    transition: all 0.3s ease;
}

.course-card .btn:hover {
    transform: scale(1.05);
}

/* Course Cards */
.course-card.h-100.border {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
    background: white;
}

.course-card.h-100.border:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color) !important;
}

.course-image-container {
    overflow: hidden;
}

.course-image-container img {
    transition: transform 0.3s ease;
}

.course-card:hover .course-image-container img {
    transform: scale(1.05);
}

.course-image-placeholder {
    transition: all 0.3s ease;
}

.course-card:hover .course-image-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%) !important;
}

.course-meta {
    font-size: 0.875rem;
}

.course-meta .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Course Image Overlay */
.course-image-container {
    position: relative;
    overflow: hidden;
}

.course-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.course-image-container img {
    transition: transform 0.3s ease;
}

.course-card:hover .course-image-container img {
    transform: scale(1.05);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.course-features {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.course-features .small {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Enhanced Course Cards */
.course-card.h-100.border.shadow-sm {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
    background: white;
}

.course-card.h-100.border.shadow-sm:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color) !important;
}

/* Course Image Placeholder */
.course-image-placeholder {
    transition: all 0.3s ease;
}

.course-card:hover .course-image-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%) !important;
}

/* Testimonials */
.testimonial-card {
    padding: 0 2rem;
}

.testimonial-card .card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.testimonial-card .card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-author {
    margin-top: 1rem;
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

/* Sticky Navigation for Courses */
.sticky-top-nav {
    position: sticky;
    top: 76px;
    z-index: 1020;
    border-bottom: 1px solid #dee2e6;
}

.sticky-top-nav .nav-link {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

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

/* Franchise Cards */
.franchise-card {
    transition: all 0.3s ease;
    border: none;
}

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

.franchise-card .btn {
    transition: all 0.3s ease;
}

.franchise-card .btn:hover {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

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

/* Contact Details */
.contact-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 2rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mission and Vision Cards */
.mission-card, .vision-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Alert Messages */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 80px;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .franchise-badges {
        padding: 20px;
        margin-top: 2rem;
    }
    
    .testimonial-card {
        padding: 0 1rem;
    }
    
    .sticky-top-nav {
        top: 66px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .franchise-badge {
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .navbar,
    .btn,
    .carousel-control {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* Professional Course Card Styling */
.course-card-professional {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.course-card-professional:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Course Card Header */
.course-card-header {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card-professional:hover .course-card-header img {
    transform: scale(1.08);
}

.course-image-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Rating Badge */
.course-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.course-rating-badge .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Category Badge */
.course-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
}

.course-category-badge .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem !important;
}

/* Course Card Body */
.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-headline {
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Course Info Grid */
.course-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-text strong {
    font-size: 0.95rem;
}

/* Course Stats */
.course-stats {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.stat-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.85rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.stat-item i {
    font-size: 1rem;
}

/* Course Features List */
.course-features-list {
    flex: 1;
}

.course-features-list small {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.6;
}

.course-features-list small i {
    font-size: 1rem;
    width: 1.2rem;
}

/* Course Actions */
.course-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.course-actions .btn {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
}

.course-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
}

.course-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

/* Section Header */
.section-header {
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    color: var(--primary-color);
}

/* Stat Box */
.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
}

/* CTA Section */
.cta-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.cta-section h4 {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.4rem;
}

/* Responsive Course Cards */
@media (max-width: 768px) {
    .course-card-professional {
        margin-bottom: 1rem;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-row {
        gap: 0.5rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .cta-section h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .course-card-header {
        height: 180px;
    }
    
    .course-card-body {
        padding: 1.2rem;
    }
    
    .course-title {
        font-size: 0.95rem;
    }
    
    .course-headline {
        font-size: 0.85rem;
        min-height: 2.6em;
    }
    
    .course-actions .btn-sm {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

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

.modal-header {
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
}

.modal-header .modal-title {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.modal-header .opacity-75 {
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-label {
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.modal-body .form-check {
    margin-bottom: 0.5rem;
}

.modal-body .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.3em;
}

.modal-body .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 70px;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    gap: 0.5rem;
}

.modal-footer .btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #0d47a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body .form-label {
        font-size: 0.9rem;
    }
    
    .modal-header .modal-title {
        font-size: 1.1rem;
    }
}


