/*
  Graceful Opus Blog — merged theme CSS for Hugo

  In WordPress there are two CSS files:
  - graceful-opus-blog/style.css (child theme, Template: graceful)
    Customizations; loaded after the parent so it overrides.
  - graceful/assets/style.css (parent theme)
    Base theme styles. Same structure and same rules; the child theme
    effectively duplicates or overrides these.

  This file merges both into one so the Hugo site matches the original
  look (teal top bar #29b0d5, blog/category list layout, footer, etc.).
*/

/*--------------------------------------------------------------
Header Sections
--------------------------------------------------------------*/
body {
    background-color: #ffffff;
}

.entry-header {
    height: 150px;
    border-bottom: none;
}

.blog .post-title {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 6px;
}

.blog article .post-meta {
    margin-bottom: 10px;
}

.blog .post-page-content {
    padding-top: 10px;
}

#main-navigation {
    background-color: transparent;
    border: none;
    text-align: center;
}

.site-menu-wrapper {
    margin: 0 auto;
}

#top-navigation {
    background-color: #29b0d5;
    color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

aside .graceful-widget h2,
.graceful-widget .widget-title {
    border: 1px solid #000000;
    font-weight: 600;
}

aside .graceful-widget h2::after {
    border-top: 8px solid #000000;
}

.post-title {
    word-wrap: break-word;
}

.site-images {
    min-height: 245px;
    background: #f2f2f2;
}

#site-footer {
    background: #f7f7f7;
    color: #333;
}

#site-footer .graceful-widget .widget-title {
    border-radius: 20px;
    border: 1px solid #000000;
    font-weight: 600;
    background: #ffffff;
    color: #030303;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 20px;
    margin-bottom: 20px;
    overflow: visible;
    padding: 7px 5px 5px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

#site-footer .graceful-widget .widget-title::after {
    border-top: 8px solid #b9ad94;
}

.footer-widgets {
    border-bottom: 1px solid #a19376;
}

.single .post-date {
    color: #111111 !important;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
}

.single .post-title-author {
    color: #111111 !important;
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: normal;
}

@media screen and (max-width: 480px) {
    .content-column > li {
        width: 100%;
    }
}

/* Top Navigation */
#top-navigation {
    text-align: center;
    box-shadow: 0px 1px 5px rgba(0,0,0, 0.1);
    border-bottom: 1px solid #e4e4e4;
}

#top-menu {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

#top-menu li {
    position: relative;
    display: inline-block;
}

#top-menu > li > a {
    display: block;
    text-decoration: none;
    padding: 0 12px;
    margin-left: 4px;
    color: #ffffff;
    font-size: 11px;
    line-height: 40px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

#top-menu > li:first-child > a {
    margin-left: 0;
}

#top-menu a:hover {
    color: rgba(255,255,255,0.9);
}

.post-categories {
    background: #f2f2f2;
    border: 1px solid #dddddd;
    border-radius: 20px;
}

