/* style.css - Consolidated styles for Lex Mente website */

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

:root {
    --header-blue-gray: rgb(68, 71, 96);
    --headings-gray: rgb(34, 34, 39);
    --burgundy: #642c35;
    --oxblood: #4B1E27;
    --body-text: #212121;
    --highlight: #a63e4b;
    --white: #ffffff;
    --linkedin-blue: #0a66c2;
    --instagram-purple: #e1306c;
    --facebook-blue: #1877f2;
    --light-bg: #f9f9f9;
}

/* Base Styles */
body {
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--body-text);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    zoom: 0.8;
}

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--headings-gray);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--oxblood);
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--burgundy);
    color: var(--headings-gray);
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--oxblood);
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: all 0.3s;
}

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

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(100, 44, 53, 0.1);
    background-color: var(--header-blue-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
}

/* Premium Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    height: 100%;
}

.news-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 0.8rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.logo-img {
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    -webkit-text-stroke: 0.5px rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}

.logo-text:hover,
.logo-text:focus {
    transform: perspective(100px) translateZ(10px) scale(1.05);
    color: var(--highlight);
    text-shadow: 0 6px 12px rgba(166, 62, 75, 0.5);
    -webkit-text-stroke: 0.5px rgba(255,255,255,0.6);
    outline: none;
}

.logo-text::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-text:hover::before,
.logo-text:focus::before {
    opacity: 1;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), rgba(166, 62, 75, 0.7), transparent);
    transition: width 0.4s ease;
}

.logo-text:hover::after,
.logo-text:focus::after {
    width: 100%;
}

.logo-tagline {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: block;
}

.logo-container:hover .logo-tagline,
.logo-container:focus-within .logo-tagline {
    color: var(--highlight);
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(166, 62, 75, 0.3);
}

.logo-container:hover .logo-img,
.logo-container:focus-within .logo-img {
    transform: perspective(500px) rotateX(10deg) rotateY(10deg) scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* Enhanced Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.desktop-nav a {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0.75rem 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.desktop-nav a:hover,
.desktop-nav a:focus {
    color: var(--highlight);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(166, 62, 75, 0.3);
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    outline: none;
}

.desktop-nav a.active {
    color: var(--highlight);
    font-weight: 900;
    letter-spacing: 0.8px;
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 2px;
    background-color: var(--highlight);
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.desktop-nav a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    width: calc(100% - 2rem);
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    transform-origin: right center;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after {
    transform-origin: left center;
    transform: scaleX(1);
    background-color: var(--highlight);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-blue-gray);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 2rem;
    list-style: none;
    margin: 0;
}

.mobile-nav a {
    display: block;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    color: var(--highlight);
    outline: none;
}

.mobile-nav a.active {
    color: var(--highlight);
    font-weight: 900;
}

.mobile-nav a.active::after {
    display: none;
}

/* Main Content Container */
.main-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Mission Statement */
.mission-statement {
    font-style: italic;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Values Container */
.values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.value-card {
    flex: 1 1 300px;
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.value-card h3 {
    color: var(--burgundy);
    margin-top: 0;
}

/* Contact Info Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-card h3 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--oxblood);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-card h3 i {
    font-size: 1rem;
    width: 1.3rem;
    text-align: center;
}

.contact-card p {
    margin: 0.6rem 0 1.8rem;
    line-height: 1.5;
}

.contact-link {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover,
.contact-link:focus {
    text-decoration: underline;
    outline: none;
}

.response-time {
    font-style: italic;
    margin: 2rem 0;
    padding: 0.8rem 1.2rem;
    border-left: 3px solid var(--burgundy);
    background-color: rgba(100, 44, 53, 0.03);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--burgundy);
    color: var(--white);
    border-radius: 8px; /* UPDATED VALUE */
    text-decoration: none;
    transition: background-color 0.3s;
    margin-top: 0.8rem;
    font-family: 'Merriweather', Georgia, serif;
    border: 2px solid transparent;
}

.btn i {
    margin-right: 0.5rem;
}

.btn:hover,
.btn:focus {
    background-color: var(--highlight);
    outline: none;
    border-color: var(--highlight);
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--highlight);
    color: var(--white);
    border-color: var(--highlight);
}

