/*
Theme Name: Seafarers Theme
Theme URI: https://seafarers-sailing-club.org.uk
Author: Seafarers Sailing Club
Author URI: https://seafarers-sailing-club.org.uk
Description: A custom theme for the Seafarers Sailing Club website. Clean, modern design focused on sailing and maritime activities.
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.9.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seafarers-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, blog, portfolio, news
*/

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    color: #ef6431;
}

a:hover {
    color: #c94f1b;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background: #1e3a8a;
    color: white;
    font-weight: 700;
    left: 6px;
    padding: 8px 16px;
    position: absolute;
    top: 6px;
    text-decoration: none;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.skip-link:focus {
    transform: translateY(0%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.site-title-description {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.custom-logo-link {
    display: inline-block;
    text-decoration: none;
}

.custom-logo-link img {
    max-width: 438px;
    width: auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Navigation */
.main-navigation {
    background-color: #1e40af;
    padding: 0.5rem 0;
    position: relative;
    display: none !important;
    z-index: 1000;
}

.main-navigation ul {
    list-style: none !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #1e40af !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Menu container styling */
.menu-container {
    position: relative;
}

/* Empty menu state */
.menu-container:empty::after {
    content: 'No menu items available';
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 1rem;
    text-align: center;
    display: block;
}

/* Columnar menu layout for root items */
.main-navigation ul.menu-columns {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2.5rem !important;
    padding: 2rem !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    min-width: 300px !important;
    max-width: none !important;
    margin: 0 auto !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.main-navigation ul.menu-columns > li {
    display: flex !important;
    flex-direction: column !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
}

.main-navigation ul.menu-columns > li > a {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.75rem 0 !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.main-navigation ul.menu-columns > li > a:hover {
    color: #fbbf24 !important;
    border-bottom-color: #fbbf24 !important;
}

.main-navigation ul.menu-columns > li > ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    position: static !important;
    box-shadow: none !important;
}

.main-navigation ul.menu-columns > li > ul > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    padding: 0.5rem 0 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.main-navigation ul.menu-columns > li > ul > li > a:hover {
    color: #fbbf24 !important;
    padding-left: 0.5rem !important;
    background: none !important;
}

/* Additional styling for better visual hierarchy */
.main-navigation ul.menu-columns > li > ul > li {
    margin-bottom: 0.25rem;
}

.main-navigation ul.menu-columns > li > ul > li:last-child {
    margin-bottom: 0;
}

/* Add subtle animation for menu items */
.main-navigation ul.menu-columns > li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-navigation ul.menu-columns > li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.main-navigation.toggled ul {
    display: flex;
}

.main-navigation.toggled ul.menu-columns {
    display: grid !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation a:hover {
    background-color: #3b82f6;
}

/* Hamburger Menu Button */
.menu-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 4px !important;
    transition: background-color 0.3s !important;
    position: relative !important;
    z-index: 1001 !important;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Hamburger Icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Animated hamburger when menu is open */
.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main content */
.site-main {
    padding: 2rem 0;
    min-height: 60vh;
    flex: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: #6c757d;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #ef6431;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #c94f1b;
    text-decoration: underline;
}

.breadcrumb-item .current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
    font-size: 0.75rem;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .breadcrumb-separator {
        margin: 0 0.25rem;
    }
}

/* Ensure slideshow appears above other content */
.slideshow-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
}

/* Content styling */
.entry-title {
    margin-bottom: 1rem;
}

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

.entry-title a:hover {
    color: #c94f1b;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Inline person component (person-inline block) */
.person-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #ef6431;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
}

.person-inline:hover {
    color: #c94f1b;
}

img.person-inline-photo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.person-inline-name {
    vertical-align: middle;
}

.byline--person {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.person-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ef6431;
    font-weight: 500;
    transition: color 0.2s;
}

.person-author-link:hover {
    color: #c94f1b;
}

img.person-author-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.news-date,
.posted-on {
    display: inline;
}

.news-date::before,
.posted-on::before {
    content: '·';
    margin: 0 0.4rem;
    color: #cbd5e1;
}

.entry-content {
    margin-bottom: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: outside;
    margin-left: 1.2em;
}

.entry-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.3em;
}

.read-more {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background: #3b82f6;
}

/* Widget area */
.widget-area {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: #1e3a8a;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

/* Footer Content Layout */
.footer-content {
    margin-bottom: 2rem;
    width: 100%;
}

/* Footer Menu Grid */
.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

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

.footer-menu-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.footer-menu-title-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu-title-link:hover {
    color: #60a5fa;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-item {
    margin-bottom: 0.5rem;
}

.footer-menu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-menu-link:hover {
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.site-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.site-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: white;
}

.site-info .sep {
    margin: 0 0.5rem;
}

/* Footer Fallback */
.footer-menu-fallback {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-menu-fallback li {
    list-style: none;
    margin: 0;
}

.footer-menu-fallback a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-menu-fallback a:hover {
    color: white;
}

.footer-menu-fallback p {
    margin: 0;
    font-style: italic;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation.toggled ul.menu-columns {
        display: grid !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        align-items: unset !important;
        justify-content: unset !important;
    }
    
    .main-navigation ul.menu-columns {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
        max-height: 70vh !important;
        min-width: auto !important;
        max-width: 100% !important;
    }
    
    .main-navigation ul.menu-columns > li {
        padding: 1rem !important;
    }
    
    .main-navigation ul.menu-columns > li > a {
        font-size: 1.1rem !important;
        padding: 0.5rem 0 !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Footer responsive styles */
    .footer-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Full Screen Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

.slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}

.slide.active {
    opacity: 1 !important;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary:hover {
    background-color: #3b82f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e3a8a;
    transform: translateY(-2px);
}

/* Navigation arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 2rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 3;
    cursor: pointer;
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Dots/circles */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
}

/* Responsive slideshow */
@media (max-width: 768px) {
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .slide-nav {
        padding: 0.8rem 1.2rem;
        font-size: 1.5rem;
    }
    
    .slide-nav.prev {
        left: 10px;
    }
    
    .slide-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-nav {
        padding: 0.6rem 1rem;
        font-size: 1.2rem;
    }
}

/* Additional Section Styles */
.wordpress-content-section,
.about-section,
.news-section,
.contact-section {
    padding: 4rem 0;
}

/* WordPress Content Section */
.wordpress-content-section {
    background: transparent;
    margin-top: 0;
}

.wordpress-content-section .section-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.wordpress-content-section .entry-title {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
}

.wordpress-content-section .entry-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.wordpress-content-section .entry-content h1,
.wordpress-content-section .entry-content h2,
.wordpress-content-section .entry-content h3,
.wordpress-content-section .entry-content h4,
.wordpress-content-section .entry-content h5,
.wordpress-content-section .entry-content h6 {
    color: #1e3a8a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wordpress-content-section .entry-content p {
    margin-bottom: 1.5rem;
}

.wordpress-content-section .entry-content ul,
.wordpress-content-section .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style-position: outside;
    margin-left: 1.2em;
}

.wordpress-content-section .entry-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.3em;
}

.wordpress-content-section .entry-content blockquote {
    border-left: 4px solid #1e3a8a;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.wordpress-content-section .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.wordpress-content-section .entry-content a {
    color: #ef6431;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.wordpress-content-section .entry-content a:hover {
    border-bottom-color: #ef6431;
}

.wordpress-content-section .page-links {
    margin-top: 2rem;
    text-align: center;
}

.wordpress-content-section .page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.wordpress-content-section .page-links a:hover {
    background: #3b82f6;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.feature h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Page content with See Also sidebar */
.entry-content.page-content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    align-items: start;
}

.page-see-also {
    position: sticky;
    top: 1.5rem;
}

.see-also-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.see-also-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e5e7eb;
}

.see-also-list li {
    margin: 0;
    padding: 0;
}

.see-also-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.see-also-list a:hover {
    color: #ef6431;
    border-left-color: #ef6431;
}

@media (max-width: 768px) {
    .entry-content.page-content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .page-see-also {
        position: static;
    }
}

/* Homepage two-column layout */
.homepage-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    padding: 3rem 0;
}

.homepage-main-col {
    padding: 0;
}

.homepage-main-col .section-content {
    padding: 0;
    background: none;
    box-shadow: none;
}

.homepage-main-col .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.homepage-main-col h2 {
    margin-top: 0;
}

.homepage-sidebar-col {
    position: sticky;
    top: 1.5rem;
}

.homepage-sidebar-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.homepage-sidebar-content h1,
.homepage-sidebar-content h2,
.homepage-sidebar-content h3,
.homepage-sidebar-content h4,
.homepage-sidebar-content h5,
.homepage-sidebar-content h6 {
    color: #1e3a8a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.homepage-sidebar-content h2:first-child,
.homepage-sidebar-content h3:first-child {
    margin-top: 0;
}

.homepage-sidebar-content p {
    margin-bottom: 1rem;
}

.homepage-sidebar-content ul,
.homepage-sidebar-content ol {
    margin-bottom: 1rem;
    padding-left: 1.2em;
}

.homepage-sidebar-content a {
    color: #ef6431;
}

.homepage-sidebar-content a:hover {
    color: #c94f1b;
}

@media (max-width: 1024px) {
    .homepage-columns {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 768px) {
    .homepage-columns {
        grid-template-columns: 1fr;
    }

    .homepage-sidebar-col {
        position: static;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin-bottom: 0.5rem;
}

.news-content h3 a {
    color: #ef6431;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #c94f1b;
}

.news-meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-excerpt {
    line-height: 1.6;
}

.news-more {
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background-color: #1e3a8a;
    color: white;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.contact-item strong {
    color: #1e3a8a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .custom-logo-link img {
        max-width: 375px;
    }
}

@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .wordpress-content-section .section-content {
        padding: 2rem;
        margin: 0 15px;
    }
    
    .wordpress-content-section .entry-title {
        font-size: 2rem;
    }
    
    .wordpress-content-section .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .wordpress-content-section .section-content {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .wordpress-content-section .entry-title {
        font-size: 1.8rem;
    }
    
    .wordpress-content-section .entry-content {
        font-size: 0.95rem;
    }
    
    .wordpress-content-section .entry-content ul,
    .wordpress-content-section .entry-content ol {
        padding-left: 0;
        margin-left: 1em;
    }
}

/* Logo and Header Responsive Styles */
@media (max-width: 1024px) {
    .slideshow-logo,
    div[style*="text-align: center"] .slideshow-logo,
    div[style*="position: absolute"] .slideshow-logo,
    div[style*="display: flex"] .slideshow-logo,
    .slideshow-logo-container .slideshow-logo {
        max-width: 200px !important;
        max-height: 100px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .slideshow-logo-container {
        top: 40px !important;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .site-title-description {
        align-items: center;
    }
    
    .custom-logo-link img {
        max-width: 350px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        font-size: 0.9rem;
    }
    
    .slideshow-logo,
    div[style*="text-align: center"] .slideshow-logo,
    div[style*="position: absolute"] .slideshow-logo,
    div[style*="display: flex"] .slideshow-logo,
    .slideshow-logo-container .slideshow-logo {
        max-width: 175px !important;
        max-height: 88px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .slideshow-logo-container {
        top: 30px !important;
    }
}

/* Slideshow Logo Styles */
.slideshow-logo {
    display: block !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 225px !important;
    max-height: 113px !important;
    width: auto !important;
    height: auto !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) !important;
    transition: all 0.3s ease !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
}

/* Fixed Slideshow Logo Container */
.slideshow-logo-container {
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

.slideshow-logo-container .slideshow-logo {
    margin: 0 !important;
    display: block !important;
}

/* More specific selector to override any conflicting styles */
div[style*="text-align: center"] .slideshow-logo {
    width: auto !important;
    height: auto !important;
    max-width: 225px !important;
    max-height: 113px !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) !important;
}

/* Target the specific slideshow context */
div[style*="position: absolute"] .slideshow-logo,
div[style*="display: flex"] .slideshow-logo {
    width: auto !important;
    height: auto !important;
    max-width: 225px !important;
    max-height: 113px !important;
    display: block !important;
    margin: 0 auto 1.5rem auto !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)) !important;
}

.slideshow-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.5));
}

@media (max-width: 480px) {
    .custom-logo-link img {
        max-width: 275px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .slideshow-logo,
    div[style*="text-align: center"] .slideshow-logo,
    div[style*="position: absolute"] .slideshow-logo,
    div[style*="display: flex"] .slideshow-logo,
    .slideshow-logo-container .slideshow-logo {
        max-width: 150px !important;
        max-height: 75px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .slideshow-logo-container {
        top: 20px !important;
    }
}

/* Person Post Type Styles */
.person-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.person-photo-circle {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.person-photo-circle img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    display: block;
}

.person-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.25rem;
}

.person-info-row {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.person-info-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
    font-size: 0.9rem;
}

.person-info-value {
    color: #4b5563;
}

.person-info-value a {
    color: #ef6431;
    text-decoration: none;
}

.person-info-value a:hover {
    color: #c94f1b;
}

.person-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.person-image {
    text-align: center;
}

.person-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.person-details > div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.person-details > div:last-child {
    border-bottom: none;
}

.person-details strong {
    color: #1e3a8a;
    display: inline-block;
    min-width: 120px;
}

.person-bio {
    margin-top: 2rem;
    line-height: 1.8;
}

.social-links a {
    color: #ef6431;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #c94f1b;
}

/* People Archive Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.person-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.person-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

img.person-card-photo {
    display: block !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    margin: 0 auto 1rem;
}

.person-card-no-photo {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 1rem;
}

.person-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 0.25rem;
}

.person-card-role {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.person-card-email-icon {
    display: block;
    margin-top: 0.4rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.person-card-email-icon:hover {
    color: #ef6431;
}

.person-card-email-icon .dashicons {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
}

/* Responsive Design for Person Templates */
@media (max-width: 768px) {
    .person-profile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
