/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/



.main-navigation {
	border-bottom: 5px solid var(--accent-2);
}

.sidebar .widget {
	border-top: 5px solid var(--accent-2);
}

.post-date-meta::after {
	content: ",";
}
hr.separator-1 {
	margin-top: 10px;
	margin-bottom: 0px;
}

.post-date-meta::after {
    content: "";
}

/* Sidebar widget background */
.sidebar .widget {
    background-color: #f7f9fb; /* soft light gray */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e6e9ed;
}

/* Widget titles */
.sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}

/* Recent posts links */
.sidebar .widget_recent_entries a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: all 0.3s ease;
}

/* Hover effect */
.sidebar .widget_recent_entries a:hover {
    color: #0073e6;
    padding-left: 5px;
}

/* Remove bullet points */
.sidebar .widget ul {
    list-style: none;
    padding-left: 0;
}



/* === CATEGORY PAGE PRESS STYLE === */

/* Main container */
.archive .site-main {
    max-width: 900px;
    margin: auto;
}

/* Article layout */
.archive .post {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 0;
}

/* Featured Image - Medium size */
.archive .post-image {
    flex: 0 0 300px;
    max-width: 300px;
    overflow: hidden;
    border-radius: 6px;
}

.archive .post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: 0.3s ease;
}

.archive .post-image img:hover {
    transform: scale(1.05);
}

/* Content area */
.archive .entry-summary {
    flex: 1;
}

/* Title */
.archive .entry-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.archive .entry-title a {
    text-decoration: none;
    color: #111;
}

.archive .entry-title a:hover {
    color: #0073aa;
}

/* Hide meta (date, author, etc.) */
.archive .entry-meta,
.archive .posted-on,
.archive .byline,
.archive .comments-link {
    display: none !important;
}

/* Content excerpt limit (~15 lines visually) */
.archive .entry-summary p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;

    display: -webkit-box;
    -webkit-line-clamp: 15;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more button */
.archive .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.archive .read-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .archive .post {
        flex-direction: column;
    }

    .archive .post-image {
        max-width: 100%;
    }
}

/* Target only category pages */
body.category .pagination,
body.category .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

/* Pagination links */
body.category .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover effect */
body.category .page-numbers:hover {
    background: #0073e6;
    color: #fff;
}


/* Current page */
body.category .page-numbers.current {
    background: #0073e6;
    color: #fff;
    font-weight: bold;
}

/* Next & Prev buttons */
body.category .page-numbers.next,
body.category .page-numbers.prev {
    font-weight: 600;
}



/*webkit-sticky*/
@media (min-width: 769px) {
    .site-content {
        display: flex;
    }

    .inside-right-sidebar {
        height: 100%;
    }

    .inside-right-sidebar aside:last-child {
        position: -webkit-sticky;
        position: sticky;
        top: 25px;
    }
}



.featured-image.below-title {
    margin-top: 20px; /* Adjusts space between title and image */
}





/* ===== GeneratePress Category & Tags Professional Style ===== */

/* Category Styling */
.entry-meta .cat-links a,
.entry-meta .posted-in a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    color: #1e293b;
    padding: 7px 14px;
    margin: 4px 6px 4px 0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dbe3ec;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Hover Effect */
.entry-meta .cat-links a:hover,
.entry-meta .posted-in a:hover {
    background: #0f172a;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #0f172a;
}

/* Tags Styling */
.entry-meta .tags-links a,
.entry-meta .tag-links a {
    display: inline-block;
    background: #ffffff;
    color: #475569;
    padding: 6px 10px;
    margin: 4px 6px 4px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #d1d9e6;
    transition: all 0.3s ease;
}

/* Tag Hover */
.entry-meta .tags-links a:hover,
.entry-meta .tag-links a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Add modern spacing */
.entry-meta {
    margin-top: 10px;
    line-height: 2;
}

/* ===== Hide Featured Image on Single Post ===== */
.single .featured-image,
.single .post-image,
.single .inside-article .post-image {
    display: image !important;
}




.entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.entry-meta .author-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.entry-meta a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.entry-meta a:hover {
    color: #1e73be;
}




/* Hide post excerpt/article text on category pages */
.archive .entry-summary,
.blog .entry-summary {
    display: none;
}

/* Hide Read More button/link */
.archive .read-more,
.archive .readmore,
.archive .more-link,
.blog .read-more,
.blog .readmore,
.blog .more-link {
    display: none !important;
}

/* ===== Professional Lightweight Website Background ===== */

body {
    background: #f5f7fb;
    background-image:
        radial-gradient(circle at top left, rgba(0, 123, 255, 0.06), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 200, 150, 0.05), transparent 30%);
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
}

/* Main content container */
.site-content {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 30px;
   
}



/* Blog cards */
.inside-article {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.inside-article:hover {
    transform: translateY(-4px);
}







/* Main Navigation Glass Effect */
#sticky-navigation,
#site-navigation {
    background: linear-gradient(
        143deg,
        rgba(36, 54, 128, 0.88) 40%,
        rgba(64, 92, 200, 0.92) 100%
    );

    box-shadow: 0 8px 32px 0 rgba(36, 54, 128, 0.30);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Sticky Navigation */
.main-navigation,
.sticky-enabled .main-navigation.is_stuck {
    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease-in-out;
}

/* Dropdown Menu */
.main-navigation,
.main-navigation ul ul {
    background-color: #243680;
}

/* Menu Links */
.main-navigation .main-nav ul li a {
    color: #ffffff;
    font-weight: 500;
}

/* Hover Effect */
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
    color: #ffd6e0;
}

/* Mobile Menu */
button.menu-toggle {
    background-color: transparent;
    color: #ffffff;
}


GeneratePress Sticky Main Navigation
   Add in: Appearance > Customize > Additional CSS

/* Make main navigation sticky */
.main-navigation {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Optional: sticky effect on scroll */
.main-navigation.navigation-stick {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Menu item styling */
.main-navigation .main-nav ul li a {
    padding: 20px 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Hover effect */
.main-navigation .main-nav ul li a:hover {
    color: #0073e6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-navigation {
        position: sticky;
        top: 0;
    }

    .main-navigation .main-nav ul li a {
        padding: 15px;
    }
}




button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
    color: var(--base-3);
    background-color: #243680;
}






/* =========================
    margin-bottom: 12px;
    color: #111827;
}

.gp-author-bio {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 18px;
}

.gp-author-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gp-author-social a {
    text-decoration: none;
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gp-author-social a:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    .gp-category-header {
        padding: 50px 25px;
    }

    .gp-category-title {
        font-size: 34px;
    }

    .gp-author-box {
        flex-direction: column;
        text-align: center;
    }

    .gp-author-social {
        justify-content: center;
    }
}
