
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

html, body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: linear-gradient(to right, #6a11cb, #2575fc);
    color: linear-gradient(to right, #6a11cb, #2575fc);
}

/* Header and navigation */
/* ✅ Header și bara de navigație */
header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ✅ Container pentru a limita lățimea header-ului */
.header-container {
    max-width: 1200px;
    /* Ajustează în funcție de site */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0px;
    /* Spațiere la margini */
}



/* ✅ Constrângere pe lățimea meniului */
.navbar {
    max-width: 1350px;
    /* Ajustează după necesitate */
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    /* Eliminăm complet paddingul */
}

/* ✅ Asigură că butoanele nu sunt lipite de marginea din dreapta */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}




.main-content {
    flex: 1; /* Pushes the footer to the bottom */
}


.footer {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    position: relative;
    width: 100%;
}


.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s;
}

.footer a:hover {
    color: #d4d4d4;
}


.popular-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}














/* ✅ Smaller, Performance-Optimized Service Cards */
.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 320px; /* SMALLER FIXED HEIGHT */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.12);
}

/* ✅ Image Container: Smaller & Responsive */
.service-card-image {
    width: 100%;
    height: 120px; /* REDUCED HEIGHT */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9; /* Light gray background */
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 Ensures full image fits without being cropped */
}

/* ✅ Title & Description */
.service-card-title {
    font-size: 14px; /* SMALLER TITLE */
    font-weight: bold;
    margin-bottom: 5px;
    height: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-description {
    font-size: 12px;
    color: #666;
    height: 32px; /* ✅ 2 LINES MAX */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ✅ Trunchiere pentru Chrome, Safari */
    -webkit-box-orient: vertical;
    line-clamp: 2; /* ✅ Trunchiere pentru browserele care suportă standardul */
    box-orient: vertical;
}

/* ✅ Buttons */
.add-to-favorite i {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.add-to-favorite:hover i {
    color: #ff9800;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ✅ Responsive Fixes */
@media (max-width: 768px) {
    .service-card {
        height: auto;
    }
    .service-description {
        -webkit-line-clamp: 1;
        line-clamp: 1; /* Make it even smaller on mobile */
    }
}










/* ✅ Buton Favorite - Efecte Hover */
.add-to-favorite i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.add-to-favorite:hover i {
    color: #ff9800;
}

/* ✅ Badge Categoria */
.badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
}


.wall-logo {
    height: 150px;
    /* Ajustează dimensiunea logo-ului */
    width: auto;
    color: linear-gradient(to right, #6a11cb, #2575fc);
}

.site-logo {
    max-height: 50px;
    /* Ajustează dimensiunea logo-ului */
    width: auto;
}

.navbar .logo a {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex: 1;
    /* Împingem meniul spre stânga */
    justify-content: flex-end;
    /* Așezăm link-urile spre marginea stângă */
    padding-right: 50px;/
}

.nav-links li a {
    display: flex;
    align-items: center;
    /* Aliniere verticală perfectă */
    font-size: 16px;
    /* Dimensiune uniformă a textului */
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: white;
    /* Culoare implicită a textului */
}

.nav-links li {
    position: relative;
}


/* Stil pentru iconițe */




.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffdd57;
}

.nav-links .btn-logout,
.nav-links .btn-signup {
    padding: 8px 15px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.nav-links .btn-signup {
    background-color: #28a745;
}

.nav-links .btn-logout:hover {
    background-color: #ff3b3b;
}

.nav-links .btn-signup:hover {
    background-color: #218838;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    min-width: 180px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    text-align: left;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown items */
.dropdown-menu li {
    padding: 8px;
}

.dropdown-menu li a {
    color: black;
    display: block;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}

/* Icon Style */
.icon-link {
    font-size: 22px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #ffdd57;
}

/* Responsive Navbar */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f4f7fc, #ffffff);
    color: #333;
}

.hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero .btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #6a11cb;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero .btn-primary:hover {
    background: #2575fc;
    transform: scale(1.05);
}

/* Features */
.section {
    padding: 40px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 20px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
    color: #6a11cb;
}

.feature p {
    font-size: 1em;
    font-weight: 300;
    color: #666;
}

/* Responsive styles */
@media (max-width: 576px) {
    .features {
        flex-direction: column;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #6a11cb;
        padding: 20px;
        position: absolute;
        top: 60px;
        right: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    footer p {
        font-size: 12px;
        text-align: center;
    }

    .flash-messages {
        padding: 10px;
        font-size: 14px;
    }
}


/* Banner Section */
.banner {
    position: relative;
    height: 60vh;
    background: linear-gradient(to bottom, rgba(37, 116, 252, 0.37), rgba(107, 17, 203, 0.199)), url('./images/aaa.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content {
    max-width: 600px;
    padding: 30px;
}

.banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInDown 1.5s ease;
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1.5s ease;
}

.banner .btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: #ff6b6b;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: fadeInUp 2s ease;
}

.banner .btn-primary:hover {
    background: #ff3b3b;
    transform: scale(1.1);
}

/* Keyframe animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Section */
.categories {
    padding: 60px 20px;
    text-align: center;
    background: #f4f7fc;
}

.categories h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #444;
}

.category-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


.latest-img {
    display: block;
    width: 350px;
    /* Creștem dimensiunea imaginii */
    height: 180px;
    /* Ajustăm înălțimea proporțional */
    object-fit: cover;
    /* Asigură că imaginea nu este distorsionată */
    border-radius: 10px;
    /* Colțuri rotunjite pentru un aspect modern */
    background-color: #f8f8f8;
    transition: transform 0.3s ease-in-out;
}

.latest-img:hover {
    transform: scale(1.05);
    /* Efect de mărire la hover */
}

.latest-item {
    flex: 0 0 calc(100% / 5 - 20px);
        /* 4 coloane pe rând */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Spațiere mai mare între imagine și text */
    padding: 10px 0;
}

.latest-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    /* Mărim textul titlului */
    color: #333;
}

