/*general --------------------------------------------------------------------------------------------------------------------------*/
.flowers {
    direction: rtl;
    margin: 0;
    padding: 20px 15px;
    background-color: #fdfdfd;
    scroll-behavior: smooth;
}

.center {
    text-align: center;
    font-size: 23px;
    font-weight: bold;
}

/*alphabet --------------------------------------------------------------------------------------------------------------------------*/
.alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    /* position: sticky; */
    top: 0;
    background-color: #fdfdfd;
    z-index: 1000;
}

.alphabet a {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #e0c28c;
    color: #333;
    background-color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    min-width: 20px;
}

.alphabet a:hover,
.alphabet a.active {
    background-color: #e0c28c;
    color: white;
}

@media (max-width: 600px) {

    .alphabet {
        gap: 5px;
    }

    .alphabet a {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

/*flower-popular --------------------------------------------------------------------------------------------------------------------------*/
.flower-popular {
    display: grid;
    /* Creates a responsive grid. It will show 6 columns on large screens and fewer on smaller ones. */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    /* Space between the flowers */
    /* padding: 20px; */
    font-family: Arial, sans-serif;
    /* Sets a clean font for the names */
}

/* Individual flower card */
.flower-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the image and text */
    text-align: center;
}

/* Styling for the images */
.flower-card img {
    width: 300px;
    /* Fixed width for a uniform look */
    height: 200px;
    /* Fixed height for a uniform look */
    object-fit: contain;
    /* Ensures the whole image fits without being cropped or stretched */
}

/* Styling for the flower names */
.flower-card p {
    margin: 0;
    font-size: 1rem;
    /* Adjust font size as needed */
    color: #333;
    /* Dark grey text color */
}

/*alphabet-gallery --------------------------------------------------------------------------------------------------------------------------*/
/* Gallery layout as grid: 5 columns for desktop */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Style for gallery items */
.gallery-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    /* Sharp corners */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Hover effect using transform: scale */
.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Link inside gallery item */
.gallery-item a {
    display: block;
}

/* Image styling */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Caption styling below the image */
.gallery-item .caption {
    text-align: center;
    padding: 15px;
    background: #fff;
    color: #333;
    font-size: 16px;
    border-top: 1px solid #eee;
    font-weight: bold;
}

.has-link .caption {
    font-weight: bold;
    color: #D4AF37; 
    transition: all 0.2s ease; 
}

/* Responsive layout for mobile: show 2 columns */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*horizontal line  --------------------------------------------------------------------------------------------------------------------------*/
.hr-style {
    border-image: linear-gradient(to left, rgba(0, 0, 0, 0), #d1a468, rgba(0, 0, 0, 0)) 0 0 100% 0 / 0 0 3px 0 stretch;
    margin-top: 40px;
    margin-bottom: 40px;
}

/*category   --------------------------------------------------------------------------------------------------------------------------*/
.category {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
}

.category h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.category h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    border-radius: 2px;
}

.category p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.text-content {
    flex: 1;
    padding: 40px;
}

.image-content {
    flex: 1;
    padding: 25px;
    text-align: center;
    background: #f8f9fa;
}

.image-content img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    width: 85%;

    /* border-radius: 10px; */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.image-content img:hover {
    transform: scale(1.03);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffd166;
    display: inline-block;
}

.section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

/* تناوب چیدمان برای بخش‌ها */
.section:nth-child(odd) .text-content {
    order: 1;
}

.section:nth-child(odd) .image-content {
    order: 2;
}

.section:nth-child(even) .text-content {
    order: 2;
}

.section:nth-child(even) .image-content {
    order: 1;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
    }

    .text-content,
    .image-content {
        width: 100%;
        padding: 30px;
    }

    .image-content {
        order: 1 !important;
    }

    .text-content {
        order: 2 !important;
    }

    .category h1 {
        font-size: 2.2rem;
    }

    .category p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}

/*button   --------------------------------------------------------------------------------------------------------------------------*/
.center-button {
    text-align: center;
    margin: 30px 0;
}

.custom-button {
    display: inline-block;
    line-height: 1;
    background: #DF2038;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 3px;
    color: #fff !important;
    fill: #fff !important;
    text-align: center;
    transition: all 0.3s;
}

.custom-button:hover {
    background: #BE1A2F;
    color: #fff !important;
    fill: #fff !important;
}

/*banner   --------------------------------------------------------------------------------------------------------------------------*/
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box-black {
    width: 100%;
    height: 100%;
    background-image: url('./images/banner/0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.image-box-white {
    width: 100%;
    height: 100%;
    background-image: url('./images/banner/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
}
.text-content-white {
    margin-top: 20px;
    color: white;
    /* text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); */
}
.text-content-black {
    margin-top: 20px;
    color: black;
    /* text-shadow: 2px 2px 10px rgba(254, 253, 253, 0.8); */
}

.text-content-white span {
    font-weight: bold;
    font-size: 23px;
}
.text-content-black span{
    font-weight: bold;
    font-size: 23px;
}
