@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #9597d3, #43b3e0);
}

.service-container {
    color: white;
    text-align: center;
    margin-top: 2%;
}


.category-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 1%;
    overflow-x: auto; /* enable horizontal scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    margin: 2% 10%;
}

/*.category-buttons {*/
/*    display: flex;*/
/*    flex-wrap: nowrap;        !* prevent wrapping *!*/
/*    overflow-x: auto;         !* enable horizontal scroll *!*/
/*    -webkit-overflow-scrolling: touch; !* smooth scrolling on iOS *!*/
/*    gap: 10px;                !* spacing between buttons *!*/
/*    padding: 8px 0;*/
/*}*/

.category-buttons::-webkit-scrollbar {
    display: none; /* hide scrollbar for cleaner look */
}

.rounded-button {
    border-radius: 20px;
    background: #2196f3;
    color: white;
    padding: 8px 15px;
    white-space: nowrap; /* prevent text wrapping */
    flex-shrink: 0; /* don’t shrink buttons */
}

.category-item {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 9999px;
    background: #6c63ff;
    color: #fff;
    width: fit-content;
    margin: 10px 0;
}

.category-item:hover {
    background-color: gold;
}

.category-item.active {
    background-color: gold;
    font-weight: bold;
    color: #6c63ff;
}

.saas {
    margin: 5% 15% 0;
}

.layout {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.two-up-arrows {
    width: 50px;
    height: 50px;
    background: #6c63ff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.3rem;
    position: relative;
}

.arrow-1 {
    top: 20px;
    position: relative;
}

.arrow-2 {
    bottom: 10px;
    position: relative;
}

.product-section {
    background: white;
    padding: 6% 5%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: justify;
    color: #00000078;
}

.product-title {
    color: #2c3e50;
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
}

.product-subtitle {
    color: rgba(0, 0, 0, 0.25);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.toggle-plans-btn {
    background-color: gold;
    color: white;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 9999px;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.toggle-plans-btn:hover {
    background-color: #6c63ff;
}

.card-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 70%;
}

.card {
    position: relative;
    border-radius: 18px;
    min-height: 120px;
    padding: 10px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* clip content if needed */
}

/* White background layer */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px 5px 5px;
}

.card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #777;
}

.card p {
    font-weight: 600;
    margin: 8px 0 0;
    font-size: 1.2rem;
    color: #222;
}

.btn {
    margin-top: 10px;
    display: inline-block;
    background: #6c63ff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.5rem;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover {
    background: #564fd8;
}

/* Continuous wave behind all cards */
.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.wave {
    width: 100%;
    height: 100%;
    border-radius: 18px; /* rounded corners */
    pointer-events: none;

    /* Base opacity */
    opacity: 0.3;

    /*!* Vertical repeating mask *!*/
    /*mask-image: repeating-linear-gradient(*/
    /*        to bottom,*/
    /*        rgba(0, 0, 0, 1) 0px,*/
    /*        rgba(0, 0, 0, 1) 159px,*/
    /*        rgba(0, 0, 0, 0) 160px,*/
    /*        rgba(0, 0, 0, 0) 178px*/
    /*);*/
    mask-repeat: repeat-y;

    -webkit-mask-repeat: repeat-y;

    /* Horizontal left-to-right opacity gradient */
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    -webkit-mask-composite: destination-in; /* ensures mask + gradient combine */
    mask-composite: intersect;
}

/**/

/* Container for the pricing section */
.pricing {
    padding: 50px 20px;
    background: linear-gradient(to bottom, #DDE6EE 0%, #DDE6EE 65%, #183D71 65%, #183D71 100%);
    font-family: Arial, sans-serif;
}

.pricing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-content h1 {
    font-family: sans-serif;
    font-weight: bold;
    color: black;
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline;
}

.pricing-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.25);
    margin: 0 0 8% 0;
}

.pricing-next-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* space between text and icon */
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Fix PrimeIcons alignment if needed */
.pricing-next-button .pi {
    font-size: 1.2rem;
    vertical-align: middle;
}

.header-panel {
    position: relative;
    align-self: center;
    left: 40%;
}
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    padding: 0px 0;
    transition: all 0.3s ease-in-out;
}

/* When scrolling */
.nav-overlay.scrolled {
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 0;
}
/* Carousel wrapper */
.pricing-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carousel navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6c63ff !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 18px !important;
    cursor: pointer;
    z-index: 10;
    margin: 10px;
}

/* Place arrows beside the grid */
.left-btn {
    left: -20px; /* just outside first card */
    transform: translateY(-50%);
}