.latest-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


/* Titlul secțiunii */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;

}

.section-titlel { 
    color: black;
}

/* Grid pentru listă */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Box pentru fiecare categorie */
.latest-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.latest-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

/* Titluri pentru categorii */
.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 10px;
}

/* Lista de anunțuri */
.latest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease-in-out;
}

.latest-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Imagine mică */
.latest-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}

/* Linkuri pentru anunțuri */
.latest-link {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}














/* ✅ Stiluri pentru secțiunea de statistici */
.stats-section {
    text-align: center;
    margin-bottom: 100px;
    /* Spațiere între statistici și carousel */
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 90px;
    /* Crește spațiul dintre elemente */
    flex-wrap: wrap;
}

.stat-box {
    background: none;
    padding: none;
    border-radius: none;
    box-shadow: none;
    text-align: center;
    min-width: 150px;
}


.stat-box h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 14px;
    color: #555;
}






.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5em;
    color: #6a11cb;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #6a11cb;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background: #2575fc;
}

.chat-box {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}




#chat-container {
    width: 400px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
}

#message-input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#send-btn {
    width: 18%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-btn:hover {
    background: #0056b3;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

#online-users-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 250px;
    max-height: 400px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    /* Asigură-te că lista este deasupra altor elemente */
}

.online-users-title {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    margin: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 16px;
    text-align: center;
}

#users-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

#users-list .list-group-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
}

#users-list .list-group-item img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

#users-list .list-group-item:hover {
    background-color: #ffffff;
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background-color: green;
}

.status-offline {
    background-color: gray;
}



/* Adaugă acest CSS în fișierul tău de stiluri */
#service-preview {
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#service-preview h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

#service-preview p {
    margin-bottom: 0.25rem;
}

.achievements-container {
    background-color: #f8f9fa00;
    /* Light gray background */
    border-radius: 8px;
    /* Rounded corners */
    padding: 10px;
    /* Reduced padding for a tighter layout */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Lighter shadow for subtlety */
    margin-top: 10px;
    /* Reduced space above the container */
    max-width: 600px;
    /* Limiting the maximum width of the container for a more compact appearance */
    margin-left: auto;
    /* Centering the container horizontally */
    margin-right: auto;
    /* Centering the container horizontally */
}


.achievements-container a {
    text-decoration: none;
    /* Removes underline */
    color: #0056b3;
    /* Standard link color */
}

