/*
Theme Name: AcademicLab
Theme URI: https://github.com/LD-Shell/academiclab-theme
Author: Olanrewaju Daramola
Author URI: https://github.com/LD-Shell
Description: A fully custom, database-driven WordPress theme for academic research groups. Features a decoupled CSS architecture for use with Elementor or classic editor. Includes custom Elementor widget support, a fully integrated header/footer system, DOI bulk importer, and a rich Customizer for branding.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academic-lab
Tags: research, university, academic, elementor, custom-header, custom-footer, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================
   AcademicLab theme — base stylesheet
   Author: Olanrewaju Daramola
   All component styles live in css/components.css
   This file contains only the global resets
   and layout skeleton required by WordPress.
   ========================================== */

/* --- Global reset & box model --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a {
    color: #C8102E;
    transition: color 0.2s ease;
}

a:hover {
    color: #C4953B;
}

/* --- WordPress core alignment classes --- */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100%;
    max-width: none;
}

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

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    color: #21759b;
    font-size: .875rem;
    font-weight: 700;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
}

/* --- Main content wrapper --- */
#main.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: transparent;
    flex: 1;
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 999999;
    padding: 10px 15px;
    background: #C8102E;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* --- Page / post defaults --- */
.entry-title {
    font-family: 'Oswald', sans-serif;
    color: #54585A;
    text-transform: uppercase;
}

.entry-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Oswald', sans-serif;
    color: #54585A;
}

.entry-content a {
    color: #C8102E;
    font-weight: 500;
}

.entry-content a:hover {
    color: #C4953B;
}

/* --- WordPress widget defaults --- */
.widget-title {
    font-family: 'Oswald', sans-serif;
    color: #C8102E;
    text-transform: uppercase;
    border-bottom: 2px solid #C4953B;
    padding-bottom: 8px;
    margin-bottom: 1rem;
}

/* --- Comment styles --- */
.comment-list .comment-body {
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
}

.comment-author .fn {
    font-family: 'Oswald', sans-serif;
    color: #54585A;
    text-transform: uppercase;
}

/* --- Pagination --- */
.page-links,
.navigation.pagination {
    margin: 2rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* --- Buttons --- */
.wp-block-button__link,
button,
input[type="submit"] {
    background: #C8102E;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0 !important;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background: #a00e26;
    color: #fff;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th {
    background: #54585A;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    padding: 12px 16px;
    text-align: left;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid #E5E7EB;
}

tr:nth-child(even) td {
    background: #F9FAFB;
}

/* --- Blockquote --- */
blockquote {
    border-left: 6px solid #C8102E;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #F9FAFB;
    font-style: italic;
    color: #54585A;
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    font-family: 'Roboto', sans-serif;
    border: 1px solid #E5E7EB;
    padding: 10px 14px;
    width: 100%;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease;
    border-radius: 0 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    border-color: #C8102E;
}

/* --- Elementor compatibility --- */
.elementor-page #main.wrapper {
    padding: 0;
    max-width: 100%;
}

.elementor-section {
    border-radius: 0 !important;
}

/* --- No sidebar layout --- */
#content {
    width: 100%;
}

/* --- Clearfix --- */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Modern frosted glass effect for the members hero quote */
.al-members-hero-content {
    background: rgba(20, 22, 28, 0.65) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
    border-left: 5px solid var(--uh-red) !important; 
    border-radius: 0 8px 8px 0 !important; 
    padding: 2.5rem 3rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important; 
    max-width: 750px !important;
}

/* Elegant responsive typography for the quote text */
.al-members-hero-content blockquote p {
    font-family: var(--font-display), sans-serif !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem) !important; 
    font-weight: 300 !important; 
    line-height: 1.4 !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    font-style: italic !important;
}

/* Styled attribution using the secondary accent color */
.al-members-hero-content cite {
    font-family: var(--font-body), sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--uh-gold) !important; 
    display: block !important;
}

/* Strip default theme styles from the inner blockquote */
.al-members-hero-content blockquote {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.al-pi-profile-btn--scholar,
.al-pi-profile-btn--orcid,
.al-pi-profile-btn--rg,
.al-pi-profile-btn--linkedin,
.al-pi-profile-btn--team {
    background: var(--uh-red) !important;
    color: #ffffff !important;
    border: none !important;
}

.al-pi-profile-btn--scholar:hover,
.al-pi-profile-btn--orcid:hover,
.al-pi-profile-btn--rg:hover,
.al-pi-profile-btn--linkedin:hover,
.al-pi-profile-btn--team:hover {
    background: var(--uh-gold) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustment for mobile devices */
@media (max-width: 600px) {
    .al-members-hero-content {
        padding: 1.5rem 2rem !important;
        border-radius: 0 !important;
    }
}