/* ================================================
   MELITALIA ACADEMY HOMEPAGE STYLES
   ================================================
   Author: Melitalia Academy Development Team
   Version: 2.0.0 (Optimized)
   Description: Main stylesheet global styles
   for the Melitalia Academy website.
   ================================================ */

/* ===== CSS RESET & ROOT VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-green: #2e8b57;
    --primary-orange: #f59e0b;
    --primary-red: #dc3545;

    /* Secondary Colors */
    --secondary-green: #22c55e;

    /* Accent Colors */
    --accent-red: #dc3545;
    --accent-orange: #f59e0b;
    --accent-pink: #f472b6;
    --accent-green: #16a34a;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-gradient: #f0fdf4;

    /* Override Bootstrap primary colors with custom green */
    --bs-primary: #2e8b57;
    --bs-primary-rgb: 46, 139, 87;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 15px;
}

/* Global Reset */
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fs-2-5 {
    font-size: 2.5rem !important;
}

/* ===== BOOTSTRAP PRIMARY COLOR OVERRIDES ===== */
.text-primary {
    color: var(--primary-green) !important;
}

.cta-title {
    color: white !important;
}

.bg-primary {
    background-color: var(--primary-green) !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.border-primary {
    border-color: var(--primary-green) !important;
}

.badge.bg-primary {
    background-color: var(--primary-green) !important;
}

/*===========================
  TITLE STYLES
  ===========================*/

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.link-secondary {
    transition: var(--transition);
}

.link-secondary:hover {
    transition: var(--transition);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.navbar-nav .nav-link {
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
    font-weight: 600;
    transition: var(--transition);
}

.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
    transition: var(--transition);
}

.btn-custom-width {
    width: 100%;
}

@media (min-width: 992px) {
    .btn-custom-width {
        width: 300px;
    }
}

/* ===== Title Responsive adjustments ===== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.7rem;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 85%;
    }

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

    .start-journey.cta-section .cta-title {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }
    .start-journey.cta-section .cta-stats {
        font-size: 0.85rem !important;
    }

    .start-journey.cta-section .btn-primary-custom {
        font-size: 0.9rem !important;
    }
}

/*===========================
  BASE STYLES
  ===========================*/
/* ================================
   GLOBAL OVERFLOW FIX
   ================================ */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.navbar-light .navbar-nav .nav-item .nav-link {
    cursor: pointer;
}

@media (max-width: 768px) {
    .language-dropdown {
        margin-left: 1rem;
        margin-bottom: 1rem;
        margin-right: 1rem;
    }
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    position: relative;
}

/* Container Utilities */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/*===========================
  BUTTON STYLES
  ===========================*/

.btn-primary-custom {
    background: var(--primary-green);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 5vw, 30px);
    font-size: clamp(0.875rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: fit-content;
    min-height: 44px; /* Minimum touch target size for mobile */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
}

.btn-primary-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: var(--transition);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    background: #22543d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary-custom:hover {
        transform: none; /* Disable transform on touch devices */
    }

    .btn-primary-custom:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Mobile devices (smartphones) */
@media (max-width: 576px) {
    .btn-primary-custom {
        padding: 12px 24px;
        font-size: 0.875rem;
        letter-spacing: 0.3px;
        width: 100%; /* Full width on small screens */
        max-width: 100%;
    }
}

/* Tablets */
@media (min-width: 577px) and (max-width: 768px) {
    .btn-primary-custom {
        padding: 11px 26px;
        font-size: 0.9375rem;
    }
}

/* Small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    .btn-primary-custom {
        padding: 12px 28px;
        font-size: 0.9375rem;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .btn-primary-custom {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 0.8125rem;
        letter-spacing: 0.25px;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .btn-primary-custom,
    .btn-primary-custom::before {
        transition: none;
    }

    .btn-primary-custom:hover {
        transform: none;
    }
}

/*===========================
  BREADCRUMB STYLES
  ===========================*/

