/*Layouts css goes here*/

html, body {
 color: #03303f; 
}

:root {
  --s1: 8px;
  --s2: calc(var(--s1) * 2);
}

.filter-drawer {
 position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  max-width: 70%;
  z-index: 10;
  overflow-y: scroll;
  background: white;
  padding: 20px;
  box-shadow: -10px 0px 25px rgba(0,0,0,.4);
  display: flex;
  gap: var(--s2);
  flex-direction: column;
  transition: .2s all;
  transform: translateX(120%);
}
.filter-drawer.open {
 transform: translateX(0); 
}

.sticky-head {
 position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #aaa;
  padding-top: var(--s1);
  padding-bottom: var(--s1);
  display: flex;
  justify-content: space-between;
  z-index:15;
}

/* --- Global Page Title --- */
.page-title h1 {
    font-size: 3rem;
    letter-spacing: -.5px;
  margin-bottom: 0;
    color: #1a1a1a;
}

.page-title {
  padding: 1em 0;
  background-color: #eee;
}
/* Breadcrumb Container */
.rank-math-breadcrumb {
    
    
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #888;
}

/* Links (Home, etc.) */
.rank-math-breadcrumb a {
    color: #559D9C; /* Your brand teal */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rank-math-breadcrumb a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* The Separator - Hiding the hyphen and replacing with a modern slash */
.rank-math-breadcrumb .separator {
    margin: 0 12px;
    font-size: 0; /* Hides the actual '-' character */
}

.rank-math-breadcrumb .separator::after {
    content: "/"; /* A clean, modern slash */
    font-size: 0.85rem;
    color: #ccc;
}

/* The Current Page (Last item) */
.rank-math-breadcrumb .last {
    color: #444;
    font-weight: 400;
}



.pagination li {
 	 float: left;
}
.pagination li>a, .pagination li>span, .pagination-next-link, .pagination-previous-link {
 	padding: 10px;
  display: block;
  border: 1px solid;
}

.align-middle {
  align-items: center;
  display: flex;
}

.icon-grid {
 gap: 20px; 
}
.icon-grid img {
  height: 120px !important;
  width: auto !important;
  object-fit: contain;
	background: var(--c_teal);
  border-radius: 200px;
  aspect-ratio: 1/1;
  padding: 15px;
}
.icon-grid figure {
 display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  row-gap: 40px;
}
.icon-grid figcaption {
  background-color: #efefef;
  border-radius: 5px;
  width: 100%;
  padding: 12px;
}


.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
  row-gap: 40px;
    text-align: center;
    font-size: 10px;
}
.badges img {
  padding: 10px;
  
}
.badges li {
  background: var(--c_teal);
  border-radius: 200px;
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
}
.badges .caption {
 position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
}

@media screen and (max-width: 768px) {
  .align-middle {
    flex-wrap: wrap;
  }
}

/* Blog archive styles */

/* Container Layout */
.js-wpv-view-layout-4827 {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Individual Post Styling */
article.blog-entry {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

/* The Title */
article.blog-entry h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #222;
    font-weight: 500;
}

article.blog-entry a {
    text-decoration: none;
    display: inline-block;
}

article.blog-entry a:hover h2 {
    color: #559D9C; /* Your Urban Tofu Teal */
}

/* Metadata (Posted by Aly...) */
.entry-meta {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entry-meta::before {
    content: "";
    width: 30px;
    height: 1px;
    background-color: #559D9C;
    display: inline-block;
}

/* Pagination Refresh */
.pagination {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.page-link {
    border: none !important;
    color: #559D9C !important;
    background: transparent !important;
    font-weight: bold;
}

.page-item.active .page-link {
    color: #222 !important;
    text-decoration: underline !important;
}

/* --- Article Layout Update --- */
article.blog-entry {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.post-content-area {
    flex: 1;
}

/* --- Featured Image / Book Placeholder --- */
.book-placeholder {
    width: 140px;
    height: 200px;
    background-color: #559D9C;
    background: linear-gradient(135deg, #559D9C 0%, #448382 100%);
    border-radius: 4px 10px 10px 4px; /* Mimics a book spine on the left */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevents the 'book' from squishing */
    position: relative;
    overflow: hidden;
}

/* Sublte 'spine' line for the book */
.book-placeholder::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.3);
}

.book-initials {
    color: white;
    font-family: "Helvetica", sans-serif;
    font-weight: 900;
    font-size: 2rem;
    opacity: 0.9;
}


/* --- Global Menu Reset --- */
.widget_nav_menu ul { list-style: none; padding: 0; margin: 0; }

/* --- Desktop Dropdowns (Above 768px) --- */
@media (min-width: 800px) {
    .menu-toggle { display: none; } /* Hide hamburger on desktop */
    
    .menu-top-menu-container ul.menu {
        display: flex;
        gap: 20px;
    }

    .menu-item { position: relative; }

    /* The Dropdown Panel */
    .menu-item ul.sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 200px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 100;
    }

    /* Hover State */
    .menu-item:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li a {
        padding: 10px 20px;
        display: block;
        color: #444;
        text-decoration: none;
        font-size: 0.9rem;
    }

    .sub-menu li a:hover {
        background: #f8fbfb;
        color: #559D9C;
    }
}

/* --- Mobile Hamburger (Below 768px) --- */
@media (max-width: 799px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        padding: 15px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    /* The Hamburger Lines */
    .hamburger, .hamburger::before, .hamburger::after {
        display: block;
        width: 24px;
        height: 2px;
        background: #559D9C; /* Brand Teal */
        position: relative;
        transition: 0.3s;
    }
    .hamburger::before, .hamburger::after { content: ''; position: absolute; }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: 8px; }

    /* X Animation */
    .menu-toggle.is-active .hamburger { background: transparent; }
    .menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    /* Mobile Drawer */
    .menu-top-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: white;
        
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    .menu-top-menu-container.is-open {
        right: 0;
    }

    .menu-top-menu-container ul.menu {
        flex-direction: column;
        gap: 25px;
    }

    .menu-top-menu-container ul.menu li a {

        color: #1a1a1a;
    }
  #header .menu {
    flex-direction: column !important;
  }
}
