/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Child theme for Twenty Twenty-Five
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* Import Roboto from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --font-roboto: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Base Typography */
body {
  font-family: var(--font-roboto);
  line-height: 1.6;
  color: #000;
}

a {
    text-decoration: none !important;
}
/* UPDATED STYLES */
.blog-filters-system {
  max-width: 1125px;
  margin: 0 auto;
  font-size: 16px;
  padding-top: 30px; /* Default for large screens */
}

.filter-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
	max-width: 1125px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 40px; 
 /* Default padding for large screens */
}

@media (max-width: 1148px) {
.blog-filters-system {
        padding: 10px 20px;
}

  .filter-layout {
    padding: 10px 20px 30px 20px;
  }
}
/* UPDATED BUTTON STYLES */

.content-type-buttons {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;       
    display: flex;            
    flex-direction: column;   
    align-items: center;     
    max-width: 1125px;       
    margin-left: auto;       
    margin-right: auto; 
	font-size: 16px;     
}

.content-type-buttons h3 {
    margin-bottom: 12px;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: max-content;
    max-width: min(750px, 100%);
    margin: 0 auto;
    padding: 0 15px;
}
.content-type-button {
    padding: 2px 5px;
    background: transparent;
    color: #333;
    border: none;
    text-decoration: none;
	font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    margin: 0;
    border-radius: 3px; /* Added for better hover effect */
}

.content-type-button:hover {
    color: white;
    background: #044D53;
    border-bottom: 2px solid #044D53;
}

.content-type-button.active {
    color: white;
    background: #044D53;
    border-bottom: 2px solid #044D53;
}

.button-separator {
    color: #000;
    padding: 0 5px;
    font-weight: 300;
    user-select: none;
}

.content-type-button:nth-child(4n) {
    margin-right: 0;
}

.mobile-content-type-dropdown {
display: none;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.content-type-buttons {
    display: none;
}
    .buttons-container {
        gap: 5px;
        justify-content: center; 
        align-items: center;
	width: 100%; 
    }
    
    .content-type-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .button-separator {
        display: none;
    }
    
    .content-type-button:hover,
    .content-type-button.active {
        background: #044D53;
        color: white;
    }
}

@media (max-width: 768px) and (min-width: 425px) {
    .buttons-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2-column grid */
        gap: 10px;
    }
    
    /* Make first button span both columns */
    .buttons-container button:first-child {
        grid-column: 1 / -1;
    }
}

/* For screens below 424px */
@media (max-width: 424px) {
    .buttons-container {
        flex-direction: column;
    }
    
    .buttons-container button {
        width: 100%; /* All buttons full width */
    }
}

/* Mobile dropdown styles */
.mobile-content-type-dropdown select {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}


/* Responsive visibility */

@media (max-width: 767px) {
    /* Show dropdown on mobile */
    .mobile-content-type-dropdown {
        display: flex;
        justify-content: center;
    position: relative;
    width: 100%;
    margin: 10px auto;
    z-index: 100;
    }
    
    /* Hide buttons on mobile */
    .buttons-container {
        display: none;
    }
}

/* Dropdown styling */
.mobile-content-type-dropdown select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    margin: 0 auto;
}

/* Dropdown Toggle Checkbox (hidden) */
.dropdown-toggle {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* Dropdown Label/Button */
.dropdown-label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-size: 15px;
	width: 100%;
	justify-content: center;
}

.dropdown-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: url('https://blog.anthempress.com/wp-content/uploads/2025/08/down-arrow.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.2s ease;
}

.dropdown-toggle:checked ~ .dropdown-label .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Content */
.mobile-content-type-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 101;
	    text-transform: uppercase;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 101;
}

/* Dropdown Links */
.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.dropdown-content a:last-child {
    border-bottom: none;
}
	
.dropdown-content a.active,
.dropdown-content a:hover {
    background: #044D53;
    color: white;
}

/* Show dropdown when checked */
.dropdown-toggle:checked ~ .dropdown-content {
    display: block;
}

/* FILTER LAYOUT */
.filter-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* SIDEBAR CATEGORIES */
.subject-categories {
    border-right: 1px solid #eee;
}

.subject-categories h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.subject-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-categories li {
    margin-bottom: 1px;
}

.subject-categories a {
    display: block;
    padding: 0 2px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
}

.subject-categories a:hover {
    background: rgba(4, 77, 83, 0.08); /* #044D53 with 8% opacity */
    color: #000; /* Black text */
}

.subject-categories a.active {
    background: rgba(4, 77, 83, 0.08); /* #044D53 with 8% opacity */
    color: #000; /* Black text */
	border: 2px solid #044D53;	
	font-weight: 600;
}

.mobile-dropdown{
	display: none;
}


