/*
Theme Name: OK EPSCoR Theme
Theme URI: https://www.okepscor.org
Author: Your Name
Author URI: https://www.okepscor.org
Description: Custom theme for Oklahoma EPSCoR with Elementor support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: okepscor-theme
Tags: elementor, custom, education, research

This theme is designed for the Oklahoma EPSCoR (Established Program to Stimulate Competitive Research) website.
It provides full support for the free version of Elementor with custom header and footer templates.
*/

/* ========================================
   Oklahoma Flag Color System
   ======================================== */
:root {
    /* Oklahoma Flag Official Colors (from actual flag) */
    --color-ok-blue: #0073CF;
    --color-ok-blue-dark: #2c3e50;
    --color-ok-blue-light: #3399FF;
    --color-ok-red: #C6202E;
    --color-ok-red-brown: #9a3b26;
    --color-ok-gold: #B3995D;
    --color-ok-gold-light: #D4BD8A;
    --color-ok-cream: #EFE8C7;
    --color-ok-green: #1d5c42;

    /* Semantic Color Assignments */
    --color-primary: var(--color-ok-blue);
    --color-primary-hover: var(--color-ok-blue-dark);
    --color-primary-light: var(--color-ok-blue-light);
    --color-accent: var(--color-ok-gold);
    --color-accent-hover: var(--color-ok-gold-light);
    --color-accent-alt: var(--color-ok-red);

    /* Applied Colors */
    --color-link: var(--color-ok-blue);
    --color-link-hover: var(--color-ok-blue-dark);
    --color-button: var(--color-ok-gold);
    --color-button-hover: var(--color-ok-gold-light);
    --color-heading: var(--color-ok-blue);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* List Styles - Restore proper indentation and bullets in content areas */
.entry-content ul,
.entry-content ol,
.research-interests-content ul,
.research-interests-content ol,
.education-content ul,
.education-content ol,
.publications-content ul,
.publications-content ol,
.team-member-bio ul,
.team-member-bio ol,
.widget ul,
.widget ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
    padding-left: 0;
}

.entry-content ul,
.research-interests-content ul,
.education-content ul,
.publications-content ul,
.team-member-bio ul,
.widget ul {
    list-style-type: disc;
}

/* Only set decimal as fallback for lists WITHOUT a type attribute */
.entry-content ol:not([type]),
.research-interests-content ol:not([type]),
.education-content ol:not([type]),
.publications-content ol:not([type]),
.team-member-bio ol:not([type]),
.widget ol:not([type]) {
    list-style-type: decimal;
}

/* Let the browser handle lists WITH type attribute naturally */

.entry-content li,
.research-interests-content li,
.education-content li,
.publications-content li,
.team-member-bio li,
.widget li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004080;
}

/* WordPress Core Alignment */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Content Area */
.site-content {
    padding: 40px 0;
    min-height: 50vh;
}

/* Elementor Compatibility */
.elementor-page .site-content {
    padding: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background-color: #000000;
    border-bottom: 1px solid #333333;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Account for WordPress admin bar when logged in */
.admin-bar .site-header {
    top: 32px;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Site Branding */
.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #ffffff;
}

.site-title a:hover {
    color: var(--color-ok-gold);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #cccccc;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    transition: max-height 0.3s ease;
}

/* Smaller logo when header is scrolled/sticky */
.site-header.scrolled .custom-logo {
    max-height: 60px;
}

/* Main Navigation */
.main-navigation {
    position: relative;
    padding-top: 50px; /* Make room for social icons above */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 24px;
}

.menu-toggle-icon {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: background-color 0.3s;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    position: absolute;
    transition: transform 0.3s;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--color-ok-cream);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.primary-menu a:hover {
    color: #ffffff;
}

.primary-menu .current-menu-item > a {
    color: var(--color-ok-blue);
    font-weight: 700;
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.primary-menu .sub-menu a {
    padding: 10px 20px;
    white-space: nowrap;
    color: var(--color-ok-cream);
}

.primary-menu .sub-menu a:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}

.primary-menu .sub-menu .current-menu-item > a {
    color: var(--color-ok-blue);
    font-weight: 700;
}

.submenu-toggle {
    display: none;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    margin: 0 0 10px 0;
    position: absolute;
    top: 0;
    right: 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}

/* Brand-specific colors */
.social-icon--facebook {
    color: #1877F2;
}

.social-icon--facebook:hover,
.social-icon--facebook:focus {
    color: #0d5dbf;
    transform: translateY(-2px);
}

.social-icon--linkedin {
    color: #0A66C2;
}

.social-icon--linkedin:hover,
.social-icon--linkedin:focus {
    color: #084d94;
    transform: translateY(-2px);
}

.social-icon--instagram {
    color: #E4405F;
}

.social-icon--instagram:hover,
.social-icon--instagram:focus {
    color: #c13584;
    transform: translateY(-2px);
}

.social-icon:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 0;
}

