/*---------------------------------------------------------------------------------

 Theme Name:   Divi child
 Theme URI:    https://tre-host.com
 Description:  Divi Child
 Author:       G Michail
 Author URI:   https://tre-host.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

------------------------------ CUSTOM CSS HERE ------------------------------*/

/* Responsive adjustments */
/* sort button and search on guide to fit in row*/
@media (max-width: 1200px) {
    #guide-buttons-row .et_pb_column, #tag-buttons-row .et_pb_column {
        padding:2px!important;
    }
    /* 1. Force the row container to allow wrapping */
    .et_pb_row.et_pb_row_6col {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important; /* Tiny gap between buttons */
        justify-content: space-between !important;
    }

    /* 2. Force the first 4 columns to stay on 1 row */
    .et_pb_row_6col > .et_pb_column_1_6:not(.et-last-child) {
        width: calc(20% - 5px) !important; 
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    /* 3. Make the 5th column (Search wrapper) full width */
    .et_pb_row_6col > .et_pb_column_1_6.et-last-child {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /*same for 5 cols*/
    .et_pb_row.et_pb_row_5col {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important; /* Tiny gap between buttons */
        justify-content: space-between !important;
    }

    /* 2. Force the first 4 columns to stay on 1 row */
    .et_pb_row_5col > .et_pb_column_1_5 {
        width: calc(20% - 5px) !important; 
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    /* 4. Target the buttons individually by ID to adjust size for mobile */
    #filter-all, 
    #filter-recommended, 
    #filter-caution, 
    #filter-avoid, #filter-all-season, #filter-invasive,
    #filter-summer, #filter-spring, #filter-autumn, #filter-winter {
        padding: 8px 2px !important;  /* Tighten padding so they fit on one line */
        font-size: 14px !important;   /* Shrink text size for small screens */
        text-align: center !important;
        display: block !important;
        width: 100% !important;       /* Fill their respective 25% columns */
        box-sizing: border-box !important;
    }
    
    /* Optional: Extra control for the longest word so it doesn't break ugly */
    #filter-recommended {
        font-size: 13.5px !important; 
    }

    /* 5. Target the search bar wrapper specifically */
    .custom-search-wrapper {
        width: 100% !important;
        display: flex !important;
    }
    
    .custom-search-input {
        width: 100% !important;
        border-width: 1px!important;
        font-size: 14px!important;
    } /*and of sorting buttons and search row*/

}
@media (max-width: 980px) {
    #guide-buttons-row .et_pb_column, #tag-buttons-row .et_pb_column {
        padding:0!important;
    }
    /*fix empty spaces after filter*/
    .guide-module .et_pb_salvattore_content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    article h2 {
        margin-top:0!important;
    }
    .et_pb_blog_0 .et_pb_image_container {
        margin: 0!important;
    }
    .et_pb_row.et_pb_row_5col {
        flex-wrap: wrap !important;
        gap: 6px !important; 
        padding:2px;
    }
    .et_pb_row.et_pb_row_6col {
        gap: 6px !important; 
        padding:2px;
    }
    #filter-recommended {
        font-size: .95em !important; 
        padding-top:7px!important;
    }
}

@media (max-width: 767px) {
    .eu-footer-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .eu-footer-row img {
        margin: 0 auto;
    }
    /*fix empty spaces after filter*/
    .guide-module .et_pb_salvattore_content {
        grid-template-columns: 1fr !important;
    }
    /**Fix mobile menu guide buttons*/

    #guide-buttons-row, #tag-buttons-row {
        gap: 3px!important;
    }
      
    /*Cancel setting for bigger screen*/
    .et_pb_row_6col > .et_pb_column_1_6:not(.et-last-child) {
        width: 100%!important; 
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    .et_pb_row_5col > .et_pb_column_1_5 {
        width: 100%!important; 
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    
    /* 4. Target the buttons individually by ID to adjust size for mobile */
    #filter-all, 
    #filter-recommended, 
    #filter-caution, 
    #filter-avoid,
    #filter-all-season, #filter-invasive,
    #filter-summer, #filter-spring, #filter-autumn, #filter-winter {
        padding: 8px 2px;  /* Tighten padding so they fit on one line */
        font-size: 10px !important;   /* Shrink text size for small screens */
        text-align: center !important;
        display: block !important;
        width: 100% !important;       /* Fill their respective 25% columns */
        box-sizing: border-box !important;
        height: 26px !important;      /* FIXED HEIGHT */
        line-height: 18px !important; 
    }

    
    /* Optional: Extra control for the longest word so it doesn't break ugly 
    #filter-recommended {
        font-size: 9px !important; 
    }*/

    /* 5. Target the search bar wrapper specifically */
    .custom-search-wrapper {
        width: 100% !important;
        display: flex !important;
    }
    
    .custom-search-input {
        width: 100% !important;
        border-width: 1px!important;
        font-size: 10px!important;
    }
    
    .guide-module .et_pb_salvattore_content {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    #guide-buttons-row .et_pb_column, #tag-buttons-row .et_pb_column {
        padding:0!important;
    }

    article:not(.category-75):not(.category-blogposts):not(.category-blog-yazisi) {
        height: auto !important;
        min-height: auto !important;
    }
}/* ================= end of media 768 ===============*/
/* ================= ==================end of media ============================================================*/

