/*
Theme Name: SPUP
Theme URI: https://example.com/spup
Author: Daniel Sarabusing
Author URI: https://example.com
Description: A custom theme for St. Paul University Philippines
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spup
*/

@font-face {
    font-family: 'Crimson Pro';
    src: url('./assets/fonts/crimson-pro/CrimsonPro-VariableFont_wght.ttf') format('truetype'),
         url('./assets/fonts/crimson-pro/CrimsonPro-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Old English Text MT';
    src: url('./assets/fonts/old-english-text/oldenglishtextmt.ttf') format('truetype'),;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant';
    src: url('./assets/fonts/cormorant/Cormorant-VariableFont_wght.ttf') format('truetype'),
         url('./assets/fonts/cormorant/Cormorant-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('./assets/fonts/lora/Lora-VariableFont_wght.ttf') format('truetype'),
         url('./assets/fonts/lora/Lora-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GT America Standard';
    src: url('./assets/fonts/gt-america/GT-America-Standard-Regular.ttf') format('truetype'),
         url('./assets/fonts/gt-america/GT-America-Standard-Regular-Italic.ttf') format('truetype'),
         url('./assets/fonts/gt-america/GT-America-Standard-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --theme-primary: #064e3b; /* Emerald Green */
    --theme-secondary: #bc9c22; /* Amber/Gold */
    --theme-dark: #111827;
    --theme-light: #f3f4f6;
    --white: #ffffff;
    --font-serif: "Crimson Pro", "Times New Roman", serif;
    --font-sans: "GT America Standard", "Helvetica", "Arial", sans-serif;
    --brand-font: "Old English Text MT", "Times New Roman", serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--theme-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* Animations */
.invisible {
    opacity: 0;
}

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

a:hover {
    color: var(--theme-secondary);
    text-decoration: none;
}

/* Header */
.site-header {
    background-color: var(--white);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 4px solid var(--theme-secondary);
}

.header-inner {
    max-width: 1400px; /* Wider container for bigger feel */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branding-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 80px;
    width: auto;
}

.site-branding h1 {
    font-family: var(--brand-font);
    font-size: 2rem;
    margin: 0;
    letter-spacing: 1px;
    color: var(--theme-primary);
}

.site-branding a {
    color: var(--theme-secondary);
    text-decoration: none;
}

.site-tagline {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--theme-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-toggle, .hamburger-toggle, .close-nav {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--theme-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.close-nav {
    color: var(--theme-light);
}

.search-toggle:hover, .hamburger-toggle:hover, .close-nav:hover {
    color: var(--theme-secondary);
}

.menu-label, .search-label, .close-label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
}

/* Side Navigation */
.side-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--theme-primary);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.side-navigation.open {
    transform: translateX(0);
}

.side-nav-header {
    padding: 2rem;
    display: flex;
    justify-content: flex-end;
}

.side-menu-content {
    padding: 2rem;
    overflow-y: auto;
}

.side-menu-content ul {
    list-style: none;
    margin: 0;
}

.side-menu-content li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.side-menu-content a {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    padding: 1.5rem 0;
}

.side-menu-content a:hover {
    color: var(--theme-secondary);
}

/* Sub-menu Styles */
.sub-menu {
    display: none;
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}

.sub-menu.open {
    display: block;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
}

.sub-menu li {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0;
}

.sub-menu a {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    color: #d1d5db;
    font-family: var(--font-sans);
    text-transform: none; /* Removed uppercase */
    letter-spacing: 0.5px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-menu a:hover {
    color: var(--theme-secondary);
    padding-left: 5px;
}

.sub-menu a::after {
    content: '→';
    font-family: var(--font-serif);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.sub-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown Indicator */
.menu-item-has-children > a::after {
    content: '+';
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.menu-item-has-children.active > a::after {
    transform: rotate(45deg);
}

.menu-item-has-children.active > a {
    color: var(--theme-secondary);
}

/* Body Overlay Effect */
body.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 500px) {
    .side-navigation {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #000;
    background-image: url('./assets/images/slider-2.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh; /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)); /* Green tint overlay */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 10rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 7.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--theme-secondary);
    color: var(--theme-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    transition: transform 0.2s;
}

.btn:hover {
    background-color: var(--white);
    color: var(--theme-primary);
    transform: scale(1.05);
}

/* Research Grid */
.research-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    color: var(--theme-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--theme-secondary);
    padding-bottom: 1rem;
    display: inline-block;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Wider cards */
    gap: 3rem;
}

.research-card {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--theme-primary);
}

.research-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom-color: var(--theme-secondary);
}

.research-image {
    height: 300px; /* Taller images */
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s;
}

.research-card:hover .research-image {
    opacity: 0.9;
}

.research-content {
    padding: 2rem;
}

.research-category {
    color: var(--theme-secondary);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
    letter-spacing: 1px;
}

/* Accreditations Section */
.accreditations-section {
    padding: 6rem 0;
    background-color: var(--theme-light);
}

.accreditations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.accreditations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.accreditation-item {
    flex: 0 0 200px;
    height: 150px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.accreditation-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

.accreditation-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply;
    border-radius: 4px;
}

/* Events Section */
.events-section {
    padding: 5rem 2rem;
    background-color: var(--theme-light);
    border-bottom: 1px solid #e5e7eb;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--theme-primary);
    padding-bottom: 1rem;
}

.events-header .section-title {
    margin-bottom: 0;
    color: var(--theme-primary);
    font-size: 2.5rem;
}

#upcoming-events-title {
    border-bottom: none !important;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--theme-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.view-all-link:hover {
    color: var(--theme-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding-right: 1rem;
    transition: transform 0.3s ease;
}

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

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.event-month {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.event-day {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--theme-primary);
    font-weight: 700;
}

.event-content {
    flex: 1;
    border-left: 1px solid #e5e7eb;
    padding-left: 1.5rem;
}

.event-category {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.event-title a {
    color: var(--theme-dark);
}

.event-title a:hover {
    color: var(--theme-primary);
}

.event-meta {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-meta span::after {
    content: "|";
    margin-left: 0.5rem;
    color: #d1d5db;
}

.event-meta span:last-child::after {
    display: none;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding-top: 2rem;
}

.search-modal.open {
    visibility: visible;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.search-modal-content {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 800px;
    background-color: #1e1e1e; /* Dark theme background */
    color: var(--white);
    transform: translateY(-20px);
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px; /* Optional slight radius */
}

.search-modal.open .search-modal-content {
    transform: translateY(0);
}

.search-form {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--white);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    background-color: transparent; /* Transparent inside the dark box */
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    padding: 0.5rem;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Use a specific color if needed, like #3b82f6 for blue */
    /* Based on screenshot, it looks like standard blue or grey placeholder, but let's stick to white/grey for now unless specified */
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.search-submit:hover {
    opacity: 0.8;
}

.search-modal-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.search-modal-close svg {
    width: 16px;
    height: 16px;
}

/* Quick Links Section */
.search-quick-links {
    padding: 1.5rem 2rem 2rem;
    background-color: #262626; /* Slightly lighter dark section or same */
}

.search-quick-links h3 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-quick-links li {
    margin-bottom: 0.5rem;
}

.search-quick-links a {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}

.search-quick-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-modal-content {
        max-width: 95%;
    }
    .search-field {
        font-size: 1rem;
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--theme-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-content p {
    font-family: var(--font-sans);
    color: var(--theme-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-card {
        padding-bottom: 2rem;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .event-card:last-child {
        border-bottom: none;
    }
}

.research-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.research-title a {
    color: var(--theme-primary);
}

.research-title a:hover {
    color: var(--theme-secondary);
}

.research-excerpt {
    font-size: 1.1rem;
    color: #666;
}

/* Image Showcase Section (New) */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--theme-primary);
}

.showcase-item {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 1), transparent);
    padding: 3rem 2rem;
    color: var(--white);
    transform: translateY(20%);
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--theme-light);
}

.showcase-link {
    margin-bottom: 1rem;
    align-self: flex-start; /* Prevent full width in flex column */
}

.showcase-desc {
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.showcase-item:hover .showcase-desc {
    opacity: 1;
}

.showcase-link > .link-text {
    color: var(--theme-light) !important;
}

/* Featured Links */
.featured-links {
    background-color: var(--theme-light);
    padding: 6rem 2rem;
}

.links-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.link-card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: -1;
}

.link-card:hover::before {
    height: 100%;
    
}

.link-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--theme-primary);
}

/* Magazine Section (New) */
.magazine-section {
    padding: 6rem 0;
    background-color: #f3f4f6; /* Light gray background */
}

.magazine-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 65% 1fr;
    gap: 4rem;
}

.mag-main-article {
    position: relative;
    /* Clean style without card background */
}

.mag-main-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
}

.mag-main-content {
    padding: 0;
}

.news-category {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.mag-main-title {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    margin-bottom: 0;
    line-height: 1.1;
    color: var(--black);
}

.mag-main-title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

.mag-main-title a:hover {
    color: var(--theme-primary);
}

.mag-sidebar {
    display: flex;
    flex-direction: column;
}

.mag-side-article {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #d1d5db;
    background: transparent; /* Remove card bg */
    border-left: none; /* Remove accent border */
}

.mag-side-article:first-child {
    padding-top: 0;
}

.mag-side-article:last-child {
    border-bottom: none;
}

.mag-side-article:hover {
    transform: none; /* Remove hover movement */
    border-left-color: transparent;
}

.mag-side-content {
    flex: 1;
    padding-right: 1.5rem;
}

.mag-side-meta {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: block;
}

.mag-side-title {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.mag-side-title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

.mag-side-title a:hover {
    color: var(--theme-primary);
}

.mag-side-image {
    width: 140px;
    height: 90px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: var(--theme-primary);
    color: #e5e7eb;
    padding: 4rem 2rem;
    font-size: 0.95rem;
    border-top: 8px solid var(--theme-secondary);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex; /* Changed back to flex for row control */
    flex-wrap: nowrap; /* Force single row */
    justify-content: space-between;
    gap: 2rem;
}

.footer-column {
    flex: 1; /* Equal width columns */
}

.footer-column-wide {
    flex: 2; /* Double width for the first column */
}

.footer-logo-img {
    max-width: 300px;
    height: auto;
    display: block;
}

.footer-column h4 {
    color: var(--theme-secondary);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-inner {
        flex-wrap: wrap; /* Allow wrapping on tablets/mobile */
    }
    .footer-column {
        flex: 1 1 45%; /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .footer-column {
        flex: 1 1 100%; /* 1 column on mobile */
    }
    .magazine-grid {
        grid-template-columns: 1fr;
    }
}

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

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #d1d5db;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-link h3 {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 90%;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: #e5e7eb;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--theme-secondary);
}

/* Directress Message Section */
.directress-message-section {
    padding: 6rem 2rem;
    background-color: var(--theme-light);
}

.message-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.message-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
}

.message-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 90%;
}

.message-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--theme-primary);
    font-weight: 600;
    transition: color 0.3s;
}

.message-link:hover {
    color: var(--theme-secondary);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #e5e7eb;
    border-radius: 50%;
    transition: background 0.3s;
}

.message-link:hover .link-icon {
    background: var(--theme-secondary);
    color: white;
}

.media-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.media-image,
.media-video {
    width: 100%;
    height: auto;
    display: block;
}

.media-image {
    transition: transform 0.5s ease;
}

.media-wrapper:hover .media-image {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 2;
}

.media-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.media-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.caption-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Where To Go Next Section */
.next-section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.next-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.next-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%);
    z-index: 2;
}

.next-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next-content-left {
    flex: 1;
    padding-right: 4rem;
}

.next-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4b5563;
    margin-bottom: 1rem;
}