.achievements-container a:hover {
    text-decoration: underline;
    /* Adds underline on hover */
    color: #004494;
    /* Darker blue on hover */
}

.achievements-container ul {
    padding-left: 20px;
    /* Adjusts padding for the list */
}

.achievements-container li {
    margin-bottom: 5px;
    /* Space between list items */
}

.achievements-container .row .col-md-6 .d-flex {
    justify-content: space-around;
    /* Distribuie spațiu uniform între badge-uri */
}


.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
}

.badge-card {
    width: 100px;
    /* Ajustează lățimea fiecărui card de badge */
    margin: 10px;
    /* Spațiu uniform în jurul cardurilor */
    padding: 35px;
    /* Padding în interiorul cardului */
    background-color: #fff;
    /* Fundal alb pentru vizibilitate */
    border: 1px solid #ddd;
    /* Border subtil */
    border-radius: 8px;
    /* Colțuri rotunjite pentru estetică */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Umbră ușoară pentru adâncime */
    display: flex;
    /* Folosește flex pentru a centra conținutul */
    flex-direction: column;
    /* Aranjează imaginea și textul vertical */
    align-items: center;
    /* Centrează conținutul pe orizontală */
    justify-content: center;
    /* Centrează conținutul pe verticală */
}

.badge-image {
    width: 350%;
    /* Make the image fill the card */
    height: auto;
    /* Maintain aspect ratio */
    border-bottom: 1px solid #eeeeee00;
    /* Line between image and text */
    margin-bottom: 50px;
    /* Space below the image */
}

.badge-name {
    font-size: 0.9em;
    /* Smaller font size for badge names */
    color: #333;
    /* Darker text for readability */
}

.small-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

/* Leaderboard styles */
.list-group-item {
    display: flex;
    justify-content: space-between;
    /* Space between username and points */
    align-items: center;
    /* Align items in the middle vertically */
    background-color: #ffffff;
    /* White background for list items */
    border: 1px solid #ddd;
    /* Subtle borders for list items */
    border-radius: 5px;
    /* Rounded corners for list items */
    margin-bottom: 5px;
    /* Space between list items */
}

.list-group-item .badge {
    background-color: #007bff;
    /* Bootstrap primary color for the badge */
    color: white;
    /* White text color for contrast */
}







.btn-option {
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: inherit;
}

.btn-option:hover {
    border-color: #007bff;
    /* Highlight pe hover */
    background-color: #f8f9fa;
    transform: scale(1.05);
    text-decoration: none;
}

.btn-option i {
    display: block;
    margin-bottom: 10px;
}

.btn-option h4 {
    margin: 10px 0 5px;
}

.btn-option p {
    color: #6c757d;
    /* Culoare descriere */
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: #6a11cb;
        padding: 20px;
        position: absolute;
        top: 60px;
        right: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .card {
        max-width: 100%;
        margin-right: 0;
    }

    .d-flex {
        flex-direction: column;
    }

    .category-image {
        height: 120px;
            /* Micșorează imaginea pe ecrane mici */
    }
    
    .category-title {
        font-size: 1rem;
    }
}

.d-flex .card {
    margin-right: 1rem;
}




.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #fff;
}



/* Titlu categorie */
.category-title {
    font-size: 1.2rem;
    /* Dimensiune ajustată pentru claritate */
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

/* Buton din overlay */
.category-overlay .btn {
    font-size: 0.85rem;
    padding: 5px 12px;
}



.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
}




/* Stiluri pentru iconițe */
.home-icon {
    color: #0c3e74;
    /* Albastru */
}

.admin-icon {
    color: #ff6b6b;
    /* Roșu */
}

.ads-icon {
    color: #ffcc00;
    /* Galben */
}

.services-icon {
    color: #28a745;
    /* Verde */
}

.love-icon {
    color: #e83e8c;
    /* Roz */
}

.user-icon {
    color: #1dcfeb;
    /* Albastru deschis */
}

.logout-icon {
    color: #ff3b3b;
    /* Roșu închis */
}

.login-icon {
    color: #5e06eb;
    /* Violet */
}

.signup-icon {
    color: #20c997;
    /* Verde turcoaz */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: background 0.3s ease;
    border-radius: 6px;
}


