/* Base Variables */
:root {
    --primary-color: #004d9c;
    /* ---- New design tokens (navbar/shared components) ---- */
    --color-primary:     #004d9c;
    --color-primary-dk:  #003a75;
    --color-primary-lt:  #1a69b8;
    --color-accent:      #00bcd4;
    --color-dark-2:      #1a2b42;
    --color-white:       #ffffff;
    --color-gray-100:    #f0f4f8;
    --color-gray-200:    #e2e8f0;
    --color-gray-600:    #475569;
    --color-text:        #1e293b;
    --font-heading:      'Outfit', sans-serif;
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-4:  1rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-full: 9999px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --duration:   0.25s;
    --navbar-h:   72px;

    /* UFRGS Blue */
    --secondary-color: #00bcd4;
    /* Cyan/Teal accent */
    --dark-color: #1a2b42;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}
/* -------------------------------------------------------
   NAVBAR (unified with new homepage design)
   ------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.navbar.scrolled {
    border-color: var(--color-gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--space-8);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: auto;
    flex-wrap: nowrap;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links > li > a,
.nav-links > li > button {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-dark-2);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: color var(--duration) var(--ease),
                background var(--duration) var(--ease);
    white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--color-primary); background: var(--color-gray-100); }

/* Dropdown */
.dropdown { position: relative; }
.dropbtn { display: flex; align-items: center; gap: 4px; }
.dropdown::before { content: ""; position: absolute; bottom: -8px; left: 0; right: 0; height: 8px; }
.dropbtn .fa-chevron-down { font-size: 0.65rem; transition: transform var(--duration) var(--ease); }
.dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    padding: var(--space-2);
    z-index: 1001;
}
/* hover (desktop) e is-open (JS) abrem o dropdown */
.dropdown:hover .dropdown-content,
.dropdown.is-open .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    font-size: 0.875rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.dropdown-content a:hover { background: var(--color-gray-100); color: var(--color-primary); }

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-left: var(--space-2);
}
.lang-btn {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    color: var(--color-gray-600);
    transition: all var(--duration) var(--ease);
    background: none;
    border: none;
    cursor: pointer;
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Search trigger */
.search-trigger button {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.search-trigger button:hover { color: var(--color-primary); background: var(--color-gray-100); }

/* Instagram nav icon */
.nav-instagram a {
    font-size: 1.4rem;
    color: var(--color-gray-600);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav-instagram a:hover { color: #e1306c; background: var(--color-gray-100); }

/* CTA button in nav */
.btn-cta-nav {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.45rem 1rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    transition: background var(--duration) var(--ease) !important;
}
.btn-cta-nav:hover { background: var(--color-primary-lt) !important; color: var(--color-white) !important; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}
.mobile-menu-btn:hover { background: var(--color-gray-100); }
.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--color-dark-2);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

/* Page header (internal pages hero) */
.page-header {
    height: 200px;
    background: url('../assets/hero_background.png') no-repeat center center / cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--navbar-h);
}
.header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 70, 0.60);
}
.header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.header-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.text-light-gray { color: #fff !important; }

@media (max-width: 900px) {
    /* Navbar mobile */
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        margin-left: 0;
        border-top: 1px solid var(--color-gray-200);
        z-index: 999;
        height: calc(100vh - var(--navbar-h));
    }
    .nav-links.is-open { display: flex; transform: translateX(0); }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-100);
    }

    .nav-links > li > a,
    .nav-links > li > button {
        display: block;
        width: 100%;
        padding: 0.9rem 0.5rem;
        font-size: 1rem;
    }

    .dropdown-content {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        background: var(--color-gray-100);
        padding: var(--space-2) var(--space-4);
        display: none;
    }

    /* Fix: iOS/touch :hover activates desktop dropdown styles — reset them */
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: none;
        position: static;
        display: none;
    }
    .dropdown.is-open .dropdown-content { display: block; }

    .lang-switcher { margin-left: 0; margin-top: var(--space-4); }
}



/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

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

