/* ===================================
    Crafto - Elearning
====================================== */


/* font */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Fjalla+One&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Fjalla+One&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* variable */

:root {
    --base-color: #efa400;
    --dark-gray: #313e3b;
    --medium-gray: #828c8a;
    --yellow: #efa400;
    --extra-medium-gray: #e4e4e4;
    --alt-font: 'Roboto Condensed', sans-serif;
    --primary-font: 'Roboto Condensed', sans-serif;
}


/* reset */

body {
    font-size: 17px;
    line-height: 30px;
    overflow-x: hidden;
}

a:hover {
    color: var(--dark-gray);
}

.top-25 {
    top: 25%;
}

.mt-minus-12 {
    margin-top: -12%;
}

.mt-minus-1 {
    margin-top: -1%;
}

.left-minus-200px {
    left: -200px;
}

.mt-minus-4 {
    margin-top: -4px;
}

.bottom-minus-320px {
    bottom: -320px;
}

.terms-condition .box:before {
    border-color: #e4e4e4;
    background-color: var(--white);
    top: 1px;
}

.terms-condition .box:after {
    top: 5px;
}


/* border color */

.border-color-transparent-white-very-light {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.border-color-transparent-dark-very-light {
    border-color: var(--extra-medium-gray) !important;
}


/* bg gradient color */

.bg-gradient-deep-zuccini-green {
    background-image: linear-gradient(to right bottom, #19493e, #164339, #143e34, #113830, #0f332b);
}

.bg-gradient-aztec-green {
    background-image: linear-gradient(to right bottom, #313e3b, #2e3b38, #2c3835, #293532, #27322f);
}

.bg-gradient-tranquil-white {
    background-image: linear-gradient(to bottom, #ffffff, #f7f9f9, #f3f6f6, #eff3f3, #ecf1f1);
}

.bg-yellow {
    background-color: var(--yellow);
}

.bg-tranquil {
    background-color: #f3f8f8;
}

.bg-gradient-dark-transparent {
    background: -webkit-gradient(linear, left bottom, left top, color-stop(7%, #36332e), to(transparent));
    background: linear-gradient(to top, #262a29 0%, transparent 100%);
}


/* header */

.navbar .navbar-nav .nav-link {
    font-size: 28px;
    font-weight: 800;
}

header .navbar-brand img {
    max-height: 75px;
}

header .navbar-brand {
    padding: 25px 0;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu {
    width: 335px;
    padding: 25px 35px;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a {
    padding: 15px 30px 21px 0;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a p {
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a span {
    font-size: 17px;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li a i {
    color: var(--dark-gray);
    font-size: 34px;
}

.navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu li.active>a {
    opacity: 0.7;
}


/* icon */

.icon-extra-medium {
    font-size: 22px;
}

.video-icon-large .video-icon {
    width: 70px;
    height: 70px;
    font-size: 18px;
}

.video-icon-large .video-icon .video-icon-sonar .video-icon-sonar-bfr {
    width: 120px;
    height: 120px;
}

.video-icon-large .video-icon .video-icon-sonar .video-icon-sonar-afr {
    width: 90px;
    height: 90px;
}

.medium-icon li,
.small-icon li {
    margin: 0 3px;
}


/* review  */

.review-star-icon i {
    letter-spacing: 1px;
}


/* btn */

.btn {
    font-family: var(--primary-font);
    text-transform: none;
    letter-spacing: 0;
}

.btn.btn-switch-text.btn-extra-large>span {
    padding: 15px 38px;
    font-size: 17px;
}

.btn.btn-switch-text.btn-large>span {
    padding: 13px 32px;
    font-size: 15px;
}

.btn.btn-switch-text.btn-medium>span {
    padding: 12px 30px;
    font-size: 14px;
}

.btn.btn-base-color {
    color: var(--dark-gray);
}

.btn.btn-base-color:hover,
.btn.btn-box-shadow.btn-base-color:hover {
    background-color: var(--base-color);
    color: var(--dark-gray);
}

.btn.btn-link {
    padding: 0 0 2px;
}


/* heading */

h2 {
    line-height: 3.2rem;
}


/* tab */

.tab-style-04 .nav-tabs .nav-item {
    padding: 0;
    width: 25%;
}

.tab-style-04 .nav-tabs .nav-item .nav-link {
    color: var(--medium-gray);
}

.tab-style-04 .nav-tabs .nav-item .nav-link .tab-border {
    height: 3px;
}

.tab-style-04 .nav-tabs .nav-item .nav-link.active {
    font-weight: 600;
    border: 0;
    outline: 0;
}

.tab-style-04 .nav-tabs .nav-item .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
}


/* accordion */

.accordion-style-04 .accordion-item .accordion-body {
    padding: 0 35px 25px;
}

.accordion-style-04 .accordion-item .accordion-collapse {
    margin-top: -1px;
}


/* progress bar */

.progress-bar-style-02 .progress {
    height: 10px;
}


/* page title */

.page-title-extra-small h2 {
    font-size: 3.75rem;
    line-height: 3.75rem;
}

.page-title-extra-small h1 {
    font-size: 30px;
    font-weight: 500;
}


/* pages */

.contact-form-style-03>div {
    border-radius: 6px 0 6px 0;
}


/* newsletter style 02 */

.newsletter-style-02 input {
    padding-right: 100px !important;
    font-size: 14px;
}


/* footer */

footer {
    padding-bottom: 30px;
}

footer .footer-logo img {
    max-height: 75px;
}

.footer-dark,
.footer-dark .newsletter-style-02 input,
.footer-dark p,
.footer-dark a {
    color: #fff;
}

.footer-dark a:hover {
    color: var(--base-color);
}

.footer-dark .newsletter-style-02 input::placeholder {
    color: var(--medium-gray) !important;
    opacity: 1;
    /* Firefox */
}

.footer-dark .newsletter-style-02 input:-ms-input-placeholder {
    color: var(--medium-gray) !important;
}

.footer-dark .newsletter-style-02 input::-ms-input-placeholder {
    color: var(--medium-gray) !important;
}

.footer-dark .elements-social .light li a:hover {
    color: var(--white);
    opacity: .5;
}

.footer-dark .small-icon li {
    margin: 0 7px;
}

.footer-navbar li {
    line-height: normal;
}

footer ul li {
    margin-bottom: 2px;
}


/* media query responsive */

@media (max-width: 1399px) {
    .accordion-style-06 .accordion-item {
        padding-left: 35px;
    }
}

@media (max-width: 1199px) {
    .navbar .navbar-nav .nav-link {
        font-size: 16px;
    }
    .navbar .navbar-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
    }
    .team-style-05 .social-icon a {
        margin: 0 10px;
    }
}

@media (max-width: 991px) {
    .widget-text {
        color: var(--dark-gray);
    }
    .navbar .navbar-nav .nav-link {
        font-size: 18px;
    }
    .team-style-05 .social-icon a {
        margin: 0 10px;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon .dropdown-menu {
        padding: 0 15px 6px 15px;
    }
}

@media (max-width: 767px) {
    .accordion-style-05 .accordion-item {
        padding: 20px 35px 22px 55px;
    }
    .contact-form-style-03>div {
        border-radius: 6px;
    }
    .tab-style-04 .nav-tabs .nav-item:last-child {
        margin-bottom: 0;
    }
    .accordion-style-04 .accordion-item .accordion-body {
        padding: 0 25px 25px;
    }
    .tab-style-04 .nav-tabs .nav-item {
        width: auto;
    }
}

@media (max-width: 575px) {
    .accordion-style-06 .accordion-item {
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .accordion-style-06 .accordion-item.active-accordion {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .accordion-style-05 .accordion-item {
        padding: 17px 20px 17px 45px;
    }
    .accordion-style-05 .accordion-item .accordion-body {
        padding-right: 15px;
    }
    .accordion .accordion-item .accordion-header .accordion-title {
        line-height: 28px;
    }
}

#hero-slider .carousel-item {
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
}

#hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#hero-slider .carousel-item>.container {
    position: relative;
    z-index: 2;
}

.text-overlay-bg {
    background-color: rgba(0, 0, 0, 0.55);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
}

.animation-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.motion-left-right {
    animation: moveLeftRight 5s ease-in-out infinite;
}

@keyframes moveLeftRight {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
}


/* Carousel Controls */

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}


/* ✅ Tablet & Mobile Responsive Adjustments */

@media (max-width: 992px) {
    #hero-slider .carousel-item {
        height: 90vh;
    }
    .text-overlay-bg {
        padding: 1.5rem;
        max-width: 100%;
        text-align: center;
    }
    .carousel-item img.motion-left-right {
        width: 70%;
        margin: 20px auto 0;
    }
    .fs-1 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    #hero-slider .carousel-item {
        height: 90vh;
        background-position: center;
    }
    .text-overlay-bg {
        padding: 1.2rem;
    }
    .carousel-item img.motion-left-right {
        width: 80%;
    }
    .btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}

@media (max-width: 576px) {
    #hero-slider .carousel-item {
        height: 100vh;
    }
    .text-overlay-bg {
        padding: 1rem;
    }
    .carousel-item img.motion-left-right {
        width: 90%;
    }
    .fs-1 {
        font-size: 1.5rem !important;
    }
}


/* HERO section base */

.hero-section {
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 120px 0;
    min-height: 70vh;
}

.background-overlay {
    background-image: url('images/vertical-line-bg-small.webp');
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    opacity: 0.3;
}

.particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-text-block {
    position: relative;
    z-index: 3;
}

.text-overlay-bg h1 {
    font-size: 48px;
    line-height: 1.2;
}

.text-overlay-bg h2 {
    font-size: 22px;
    margin-top: 15px;
}


/* Responsive adjustments */

@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: 60vh;
    }
    .text-overlay-bg h1 {
        font-size: 36px;
    }
    .text-overlay-bg h2 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: auto;
        background-position: top center;
    }
    .text-overlay-bg h1 {
        font-size: 28px;
    }
    .text-overlay-bg h2 {
        font-size: 16px;
    }
}

.hero-section {
    background-color: #1a1a1a;
    /* fallback if image fails */
}

.ls-2px {
    letter-spacing: 2px;
}

.animation-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.motion-left-right {
    animation: motionLR 4s ease-in-out infinite;
}

@keyframes motionLR {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

.text-overlay-bg span,
.text-overlay-bg div {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

.carousel-item {
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-item .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .carousel-item {
        height: auto !important;
        padding: 60px 0;
    }
    .carousel-item .row {
        flex-direction: column;
    }
    .pt-100px {
        padding-top: 100px !important;
    }
}

.animation-float {
    animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.motion-left-right {
    animation: floatLR 5s ease-in-out infinite;
}

@keyframes floatLR {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(15px);
    }
}

.text-overlay-bg {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
}

@media (max-width: 767.98px) {
    #hero-slider .carousel-item {
        height: auto;
        padding-top: 80px;
        /* Offset for fixed header */
    }
    .text-overlay-bg {
        padding: 15px;
    }
}


/* Floating animation */

.animation-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}


/* Left to right motion */

.motion-left-right {
    animation: motionLR 4s ease-in-out infinite alternate;
}

@keyframes motionLR {
    0% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(5px);
    }
}


/* Image responsiveness */

@media (max-width: 768px) {
    .atropos-inner img {
        max-width: 90%;
        height: auto;
    }
}

.navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
}

.offcanvas {
    background-color: #1f2b28;
    /* dark background */
}

.offcanvas .nav-link {
    padding: 12px 10px;
    font-size: 18px;
    border-bottom: 1px solid rgba(192, 181, 181, 0.1);
}

.offcanvas .nav-link:hover {
    color: #ffc107 !important;
}

.offcanvas .offcanvas-title {
    font-size: 22px;
    font-weight: 600;
}

.header-gradient {
    background: linear-gradient(to right, rgba(138, 136, 136, 0.134), rgba(48, 48, 48, 0.5));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1030;
}

.navbar-nav .nav-link {
    font-size: 15px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}


/* Base logo height */

.navbar-brand img {
    max-height: 55px;
    transition: all 0.3s ease;
}


/* General navbar padding */

.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
    transition: all 0.3s ease;
}


/* Mobile-specific adjustments */

@media (max-width: 767.98px) {
    .navbar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .navbar-brand img {
        max-height: 55px !important;
        /* Smaller logo on mobile */
    }
    .nav-link {
        font-size: 14px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    .offcanvas-header {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .offcanvas-title {
        font-size: 16px !important;
    }
}

.fade-text {
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.excavator-img {
    height: 350px;
    /* Fixed height for all */
    object-fit: cover;
    /* Crop and keep proportions */
    width: 100%;
    /* Full width of card */
    border-radius: 8px;
    /* Optional: rounded corners */
}


/* Floating WhatsApp Button */

.whatsapp-float {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-icon {
    line-height: 1;
}


/* Hover effect for larger screens */

@media (hover: hover) {
    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}


/* ========== Mobile (max-width: 767px) ========== */

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}


/* ========== Tablet (min-width: 768px and max-width: 1199px) ========== */

@media (min-width: 768px) and (max-width: 1199px) {
    .whatsapp-float {
        bottom: 30px;
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}


/* ========== Desktop (min-width: 1200px) ========== */

@media (min-width: 1200px) {
    .whatsapp-float {
        bottom: 40px;
        left: 40px;
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}


/* ===== Base Styles ===== */

#scrollToTopBtn {
    position: fixed;
    display: none;
    /* hidden by default */
    justify-content: center;
    align-items: center;
    background-color: #f2b734;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn i {
    line-height: 1;
}


/* Hover effect on larger screens */

@media (hover: hover) {
    #scrollToTopBtn:hover {
        background-color: #333;
        transform: scale(1.1);
    }
}


/* ===== Mobile (max-width: 767px) ===== */

@media (max-width: 767px) {
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}


/* ===== Tablet (768px–1199px) ===== */

@media (min-width: 768px) and (max-width: 1199px) {
    #scrollToTopBtn {
        bottom: 30px;
        right: 30px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}


/* ===== Desktop (1200px and up) ===== */

@media (min-width: 1200px) {
    #scrollToTopBtn {
        bottom: 40px;
        right: 40px;
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}

.elegant-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.elegant-filters .filter-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2a2a2a, #444);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.elegant-filters .filter-btn:hover {
    background: linear-gradient(135deg, #ffb300, #ffc400);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.4);
}

.elegant-filters .nav-item.active .filter-btn,
.elegant-filters .filter-btn.active {
    background: linear-gradient(135deg, #ffb300, #ffc400);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}

@media (max-width: 768px) {
    .elegant-filters {
        gap: 8px;
    }
    .elegant-filters .filter-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}