.footer-widgets {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-widget-area {
    color: #ecf0f1;
}

.footer-widget-1 {
    flex: 1;
    text-align: left;
}

.footer-widget-2 {
    flex: 0 0 150px;
    text-align: right;
}

.footer-widget-2 img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-widget-2 figure {
    margin: 0;
}

.footer-widget-3 {
    flex: 0 0 auto;
}

.footer-widget-area .widget-title {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.footer-widget-area a {
    color: #ecf0f1;
}

.footer-widget-area a:hover {
    color: #fff;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 30px 0;
    background-color: var(--color-ok-cream);
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-image {
    max-width: 180px;
    height: auto;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.footer-organization {
    font-size: 1rem;
    color: #2c3e50;
}

.footer-address {
    font-size: 0.875rem;
    color: #2c3e50;
}

.footer-contact {
    font-size: 0.875rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-separator {
    color: #7f8c8d;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #5a6c7d;
    margin-right: 8px;
}

.site-copyright,
.site-credits {
    margin: 0;
    font-size: 0.875rem;
    color: #2c3e50;
}

.footer-bottom a {
    color: var(--color-ok-blue);
}

.footer-bottom a:hover {
    color: var(--color-ok-blue-dark);
}

.footer-navigation .footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-navigation a {
    font-size: 0.875rem;
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff !important;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #004080;
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
}

.archive-description {
    margin-top: 1rem;
    color: #666;
}

/* Posts Navigation */
.posts-navigation,
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e5e5e5;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

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

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 600;
    color: #0066cc;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.widget li {
    margin-bottom: 0.5rem;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e5e5;
}

/* Responsive */
@media (max-width: 782px) {
    /* WordPress admin bar is taller on mobile */
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        width: 100%;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 20px;
    }

    .main-navigation.toggled .primary-menu {
        display: flex;
    }

    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(239, 232, 199, 0.2);
    }

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

    .primary-menu a {
        padding: 15px 0;
    }

    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .submenu-toggle {
        display: inline-block;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 5px;
    }

    .submenu-toggle::after {
        content: '\25BC';
        font-size: 12px;
    }

    .submenu-toggle[aria-expanded="true"]::after {
        content: '\25B2';
    }

    /* Social icons in mobile menu */
    .social-icons {
        position: static;
        display: flex;
        justify-content: center;
        margin: 1rem 0 0 0;
        padding: 1rem 0;
        border-top: 1px solid #e5e5e5;
        top: auto;
        right: auto;
    }

    /* Show social icons when mobile menu is open */
    .main-navigation:not(.toggled) .social-icons {
        display: none;
    }

    .main-navigation.toggled .social-icons {
        display: flex;
    }

    .main-navigation {
        padding-top: 0; /* Remove top padding on mobile */
    }

    .header-inner {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .menu-toggle {
        flex: 0 0 auto;
        order: 2;
        margin-left: auto;
    }

    .main-navigation {
        order: 3;
    }

    .custom-logo {
        max-height: 60px;
    }

    /* Footer */
    .footer-widgets-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-widget-2 {
        flex: 0 0 auto;
        text-align: center;
        width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-text {
        align-items: center;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }

    .footer-navigation .footer-menu {
        justify-content: center;
    }

    /* Navigation */
    .nav-links {
        flex-direction: column;
    }

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

/* ==========================================================================
   Team Member Single Page Styles
   ========================================================================== */

.team-member-single {
    /* No max-width constraint - let content match header/footer width */
}

.team-member-header {
    text-align: left;
    margin-bottom: 2rem;
}

.team-member-name {
    font-size: 1.7rem;
    margin-bottom: 0;
    color: #2c3e50;
}

.team-member-meta {
    font-size: 1.125rem;
    color: #666;
    margin-top: 0;
}

.team-member-position-department,
.team-member-institution {
    display: block;
}

.team-member-institution {
    font-weight: 600;
}

.team-member-content-wrapper {
    display: block;
    margin-bottom: 3rem;
}

/* Only use 2-column grid when there's a sidebar (photo and/or contact) */
.team-member-content-wrapper:has(.team-member-sidebar) {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.team-member-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.team-member-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-member-details > * {
    margin-bottom: 2rem;
}

.team-member-details h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.team-member-contact {
    margin-bottom: 2rem;
}

/* Add spacing between sidebar elements */
.team-member-photo + .team-member-research-areas,
.team-member-photo + .team-member-contact,
.team-member-research-areas + .team-member-contact {
    margin-top: 1.5rem;
}

.contact-heading {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

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

.contact-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list strong {
    display: inline-block;
    min-width: 80px;
    color: #2c3e50;
}

.contact-list a {
    color: #0066cc;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.research-areas-heading {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.research-areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-area-item {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.research-interests-content {
    line-height: 1.8;
    color: #333;
}

.team-member-bio {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

/* Image Captions */
.wp-caption {
    max-width: 100%;
    margin: 1rem 0;
}

.wp-caption.alignright {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption.alignleft {
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.wp-caption-text,
figcaption {
    font-size: 0.875rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Responsive Team Member Layout */
@media (max-width: 768px) {
    .team-member-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member-photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .team-member-details h2 {
        font-size: 1.25rem;
    }

    .contact-list strong {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* ==========================================================================
   News/Blog List Styles
   ========================================================================== */

.news-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e5e5e5;
}

.news-header .page-title {
    margin-bottom: 0.5rem;
}

.news-header .page-description {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.news-item:first-child {
    padding-top: 0;
}

.news-item-header {
    margin-bottom: 1rem;
}

.news-item-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.news-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item-title a:hover {
    color: #0066cc;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    color: #666;
}

.news-date {
    font-weight: 500;
}

.news-categories {
    display: flex;
    gap: 0.5rem;
}

.news-category {
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: #666 !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.news-category:hover {
    background-color: #0066cc;
    color: #fff !important;
}

.news-item-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.news-item-content p:last-child {
    margin-bottom: 0;
}

/* Embedded videos in news posts */
.news-item-content iframe,
.news-item-content embed,
.news-item-content object {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* YouTube embeds specifically */
.news-item-content .wp-block-embed-youtube,
.news-item-content .wp-embed-responsive {
    margin: 1.5rem 0;
}

.read-more-link {
    margin-top: 1rem;
}

.read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.read-more-button:hover {
    background-color: #004080;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

/* Pagination */
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: #0066cc;
    color: #fff;
}

/* Responsive News List */
@media (max-width: 768px) {
    .news-item-title {
        font-size: 1.5rem;
    }

    .news-item {
        padding: 1.5rem 0;
    }

    .news-header {
        margin-bottom: 2rem;
    }
}

/* ==========================================================================
   Recent News Shortcode Widget Styles (Grid Layout with Video Thumbnails)
   ========================================================================== */

.okepscor-news-widget {
    margin: 2rem 0;
}

.okepscor-news-widget__header {
    margin-bottom: 2rem;
    text-align: center;
}

.okepscor-news-widget__title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Grid Layout (default) */
.okepscor-news-widget--grid .okepscor-news-widget__posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* List Layout (fallback) */
.okepscor-news-widget--list .okepscor-news-widget__posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post Card */
.okepscor-news-widget__post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.okepscor-news-widget__post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Video Thumbnail */
.okepscor-news-widget__thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.okepscor-news-widget__thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.okepscor-news-widget__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.okepscor-news-widget__post-card:hover .okepscor-news-widget__thumbnail img {
    transform: scale(1.05);
}

/* YouTube Play Icon */
.okepscor-news-widget__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.okepscor-news-widget__thumbnail:hover .okepscor-news-widget__play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Card Content */
.okepscor-news-widget__card-content {
    padding: 1.5rem;
}

.okepscor-news-widget__date-badge {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.okepscor-news-widget__post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.okepscor-news-widget__post-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.okepscor-news-widget__post-link:hover {
    color: #0066cc;
}

.okepscor-news-widget__post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    margin-top: 0.75rem;
}

/* Footer with View All link */
.okepscor-news-widget__footer {
    margin-top: 2.5rem;
    text-align: center;
}

.okepscor-news-widget__view-all {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-ok-green);
    color: var(--color-ok-cream) !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.okepscor-news-widget__view-all:hover {
    background-color: #164a35;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .okepscor-news-widget--grid .okepscor-news-widget__posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .okepscor-news-widget--grid .okepscor-news-widget__posts {
        grid-template-columns: 1fr;
    }

    .okepscor-news-widget__title {
        font-size: 1.75rem;
    }

    .okepscor-news-widget__card-content {
        padding: 1.25rem;
    }

    .okepscor-news-widget__post-title {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */

/* Remove Elementor default spacing from hero sections */
/* Target outer Elementor container */
.e-con-full:has(.okepscor-hero),
.e-con:has(.okepscor-hero) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Target shortcode widget */
.elementor-widget-shortcode:has(.okepscor-hero) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Target widget container */
.elementor-widget-shortcode:has(.okepscor-hero) .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.okepscor-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Hero Heights */
.okepscor-hero--small {
    min-height: 400px;
}

.okepscor-hero--medium {
    min-height: 600px;
}

.okepscor-hero--large {
    min-height: 800px;
}

.okepscor-hero--full {
    min-height: 100vh;
}

/* Background Image */
.okepscor-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Dark Overlay */
.okepscor-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Content Container */
.okepscor-hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    padding: 80px 20px;
}

.okepscor-hero__content-inner {
    max-width: 900px;
    text-align: center;
    color: #fff;
}

/* Subtitle */
.okepscor-hero__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-ok-cream);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

/* Title */
.okepscor-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Date */
.okepscor-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.okepscor-hero__date svg {
    flex-shrink: 0;
}

/* Description */
.okepscor-hero__description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.okepscor-hero__description p {
    margin-bottom: 1rem;
}

.okepscor-hero__description p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.okepscor-hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.okepscor-hero__button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.okepscor-hero__button--primary {
    background-color: var(--color-ok-cream);
    color: var(--color-ok-green) !important;
    box-shadow: 0 4px 15px rgba(239, 232, 199, 0.4);
}

.okepscor-hero__button--primary:hover {
    background-color: #ffffff;
    color: #164a35 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 232, 199, 0.6);
}

.okepscor-hero__button--secondary {
    background-color: transparent;
    color: #fff !important;
    border: 2px solid #fff;
}

.okepscor-hero__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .okepscor-hero__title {
        font-size: 2.75rem;
    }

    .okepscor-hero__description {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .okepscor-hero--small {
        min-height: 350px;
    }

    .okepscor-hero--medium {
        min-height: 500px;
    }

    .okepscor-hero--large {
        min-height: 600px;
    }

    .okepscor-hero__content {
        padding: 60px 20px;
    }

    .okepscor-hero__title {
        font-size: 2rem;
    }

    .okepscor-hero__subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .okepscor-hero__date {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .okepscor-hero__description {
        font-size: 1rem;
    }

    .okepscor-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .okepscor-hero__button {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* ==================================================
   Feature Boxes Section
   ================================================== */

.okepscor-features {
    display: grid;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.okepscor-features--3 {
    grid-template-columns: repeat(3, 1fr);
}

.okepscor-features--2 {
    grid-template-columns: repeat(2, 1fr);
}

.okepscor-features--4 {
    grid-template-columns: repeat(4, 1fr);
}

.okepscor-feature {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.okepscor-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007acc 0%, #005999 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.okepscor-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #007acc;
}

.okepscor-feature:hover::before {
    transform: scaleX(1);
}

.okepscor-feature--linked {
    cursor: pointer;
}

.okepscor-feature__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.okepscor-feature__icon svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.okepscor-feature:hover .okepscor-feature__icon {
    background: linear-gradient(135deg, #007acc 0%, #005999 100%);
}

.okepscor-feature:hover .okepscor-feature__icon svg {
    transform: scale(1.1);
}

.okepscor-feature:hover .okepscor-feature__icon path {
    fill: #ffffff;
}

.okepscor-feature__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.okepscor-feature:hover .okepscor-feature__title {
    color: #007acc;
}

.okepscor-feature__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.okepscor-feature__description p {
    margin: 0 0 12px 0;
}

.okepscor-feature__description p:last-child {
    margin-bottom: 0;
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-features--3,
    .okepscor-features--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .okepscor-feature {
        padding: 35px 25px;
    }

    .okepscor-feature__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .okepscor-feature__icon svg {
        width: 42px;
        height: 42px;
    }

    .okepscor-feature__title {
        font-size: 1.3rem;
    }

    .okepscor-feature__description {
        font-size: 0.95rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-features--2,
    .okepscor-features--3,
    .okepscor-features--4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .okepscor-feature {
        padding: 30px 20px;
    }

    .okepscor-feature__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .okepscor-feature__icon svg {
        width: 36px;
        height: 36px;
    }

    .okepscor-feature__title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .okepscor-feature__description {
        font-size: 0.9rem;
    }

    .okepscor-feature:hover {
        transform: translateY(-4px);
    }
}

/* ==================================================
   Newsletter Signup Component
   ================================================== */

.okepscor-newsletter {
    background: linear-gradient(135deg, var(--color-ok-blue) 0%, var(--color-ok-blue-dark) 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 16px rgba(0, 61, 165, 0.2);
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.okepscor-newsletter__content {
    max-width: 100%;
}

.okepscor-newsletter__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #ffffff;
    line-height: 1.3;
}

.okepscor-newsletter__description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.95);
}

.okepscor-newsletter__form {
    margin: 0;
}

.okepscor-newsletter__input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.okepscor-newsletter__input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.okepscor-newsletter__input:focus {
    outline: none;
    border-color: var(--color-ok-gold);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 160, 27, 0.2);
}

.okepscor-newsletter__input::placeholder {
    color: #999;
}

.okepscor-newsletter__button {
    padding: 14px 32px;
    background: var(--color-ok-cream);
    color: var(--color-ok-green);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.okepscor-newsletter__button:hover {
    background: #ffffff;
    color: #164a35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 92, 66, 0.3);
}

.okepscor-newsletter__button:active {
    transform: translateY(0);
}

.okepscor-newsletter__notice {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-newsletter {
        padding: 35px 30px;
    }

    .okepscor-newsletter__title {
        font-size: 1.75rem;
    }

    .okepscor-newsletter__input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .okepscor-newsletter__button {
        width: 100%;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-newsletter {
        padding: 30px 24px;
    }

    .okepscor-newsletter__title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .okepscor-newsletter__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .okepscor-newsletter__input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .okepscor-newsletter__button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ==================================================
   Events + Newsletter Two-Column Layout
   ================================================== */

/* Container for two-column layout - just handle centering */
.okepscor-events-newsletter-grid {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Target Elementor's inner container for the actual grid */
.okepscor-events-newsletter-grid .e-con-inner {
    display: grid !important;
    grid-template-columns: 45fr 55fr !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure grid items can grow */
.okepscor-events-newsletter-grid .e-con-inner > * {
    min-width: 0 !important;
}

/* Style fixes for Events Calendar widget */
.tribe-events-widget-events-list__header-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    text-transform: none !important;
}

/* Align Events title with Newsletter title when in grid */
.okepscor-events-newsletter-grid .tribe-events-widget-events-list {
    padding-top: 40px !important;
}

/* Reduce individual event title sizes */
.tribe-events-widget-events-list__event-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

/* Improve spacing in events list */
.tribe-events-widget-events-list__event-row {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid #e8e8e8;
}

.tribe-events-widget-events-list__event-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none;
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-events-newsletter-grid,
    .okepscor-events-newsletter-grid .e-con-inner {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .tribe-events-widget-events-list__header-title {
        font-size: 1.75rem !important;
    }

    .tribe-events-widget-events-list__event-title {
        font-size: 1.1rem !important;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-events-newsletter-grid,
    .okepscor-events-newsletter-grid .e-con-inner {
        gap: 24px;
    }

    .tribe-events-widget-events-list__header-title {
        font-size: 1.5rem !important;
    }

    .tribe-events-widget-events-list__event-title {
        font-size: 1rem !important;
    }
}

/* ==================================================
   Stats Highlight Bar
   ================================================== */

.okepscor-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 0 0 25px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.okepscor-stats--colored {
    background: linear-gradient(135deg, var(--color-ok-blue) 0%, var(--color-ok-blue-dark) 100%);
}

.okepscor-stat {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.okepscor-stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: #007acc;
    line-height: 1;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.okepscor-stats--colored .okepscor-stat__number {
    color: var(--color-ok-cream);
}

.okepscor-stat__label {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.okepscor-stats--colored .okepscor-stat__label {
    color: rgba(255, 255, 255, 0.95);
}

/* Add separator lines between stats */
.okepscor-stat:not(:last-child) {
    position: relative;
}

.okepscor-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #ddd 20%, #ddd 80%, transparent);
}

.okepscor-stats--colored .okepscor-stat:not(:last-child)::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-stats {
        flex-wrap: wrap;
        gap: 30px;
        padding: 40px 30px;
    }

    .okepscor-stat {
        flex: 0 0 calc(50% - 15px);
    }

    .okepscor-stat__number {
        font-size: 2.5rem;
    }

    .okepscor-stat__label {
        font-size: 0.9rem;
    }

    /* Remove separators on tablet */
    .okepscor-stat:not(:last-child)::after {
        display: none;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .okepscor-stat {
        flex: 1 1 100%;
        padding: 20px 0;
    }

    .okepscor-stat:not(:last-child) {
        border-bottom: 1px solid #e8e8e8;
    }

    .okepscor-stats--colored .okepscor-stat:not(:last-child) {
        border-bottom-color: rgba(255, 255, 255, 0.2);
    }

    .okepscor-stat__number {
        font-size: 2.25rem;
    }

    .okepscor-stat__label {
        font-size: 0.85rem;
    }
}

/* ==================================================
   Content Cards (Linked Cards)
   ================================================== */

.okepscor-content-cards {
    display: grid;
    gap: 30px;
    margin: 0 0 25px 0;
}

.okepscor-content-cards--1 {
    grid-template-columns: 1fr;
}

.okepscor-content-cards--2 {
    grid-template-columns: repeat(2, 1fr);
}

.okepscor-content-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.okepscor-content-cards--4 {
    grid-template-columns: repeat(4, 1fr);
}

.okepscor-content-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.okepscor-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007acc 0%, #005999 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.okepscor-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #007acc;
}

.okepscor-content-card:hover::before {
    transform: scaleX(1);
}

.okepscor-content-card__content {
    flex: 1;
    margin-bottom: 20px;
}

.okepscor-content-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.okepscor-content-card:hover .okepscor-content-card__title {
    color: #007acc;
}

.okepscor-content-card__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.okepscor-content-card__footer {
    margin-top: auto;
}

.okepscor-content-card__button {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #007acc;
    border: 2px solid #007acc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.okepscor-content-card__button:hover {
    background: #007acc;
    color: #ffffff;
    transform: translateX(4px);
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-content-cards--3,
    .okepscor-content-cards--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .okepscor-content-card {
        padding: 25px;
    }

    .okepscor-content-card__title {
        font-size: 1.3rem;
    }

    .okepscor-content-card__description {
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-content-cards--2,
    .okepscor-content-cards--3,
    .okepscor-content-cards--4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .okepscor-content-card {
        padding: 20px;
    }

    .okepscor-content-card__title {
        font-size: 1.2rem;
    }

    .okepscor-content-card__description {
        font-size: 0.9rem;
    }

    .okepscor-content-card:hover {
        transform: translateY(-2px);
    }
}

/* ==================================================
   Focus Area Section Blocks
   ================================================== */

.okepscor-focus-area {
    background: #ffffff;
    border-left: 5px solid #007acc;
    border-radius: 8px;
    padding: 40px;
    margin: 0 0 50px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    scroll-margin-top: 100px; /* For anchor links with fixed header */
}

.okepscor-focus-area__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.okepscor-focus-area__number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007acc 0%, #005999 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.okepscor-focus-area__title-wrapper {
    flex: 1;
}

.okepscor-focus-area__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.okepscor-focus-area__content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.okepscor-focus-area__content p {
    margin: 0 0 16px 0;
}

.okepscor-focus-area__content p:last-child {
    margin-bottom: 0;
}

.okepscor-focus-area__content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 12px 0;
}

.okepscor-focus-area__content ul,
.okepscor-focus-area__content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.okepscor-focus-area__content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Alternate colors for each focus area */
.okepscor-focus-area:nth-child(4n+1) {
    border-left-color: var(--color-ok-blue);
}

.okepscor-focus-area:nth-child(4n+1) .okepscor-focus-area__number {
    background: linear-gradient(135deg, var(--color-ok-blue) 0%, #005BA6 100%);
}

.okepscor-focus-area:nth-child(4n+2) {
    border-left-color: var(--color-ok-green);
}

.okepscor-focus-area:nth-child(4n+2) .okepscor-focus-area__number {
    background: linear-gradient(135deg, var(--color-ok-green) 0%, #164a35 100%);
}

.okepscor-focus-area:nth-child(4n+3) {
    border-left-color: var(--color-ok-gold);
}

.okepscor-focus-area:nth-child(4n+3) .okepscor-focus-area__number {
    background: linear-gradient(135deg, var(--color-ok-gold) 0%, #9a8450 100%);
}

.okepscor-focus-area:nth-child(4n+4) {
    border-left-color: var(--color-ok-red-brown);
}

.okepscor-focus-area:nth-child(4n+4) .okepscor-focus-area__number {
    background: linear-gradient(135deg, var(--color-ok-red-brown) 0%, #7a2e1e 100%);
}

/* Tablet Styles */
@media screen and (max-width: 992px) {
    .okepscor-focus-area {
        padding: 30px;
        margin-bottom: 40px;
    }

    .okepscor-focus-area__header {
        gap: 20px;
        margin-bottom: 24px;
    }

    .okepscor-focus-area__number {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }

    .okepscor-focus-area__title {
        font-size: 1.6rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .okepscor-focus-area {
        padding: 24px;
        margin-bottom: 30px;
        border-left-width: 4px;
    }

    .okepscor-focus-area__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .okepscor-focus-area__number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .okepscor-focus-area__title {
        font-size: 1.4rem;
    }

    .okepscor-focus-area__content {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Research Team Members Grid
   ========================================================================== */

.okepscor-research-team-section {
    margin: 0 0 60px 0;
}

.okepscor-research-team-section__title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #0066cc;
}

.okepscor-team-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 2rem;
}

/* Default 3-column grid */
.okepscor-team-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 2-column grid */
.okepscor-team-grid--2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* 4-column grid */
.okepscor-team-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.okepscor-team-member-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.okepscor-team-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #0066cc;
}

.okepscor-team-member-card__link,
.okepscor-team-member-card__content-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.okepscor-team-member-card__photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.okepscor-team-member-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.okepscor-team-member-card:hover .okepscor-team-member-card__image {
    transform: scale(1.05);
}

.okepscor-team-member-card__content {
    padding: 20px;
}

.okepscor-team-member-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.okepscor-team-member-card__meta {
    font-size: 0.95rem;
    color: #666;
}

.okepscor-team-member-card__position-department,
.okepscor-team-member-card__institution {
    display: block;
    margin-bottom: 0.25rem;
}

.okepscor-team-member-card__institution {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .okepscor-team-grid--3,
    .okepscor-team-grid--4 {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .okepscor-research-team-section__title {
        font-size: 1.5rem;
    }

    .okepscor-team-member-card__content {
        padding: 16px;
    }

    .okepscor-team-member-card__name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .okepscor-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .okepscor-team-member-card__photo {
        aspect-ratio: 4 / 3;
    }
}