/* Mobile styles (768px and below) */
@media (max-width: 768px) {
  .filter-layout {
    position: relative;
  }
  
  /* Hide the regular filter list */
  .subject-categories ul {
    display: none;
  }

  .subject-categories h3 {
       text-align: center;
	 margin-left: auto;
    margin-right: auto;
    max-width: 80%;
  }
  
  /* Create and style the dropdown select */
.mobile-dropdown {
    display: flex;
    position: relative;
    width: 100%;
    margin: 10px auto;
    z-index: 50;
}  
  /* Remove the ::after pseudo-element if you previously used it */
  .subject-categories::after {
    display: none;
  }  
  .subject-categories select {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    appearance: none;
    background: white;
    text-align: center;
  }
  .subject-categories select.mobile-dropdown option {
    text-align: center;
  }
}

/* POSTS GRID */

.posts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.post-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}



/* CONTENT TYPE POST STYLES */
.content-type-header {
    margin-bottom: 10px;
}

.content-type-label {
   display: block;
    font-size: 18px;
    color: #404040;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.post-media,
.post-thumbnail {
    margin: 0 0 2px;
    background: #f9f9f9;
    min-height: 200px;
}

.post-media img,
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* DEFAULT POST STYLES */
.post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
	font-weight: 600;
    line-height: 1.4;
	color: #044D53;
}

.post-content h2 a {
    color: inherit;
    text-decoration: none;
}

.post-content h2 a:hover {
    color: #044D53;
    opacity: 0.8;
}