#guide-buttons-row .et_pb_column, #tag-buttons-row .et_pb_column {
    padding: 4px;
}
/* fix jumping*/
.et_fixed_nav #page-container,
.et_non_fixed_nav.et_transparent_nav #page-container {
    padding-top: 0px !important;
}
.et_pb_section_0[data-fix-page-container] {
    padding-top: 80px !important;
}
.et_pb_section_0 {
    padding-top: 80px !important; /* match your header height */
}

/*Trasnparent header*/
/* Solid after scroll */
#main-header.et-fixed-header {
    background-color: #ffffff !important; /* change to your color */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-header.et-fixed-header .nav li a {
    color: #004971 !important;
}

/*No footer*/
#main-footer {
    display: none !important;
}

ul.sub-menu {
    background-color: rgba(174, 176, 179, 0.72)!important;
    width:70px!important;
    top: 20px!important;
    left: 20px!important;
    /*background-color: rgba(0, 73, 113, 0.72)!important;
    background-color: rgba(255, 255, 153, 0.82)!important;
    */
}
ul.sub-menu li {
   padding:0!important;
}
ul.sub-menu li a {
   width:unset!important;
}
ul.sub-menu li a:hover {
   width:unset!important;
}


#mobile_menu {
    background-color: rgba(102, 102, 102, 0.99)!important;
} 
#mobile_menu ul.sub-menu {
    background-color: unset!important;
    margin-left:15px!important;
} 
/* =========== End of header styling transparent etc ============== */

/*Blog order*/
.et_pb_blog_grid .et_pb_post,
.et_pb_posts .et_pb_post {
    display: flex;
    flex-direction: column;
}

/* Push categories below the excerpt */
.et_pb_blog_grid .et_pb_post .post-meta,
.et_pb_posts .et_pb_post .post-meta {
    order: 3;
}

.et_pb_blog_grid .et_pb_post .post-content,
.et_pb_posts .et_pb_post .post-content {
    order: 2;
}

.et_pb_blog_grid .et_pb_post h2,
.et_pb_posts .et_pb_post h2 {
    order: 1;
}


/* Recommended */
.category-recommended .post-meta a, .category-caution .post-meta a, .category-avoid .post-meta a, 
.category-tuketmekten-kacin .post-meta a, .category-iyi-tercih .post-meta a, .category-sorarak-tuket .post-meta a,
.category-37 .post-meta a, .category-32 .post-meta a, .category-54 .post-meta a
{
    color: #fff !important;
}

/* Article customazitions for guide*/
article.category-75, article.category-blogposts, article.category-blog-yazisi {
    padding: 1em!important;
}

article:not(.category-75):not(.category-blogposts):not(.category-blog-yazisi) {
    height: 330px;
}

article:not(.category-75):not(.category-blogposts):not(.category-blog-yazisi) h2 {
    margin-top: -30px;
}

.category-recommended p.post-meta, .category-caution p.post-meta, .category-avoid p.post-meta, 
.category-tuketmekten-kacin p.post-meta, .category-iyi-tercih p.post-meta, .category-sorarak-tuket p.post-meta,
.category-37 p.post-meta, .category-32 p.post-meta, .category-54 p.post-meta
{
    width: 60%;
    text-align: center;
    margin-left: 20%;
    border-radius: 30px;
    margin-top: 15px;
    padding: 10px;
}
.category-recommended p.post-meta, .category-37 p.post-meta, .category-iyi-tercih p.post-meta {
    background-color: #198754 !important;
}

.category-caution p.post-meta, .category-32 p.post-meta, .category-sorarak-tuket p.post-meta {
    background-color: #ff9800 !important;
}

.category-avoid p.post-meta, .category-54 p.post-meta, .category-tuketmekten-kacin p.post-meta {
    background-color: #dc3545 !important;
}