/* Main content wrapper */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.content-column {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*--------------------------------------------------------------
Home Blog List Layout
--------------------------------------------------------------*/
.blog .content-column article {
    display: flex;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px;
    border-radius: 20px;
}

.blog .post-image-col {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
}

.blog .content-column li:nth-child(even) .post-image-col {
    border-radius: 20px 0 0 20px;
}

.blog .post-image-col .site-images {
    height: 400px;
}

.blog .site-images a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog .site-images a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog .site-images .no-thumbnail {
    width: 100%;
    height: 100%;
    background-color: #ddd;
}

.blog .post-content-col {
    flex: 0 0 50%;
    min-width: 0;
    padding: 25px 25px 25px 28px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: 20px 0 0 20px;
    box-sizing: border-box;
}

.blog .content-column li:nth-child(even) .post-content-col {
    border-radius: 0 20px 20px 0;
    padding: 25px 28px 25px 25px;
}

.blog .content-column li {
    margin-bottom: 70px;
}

.blog .post-header {
    text-align: unset;
}

.blog .main-content .post-title {
    font-size: 28px;
    font-weight: bolder;
    line-height: 36px;
}

.blog .post-page-content {
    padding-top: 0;
}

.blog .post-page-content p {
    padding: 0;
    margin: 0;
}

.blog .continue-read {
    text-align: left;
    margin: 5px 0 30px;
    padding: 0;
}

.blog .continue-read a {
    line-height: 34px;
    border-radius: 20px;
    color: #000000 !important;
    text-decoration: none;
    border: 1px solid #000;
    margin-top: 10px;
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.blog .continue-read a:hover {
    background: #000;
    color: #fff !important;
}

.blog .content-column li:nth-child(even) article {
    flex-direction: row-reverse;
}

.blog .post-content-col .post-header,
.blog .post-content-col .post-page-content,
.blog .post-content-col .continue-read {
    min-width: 0;
    overflow-wrap: break-word;
}

/* Shine effect on post images */
.site-images a {
    position: relative;
    overflow: hidden;
}

.site-images a::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    transform: skewX(-25deg);
}

.site-images a:hover::before {
    animation: shine 0.75s forwards;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Category title */
.graceful-opus-category-title {
    margin-bottom: 30px;
    margin-top: 1px;
    border: 1px solid #000000;
    padding: 10px 20px;
    text-align: center;
    font-size: 27px;
    border-radius: 20px;
    background: #f2f2f2;
}

/* Responsive */
@media (max-width: 992px) {
    .blog .content-column article {
        height: 350px;
    }

    .blog .post-image-col .site-images {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .blog .content-column article {
        flex-direction: column;
        height: auto;
    }

    .blog .post-image-col {
        border-radius: 20px 20px 0 0;
    }

    .blog .content-column li:nth-child(even) .post-image-col {
        border-radius: 20px 20px 0 0;
    }

    .blog .post-content-col {
        flex: 1;
        padding: 15px 15px 15px 18px;
        border-radius: 0 0 20px 20px;
    }

    .blog .content-column li:nth-child(even) .post-content-col {
        border-radius: 0 0 20px 20px;
        padding: 15px 18px 15px 15px;
    }

    .blog .post-image-col .site-images {
        flex: 0 0 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .blog .post-image-col .site-images {
        height: 220px;
    }

    .blog .content-column li:nth-child(even) article {
        flex-direction: column;
    }
}

/*--------------------------------------------------------------
Category List (same as blog)
--------------------------------------------------------------*/
.category .content-column article {
    display: flex;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px;
    border-radius: 20px;
}

.category .post-image-col {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 20px 0;
}

.category .content-column li:nth-child(even) .post-image-col {
    border-radius: 20px 0 0 20px;
}

.category .post-image-col .site-images {
    height: 400px;
}

.category .site-images a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category .post-content-col {
    flex: 0 0 50%;
    min-width: 0;
    padding: 25px 25px 25px 28px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: 20px 0 0 20px;
    box-sizing: border-box;
}

.category .content-column li:nth-child(even) .post-content-col {
    border-radius: 0 20px 20px 0;
    padding: 25px 28px 25px 25px;
}

.category .content-column li {
    margin-bottom: 70px;
}

.category .main-content .post-title {
    font-size: 28px;
    font-weight: bolder;
    line-height: 36px;
}

.category .continue-read a {
    border-radius: 20px;
    color: #000000 !important;
    text-decoration: none;
    border: 1px solid #000;
    padding: 8px 16px;
    display: inline-block;
}

.category .content-column li:nth-child(even) article {
    flex-direction: row-reverse;
}

.category .post-content-col .post-header,
.category .post-content-col .post-page-content,
.category .post-content-col .continue-read {
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .category .content-column article {
        flex-direction: column;
        height: auto;
    }

    .category .post-image-col {
        border-radius: 20px 20px 0 0;
    }

    .category .content-column li:nth-child(even) .post-image-col {
        border-radius: 20px 20px 0 0;
    }

    .category .post-content-col {
        padding: 15px 15px 15px 18px;
        border-radius: 0 0 20px 20px;
    }

    .category .content-column li:nth-child(even) .post-content-col {
        border-radius: 0 0 20px 20px;
        padding: 15px 18px 15px 15px;
    }

    .category .post-image-col .site-images {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .category .post-image-col .site-images {
        height: 220px;
    }
}

/*--------------------------------------------------------------
Single post
--------------------------------------------------------------*/
.single .entry-content {
    font-family: 'Lato', sans-serif;
}

.single .entry-content h2 {
    font-size: 22px;
    margin: 24px 0 12px;
}

.single .entry-content h3 {
    font-size: 18px;
    margin: 20px 0 10px;
}

.single .post-header-inner {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.single .site-images img {
    border-radius: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd;
    background: #f2f2f2;
    color: #333;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
}

.pagination a:hover {
    background: #29b0d5;
    border-color: #29b0d5;
    color: #fff;
}

.pagination .current {
    background: #29b0d5;
    border-color: #29b0d5;
    color: #fff;
}

/*--------------------------------------------------------------
Hero carousel (above Recent Posts)
--------------------------------------------------------------*/
.hero-carousel {
    margin-bottom: 28px;
}

.hero-carousel-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    height: 420px;
    min-height: 420px;
}

.hero-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-radio:checked + .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
}

.hero-slide-bg-placeholder {
    background: linear-gradient(135deg, #6b8e6b 0%, #8fbc8f 100%);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 24px 64px;
    max-width: 720px;
}

.hero-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-slide-subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 28px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-slide-cta {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: #b8860b;
    border: 1px solid #c9a227;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.hero-slide-cta:hover {
    background: #c9a227;
    border-color: #d4af37;
    color: #fff;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.hero-prev {
    left: 16px;
}

.hero-next {
    right: 16px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.hero-radio:checked ~ .hero-slide .hero-dot,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Show which dot is active (dots are outside slides, so we target by slide index) */
#hero-slide-0:checked ~ .hero-dots .hero-dot:nth-child(1),
#hero-slide-1:checked ~ .hero-dots .hero-dot:nth-child(2),
#hero-slide-2:checked ~ .hero-dots .hero-dot:nth-child(3),
#hero-slide-3:checked ~ .hero-dots .hero-dot:nth-child(4),
#hero-slide-4:checked ~ .hero-dots .hero-dot:nth-child(5) {
    background: #fff;
}

/*--------------------------------------------------------------
Hero featured cards (3 below carousel)
--------------------------------------------------------------*/
.hero-featured-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.hero-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
}

.hero-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-card-bg-placeholder {
    background: linear-gradient(135deg, #7a9e7a 0%, #9bbc9b 100%);
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.hero-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-card:hover .hero-card-title {
    color: #fff;
}

@media (max-width: 768px) {
    .hero-featured-cards {
        grid-template-columns: 1fr;
    }
    .hero-carousel-inner,
    .hero-radio:checked + .hero-slide {
        min-height: 320px;
    }
}
