/*
Theme Name: NEI-ISEP Theme
Theme URI: https://nei-isep.org
Author: NEI-ISEP
Author URI: https://nei-isep.org
Description: Tema personalizado para o Núcleo de Estudantes de Informática do ISEP
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nei-theme-isep
Tags: custom, responsive, modern
*/

:root {
    --primary-blue: #1CB0D9;
    --white: #FFFFFF;
    --dark-gray: #474954;
    --light-gray: #f5f5f5;
    --button-radius: 999rem;
}

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

body {
    font-family: 'Rubik', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header - Top Bar Identity */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-color: var(--primary-blue);
    z-index: 1002;
}

/* Header - Navbar Fixa */
.site-header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    top: 0;
    padding-top: 8px;
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.site-header.scrolled .header-gradient {
    opacity: 0;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.header-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2% 10%;
    max-width: 100%;
    margin: 0 auto;
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

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

.site-logo .logo-dark {
    display: none;
}

.site-header.scrolled .logo-light {
    display: none;
}

.site-header.scrolled .logo-dark {
    display: block;
}

.site-logo .logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.site-header.scrolled .logo-text {
    color: var(--dark-gray);
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--white);
    transition: color 0.3s ease;
}

.site-header.scrolled .logo-icon {
    color: var(--dark-gray);
}

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

/* Desktop Menu */
.desktop-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 35px;
    align-items: center;
}

.desktop-menu > .menu-item {
    position: relative;
}

.desktop-menu > .menu-item > a {
    color: var(--white);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 5px;
    transition: all 0.3s ease;
    display: block;
}

.site-header.scrolled .desktop-menu > .menu-item > a {
    color: var(--dark-gray);
}

.desktop-menu > .menu-item > a:hover {
    opacity: 0.7;
}

.desktop-menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
}

/* Desktop Dropdown */
.desktop-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    padding: 15px 0;
    margin: 0;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.desktop-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-menu .sub-menu li {
    margin: 0;
}

.desktop-menu .sub-menu li a {
    display: block;
    padding: 10px 25px;
    color: var(--dark-gray);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.desktop-menu .sub-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 30px;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .nav-overlay,
    .nav-sidebar {
        display: none !important;
    }
}

/* Menu Toggle (Hamburger) - Mobile Only */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: var(--button-radius);
    z-index: 1001;
    width: 48px;
    height: 48px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    position: relative;
}

.menu-toggle span:nth-child(1) {
    margin-bottom: 6px;
}

.menu-toggle span:nth-child(3) {
    margin-top: 6px;
}

/* Animação hamburger para X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.site-header.scrolled .menu-toggle span {
    background-color: var(--dark-gray);
}

/* Quando menu está aberto, X fica sempre branco */
.menu-toggle.active span {
    background-color: var(--white);
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Nav Sidebar */
.nav-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--primary-blue);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px;
    overflow-y: auto;
}

.nav-sidebar.active {
    right: 0;
}

/* Nav Menu Mobile */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-menu > .menu-item {
    margin-bottom: 15px;
}

.nav-menu > .menu-item > a {
    color: var(--white);
    font-weight: 600;
    font-size: 24px;
    transition: opacity 0.3s ease;
    display: block;
    padding: 10px 0;
}

.nav-menu > .menu-item > a:hover {
    opacity: 0.7;
}

/* Submenu Mobile */
.nav-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu .sub-menu.active {
    max-height: 1000px;
}

.nav-menu .sub-menu li {
    margin-bottom: 8px;
}

.nav-menu .sub-menu li a {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    opacity: 0.9;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu .sub-menu li a:hover {
    opacity: 1;
    padding-left: 10px;
}

.nav-menu .menu-item-has-children > .submenu-toggle::after {
    content: ' +';
}

.nav-menu .menu-item-has-children.open > .submenu-toggle::after {
    content: ' −';
}

/* Nav Footer */
.nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-social {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.nav-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-social a:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.nav-social .x-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-tagline {
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.9;
}

.nav-tagline strong {
    font-weight: 600;
}

/* Main Content */
main {
    margin-top: 0;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--dark-gray);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.3);
}

/* About Section */
.about-section {
    background-color: var(--white);
    text-align: center;
    padding: 5% 0;
}

.about-content {
    margin: 0 auto;
    padding: 0 10%;
}

.about-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 700;
}

.about-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.4;
    color: var(--dark-gray);
    font-weight: 500;
}

.about-content .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d9ec7 100%);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Title */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.75rem;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.75rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--primary-blue), transparent);
    border-radius: 0.125rem;
}