.post-meta {
    font-size: 0.82em;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-meta span {
    display: inline-block;
}

.post-excerpt {
    font-size: 18px;
    line-height: 1.5;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PAGINATION */
.pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination a:hover,
.pagination span.current {
    background: #044D53;
    color: white;
    border-color: #044D53;
}

/* NO POSTS MESSAGE */
.no-posts {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    background: #f8f8f8;
    color: #666;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .posts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-layout {
        grid-template-columns: 1fr;
    }
    
    .subject-categories {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .posts-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .buttons-container {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    
    .button-separator {
        display: none;
    }
    
    .content-type-button {
        border: 1px solid #eee;
        border-radius: 4px;
        margin: 2px;
    }
    
    .content-type-button.active {
        border: 1px solid #2271b1;
    }
    
    .post-media img,
    .post-thumbnail img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .post-media img,
    .post-thumbnail img {
        height: 150px;
    }
    
    .content-type-buttons h3 {
        margin-bottom: 8px;
    }
    
    .content-type-button {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

.page-title {
    display: none;
}



/* Styles for Single Blog Post */

/* Layout Structure */
.post-content-container {
    max-width: 1125px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.entry-content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.entry-header .entry-title {
    color: black;
    margin-bottom: 0;
    width: 100%; 
	line-height: 1.25;
	font-size: 34px;
	font-weight: 500; 
}



/* If using dark header background */
.entry-header {
    color: black;
    margin-bottom: 2rem;
    text-align: left;
}

.entry-header .post-date {
    color: black;
    position: static;
    order: -1;
	font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
}
/* Position the publish date above the title */
.entry-header {
    position: relative;
    padding-top: 50px; /* Make space for the date */
}


/* If you're using the dark teal header from earlier */


.post-sidebar {
    width: 25%;
    flex: 0 0 25%;
    order: 1;
    min-width: 0;
}

.post-main-content {
    width: 75%;
    flex: 1;
    order: 2;
	font-size: 18px;
	min-width: 0;
}

/* Featured Image Styles */
.post-featured-image {
    margin-bottom: 25px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .entry-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .post-sidebar,
    .post-main-content {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .post-sidebar {
        order: 1;
        margin-bottom: 30px;
    }
    
    .post-main-content {
        order: 2;
    }
}

/* Banner Image Styles */
.featured-image-banner {
    margin-bottom: 2rem;
}

.featured-image-banner img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
}


/* Post navigation styles */
.post-navigation {
    margin: 3rem 0;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    width: 100%;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 15px;
    color: #666;
    margin-bottom: 0.5em;
}

.nav-title {
    font-weight: 600;
	font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-next {
        text-align: left;
    }
}

.entry-content strong,
.entry-content b {
    font-weight: bold !important;
}

/* Footer Styles */
.anthem-footer {
    background-color: #282828;
    color: white;
    padding: 30px 0;
    font-family: "Roboto", sans-serif;
}

.footer-container {
    width: 100%;
    max-width: 1125px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25%;
    padding: 20px 0;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-link {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: normal;
    margin: 8px 0;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #38b2ac;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.footer-copyright {
    text-align: center;
    font-weight: 300;
    font-size: 14px;
    color: #999999;
    padding: 20px 0 10px;
}

/* Responsive Styles */
@media  (max-width: 1024px) {
  .footer-columns {
    gap: 10%;
  }
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Header Styles */
.custom-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
	max-width: 1125px;
	margin: auto;
}

.logo-container img {
    max-height: 60px;
    width: auto; /* Maintain aspect ratio */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;

}

.social-icons a {
    display: inline-block;
    opacity: 1;
}

.social-icons a:hover {
    opacity: 0.8; /* 80% opacity on hover */
}

.social-icons img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Special size for specific platforms */
.social-icons img.bluesky,
.social-icons img.linkedin,
.social-icons img.facebook {
    width: 35px;
    height: 35px;
    object-fit: contain;

}

/* Logo center for mobile */
@media (max-width: 768px) {
  .header-actions {
    display: none;
  }

  .header-top {
    justify-content: center;
    text-align: center;
  }

  .logo-container {
    margin: 0 auto;
  }

  .logo-container img {
    max-height: 60px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* =======================
   Primary Navigation Styles
======================= */
.primary-navigation {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    background-color: #044D53;
    position: relative;
    z-index: 150;
}

/* Flex container for menu + search */
.primary-navigation .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1125px;
    margin: 0 auto;
    width: 100%;
}

/* Menu styling */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    width: auto;
    gap: 30px;
}

/* Modified menu item padding - all items start from left */
.primary-menu > li > a {
    display: block;
    padding: 15px 20px 15px 0; /* Right padding only */
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    position: relative;
}

/* Adjust underline position */
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 20px;
    bottom: 15px;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.primary-menu > li > a:hover::after {
    transform: scaleX(1);
}

.primary-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
    background: white;
}

/* Submenu styling */
.primary-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu {
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 150;
    left: 0;
    top: 100%;
    transform: translateY(10px);
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu .sub-menu a {
    padding: 10px 15px;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
    font-weight: normal;
    text-transform: none;
    white-space: nowrap;
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 151;
}

.primary-menu .sub-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* =======================
   Search Styling
======================= */
.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-search .search-form {
    position: relative;
}

.header-search .search-field {
    padding: 6px 32px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.header-search .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 16px;
}

.header-search .search-submit:hover {
    color: #000;
}

/* =======================
   Hamburger Toggle (Pure CSS)
======================= */
.menu-toggle {
    display: none;
}

.hamburger-container {
    display: none;
}

.hamburger-btn {
    font-size: 30px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.close-btn {
    display: none;
}

.menu-toggle:checked ~ .open-btn {
    display: none;
}

.menu-toggle:checked ~ .close-btn {
    display: inline-block;
}

#menu-primary-menu-1 { display: none; }

/* =======================
   Mobile Styles
======================= */
@media (max-width: 768px) {
    .hamburger-container {
        background-color: #044D53;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 15px 20px;
        width: 100%;
        position: relative;
        z-index: 200;
    }

    .primary-navigation .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .menu-toggle:checked ~ .primary-navigation .primary-menu {
        display: flex;
    }

    .primary-menu li {
        text-align: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .primary-menu li a {
        color: #044D53;
        text-decoration: none;
        font-size: 1rem;
        display: block;
    }

    .primary-menu li a:hover,
    .primary-menu li a:focus {
        background-color: #f4f4f4;
    }

    /* Move search into mobile menu */
}
@media (max-width: 768px) {
    /* Keep hamburger + search in same row */
    .hamburger-container {
        background-color: #044D53;
        display: flex;
        justify-content: space-between; /* Hamburger left, search right */
        align-items: center;
        padding: 15px 20px;
        width: 100%;
    }

    /* Search styling for mobile header */
    .hamburger-container .header-search {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .hamburger-container .header-search .search-form {
        position: relative;
        max-width: 150px;
    }

    .hamburger-container .header-search .search-field {
        padding: 6px 28px 6px 10px;
        border: 1px solid #ccc;
        border-radius: 20px;
        font-size: 14px;
    }

    .hamburger-container .header-search .search-submit {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #555;
        cursor: pointer;
        font-size: 16px;
    }

}

/* Latest Post Grid */
.latest-posts-grid {
    margin: 60px auto;
    max-width: 1125px;
}

.latest-posts-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

.latest-posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.latest-post-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.latest-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.latest-post-image {
    display: block;
    height: 200px; 
    overflow: hidden;
    position: relative;
}

.latest-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures content takes up available space */
}

.latest-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #222;
}

.latest-post-title a {
    color: inherit;
    text-decoration: none;
}

.latest-post-title a:hover {
    text-decoration: underline;
}

.latest-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Reduced from 4 to minimize space */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0; /* Removes default paragraph margin */
}

/* Default image styles */
.default-post-image {
    background-color: #044D53;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-post-title {
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    /* These properties remove all text decorations */
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: initial !important;
    text-decoration-style: initial !important;
    text-decoration-color: initial !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

h3.default-post-title a,
h3.default-post-title a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

h3.default-post-title a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* If the title contains an anchor tag */
.default-post-title a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .latest-post-image {
        height: 180px;
    }
    
    .latest-post-excerpt {
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1024px) {
.latest-posts-grid {
        padding: 0 20px;
}

    .latest-posts-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet - 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
.latest-posts-grid {
	padding: 0 20px;
}
    
.latest-posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
.latest-posts-grid {
        padding: 0 20px;
}
   
.latest-posts-container {
        grid-template-columns: 1fr;
    }
}

/* search styles */

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
}

.search-field {
    padding: 6px 32px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 16px;
}

.search-submit:hover {
    color: #000;
}

