/* ==========================================================================
   Monmouth CSSE AI Workshops - Department Format
   Matching Official Monmouth University CSSE Department Styling
   ========================================================================== */

/* CSS Variables - Monmouth Official */
:root {
    --monmouth-blue: #002855;
    --monmouth-light-blue: #0d64b2;
    --monmouth-orange: #E57200;
    --monmouth-text: #1c1d1f;
    --monmouth-gray: #5B6770;
    --monmouth-light-gray: #f7f7f7;
    --max-width: 1400px;
    --spacing-unit: 20px;
    --spacing-large: 36px;
    --left-menu-width: 240px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--monmouth-text);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--monmouth-blue);
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 2.625rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.625rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25em;
}

a {
    color: var(--monmouth-light-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--monmouth-orange);
    text-decoration: underline;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--monmouth-gray);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

@media (min-width: 768px) {
    .wrapper {
        padding: 0 var(--spacing-large);
    }
}

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

.site-header {
    background: var(--monmouth-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.mu-logo {
    height: 40px;
    width: auto;
}

@media (min-width: 1024px) {
    .mu-logo {
        height: 50px;
    }
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    background: var(--monmouth-light-gray);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--monmouth-gray);
}

.breadcrumbs a {
    color: var(--monmouth-light-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

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

.wp-block-mu-hero {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto minmax(50px, max-content);
    min-height: 500px;
    background: var(--monmouth-blue);
    color: #fff;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .wp-block-mu-hero {
        min-height: 600px;
    }
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--monmouth-blue) 0%, #004080 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 85, 0.7);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--spacing-unit);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        padding: 4rem var(--spacing-large);
    }
}

.brackets {
    display: none;
}

@media (min-width: 1024px) {
    .brackets {
        display: block;
        position: absolute;
        left: var(--spacing-large);
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 200px;
        border: 3px solid var(--monmouth-orange);
        border-right: none;
    }

    .brackets::before,
    .brackets::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 3px;
        background: var(--monmouth-orange);
    }

    .brackets::before {
        top: -3px;
        left: -3px;
    }

    .brackets::after {
        bottom: -3px;
        left: -3px;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
        margin-left: 60px;
    }
}

.hero-text {
    font-size: 1.25rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 1024px) {
    .hero-text {
        margin-left: 60px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.content-holder {
    padding: 3rem 0;
}

.content-and-navigator {
    display: flex;
    gap: 3rem;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.navigator {
    display: none;
    flex-shrink: 0;
    width: var(--left-menu-width);
}

@media (min-width: 1024px) {
    .navigator {
        display: block;
    }
}

.supernav ul {
    list-style: none;
    background: var(--monmouth-light-gray);
    border-radius: 8px;
    padding: 1rem 0;
}

.supernav li {
    margin: 0;
}

.supernav li.divider {
    height: 1px;
    background: #ddd;
    margin: 0.75rem 1rem;
}

.supernav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--monmouth-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.supernav a:hover {
    background: #fff;
    color: var(--monmouth-orange);
    text-decoration: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.content {
    flex: 1;
    min-width: 0;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.content-section:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Column Layouts
   ========================================================================== */

.wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .wp-block-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wp-block-column {
    padding: 1.5rem;
    background: var(--monmouth-light-gray);
    border-radius: 8px;
}

.wp-block-column i {
    color: var(--monmouth-orange);
    margin-right: 0.5rem;
}

/* ==========================================================================
   Research Areas
   ========================================================================== */

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.research-item {
    padding: 2rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.research-item:hover {
    border-color: var(--monmouth-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.research-icon {
    width: 60px;
    height: 60px;
    background: var(--monmouth-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.research-icon i {
    font-size: 1.75rem;
    color: #fff;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-list li {
    padding: 0.4rem 0.875rem;
    background: rgba(13, 100, 178, 0.1);
    color: var(--monmouth-light-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ==========================================================================
   Project Cards
   ========================================================================== */

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    position: relative;
    padding: 2rem;
    background: var(--monmouth-light-gray);
    border-left: 4px solid var(--monmouth-light-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    background: var(--monmouth-light-blue);
    color: #fff;
}

.project-status.active {
    background: var(--monmouth-orange);
}

.project-status.completed {
    background: #28a745;
}

.project-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--monmouth-gray);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-meta i {
    color: var(--monmouth-light-blue);
}

/* ==========================================================================
   Event Cards
   ========================================================================== */

.event-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card.featured {
    border-color: var(--monmouth-orange);
    background: linear-gradient(135deg, rgba(229, 114, 0, 0.03) 0%, rgba(0, 76, 151, 0.03) 100%);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--monmouth-blue);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-content {
    flex: 1;
}

.event-category {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    background: rgba(13, 100, 178, 0.1);
    color: var(--monmouth-light-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.event-card h4 {
    margin-bottom: 0.75rem;
}

/* Workshop Series Cards */
.series-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 2rem;
}

.series-card i {
    font-size: 1.5rem;
    color: var(--monmouth-orange);
}

/* ==========================================================================
   Team Grid
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--monmouth-light-gray);
    border-radius: 8px;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--monmouth-orange);
    display: block;
}

/* Specific adjustment for Lynda's photo to show full face and head */
img[src="lynda-levy.JPG"] {
    object-position: center 30%;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--monmouth-blue);
}

.team-role {
    color: var(--monmouth-orange);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-contact {
    font-size: 0.9rem;
    color: var(--monmouth-gray);
}

.team-contact a {
    color: var(--monmouth-blue);
    text-decoration: none;
}

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

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--monmouth-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo i {
    font-size: 3rem;
    color: #fff;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--monmouth-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Contact Info
   ========================================================================== */

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-block {
    padding: 2rem;
    background: var(--monmouth-light-gray);
    border-radius: 8px;
}

.contact-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-block i {
    color: var(--monmouth-orange);
}

.contact-block a {
    color: var(--monmouth-light-blue);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--monmouth-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c96200;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.site-footer {
    background: var(--monmouth-blue);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--monmouth-orange);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--monmouth-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1023px) {
    .content-and-navigator {
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}
