/* Reset și stil de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f8f9fa;
}

/* Header și navigare */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(0);
}

header.visible {
    transform: translateY(0);
}

nav {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hamburger-menu {
    display: block;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #2c2c2c;
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 3px;
}

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

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

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

/* Iconică Acasă - doar pe paginile de articole */
.home-icon {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Afișează iconița doar pe paginile de articole */
header.article-header .home-icon {
    opacity: 1;
    visibility: visible;
}

/* Ascunde iconița când meniul este deschis */
header.menu-open .home-icon {
    opacity: 0;
    visibility: hidden;
}

.home-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.home-icon a:hover {
    transform: scale(1.1);
}

.home-icon img {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgb(199, 217, 184);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logo-link {
    padding: 0.8rem 1.2rem !important;
    border: 2px solid rgb(199, 217, 184) !important;
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.logo-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.nav-logo {
    height: 40px;
    width: auto;
}

/* Main content */
main {
    padding-top: 0;
}

.hero {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    max-width: 100vw;
}

.hero-bg-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(188, 214, 172, 0.8), rgba(147, 197, 114, 0.8));
    z-index: 1;
}

.hero-logo-top {
    position: absolute;
    top: -20px;
    left: 30px;
    z-index: 2;
}

.logo-top {
    max-height: 180px;
    width: auto;
    display: block;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    gap: 4rem;
    z-index: 2;
    color: white;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-logo {
    max-width: 100%;
    max-height: 40vh;
    width: auto;
    height: auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    line-height: 1.6;
}

/* Buton scroll down */
.scroll-down-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.scroll-down-button:hover {
    transform: translateX(-50%) translateY(-5px);
}

.arrow-down {
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.arrow-down:hover {
    transform: scale(1.2);
}

.arrow-down span {
    position: absolute;
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.arrow-down span:first-child {
    transform: rotate(45deg);
    left: 3px;
    top: 12px;
}

.arrow-down span:last-child {
    transform: rotate(-45deg);
    right: 3px;
    top: 12px;
}

/* Responsive pentru hero section */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .start-logo {
        max-height: 40vh;
    }
}

/* Secțiuni */
.section {
    padding: 4rem 0;
}

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

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.info-card h3 {
    color: rgb(188, 214, 172);
    margin-bottom: 1rem;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    padding: 0 60px; /* Spațiu pentru săgeți */
}

.projects-grid {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
}

.project-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    padding-top: 12px; /* mută imaginea puțin în jos pentru a se vedea marginea superioară */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* afișează marginea superioară a imaginii */
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 260px; /* Înălțime mărită considerabil pentru mai mult spațiu */
}

.project-content h3 {
    color: #2c2c2c;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 0;
    height: 140px; /* Înălțime mult mărită pentru 2 rânduri foarte vizibile */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: rgb(147, 197, 114);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid rgb(147, 197, 114);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
    text-align: center;
    align-self: center;
    margin-top: auto;
}

.read-more:hover {
    background: rgb(147, 197, 114);
    color: white;
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgb(147, 197, 114);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 1;
}

.carousel-btn:hover {
    background: rgb(147, 197, 114);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-btn span {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-left-column,
.contact-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-item {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-item h3 {
    color: rgb(147, 197, 114);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: rgb(147, 197, 114);
}

/* Rețele sociale în contact */
.contact-social {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
}

.contact-social h3 {
    color: rgb(147, 197, 114);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-social-link:hover {
    background: rgb(147, 197, 114);
    color: white;
    transform: translateX(5px);
}

.contact-social-link svg {
    flex-shrink: 0;
}

.contact-social-link span {
    font-weight: 500;
}

/* Buton sponzorizare */
.sponsorship-section {
    text-align: center;
}

.sponsorship-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.sponsorship-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #357abd, #2c5f8a);
}

/* Formulare */
.contact-form-container,
.newsletter-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-container h3,
.newsletter-container h3 {
    color: rgb(147, 197, 114);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.newsletter-container p {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-form,
.newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form .form-btn {
    margin-top: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(147, 197, 114);
    box-shadow: 0 0 0 3px rgba(147, 197, 114, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 2rem;
    background: rgb(147, 197, 114);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: rgb(130, 180, 100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 197, 114, 0.3);
}

.newsletter-btn {
    background: rgb(147, 197, 114);
}

.newsletter-btn:hover {
    background: rgb(130, 180, 100);
}

/* Footer */
footer {
    background: #2c2c2c;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-text {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.footer-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgb(147, 197, 114);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 197, 114, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .hamburger-menu {
        right: 1rem;
    }
    
    nav {
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .projects-carousel {
        padding: 0 50px; /* Spațiu pentru săgeți pe mobile */
    }
    
    .project-card {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn span {
        font-size: 20px;
    }
    
    /* Contact responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-left-column,
    .contact-right-column {
        height: auto;
    }
    
    .contact-social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .contact-social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .contact-social-link span {
        display: none;
    }
    
    .sponsorship-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-form-container,
    .newsletter-container {
        padding: 1.5rem;
    }
    
    .contact-form-container h3,
    .newsletter-container h3 {
        font-size: 1.2rem;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .footer-text {
        order: 2;
    }
    
    .social-links {
        justify-content: center;
        order: 3;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .project-content {
        padding: 2rem;
        height: 220px; /* Înălțime mărită și pe mobile */
        text-align: center;
        align-items: center;
    }
    
    .project-content h3 {
        font-size: 1.6rem;
        height: 120px; /* Spațiu foarte generos pentru titluri pe mobile */
        line-height: 1.5;
        text-align: center;
    }
}

/* Stare header când meniul este deschis */
header.menu-open {
    background: linear-gradient(135deg, rgba(147, 197, 114, 0.48), rgba(90, 158, 44, 0.38));
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(90,158,44,0.08);
}

/* Board members - ensure actions align horizontally */
.member-card {
    /* Keep visual style consistent while enabling vertical spacing */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px; /* ensures action row sits at the same level across cards */
}

.member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.member-actions .social-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgb(147, 197, 114), rgb(90, 158, 44));
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(90,158,44,0.12);
}

.cv-btn:hover {
    transform: translateY(-2px);
}

/* Member images: uniform sizing and cropping */
.member-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f3f3;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
    transform: scale(1);
}

/* Slight zoom for vice-president (2nd card) */
.members-grid .member-card:nth-child(2) .member-image img {
    transform: scale(1.12);
}