.next-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: var(--black);
    line-height: 1.1;
    margin: 0;
}

.next-links-right {
    flex: 1;
    border-top: 1px solid #d1d5db;
}

.next-link-item {
    display: block;
    padding: 2rem 0;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
    transition: padding-left 0.3s;
}

.next-link-item:hover {
    padding-left: 1rem;
}

.next-link-title {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-family: var(--font-serif);
}

.next-link-item:hover .next-link-title {
    color: var(--theme-primary);
}

.next-link-desc {
    display: block;
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    transition: color 0.3s;
}

.next-link-item:hover .next-link-desc {
    color: #374151;
}

@media (max-width: 900px) {
    .next-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .next-content-left {
        padding-right: 0;
    }
    
    .next-title {
        font-size: 3rem;
    }
    
    .next-links-right {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 900px) {
    /* Header */
    .header-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .site-branding {
        text-align: center;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* News Grid */
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    /* Image Showcase */
    .image-showcase {
        grid-template-columns: 1fr;
    }
    
    /* Magazine Grid */
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    
    .mag-main-image {
        height: 300px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        text-align: center;
    }

    /* Directress Message */
    .message-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .message-content {
        align-items: center;
    }
    
    .message-text {
        max-width: 100%;
    }
    
    .message-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    /* Global Padding */
    .site-header, .research-section, .featured-links, .magazine-section, .footer-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Header Controls */
    .header-controls {
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero-section {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    /* Links Grid */
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Magazine Sidebar */
    .mag-side-article {
        flex-direction: column;
        text-align: center;
    }
    
    .mag-side-image {
        width: 100%;
        height: 200px;
    }
}