/* Efect de hover - schimbă culoarea */
.nav-links a:hover i {
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

.nav-links li a i {
    margin-right: 8px; /* Adaugă un spațiu între iconiță și text */
}
/* Dropdown Styling */
.dropdown-menu {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
    padding: 8px;
}

.dropdown-menu li a {
    color: #333;
    font-weight: bold;
}

.dropdown-menu li a:hover {
    background: #007bff;
    color: white;
}


.ads-section {
    padding: 40px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.ad-card {
    width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-card .card-body {
    padding: 20px;
}

.ad-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f8d210;
}

.ad-text {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.ad-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

.btn-modern {
    background: linear-gradient(45deg, #f8d210, #fa782f);
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    margin-top: 10px;
}

.btn-modern:hover {
    background: linear-gradient(45deg, #fa782f, #f8d210);
    color: rgb(0, 0, 0);
}


.category-container {
    text-align: center;
    padding: 50px 20px;
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f8d210;
}

.category-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}



/* ✅ Container pentru logo și căutare */
.logo-search-container {
    display: flex;
    align-items: center;
    gap: 0px;
    /* Distanța între logo și search bar */
    flex: 110;
    /* Face ca acest container să ocupe mai mult spațiu și să împingă meniul spre stânga */
    justify-content: flex-start;
    /* Aliniere spre stânga în container */
    padding-left: 50px;
    /* Ajustează acest padding pentru a muta mai mult spre dreapta */
}

/* ✅ Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px;
    /* Ajustează după nevoie */
    width: auto;
    margin-right: 20px;
}
/* ✅ Container pentru bara de căutare - flexbox pentru aliniere perfectă */
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    height: 40px;
    background: white;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ✅ Input de căutare - fără margini, aliniere perfectă */
/* ✅ Input de căutare - ajustează padding și înălțimea textului */
.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;

    padding: 0px 12px;
    /* Scade padding-ul sus pentru a ridica textul */
    line-height: 1.2;
    /* Ajustează spațierea internă */
    border-radius: 10px;
    background: transparent;
    width: 100%;
}

/* ✅ Butonul de căutare - dimensiuni corecte, poziționat corespunzător */
.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    padding: 5px 10px;
    transition: color 0.3s ease-in-out;
}

/* ✅ Efect de hover pe buton */
.search-btn:hover {
    color: #007bff;
}



.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 10px;
}

.subcategory-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(255, 255, 255, 0.2);
}

.subcategory-content img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.subcategory-card:hover img {
    filter: brightness(0.6);
}

.subcategory-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    transition: background 0.3s ease;
}

.subcategory-card:hover .subcategory-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.subcategory-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.subcategory-overlay p {
    font-size: 1rem;
    opacity: 0.8;
}