/* Dates Container */
.dates-container {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.issue-dates {
    flex: 1;
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
}

/* Highlight Box */
.highlight-box {
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Submission Email */
.submission-email {
    font-weight: 500;
    color: var(--highlight);
}

/* Bold Text */
.bold-text {
    font-weight: 700;
}

/* Team Section */
.team-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

/* Team Card Styles - UPDATED */
.team-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    width: 300px;
    min-width: 230px;
    display: flex;
    flex-direction: column;
}

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

/* Team photo styles - UPDATED */
.team-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 10px 10px 0 0;
    border: none;
}

/* Remove the max-width constraint for regular team cards */
.team-card .team-photo {
    max-width: none;
}

/* For images that need special handling */
.team-photo.full-image {
    object-fit: contain;
    background-color: #f5f5f5; /* Add background for images with transparency */
}

/* Featured card styles - UPDATED */
.advisor-card,
.editor-in-chief-card,
.featured-card {
    width: 350px;
    min-height: 420px;
    padding-bottom: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Featured card image styles */
.advisor-card img,
.editor-in-chief-card img,
.founder-card img {
    width: 100%;
    height: 250px;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

/* Featured card info container - UPDATED */
.advisor-card .team-info,
.editor-in-chief-card .team-info,
.featured-card .team-info,
.founder-card .team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.2rem;
}

.team-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--headings-gray);
    word-break: break-word;
}

.founder-card .team-name,
.editor-in-chief-card .team-name,
.advisor-card .team-name {
    font-size: 1.2rem;
}

.team-position {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 400;
    min-height: 40px;
}

.team-position-box {
    display: inline-block;
    background-color: var(--burgundy);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.founder-card .team-position,
.editor-in-chief-card .team-position,
.advisor-card .team-position {
    font-size: 1rem;
    font-weight: 500;
}

.team-bio {
    font-size: 0.95rem;
    margin-top: 0.4rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #666;
    flex-grow: 1;
    min-height: 40px;
}

.founder-card .team-bio,
.editor-in-chief-card .team-bio,
.advisor-card .team-bio {
    font-size: 0.95rem;
    font-weight: 400;
}

.team-social {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.team-social a {
    color: var(--burgundy);
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.team-social a:hover,
.team-social a:focus {
    color: var(--highlight);
    outline: none;
}

/* Hero Section */
.hero {
    padding: 1rem 0.3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-style: normal;
}

.quote-attribution {
    font-family: 'Merriweather', Georgia, serif;
    font-style: italic;
    text-align: center;
    color: var(--oxblood);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.welcome {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-style: italic;
    text-align: center;
}

.action-buttons {
    text-align: center;
    margin: 1.5rem 0 2.5rem;
}

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

/* Featured Update */
.latest-updates .featured-update {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.latest-updates .featured-update .news-image {
    max-width: 48%;
    min-width: 300px;
    flex: 1 1 300px;
}

/* Loading spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--highlight);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Volumes Table */
.volumes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.volumes-table th {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    background-color: var(--burgundy);
    color: var(--white);
    padding: 0.8rem 1rem;
    text-align: left;
}

.volumes-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ddd;
}

.volumes-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.volumes-table tr:hover {
    background-color: #f1f1f1;
}

.volumes-table .download-btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--burgundy);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.volumes-table .download-btn:hover,
.volumes-table .download-btn:focus {
    background-color: var(--highlight);
    outline: none;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.article-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.article-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--oxblood);
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}

.article-category {
    align-self: flex-start;
    background-color: var(--burgundy);
    color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 1rem;
}

.article-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.6rem 1rem;
    background-color: var(--highlight);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.article-btn i {
    margin-right: 0.4rem;
}

.article-btn:hover,
.article-btn:focus {
    background-color: var(--oxblood);
    outline: none;
}

/* Journal Entries Container */
#journal-entries-container {
    margin: 1.5rem 0;
}

#journal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.journal-entry {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.journal-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--highlight);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.journal-entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.journal-entry:hover::before {
    width: 6px;
    background: var(--burgundy);
}