.bg-light {
    background-color: var(--light-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

.btn-text {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--secondary-color);
}

.btn-cta-small {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-cta-small:hover {
    background-color: var(--dark-color);
}

/* Navigation */


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('../assets/hero_background.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    /* Nav is fixed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 156, 0.85), rgba(0, 188, 212, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats {
    padding: 40px 0;
    background-color: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-item {
    border-right: 1px solid #eee;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.image-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.image-card h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.image-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.icon-bg {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

/* Areas Section */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.area-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.area-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* News Section (Carousel) */
.carousel-container {
    position: relative;
    padding: 0 50px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.news-carousel {
    overflow: hidden;
    padding: 10px 0 20px;
    /* Space for shadow */
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    min-width: 300px;
    /* Fixed width for consistency */
    flex: 0 0 300px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid #eee;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--dark-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

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

.news-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    text-align: center;
    width: 60px;
    position: absolute;
    margin-top: 20px;
    margin-left: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.news-card .news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-card .news-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}

.news-content {
    padding: 30px;
    padding-top: 70px;
    /* Space for date badge overlap if preferred, or just padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.news-tag {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    margin-left: 60px;
    /* Offset for date badge */
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* Highlights Section */
.highlights-section {
    padding: 100px 0;
    background: url('../assets/hero_background.png') no-repeat center center/cover;
    position: relative;
}

.highlights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.highlight-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-content h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.highlight-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.tag {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.contact-list li {
    display: flex;
    gap: 15px;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list li i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}



.people-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.person-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    transition: var(--transition);
}

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

.person-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.person-role {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.person-email {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.person-email:hover {
    color: var(--primary-color);
}

.students-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.student-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 3px solid var(--secondary-color);
}

.student-name {
    display: block;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.student-advisor {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    @media (max-width: 768px) {
        .header-content h1 {
            font-size: 2.5rem;
        }
    }

    /* Editais Page Styles */
    .editais-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }

    .edital-card {
        background: var(--white);
        border-radius: var(--radius);
        padding: 30px;
        box-shadow: var(--shadow);
        border-top: 5px solid var(--secondary-color);
        transition: var(--transition);
    }

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

    .edital-tag {
        background: rgba(0, 188, 212, 0.1);
        color: var(--secondary-color);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        display: inline-block;
        margin-bottom: 15px;
    }

    .edital-card h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        min-height: 3.2em;
        /* align titles */
    }

    .file-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .file-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-color);
        font-size: 0.95rem;
        padding: 10px;
        border-radius: 6px;
        background-color: var(--light-color);
        transition: var(--transition);
    }

    .file-link:hover {
        background-color: rgba(0, 77, 156, 0.05);
        color: var(--primary-color);
        transform: translateX(5px);
    }

    .file-link i {
        color: #e74c3c;
        /* PDF color */
        font-size: 1.2rem;
    }

    /* Lattes Button */
    .btn-lattes {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 15px;
        padding: 8px 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
        color: var(--text-color);
        font-size: 0.85rem;
        font-weight: 500;
        background: var(--white);
    }

    .btn-lattes:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .lattes-icon {
        width: 16px;
        height: 16px;
        /* Generic icon or use CSS to fake Lattes logo */
    }

    /* Adjust email alignment in card */
    .person-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.person-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

/* Student List Styles */
.student-category-header {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
}

.student-category-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-item {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.student-item:hover {
    transform: translateX(5px);
    border-left: 3px solid var(--primary-color);
}

.student-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.student-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.student-level {
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.badge-doutorado {
    background-color: rgba(0, 77, 156, 0.1);
    color: var(--primary-color);
}

.badge-mestrado {
    background-color: rgba(0, 188, 212, 0.1);
    color: var(--secondary-color);
}

.student-advisor {
    font-size: 0.9rem;
    color: var(--text-light);
}



/* Editais Year Divider */
.year-divider {
    text-align: center;
    margin: 40px 0 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.year-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Google Translate Customization */
/* Hide the Google Translate top bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Hide the default Google Translate gadget */
.goog-te-gadget {
    display: none !important;
    height: 0;
    overflow: hidden;
}

#google_translate_element {
    display: none;
    visibility: hidden;
}

/* Ensure Tooltips don't look weird if they appear */
.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Utility Classes */
.rounded {
    border-radius: var(--radius);
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.mx-3 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Styles - Enforcing Hidden State */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 10000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Search Bar Styles */


/* Search Modal Overlay */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop */
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.search-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 100px auto;
    background: transparent;
}

/* Search Header (Input) */
.search-header {
    position: relative;
    margin-bottom: 40px;
}

#search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 50px 15px 10px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 300;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-bottom-color: var(--secondary-color);
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.close-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-search:hover {
    color: var(--white);
}

/* Search Results */
.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar for results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.search-result-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: transform 0.2s;
    cursor: pointer;
    border-left: 4px solid var(--secondary-color);
}

.search-result-item:hover {
    transform: translateY(-3px);
}

.search-result-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.search-result-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

.no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-top: 50px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #search-input {
        font-size: 1.5rem;
    }

    .search-modal-content {
        margin: 80px auto;
    }
}

/* Highlights Section Update */
.highlight-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.highlight-content {
    flex: 1;
    text-align: left;
}

.photo-carousel {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.photo-track-wrapper {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.photo-track img {
    width: 100%;
    height: 300px;
    /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
}

.photo-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: var(--primary-color);
    transition: all 0.3s;
}

.photo-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.photo-prev {
    left: 10px;
}

.photo-next {
    right: 10px;
}

@media (max-width: 768px) {
    .highlight-wrapper {
        flex-direction: column;
    }

    .photo-btn {
        width: 30px;
        height: 30px;
    }

    .highlight-card {
        padding: 30px 20px;
        /* Reduce padding significantly */
    }

    .section {
        padding: 50px 0;
        /* Reduce section padding */
    }

    .hero-content {
        max-width: 100%;
        /* Ensure it doesn't overflow */
    }
}

/* Editais Page - Full Card and Badges */
.edital-full-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
}

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

.edital-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.edital-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 10px 0;
}

.edital-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Make Edital Badges High Visibility */
.edital-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.edital-badge.open {
    background-color: #28a745; /* Vibrant Green */
}

.edital-badge.process {
    background-color: #ff9800; /* Vibrant Orange */
}

.edital-badge.closed {
    background-color: #dc3545; /* Vibrant Red */
}