/* Global Styles */
:root {
    --primary: #27ae60;
    --primary-dark: #219653;
    --primary-light: #52c41a;
    --secondary: #2ecc71;
    --accent: #00b16a;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient-1: linear-gradient(135deg, #27ae60, #219653);
    --gradient-2: linear-gradient(135deg, #52c41a, #27ae60);
    --gradient-3: linear-gradient(135deg, #00b16a, #2ecc71);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(39, 174, 96, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    color: var(--dark) !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* Hero Section - Centered */
.hero-section {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9), rgba(33, 150, 83, 0.9)), url('assets/images/fotoBOM.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-container {
    display: inline-block;
}

.badge-glow {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.gradient-text {
    background: linear-gradient(45deg, #fff, var(--primary-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Vision & Mission Section */
.vision-card, .mission-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    border: none;
}

.vision-card:hover {
    transform: translateY(-10px);
}

.card-glow {
    box-shadow: var(--shadow-glow);
}

.vision-card .card-header,
.mission-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border: none;
    background: transparent;
    padding: 0;
}

.vision-card .card-header i,
.mission-card .card-header i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-1 {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

/* Mission List */
.mission-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mission-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mission-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    min-width: 60px;
}

.mission-content h5 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

/* Agenda Cards - LONGER HEIGHT */
.agenda-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 600px; /* Increased height */
    transition: transform 0.3s ease;
    position: relative;
    padding-top: 80px; /* Increased padding to accommodate icon */
    display: flex;
    flex-direction: column;
}

.agenda-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.agenda-icon {
    position: absolute;
    top: -40px; /* Moved further up to ensure full visibility */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.agenda-meta {
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
}

.agenda-meta p {
    color: #6c757d;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.agenda-meta i {
    color: var(--primary);
    width: 20px;
}

.agenda-meta ul {
    list-style-type: disc;
    padding-left: 1rem;
    margin-top: 10px;
}

.agenda-meta li {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.agenda-card .card-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 30px;
    justify-content: space-around;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Form Cards */
.form-card {
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: none;
}

.form-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.form-icon i {
    transition: transform 0.3s ease;
}

.form-card:hover .form-icon i {
    transform: scale(1.1);
}

/* Board Members - WIDER CARDS WITH FULL NAMES */
.board-member-card {
    position: relative;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 180px; /* Increased width to accommodate full names */
}

/* Wider cards for first two rows */
.board-member-wide {
    width: 180px; /* Wider than default */
}

.member-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.board-member-wide .member-circle {
    width: 140px;
    height: 140px;
}

.member-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.board-member-card:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
    white-space: normal; /* Changed from nowrap */
    overflow: visible; /* Changed from hidden */
    text-overflow: clip; /* Changed from ellipsis */
    line-height: 1.3;
    word-wrap: break-word; /* Allow long words to break */
    word-break: break-word; /* Break long words if needed */
    display: block; /* Ensure proper text flow */
}

.board-member-wide .member-name {
    max-width: 180px;
    font-size: 1.1rem;
}

.member-position {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.board-member-wide .member-position {
    font-size: 0.85rem;
    padding: 6px 15px;
}

/* Member Details Popup - Side Position */
.member-details-popup {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%;
    margin-left: 20px;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.position-relative:hover .member-details-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.member-details-popup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: white;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.05);
}

.popup-content {
    text-align: left;
}

.popup-content h5 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.position-badge {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Coordinator Group Cards - WITH SMALL AVATARS */
.coordinator-group-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    padding: 25px;
    height: 100%;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: visible;
}

.coordinator-group-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.group-header i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.group-header h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 0;
}

.group-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    padding-right: 0;
}

/* Remove scrollbar styling */
.group-members::-webkit-scrollbar {
    display: none;
}

/* Coordinator Item with SMALL Avatar */
.coordinator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.coordinator-item:hover {
    background: #f8f9fa;
}

.coordinator-detail {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.coordinator-detail h6 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 3px;
    color: var(--dark);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coordinator-detail p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.2;
}

.coordinator-avatar {
    width: 40px; /* Smaller than before */
    height: 40px; /* Smaller than before */
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e9ecef;
    box-shadow: var(--shadow-sm);
}

.coordinator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b7c3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b0b7c3;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary-light);
    margin-top: 3px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

.footer-link {
    color: #b0b7c3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 80px;
    }
    
    .display-3 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .mission-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .mission-number {
        min-width: auto;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    /* Agenda cards on mobile */
    .agenda-card {
        height: auto;
        min-height: 500px;
    }
    
    .board-member-card {
        width: 160px; /* Adjusted for mobile */
    }
    
    .board-member-wide {
        width: 180px; /* Adjusted for mobile */
    }
    
    .board-member-wide .member-circle {
        width: 120px;
        height: 120px;
    }
    
    .member-circle {
        width: 100px;
        height: 100px;
    }
    
    .member-details-popup {
        width: 250px;
        margin-left: 10px;
    }
    
    /* Coordinator avatars on mobile - Even smaller */
    .coordinator-avatar {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
    
    .coordinator-item {
        gap: 10px;
        padding: 6px;
    }
    
    .coordinator-detail h6 {
        font-size: 0.85rem;
    }
    
    .coordinator-detail p {
        font-size: 0.75rem;
    }
    
    .member-name {
        max-width: 130px;
    }
    
    .board-member-wide .member-name {
        max-width: 150px;
    }
    
    /* Board members stacking on mobile */
    .row.justify-content-center .col-auto {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .board-member-card {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .board-member-card {
        width: 120px;
        padding: 15px;
    }
    
    .board-member-wide {
        width: 140px;
    }
    
    .member-circle {
        width: 90px;
        height: 90px;
    }
    
    .board-member-wide .member-circle {
        width: 110px;
        height: 110px;
    }
    
    .member-details-popup {
        width: 220px;
        left: 50%;
        top: 100%;
        margin-left: 0;
        margin-top: 15px;
        transform: translateX(-50%);
    }
    
    .member-details-popup::before {
        top: -10px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
    
    .position-relative:hover .member-details-popup {
        transform: translateX(-50%) translateY(0);
    }
    
    .member-name {
        max-width: 140px;
        font-size: 0.9rem;
    }
    
    .board-member-wide .member-name {
        max-width: 160px;
        font-size: 0.95rem;
    }
    
    .coordinator-group-card {
        padding: 15px;
    }
    
    .group-header h4 {
        font-size: 1.1rem;
    }
    
    /* Even smaller coordinator avatars on very small screens */
    .coordinator-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    
    .coordinator-item {
        gap: 8px;
        padding: 5px;
    }
    
    .coordinator-detail h6 {
        font-size: 0.8rem;
    }
    
    .coordinator-detail p {
        font-size: 0.7rem;
    }
}
