/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

/* rub */
a:focus {
  outline: none !important;
}

.rampage-klasa.menu-item > a {
  color: #D5A92C !important;
}


/* Oblikovanje liste posljednjih blogova */

.custom-recent-post-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Light border for contrast */
    padding: 20px;
    transition: background-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8); /* White with transparency */
    border-radius: 6px; /* Optional: Rounded corners */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.custom-recent-post-item:hover {
    background-color: #f3f3f3;
}

.custom-recent-post-thumb {
    display: inline-block;
    margin-right: 10px; /* Keeps 10px space between image and text */
    flex-shrink: 0; /* Prevents shrinking on smaller screens */
}

.custom-recent-post-thumb img {
    width: 70px; /* Fixed width */
    height: 70px; /* Fixed height to enforce 1:1 aspect ratio */
    border-radius: 6px;
    object-fit: cover; /* Ensures the image fills the 70x70 box */
    display: block;
}

.custom-recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.custom-recent-post-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.custom-recent-post-title:hover {
    color: #61CE70;
}

.custom-recent-post-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.custom-recent-post-excerpt {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;
}


/* Oblikovanje blogova grid view */


/* Grid container */
.custom-grid-posts-container {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 30px; /* space below the grid */
}

/* Base columns for desktop */
.custom-grid-posts-container.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.custom-grid-posts-container.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.custom-grid-posts-container.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive adjustment: single column on smaller screens */
@media (max-width: 768px) {
    .custom-grid-posts-container.columns-2,
    .custom-grid-posts-container.columns-3,
    .custom-grid-posts-container.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Individual post item in the grid */
.custom-grid-post-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.custom-grid-post-item:hover {
    background-color: #f3f3f3;
}

/* Thumbnail */
.custom-grid-post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

/* Info / text container */
.custom-grid-post-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.custom-grid-post-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.custom-grid-post-title:hover {
    color: #189D53;
}

/* Date */
.custom-grid-post-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

/* Excerpt */
.custom-grid-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Optional styling for the filter form */
.grid-category-filter-form {
    display: inline-block;
    margin-bottom: 20px;
}
.grid-category-filter-form select {
    padding: 5px;
    font-size: 14px;
}

 /* Prostor oko naslova */

.single-post .sh-container.head-row.row-center {
    padding-top: 105px !important;
    padding-bottom: 80px !important;
}

/* Prostor nakon contenta */
.single-post .site-main {
    padding-bottom: 50px !important;
}


/*zadnja 3 posta custom grid stiliziranje*/
.custom-latest-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    margin-bottom: 30px;
}

/* Each grid item */
.custom-latest-grid-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.custom-latest-grid-item:hover {
    background-color: #f3f3f3;
}

/* Thumbnail */
.custom-latest-grid-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

/* Info container */
.custom-latest-grid-info {
    display: flex;
    flex-direction: column;
}

/* Title */
.custom-latest-grid-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}
.custom-latest-grid-title:hover {
    color: #61CE70;
}

/* Date */
.custom-latest-grid-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

/* Excerpt */
.custom-latest-grid-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* "Sve objave" button wrapper (below the grid) */
.custom-latest-grid-button-wrapper {
    text-align: right;
    margin-bottom: 20px;
}

/* BTN sve objave */
.custom-latest-grid-button {
    display: inline-block;
    padding: 10px 20px;
    background: #61CE70;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.custom-latest-grid-button:hover {
    background: #52B560;
    color: #fff; /* dodano da se ne mijenja boja teksta */
}


/* Responsive: switch to 1 column on mobile */
@media (max-width: 768px) {
    .custom-latest-grid-container {
        grid-template-columns: 1fr; 
    }
}