.right-btn {
    right: -20px; /* just outside last card */
    transform: translateY(-50%);
}

/* Hover effect */
.carousel-btn:hover {
    background: #0f2c55 !important;
}

/* Grid container */
.grid-parent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    justify-content: center;
    margin-top: 2%;
    max-width: 90%;
    position: relative;
}

/* Card styling */
.pricing-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20% 10%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Plan title */
.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-left: 20px;
    color: rgba(0, 0, 0, 0.66);
    text-align: left;
}

/* Price box */
.price-box {
    text-align: left;
}

.per-month {
    font-size: 5px;
    color: rgba(0, 0, 0, 0.2);
}

.price-value {
    font-size: 1rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.98);
    margin-top: 5px;
    padding-left: 20px;
    text-align: left;
}

.price-value-ETB {
    font-size: 1rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    text-align: left;
}

/* Choose button */
.button.choose-plan {
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    width: 90%;
    margin: 10px 10px 15px 10px;
}

.button.choose-plan:hover {
    background-color: #0f2c55;
}

/* Features list */
.features-list {
    list-style: disc;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.8rem;
    padding-left: 33px;
    color: rgba(0, 0, 0, 0.68);
}

.features-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* Highlighted professional card */
.professional-card .button.choose-plan {
    background: #FDD105;
    color: black;
}

.professional-card {
    position: relative;
    border-radius: 12px;
    background: #fff;
    z-index: 0;
    box-shadow: 0 -50px 0 10px #FDD105, 10px 10px 0 0 #FDD105, -10px 10px 0 0 #FDD105, 0 10px 0 0 #FDD105;
}

.professional-card::before {
    content: "Popular";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #FDD105;
    color: black;
    padding: 5px 10px;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
    z-index: 1;
}

/* Card feature styling */
.text {
    font-size: 0.9rem;
    margin: 10px 0;
}

/* Generic button styling */
.button {
    background-color: #183D71;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0f2c55;
}

/* Show More button */
.show-more-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: none; /* initially hidden */
}

.show-more-button {
    background: none;
    border: 2px solid #183D71;
    color: #183D71;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.show-more-button:hover {
    background-color: #183D71;
    color: #fff;
}

.show-more-button svg {
    fill: #183D71;
    transition: transform 0.3s;
}

.show-more-button:hover svg {
    transform: rotate(180deg);
    fill: #fff;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .grid-parent {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-parent {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 30px;
    }

    .professional-card {
        box-shadow: 0 -15px 0 10px #FDD105, 10px 10px 0 0 #FDD105, -10px 10px 0 0 #FDD105, 0 10px 0 0 #FDD105;
    }

    .professional-card::before {
        padding: 0;
        top: -20px;
    }
}

/* Hide cards after the 8th */
.grid-parent > .card:nth-child(n+9) {
    display: none;
}

/* Show More button if more than 8 cards */
.grid-parent > .card:nth-child(n+9) ~ .show-more-container {
    display: block;
}

/* Optional: toggle hidden cards (requires minimal JS) */
.show-more-button.active ~ .grid-parent > .card:nth-child(n+9) {
    display: block;
}


/**/

.section {
    width: 100%;
    padding: 10%;
    animation: fadeUp 1s ease-in-out;
    background: #183D71;
}

.section h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
    text-align: center;
    animation: fadeUp 1.2s ease-in-out;
}

.section p {
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    overflow: visible;
    animation: fadeUp 1.3s ease-in-out;
}

.service-card {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    transform: scale(1);
    animation: fadeUp 1.5s ease-in-out;
    cursor: pointer;
    position: relative;
    margin-bottom: 10px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    background-color: #e0efff;
}

.service-card h3 {
    text-align: center;
    margin-top: 0;
    color: #000000;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    text-align: left;
}

.service-icon {
    position: relative;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #0f416c;
    text-align: center;
}

.yellow-button {
    background-color: yellow !important;
    color: black !important;
}

.faq-container {
    flex: 1;
    overflow-y: auto;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-height: 400px;
    font-family: "Inter", sans-serif;
}

.faq-title {
    text-align: left;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000000;
}

.category-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.faq-question {
    font-size: 14px;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    font-weight: bold;
}

/*.faq-question::after {*/
/*    content: '+';*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 0;*/
/*    font-size: 24px;*/
/*    transition: transform 0.3s ease;*/
/*    background: #6c63ff;*/
/*    font-weight: bold;*/
/*    color: white;*/
/*    border-radius: 50%;*/
/*    height: 30px;*/
/*    width: 30px;*/
/*    text-align: center;*/
/*}*/

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
}