/* Events Section */
.events-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.events-section .container,
.platforms-section .container,
.news-section .container,
.about-section .container,
.stats-section .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10%;
}

/* Carousel Wrapper for Events/Platforms */
.carousel-wrapper {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: var(--white);
    border: none;
    border-radius: var(--button-radius);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    font-size: 1.25rem;
}

.carousel-nav:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 0.5rem 1.5rem rgba(28, 176, 217, 0.4);
}

.carousel-nav.prev {
    left: -1.5rem;
}

.carousel-nav.next {
    right: -1.5rem;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background-color: var(--white);
    color: var(--dark-gray);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.events-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.events-grid::-webkit-scrollbar {
    display: none;
}

.event-card,
.platform-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: block;
    position: relative;
    background: var(--white);
    min-width: 320px;
    flex-shrink: 0;
}

.event-card::before,
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.event-card:hover,
.platform-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(28, 176, 217, 0.15);
}

.event-card:hover::before,
.platform-card:hover::before {
    opacity: 1;
}

.event-card img,
.event-card .event-image,
.platform-card img,
.platform-card .platform-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover img,
.event-card:hover .event-image,
.platform-card:hover img,
.platform-card:hover .platform-image {
    transform: scale(1.05);
}

.event-placeholder,
.platform-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d8ab0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.event-placeholder::before,
.platform-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.event-placeholder span,
.platform-placeholder span {
    font-size: 48px;
    position: relative;
    z-index: 1;
}

.event-placeholder p,
.platform-placeholder p {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    margin: 0;
    padding: 0 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Platforms Section */
.platforms-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.platforms-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.platforms-grid::-webkit-scrollbar {
    display: none;
}

/* News Section */
.news-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--dark-gray) 0%, #3a3b45 100%);
    color: var(--white);
    position: relative;
}

.news-section .section-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.news-section .section-title::after {
    background: linear-gradient(90deg, var(--primary-blue), transparent);
}

.news-intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-content {
    padding: 1.25rem;
}

.news-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-date {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.7;
}

/* News Archive Page (Novidades) - Modern Design */
.news-archive-page {
    padding-top: 0;
}

