:root {
    --primary-color: #1a5f7a;  
    --secondary-color: #2ecc71;  
    --text-color: #2c3e50;
    --background-color: #f8f9fa;  
    --card-background: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;  
}

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

/* Enhanced Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    position: relative;
}

.logo-hamburger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    max-height: 60px;  
    max-width: 150px;  
    object-fit: contain;
    border-radius: 8px;  
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Hero Section with Gradient and Overlay */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-logo {
    position: relative;
    top: -20px;  
    max-width: 300px;  
    margin-bottom: 1rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* Refined Card Styles */
.value-card, .event-card, .opportunity-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 10px 20px var(--card-shadow);
    padding: 2rem;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.value-card svg {
    width: 50px;
    height: 50px;
    color: var(--secondary-color);
}

.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.opportunity-card .opportunity-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.event-card .event-location {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* About, Register, Admin Login */
.about, .register, .admin-login {
    text-align: center;
}

.mission-values {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

/* Events Section */
.events {
    background-color: #f9f9f9;
    padding: 2rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-card .event-date {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.add-event-section {
    text-align: center;
    margin-top: 2rem;
}

.add-event-section form {
    max-width: 600px;
    margin: 0 auto;
}

.events-management-list {
    margin-top: 1rem;
}

.event-management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.event-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Opportunities Section */
.opportunities {
    background-color: #f9f9f9;
    padding: 2rem 0;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.opportunity-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.opportunity-card .opportunity-type {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.opportunity-card .opportunity-contact a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.suggest-opportunity-section {
    text-align: center;
    margin-top: 2rem;
}

.suggest-opportunity-section form {
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s;
}

.btn:hover::after {
    left: 0;
}

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

.btn-secondary {
    border: 2px solid white;
    color: white;
}

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

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

.btn-tertiary {
    background-color: #e74c3c;
    color: white;
}

.btn-suggest {
    background-color: #2ecc71;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-associate {
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-associate:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

.nav-menu .btn-associate {
    margin-left: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-group input.invalid, 
.form-group select.invalid, 
.form-group textarea.invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group input.invalid + .error-message,
.form-group select.invalid + .error-message,
.form-group textarea.invalid + .error-message {
    opacity: 1;
}

.form-consent {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-consent input[type="checkbox"] {
    margin-right: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    text-align: left;
}

.contact-info h4 {
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-section {
    text-align: right;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

/* Icon Styles */
.icon-register::before, 
.icon-events::before, 
.icon-opportunities::before,
.icon-submit::before,
.icon-lock::before,
.icon-plus::before {
    content: '✓'; 
    margin-right: 8px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    color: white;
    font-weight: 600;  
    font-size: 1.2rem;  
    margin-left: 0.5rem;  
    text-transform: none;  
    letter-spacing: 0.5px;  
    font-family: 'Roboto', 'Arial', sans-serif;  
    line-height: 1.2;  
}

/* WhatsApp floating button styles */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Responsive Typography */
html {
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0.3rem 0.5rem;
    }

    .nav-logo {
        max-height: 50px;
        max-width: 120px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.3rem 0;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
    }

    .mission-values {
        flex-direction: column;
    }

    .value-card {
        margin-bottom: 1rem;
    }

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

    .contact-info, .footer-section {
        text-align: center;
        margin-bottom: 1rem;
    }

    html {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
    }

    .nav-logo {
        max-height: 90px;
        max-width: 200px;
    }

    .hero-logo {
        top: -10px;  
        max-width: 250px;
    }

    .footer-logo {
        max-width: 120px;
    }

    .logo-text {
        font-size: 1.3rem;  
        margin-left: 0.5rem;
    }

    .nav-menu .btn-associate {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .whatsapp-float {
      width: 50px;
      height: 50px;
      bottom: 15px;
      right: 15px;
    }

    .whatsapp-float svg {
      width: 30px;
      height: 30px;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.social-links a:hover::before {
    left: 0;
}

.social-links a:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Facebook Button */
.social-links a[href*="facebook"] {
    background-color: #3b5998;
}

/* Instagram Button */
.social-links a[href*="instagram"] {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* LinkedIn Button */
.social-links a[href*="linkedin"] {
    background-color: #0077b5;
}

/* SVG Icons for Social Links */
.social-links a svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.blog {
    background-color: #f4f4f4;
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-card .btn {
    margin-top: 1rem;
}

/* News Page Styles */
.news-page {
    background-color: #f9f9f9;
    padding: 2rem 0;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card .news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.news-card .news-category {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.video-news {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    background-color: #f4f4f4;
    padding: 2rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.associate-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.associate-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.export-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .news-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .associate-filters {
        flex-direction: column;
    }

    .associate-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .register .container {
        padding: 1rem;
    }
}

/* Skip Link Accessibility Styles */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #fff;
  padding: 10px;
  font-size: 16px;
  z-index: 100;
  text-decoration: none;
  color: #000;
  transition: top 0.3s ease-in-out;
}

.skip-link:focus {
  top: 0;
  background-color: #ffcc00;
  outline: none;
}

/* News Management Styles */
.news-management {
    margin-top: 2rem;
}

.news-list {
    margin-top: 1rem;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

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

.close-modal:hover {
    color: black;
}

#newsForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#newsForm input, 
#newsForm textarea {
    width: 100%;
    padding: 0.5rem;
}

.opportunities-filters {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.opportunities-filters select {
    padding: 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

.opportunities-management-list {
    margin-top: 1rem;
}

.opportunity-management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.opportunity-item-actions {
    display: flex;
    gap: 0.5rem;
}

.about-page .about-hero {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-description ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.services {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
}

.service-card svg {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-section {
    padding: 4rem 0;
    text-align: center;
}

.contact-info {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

.associate-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.associate-login .container {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.associate-login h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dashboard tabs */
.dashboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    font-weight: bold;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.dashboard-section {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.events-management-list,
.opportunities-management-list {
    margin-top: 1rem;
}

.event-management-item,
.opportunity-management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.event-item-actions,
.opportunity-item-actions {
    display: flex;
    gap: 0.5rem;
}