.breadcrumb-nav {
    background: rgba(254, 255, 253, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-nav a {
    color: rgba(17, 24, 39, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.breadcrumb-nav .mx-2 {
    color: #000;
}

.breadcrumb-nav a:hover {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

.breadcrumb-nav .current {
    color: rgba(17, 24, 39, 0.9);
    font-weight: 600;
}

.breadcrumb-nav {
    text-wrap: auto;
}
/* Tablet and below */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 40px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        border-radius: 30px;
        margin-bottom: 1.5rem;
    }

    .breadcrumb-nav .mx-2 {
        margin: 0 0.25rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .breadcrumb-nav {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
figure.snip1157 {
    font-family: "Raleway", Arial, sans-serif;
    position: relative;
    overflow: hidden;
    margin: 10px;
    min-width: 220px;
    max-width: 310px;
    width: 100%;
    color: #333;
    text-align: left;
    box-shadow: none !important;
}
figure.snip1157 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
    transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
figure.snip1157 .color-yellow {
    color: #fbbf24 !important;
}
figure.snip1157 img {
    max-width: 100%;
    vertical-align: middle;
    height: 60px;
    width: 60px !important;
    border-radius: 50%;
}
figure.snip1157 blockquote {
    display: block;
    border-radius: 8px;
    position: relative;
    background-color: #e4fcec;
    padding: 25px 50px 30px 50px;
    font-size: 0.95em;
    font-weight: 500;
    margin: 0;
    line-height: 1.6em;
    font-style: italic;
}
figure.snip1157 blockquote:before,
figure.snip1157 blockquote:after {
    font-family: "FontAwesome";
    content: "\201C";
    position: absolute;
    font-size: 25px;
    opacity: 0.3;
    font-style: normal;
}
figure.snip1157 blockquote:before {
    top: 25px;
    left: 20px;
}
figure.snip1157 blockquote:after {
    content: "\201D";
    right: 20px;
    bottom: 18px;
}
figure.snip1157 .arrow {
    top: 100%;
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #fafafa;
    margin: 0;
    position: absolute;
}
figure.snip1157 .author {
    text-transform: uppercase;
}
figure.snip1157 .author h5 {
    opacity: 0.8;
    margin: 0;
    font-weight: 800;
    font-size: 14px;
}

#testimonialCarousel .owl-carousel .owl-item img {
    height: 60px !important;
    width: 60px !important;
}
.whatsapp-btn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #fff;
    border-radius: 50%;
    z-index: 1050;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: float 2.5s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.2) rotate(-10deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 576px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 35px;
        right: 15px;
    }
}

.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.subscription-container {
    display: flex; /* Aligns input and button side-by-side */
    width: 600px; /* Adjust the width as needed */
    background-color: #fff; /* Light background for the container/input area */
    border-radius: 8px; /* Rounded corners for the whole bar */
    overflow: hidden; /* Ensures the contents stay within the rounded corners */
    padding: 4px; /* A small inner padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.subscription-container .email-input {
    flex-grow: 1; /* Allows the input to take up the remaining space */
    padding: 10px 15px;
    border: none; /* Remove default border */
    background: transparent; /* Makes the background blend with the container */
    font-size: 16px;
    font-weight: 500;
    color: #333;
    outline: none; /* Removes the focus outline */
}

/* Style for the placeholder text */
.subscription-container .email-input::placeholder {
    color: #888;
}

.subscription-container .subscribe-button {
    background-color: var(--primary-green); /* Dark blue button color */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px; /* Slightly rounded corners for the button */
    /* Add a small margin to separate it from the input visualy inside the container */
    margin-right: 4px;
    transition: background-color 0.3s ease;
}

.subscription-container .subscribe-button:hover {
    background-color: var(--accent-green); /* Slightly darker shade on hover */
    transition: background-color 0.3s ease;
}

.course-instructor a:hover {
    color: var(--primary-green);
    transition: var(--transition);
}
.course-instructor a {
    transition: var(--transition);
    color: #000;
}

.contact-social-media-section a {
    width: 44px;
    height: 44px;
}

.faq-accordion .accordion-button i {
    color: #2e8b57;
}
.btn-more-details {
    border-radius: 12px;
}
.btn-enroll {
    background: linear-gradient(135deg, #2e8b57, #22c55e);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
    color: white;
}

.meta-bg {
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
}

/* POST CONTENT */
[data-layout-mode="dark"] .editor-content {
    color: white !important;
}

/* Override inline or embedded black text styles */
[data-layout-mode="dark"] .editor-content * {
    color: white !important;
    line-height: 1.5;
}

.editor-content * {
    line-height: 1.5;
}

/* Optional: catch common "black" values */
[data-layout-mode="dark"] .editor-content *[style*="color:#000"] {
    color: white !important;
}
.editor-content *[style*="color:#000"] {
}

[data-layout-mode="dark"] .editor-content *[style*="color:#fff"] {
    color: #fff !important;
}
.editor-content *[style*="color:#fff"] {
    color: #000 !important;
}

[data-layout-mode="dark"] .editor-content *[style*="color:#000000"] {
    color: #fff !important;
}
.editor-content *[style*="color:#000000"] {
    color: #000 !important;
}

[data-layout-mode="dark"] .editor-content *[style*="color:rgb(0,0,0)"] {
    color: #fff !important;
}
.editor-content *[style*="color:rgb(0,0,0)"] {
    color: #000 !important;
}

[data-layout-mode="dark"] .editor-content *[style*="color:black"] {
    color: #fff !important;
}

.editor-content *[style*="color:black"] {
    color: #000 !important;
}

.editor-content h6,
.editor-content .h6,
.editor-content h5,
.editor-content .h5,
.editor-content h4,
.editor-content .h4,
.editor-content h3,
.editor-content .h3,
.editor-content h2,
.editor-content .h2,
.editor-content h1,
.editor-content .h1 {
    margin-bottom: 1.25rem !important;
}

.editor-content h1:not(:first-child),
.editor-content .h1:not(:first-child),
.editor-content h2:not(:first-child),
.editor-content .h2:not(:first-child),
.editor-content h3:not(:first-child),
.editor-content .h3:not(:first-child),
.editor-content h4:not(:first-child),
.editor-content .h4:not(:first-child),
.editor-content h5:not(:first-child),
.editor-content .h5:not(:first-child),
.editor-content h6:not(:first-child),
.editor-content .h6:not(:first-child) {
    margin-top: 2.5rem !important;
}

.editor-content ol li:not(:last-child),
.editor-content ul li:not(:last-child) {
    margin-bottom: 0.75rem !important;
}

.editor-content ol li[data-list="bullet"] {
    list-style-type: disc !important;
}

.editor-content ol li.ql-indent-1 {
    margin-left: 2rem;
}

.editor-content ol li[data-list="bullet"].ql-indent-1 {
    list-style: circle !important;
}

[data-layout-mode="dark"] .editor-content table tr:first-child {
    background-color: #292929;
}

.editor-content table tr:first-child {
    background-color: #ebebeb;
}

.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.editor-content table td.ql-align-center {
    text-align: center;
}

.editor-content table td,
.editor-content table th {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.editor-content ol,
.editor-content ul,
.editor-content p,
.editor-content li,
.editor-content blockquote,
.editor-content pre,
.editor-content code,
.editor-content table,
.editor-content th,
.editor-content td,
.editor-content span,
.editor-content div {
    font-size: 16px;
}

.prev-next-buttons {
    position: fixed;
    top: calc(50% - 200px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1000;
    height: 400px;
    pointer-events: none; /* allows child buttons to control interactivity */
}

.start-journey.cta-section {
    padding: 5rem 0;
    background: var(--primary-green);
    position: relative;
    overflow: hidden;
}

.start-journey.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>')
        repeat;
    opacity: 0.5;
}

.start-journey .stat-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    color: var(--primary-green);
}

.start-journey .stat-badge:hover {
    transform: translateY(-2px);
}

.start-journey .text-cta {
    color: var(--primary-green);
    font-weight: 400;
    font-size: 1.1rem;
}

.start-journey.cta-section .btn-primary-custom {
    background: white;
    color: var(--primary-green);
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

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