.news-hero-header {
    position: relative;
    min-height: 40vh;
    background-color: var(--primary-blue);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.news-hero-title {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.news-posts-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.news-posts-section .container {
    max-width: 100%;
    padding: 0 10%;
}

.news-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-post-card {
    position: relative;
    overflow: hidden;
}

.news-card-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.news-card-image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-card-placeholder {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d8ab0 100%);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.news-post-card:hover .news-card-image {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.news-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.news-placeholder-icon {
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.news-card-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-card-date {
    font-size: 14px;
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
    display: block;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.no-posts {
    text-align: center;
    padding: 5% 0;
    font-size: 18px;
    color: var(--dark-gray);
    opacity: 0.7;
}

/* Single Post Page - Modern Design */
.single-post-page {
    padding-top: 0;
    background-color: var(--white);
}

.post-hero-header {
    position: relative;
    width: 100%;
}

.post-hero-image {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.post-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 5% 0;
}

.post-hero-content .container {
    max-width: 100%;
    padding: 0 10%;
}

.post-hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: var(--white);
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.post-hero-meta {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--white);
    opacity: 0.95;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.post-hero-meta .meta-separator {
    opacity: 0.7;
}

.post-hero-meta a {
    color: var(--white);
    transition: opacity 0.3s ease;
}

.post-hero-meta a:hover {
    opacity: 0.7;
}

.post-hero-simple {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d9ec7 100%);
    padding: 8% 0;
    text-align: center;
}

.post-hero-simple .container {
    max-width: 100%;
    padding: 0 10%;
}

.post-hero-simple .post-hero-title {
    color: var(--white);
}

.post-hero-simple .post-hero-meta {
    justify-content: center;
}

.post-content-wrapper {
    padding: 0% 4%;
    background-color: var(--white);
}

.post-content-wrapper .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.post-content {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.2;
    color: var(--dark-gray);
    margin-bottom: 5%;
    text-align: justify;
    width: 100%;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--dark-gray);
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 700;
    color: var(--dark-gray);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h4 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.post-content a:hover {
    opacity: 0.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.post-content figure {
    margin: 30px 0;
    max-width: 100%;
}

.post-content figure img {
    margin: 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--dark-gray);
    opacity: 0.7;
    margin-top: 10px;
    font-style: italic;
}

.post-content .wp-block-image {
    margin: 30px 0;
}

.post-content .wp-block-image.aligncenter {
    text-align: center;
}

.post-content .wp-block-image.alignleft {
    float: left;
    margin-right: 30px;
    max-width: 50%;
}

.post-content .wp-block-image.alignright {
    float: right;
    margin-left: 30px;
    max-width: 50%;
}

.post-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.post-content .wp-block-gallery img {
    margin: 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--dark-gray);
    opacity: 0.9;
}

.post-content code {
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--white);
}

.post-navigation {
    display: none;
}

.back-to-news {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--primary-blue);
    border-radius: var(--button-radius);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-link:hover {
    background-color: var(--dark-gray);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Old Archive Page Styles - Keep for compatibility */
.archive-page {
    padding-top: 90px;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d9ec7 100%);
    padding: 5% 0;
    text-align: center;
    color: var(--white);
}

.page-header .container {
    max-width: 100%;
    padding: 0 10%;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-description {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.posts-section {
    padding: 5% 0;
    background-color: var(--light-gray);
}

.posts-section .container {
    max-width: 100%;
    padding: 0 10%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 3%;
    margin-bottom: 5%;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(28, 176, 217, 0.15);
}

.post-image-link {
    display: block;
}

.post-card .post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d8ab0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 15px;
}

.post-placeholder .placeholder-icon {
    font-size: 60px;
}

.post-placeholder .placeholder-text {
    font-size: 20px;
    font-weight: 600;
}

.post-content {
    padding: 8%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-separator {
    opacity: 0.5;
}

.post-category a {
    color: var(--primary-blue);
    transition: opacity 0.3s ease;
}

.post-category a:hover {
    opacity: 0.7;
}

.post-title {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-title a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-blue);
}

.post-excerpt {
    color: var(--dark-gray);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more span {
    transition: transform 0.3s ease;
}

.read-more:hover span {
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    padding: 0.625rem 1.125rem;
    background: var(--white);
    color: var(--dark-gray);
    border-radius: var(--button-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-blue);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination .dots {
    padding: 0.625rem;
    color: var(--dark-gray);
}

/* Load More Button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 176, 217, 0.3);
}

.load-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    font-size: 1.125rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

/* 404 Error Page */
.error-404-page {
    background-color: var(--white);
}

.error-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8% 10%;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.error-content {
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInScale 0.8s ease;
}

.error-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.error-message {
    font-size: clamp(16px, 2.5vw, 22px);
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.94rem 2.19rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--button-radius);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--dark-gray);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 0.125rem solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.helpful-links {
    padding: 5% 10%;
    background-color: var(--white);
}

.helpful-links h3 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-weight: 700;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.helpful-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.helpful-link i {
    font-size: 36px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.helpful-link span {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
}

.helpful-link:hover {
    background-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(28, 176, 217, 0.3);
}

.helpful-link:hover i,
.helpful-link:hover span {
    color: var(--white);
}

.helpful-link:hover i {
    transform: scale(1.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 0;
}

.site-footer .container {
    background-color: var(--primary-blue);
    padding: 2.5rem 10%;
    max-width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left {
    flex: 1 1 50%;
    min-width: 280px;
}

.footer-social {
    display: flex;
    gap: 1.125rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--white);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.social-icon .x-icon {
    width: clamp(1.375rem, 3vw, 1.75rem);
    height: clamp(1.375rem, 3vw, 1.75rem);
}

.footer-brand {
    margin-bottom: 0;
}

.footer-brand h3 {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

.footer-copyright {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.9;
    margin: 0;
    margin-top: 0.5rem;
}

.footer-info {
    text-align: right;
    flex-shrink: 0;
}

.footer-info p {
    margin: 0.3rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 5rem 2rem 2rem;
    }
    
    .nav-menu > .menu-item > a {
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .nav-footer {
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 2rem;
    }
    
    .nav-social {
        justify-content: flex-start;
        gap: 1.25rem;
    }
    
    .nav-tagline {
        font-size: 0.875rem;
    }

    .hero-carousel {
        height: 100vh;
        min-height: 100vh;
    }

    .stat-item {
        padding: 1rem;
    }

    .section-title {
        margin-bottom: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .footer-social {
        justify-content: center;
        gap: 1rem;
    }

    .footer-info {
        text-align: center;
    }
    
    .footer-info p {
        font-size: 0.875rem;
    }

    /* Mobile horizontal scroll for events/platforms */
    .events-grid,
    .platforms-grid {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
    
    .event-card,
    .platform-card {
        min-width: 75vw;
        max-width: 75vw;
        height: 220px;
    }
    
    .event-card img,
    .event-card .event-image,
    .platform-card img,
    .platform-card .platform-image {
        height: 220px;
    }
    
    .event-placeholder,
    .platform-placeholder {
        height: 220px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: clamp(4rem, 15vw, 8rem);
    }
    
    .stat-label {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    
    .header-container {
        padding: 1.5rem 1rem;
    }
    
    .events-section,
    .platforms-section,
    .news-section,
    .about-section,
    .posts-section,
    .page-header,
    .news-posts-section {
        padding: 2.5rem 0;
    }
    
    .events-section .container,
    .platforms-section .container,
    .news-section .container,
    .about-section .container {
        padding: 0 1rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-section .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .posts-grid,
    .news-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .news-posts-section .container {
        padding: 0 1rem;
    }
    
    .news-hero-header {
        min-height: 35vh;
    }
    
    .news-hero-title {
        letter-spacing: 2px;
        font-size: 3rem;
    }
    
    .news-card-image {
        height: 220px;
        border-radius: 1rem;
    }
    
    .news-card-content {
        padding: 1.25rem;
    }
    
    .news-card-title {
        font-size: 1.125rem;
    }
    
    .post-hero-image {
        min-height: 45vh;
    }
    
    .post-hero-content {
        padding: 2rem 0;
    }
    
    .post-hero-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        max-width: 100%;
        text-align: center;
    }
    
    .post-content-wrapper {
        padding: 1.5rem 0;
    }
    
    .post-content-wrapper .container {
        padding: 0 1rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .back-to-news {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .back-link {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .error-hero {
        padding-top: 100px;
    }
    
    /* Hide carousel arrows on mobile - use swipe */
    .carousel-nav {
        display: none;
    }
    
    .carousel-wrapper {
        margin: 0;
    }
    
    /* About section mobile */
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 1.125rem;
    }
}

/* ============================================
   ABOUT PAGE - SOBRE NÓS
   ============================================ */

.about-page {
    background-color: var(--white);
}

.about-info-section {
    padding: 4rem 0;
}
.about-info-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-info-text {
    flex: 1;
}

.about-info-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-info-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.about-info-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.about-stat-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-width: 200px;
}

.about-stat-side .stat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.about-stat-side .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    text-align: center;
}

/* Team Section */
.team-section {
    padding: 2rem 0 4rem;
}

.team-department {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.department-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.department-toggle:hover {
    background-color: #f8f9fa;
}

.department-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}

.department-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(0deg);
}

.department-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.department-members {
    padding: 1.5rem;
    background: #fafafa;
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.department-members.collapsed {
    grid-template-rows: 0fr;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.department-members > .members-grid {
    overflow: hidden;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

/* Member Card - Flip Effect */
.member-card-wrapper {
    perspective: 62.5rem;
    width: 14rem;
    height: 20rem;
}

.member-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.member-card.has-links:hover {
    transform: rotateY(180deg);
}

.member-card-front,
.member-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    overflow: hidden;
}

.member-card-front {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.member-card-back {
    background: var(--primary-blue);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo {
    width: 100%;
    height: 13rem;
    overflow: hidden;
    background: #e0e0e0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
}

.member-placeholder svg {
    width: 40%;
    height: 40%;
    color: #999;
}

.member-info {
    padding: 1rem;
    text-align: center;
    background: var(--dark-gray);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.member-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Back of card - Links */
.member-links-back {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.member-link-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 0.125rem solid rgba(255, 255, 255, 0.3);
}

.member-link-large:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: scale(1.1);
}

.member-link-large.email {
    background: rgba(255, 255, 255, 0.2);
}

.member-link-large.email:hover {
    background: var(--white);
    color: var(--dark-gray);
}

.no-team {
    text-align: center;
    color: #888;
    padding: 3rem;
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-info-section {
        padding: 2.5rem 0;
    }
    
    .about-info-section .container {
        padding: 0 1.5rem;
    }
    
    .about-info-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-stat-side {
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(28, 176, 217, 0.05) 0%, rgba(28, 176, 217, 0.1) 100%);
        border-radius: 1rem;
    }
    
    .about-info-text p {
        text-align: left;
    }
    
    .team-section {
        padding: 2rem 0 4rem;
    }
    
    .team-section .container {
        padding: 0 1.5rem;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .member-card-wrapper {
        width: 100%;
        max-width: 12rem;
        height: 17rem;
    }
    
    .member-photo {
        height: 11rem;
    }
    
    .department-toggle {
        padding: 1rem 1.25rem;
    }
    
    .department-members {
        padding: 1rem;
    }
    
    /* Mobile - tap to flip */
    .member-card.has-links.flipped {
        transform: rotateY(180deg);
    }
}