.journal-entry h3 {
    font-family: 'Merriweather', serif;
    margin: 0 0 0.8rem 0;
    color: var(--burgundy);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.entry-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.entry-meta i {
    color: var(--highlight);
}

.journal-entry p {
    margin: 0.4rem 0 1.2rem;
}

.article-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--burgundy);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.article-btn:hover,
.article-btn:focus {
    background-color: var(--highlight);
    outline: none;
}

.loading-message,
.empty-message,
.error-message {
    text-align: center;
    font-size: 1.1rem;
    color: #495057;
    padding: 2rem;
    grid-column: 1 / -1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.loading-message::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e9ecef;
    border-top-color: var(--highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Journal Cover */
.journal-cover {
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* View All Button */
.view-all-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    background-color: var(--burgundy);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 600;
    transition: background-color 0.3s;
}

.view-all-btn:hover,
.view-all-btn:focus {
    background-color: var(--highlight);
    outline: none;
}

/* Policy Section */
.policy-section {
    margin-bottom: 2rem;
}

/* Email Link */
.email-link {
    color: var(--highlight);
    font-weight: 500;
    text-decoration: none;
}

.email-link:hover,
.email-link:focus {
    text-decoration: underline;
    outline: none;
}

/* Footer Styles */
footer {
    background-color: rgba(100, 44, 53, 0.05);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--body-text);
    text-decoration: none;
    transition: all 0.3s;
    font-family: Georgia, serif;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    outline: none;
}

.social-icon {
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-link:hover .social-icon,
.social-link:focus .social-icon {
    transform: scale(1.1);
}

.linkedin-icon {
    color: var(--linkedin-blue);
}

.instagram-icon {
    color: var(--instagram-purple);
}

.facebook-icon {
    color: var(--facebook-blue);
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
}

.contact-email {
    color: var(--highlight);
    text-decoration: none;
}

.contact-email:hover,
.contact-email:focus {
    text-decoration: underline;
    outline: none;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
}

/* Editorial Board Page Styles */
.editorial-board-page h1,
.editorial-board-page h2,
.editorial-board-page h3 {
    text-align: center;
}

/* === NEW STYLES FOR JOURNAL PAGE === */

/* Intro paragraph styling */
.archive-intro {
    text-align: center;
    max-width: 800px;
    margin: -1.5rem auto 2.5rem;
    font-size: 1.1rem;
    color: #495057;
}

/* Scoped h2 style for journal page to prevent affecting other pages */
.journal-archive-page h2 {
    text-align: left;
    border-bottom-width: 2px;
}

/* New Article Card Styling */
.article-card {
    background-color: #fdfdfd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--burgundy);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.article-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    color: var(--oxblood);
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 1rem;
}

.article-meta {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #333;
}

.article-meta p {
    margin: 0.25rem 0;
}

.article-meta strong {
    font-weight: 600;
    color: #212121;
}

.article-category {
    display: inline-block;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.article-card .article-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.6rem 1rem;
}

/* === END OF JOURNAL PAGE STYLES === */

/* === NEW STYLES FOR CALL-FOR-PAPERS PAGE === */

.volume-issue {
    text-align: center;
    margin-bottom: 2.5rem;
}

.volume-issue h2 {
    border-bottom: none;
    margin-bottom: 0.5rem;
    color: var(--oxblood);
}

.volume-issue p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1rem;
}

.deadline {
    font-weight: 700;
    color: var(--highlight);
    font-size: 1.2rem;
    margin: 1.5rem 0;
}

/* Submission Guidelines */
.submission-guidelines {
    background-color: rgba(100, 44, 53, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.submission-guidelines h3 {
    color: var(--oxblood);
    margin-top: 0;
    border-bottom: 2px solid var(--burgundy);
    padding-bottom: 0.5rem;
}

.submission-guidelines ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.submission-guidelines li {
    margin-bottom: 0.5rem;
}

/* Topics of Interest */
.topics {
    margin: 2rem 0;
}

.topics ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.topics li {
    background-color: rgba(100, 44, 53, 0.05);
    padding: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.topics li:hover {
    background-color: rgba(100, 44, 53, 0.1);
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    text-align: center;
    margin: 2rem 0;
}

.contact-section p {
    margin-bottom: 1rem;
}

/* === END OF CALL-FOR-PAPERS PAGE STYLES === */

/* === UPDATED Featured Card Styles === */
.featured-card {
    display: flex;
    flex-direction: row; /* Aligns items horizontally */
    width: 100%;
    max-width: 900px; /* Increased max-width to make the card wider */
    margin: 2rem auto;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    align-items: center; /* Vertically aligns the image and text */
}

.featured-image {
    flex: 0 0 250px; /* Reduced the fixed width for the image container */
    height: 250px;    /* Reduced the height to make the card less tall */
    background: #fff;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border: none;
    box-shadow: none; /* Shadow is now on the parent card */
}

.featured-info {
    flex: 1; /* Allows the info section to take up the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    text-align: left; /* Align text to the left for better readability */
}

.featured-info .team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4B1E27;
    margin-bottom: 0.5rem;
}

.featured-info .team-position-box {
    background: #642c35;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: inline-block; /* Ensures the box only takes up the width of its content */
    align-self: flex-start; /* Aligns the box to the start of the flex container */
}

.featured-info .team-bio {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    list-style-position: inside;
    word-break: break-word;
}
/* Responsive Design for Featured Card */
@media (max-width: 768px) {
    .featured-card {
        flex-direction: column; /* Stacks image and info vertically on smaller screens */
        max-width: 400px;
    }
    .featured-image {
        width: 100%;
        height: auto;
    }
    .profile-image {
        border-radius: 16px 16px 0 0;
    }
    .featured-info {
        padding: 1.5rem;
        text-align: center; /* Center text on mobile */
    }
    .featured-info .team-position-box {
        align-self: center; /* Center the position box on mobile */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
        zoom: 1;
    }
    
    header {
        padding: 0.8rem 1rem;
        height: 80px;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
        letter-spacing: 1.2px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .main-container {
        margin: 2rem auto;
        padding: 0 0.8rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .values-container {
        flex-direction: column;
    }
    
    .dates-container {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .latest-updates .featured-update {
        flex-direction: column;
    }
    
    .latest-updates .featured-update .news-image {
        max-width: 100%;
        min-width: 100%;
    }
    
    .team-grid {
        justify-content: center;
    }
    
    .team-card {
        width: 100%;
        max-width: 300px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .volumes-table {
        font-size: 0.85rem;
    }
    
    .volumes-table th,
    .volumes-table td {
        padding: 0.6rem 0.8rem;
    }
    
    #journal-list {
        grid-template-columns: 1fr;
    }
    
    .journal-entry {
        padding: 1.2rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .article-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .featured-card {
        max-width: 100%;
    }
    .action-buttons {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .volumes-table th,
    .volumes-table td {
      white-space: nowrap;
      overflow-x: auto;
      text-overflow: ellipsis;
    }
    .table-scroll {
      overflow-x: auto;
      width: 100%;
    }
    .volumes-table {
      min-width: 600px;
    }
    .table-container {
    overflow-x: auto;
    }

    .volumes-table th,
    .volumes-table td {
    white-space: nowrap; /* This prevents the text in cells from wrapping */
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .quote {
        font-size: 1.1rem;
    }
    
    .quote-attribution {
        font-size: 1rem;
    }
    
    .welcome {
        font-size: 1rem;
    }
    
    .mission-statement {
        font-size: 0.95rem;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-position {
        font-size: 0.9rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
    }
    
    .featured-info {
        padding: 1.2rem;
    }
    
    .featured-info .team-name {
        font-size: 1.2rem;
    }
    
    .featured-info .team-bio {
        font-size: 0.95rem;
    }
}