.custom-search-wrapper {
    text-align: center;
}

/*Disable category link*/
.guide-module .post-meta a[rel="tag"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit;
}

/*Make latin name italic*/
.post-content-inner p {
    font-style:italic!important;
}

.custom-search-input {
    text-align: center;
    background-color: rgba(255, 255, 255, 0)!important;
    border: 2.4px solid #fefefe!important;
    border-radius: 25px;
    color: #fefefe!important;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    padding: 8px 0!important;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

/* Hide placeholder on click */
.custom-search-input:focus::placeholder {
    color: transparent;
}

/* Optional: white caret */
.custom-search-input::placeholder {
    color: #fefefe;
}

/* Optional hover effect like Divi buttons */
.custom-search-input:hover {
    opacity: 0.8;
}

.custom-search-wrapper {
    position: relative;
    display: inline-block;
    text-align: center;
}

.custom-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "ETmodules";
    font-size: 18px;
    color: #fefefe;
    pointer-events: none;
}

/* Mouse over article - Smooth zoom with color variation */
.et_pb_blog_0 .et_pb_post {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* The zoom effect on hover */
.et_pb_blog_0 .et_pb_post:hover {
    transform: scale(1.04);
    background-color: #FFFFE0!important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Keep the image container clean (no extra overflow issues) */
.et_pb_blog_0 .et_pb_image_container {
    overflow: hidden;
}

/*icons*/
.et-icon {
    font-family: "ETmodules";
    font-size: 18px;
    margin-right: 6px;
    color: #004971;
    vertical-align: middle;
}
.guide-filter-btn, .guide-filter-season {
    width: 100%;
}
/* ACTIVE BUTTON - on guide filtering */
.guide-filter-btn.active, .guide-filter-season.active {
    background: #efffd3 !important;
    border-color: #efffd3 !important;
}

/*fix empty spaces after*/
/* Strip Divi's column restrictions and turn the container into a fluid grid */
.guide-module .et_pb_salvattore_content {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px !important;
}

/* Force columns to act as invisible structural passes */
.guide-module .et_pb_salvattore_content .column {
    display: contents !important;
}

/* Ensure individual articles size properly inside the new grid layout */
.guide-module article {
    width: 100% !important;
    margin: 0 0 30px 0 !important;
}

/*Post headings styling*/
.fish-post-h2 {
    margin-bottom: 0px!important;
}
.fish-post-h1 h1, .fish-post-h2 h2, .fish-post-h3 h3{
    text-align: center;
}

.fish-post-h1 h1 {
    font-weight: 700;
    font-size: 46px;
    color: #0E5253 !important;
    padding-bottom: 10px!important;
    line-height: 1em;
}

.fish-post-h2 h2 {
    font-size: 33px;
    color: #0E5253 !important;
    font-weight: 500;
    font-style: italic;
}

.fish-post-h3 h3 {
    padding-bottom: 0;
}

.fish-post-h3.category-recommended h3, .fish-post-h3.category-37 h3, .fish-post-h3.category-iyi-tercih h3 {
    color: #198754 !important;
}

.fish-post-h3.category-caution h3, .fish-post-h3.category-32 h3, .fish-post-h3.category-sorarak-tuket h3 {
    color: #ef8d2b !important;
}

.fish-post-h3.category-avoid h3, .fish-post-h3.category-54 h3, .fish-post-h3.category-tuketmekten-kacin h3 {
    color: #dc3545  !important;
}

/*Home page stylings*/
.home-bullets {
    margin-top: 10px;
}
.home-bullets .title {
    color: #004971;
    font-size: 16px;
}

.home-bullets ul li {
    font-weight: normal;
    color: #666666;
}
.home-paragraph {
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
}

.home-paragraph .h-title {
    color: #004971;
    font-size: 50px;
    font-weight: 700;
}

/*Credits*/
#home-header::after, #home-fisherman::after, #about-header::after, #r-header::after, #c-header::after {
    content: "© Bruna Casas";
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}

#home-header::after {
    content: "© Bruna Casas";
}
#home-fisherman::after, #about-header::after {
    content: "© Olkan Ergüler";
}
#r-header::after, #c-header::after {
    content: "© Simge Oy";
}

/* Hide default logo on Greek version and replace it */
html[lang="el"] #logo {
    content: url("https://seafoodguidecy.com/wp-content/uploads/2026/06/Logo-merged-el-black.png");
}

html[lang="tr-TR"] #logo {
    content: url("https://seafoodguidecy.com/wp-content/uploads/2026/06/Logo-merged-tr-black.png");
}