.explore-btn {
    display: inline-block;
    background: linear-gradient(45deg, #f8d210, #fa782f);
    color: black;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.explore-btn:hover {
    background: linear-gradient(45deg, #fa782f, #f8d210);
    color: white;
}

.no-subcategories {
    font-size: 1.2rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 30px;
}


.explore-box button {
    margin-top: auto;
    /* Toate butoanele sunt aliniate jos */
}

.explore-box img {
    max-width: 100px;
    /* Dimensiune uniformă pentru imagini */
    height: auto;
}


/* SECȚIUNEA POPULARĂ - NEGRU + AURIU + ANIMAȚII */
.section.bg-dark {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    padding: 50px 0;
}


/* Spațiu între coloane și rânduri */
.row.gx-4 {
    --bs-gutter-x: 2rem;
    /* Spațiu pe orizontală */
}

.row.gy-4 {
    --bs-gutter-y: 2rem;
    /* Spațiu pe verticală */
}

.explore-section {
    background: url('/static/images/background.jpg') no-repeat center center/cover;
    padding: 60px 20px;
    position: relative;
}
.explore-box {
    width: 280px;
    /* Dimensiune fixă pentru uniformizare */
    min-height: 250px;
    /* Asigură consistență între elemente */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    background: #8f8b8b67;
    transition: transform 0.3s ease-in-out;
    margin: 20px;
}

.explore-box:hover {
    transform: scale(1.05);
    /* Efect de hover */
}

.explore-box h4 {
    font-weight: bold;
}

.exclusive-card {
    height: 280px;
    /* Setează o înălțime fixă pentru toate */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Aliniere uniformă */
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 15px;
    border-radius: 10px;
    background: white;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.exclusive-card:hover {
    transform: translateY(-5px);
    background: rgb(146, 143, 143);
}

.exclusive-card i {
    display: block;
}

.exclusive-card h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

.exclusive-card a {
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}


/* SECȚIUNEA OPȚIUNI PRINCIPALE - FUNDBLAD GRADIENT & EFECTE HOVER */
.bg-gradient-light {
    background: linear-gradient(135deg, #ffffff, #ffffff);
}

/* Efect de hover pentru butoane */
.btn-option {
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.btn-option:hover {
    transform: scale(1.05);
    background: #f1f1f1;
}

/* SECȚIUNEA EXPLORARE CATEGORII */

/* GRID DE CATEGORII */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Stil pentru fiecare categorie */
.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.2);
}

/* Imaginea categoriilor */
.category-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Overlay */
.category-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 0 0 15px 15px;
}

.stats-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 20px;
}


.stat-box h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}




.filter-sidebar {
    position: sticky;
    top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-sidebar h4 {
    margin-bottom: 20px;
}

.filter-sidebar .form-select,
.filter-sidebar .btn {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
}












/* ✅ Secțiune Call-to-Action */
.cta-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #ff9966, #ff5e62);
    color: white;
    border-radius: 10px;
    margin-top: 30px;
}

/* ✅ Conținut CTA */
.cta-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ✅ Buton CTA */
.cta-btn {
    display: inline-block;
    background: white;
    color: #ff3b3b;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #fff5f5;
    color: #ff3b3b;
}


.latest-link {
    color: black
}
.latest-section {
    text-align: center;
    padding: 20px 5px;
    background-color: linear-gradient(to right, #6a11cb, #2575fc)
}
.carousel-container {
    position: relative;
    max-width: 1255px;
    /* STRÂNGEM CAROUSEL-UL */
    margin: 0 auto;
    /* Îl centram pe pagină */
    overflow: hidden;

}
.carousel-track-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 23px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-track-wrapper {
    overflow: hidden;
    padding: 10px 0;
    /* Spațiere mică sus și jos */
}


.latest-item {
    flex: 0 0 calc(100% / 5 - 24px); /* MAXIM 3 ELEMENTE PE RÂND */
    background: #cebddb00;
    padding: 5px;
    border-radius: 10px;
    box-shadow: none;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.latest-item:hover {
    transform: scale(1.05);
}

.image-container {
    width: 30%;
    height: 80px; /* MAI MARE DECÂT ÎNAINTE */
    display: flex;
    justify-content: center;
    align-items: center;
}

.latest-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* Butoane carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: -35px; /* Poziționăm mai spre interior */
}

.next {
    right: -35px;
}






/* ✅ Ajustare pentru a pune textul sub imagine */
.carousel-item {
    flex: 0 0 calc(100% / 5 - 15px);
        /* 4 iteme pe rând */
    display: flex;
    flex-direction: column;
    /* Aliniem conținutul vertical */
    align-items: center;
    /* Centrare pe orizontală */
    text-align: center;
    background: #ffffff;
    /* Fundal alb pentru contrast */
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* ✅ Imagini în carousel */
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ✅ Titlurile sub imagine */
.info-container {
    margin-top: 0px;
    /* Mică distanță între imagine și text */
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* ✅ Linkuri mai atractive */
.latest-link {
    text-decoration: none;
    color: #2575fc;
    transition: color 0.3s ease-in-out;
}

.latest-link:hover {
    color: #6a11cb;
    /* Schimbă culoarea la hover */
}






.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.cookie-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-btn:hover {
    background: #e68900;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}






/* Stil pentru panoul de căutare full-screen */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.98); /* Fundal întunecat, aproape opac */
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
}

.search-overlay-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    padding: 1rem 0;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease;
}
.search-overlay-input:focus {
    border-bottom-color: #fff;
}

/* Stil pentru rezultatele live */
.live-search-results {
    margin-top: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}
.result-category {
    margin-bottom: 1.5rem;
}
.result-category-title {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.result-item {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}



.main-content {
    flex: 1; /* Permite acestei secțiuni să crească și să împingă footer-ul în jos */
}