/* Stiluri pentru paginile de articole */

/* Main layout pentru articole */
.article-main {
    padding-top: 100px; /* Spațiu pentru header fix */
    min-height: 100vh;
}

/* Container principal articol */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
}

/* Hero section pentru pagina despre */
.article-hero {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #93c572 0%, #5a9e2c 100%);
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

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

.article-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Hero section pentru alte articole */
.article-hero.with-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    padding: 0;
    background: none;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 3rem;
    text-align: left;
}

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

/* Conținutul articolului */
.article-body {
    padding: 4rem;
    line-height: 1.8;
    color: #333;
}

/* Introducere */
.article-intro {
    font-size: 1.3rem;
    color: #555;
    border-left: 4px solid rgb(147, 197, 114);
    padding-left: 2rem;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Secțiuni */
.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    color: #2c2c2c;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid rgb(188, 214, 172);
    padding-bottom: 0.5rem;
}

.article-section h3 {
    color: rgb(147, 197, 114);
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
}

.article-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}

/* Liste */
.article-list {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #444;
}

.article-list li::marker {
    color: rgb(147, 197, 114);
}

/* Imagine în conținut */
.article-image {
    margin: 3rem 0;
    text-align: center;
}

.article-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* Footer articol */
.article-footer {
    padding: 3rem 4rem;
    background: rgba(188, 214, 172, 0.1);
    border-top: 1px solid rgba(188, 214, 172, 0.3);
}

.article-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: rgb(147, 197, 114);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgb(147, 197, 114);
}

.btn-primary:hover {
    background: rgb(122, 185, 70);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 197, 114, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .article-main {
        padding-top: 80px;
    }
    
    .article-container {
        margin: 0 1rem 2rem 1rem;
        border-radius: 15px;
    }
    
    .article-hero {
        height: 250px;
    }
    
    .article-hero-overlay {
        padding: 2rem;
    }
    
    .article-hero-overlay h1 {
        font-size: 2rem;
    }
    
    .article-body {
        padding: 2rem;
    }
    
    .article-intro {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
    
    .article-section h2 {
        font-size: 1.8rem;
    }
    
    .article-section h3 {
        font-size: 1.4rem;
    }
    
    .article-section p {
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 2rem;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-hero-overlay h1 {
        font-size: 1.6rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-section h2 {
        font-size: 1.5rem;
    }
}

/* Galerie carousel - similar cu carouselul de proiecte */
.article-gallery {
    margin: 3rem 0;
}

.gallery-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    transition: transform 0.5s ease;
    padding: 0 1rem;
}

.gallery-image-card {
    min-width: calc(33.333% - 1.333rem);
    flex-shrink: 0;
    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;
}

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

.gallery-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Butoane carousel pentru galerie */
.gallery-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-carousel .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel .carousel-btn.prev-btn {
    left: -25px;
}

.gallery-carousel .carousel-btn.next-btn {
    right: -25px;
}

.gallery-carousel .carousel-btn span {
    font-size: 20px;
    font-weight: bold;
    color: rgb(147, 197, 114);
}

.gallery-carousel .carousel-btn:disabled,
.gallery-carousel .carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive pentru galerie */
@media (max-width: 1024px) {
    .gallery-image-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .gallery-image-card {
        min-width: calc(100% - 2rem);
    }
    
    .gallery-carousel .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-carousel .carousel-btn.prev-btn {
        left: -20px;
    }
    
    .gallery-carousel .carousel-btn.next-btn {
        right: -20px;
    }
    
    .gallery-carousel .carousel-btn span {
        font-size: 16px;
    }
    
    .gallery-grid {
        gap: 1rem;
    }
}

/* === STILURI PENTRU PAGINA DESPRE === */

/* Secțiunea de descriere */
.about-description {
    padding: 4rem 0;
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    color: #2c2c2c;
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #93c572, #5a9e2c);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: left;
}

/* Secțiunea membrii consiliului */
.board-members {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.board-members h2 {
    text-align: center;
    color: #2c2c2c;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.board-members h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #93c572, #5a9e2c);
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid pentru membrii */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Card pentru membru */
.member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    will-change: transform;
}

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

/* Imagine membru */
.member-image {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(135deg, #93c572, #5a9e2c);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

/* Informații membru */
.member-info {
    padding: 2.5rem;
}

.member-info h3 {
    color: #2c2c2c;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-role {
    color: #5a9e2c;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.member-role::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #93c572, #5a9e2c);
    border-radius: 1px;
}

.member-description {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* Acțiuni membru */
.member-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #5a9e2c;
    color: white;
    border-color: #5a9e2c;
}

/* Buton CV */
.cv-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #93c572, #5a9e2c);
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(93, 197, 114, 0.25);
    border: none;
    cursor: pointer;
}

.cv-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    background: linear-gradient(135deg, #7ab946, #4a8c1a);
}

.cv-btn svg {
    transition: transform 0.3s ease;
}

.cv-btn:hover svg {
    transform: scale(1.1);
}

/* Stiluri pentru pagina de proiecte */
.projects-list {
    padding: 4rem 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Card proiect - design industrial */

.project-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 280px;
    align-items: stretch;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Imagine proiect */

.project-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #93c572, #5a9e2c);
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: stretch;
}


.project-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.project-status {
    background: rgba(255, 255, 255, 0.95);
    color: #2c2c2c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.upcoming {
    background: rgba(255, 193, 7, 0.95);
    color: #8b6914;
}

.project-status.completed {
    background: rgba(40, 167, 69, 0.95);
    color: white;
}

/* Conținut proiect */

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
}

.project-content h3 {
    color: #2c2c2c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    max-height: 7.5em;
    overflow-y: auto;
    background: rgba(147, 197, 114, 0.07);
    padding: 0.5em 1em;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(90,158,44,0.04);
    transition: box-shadow 0.2s;
}
.project-description:focus,
.project-description:hover {
    box-shadow: 0 2px 8px rgba(90,158,44,0.10);
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.project-meta span {
    color: #5a9e2c;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.5rem;
}

.project-meta span:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #93c572;
    border-radius: 50%;
}

.project-duration:before {
    background: #5a9e2c;
}

.project-participants:before {
    background: #93c572;
}


.project-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Buton secundar pentru proiecte */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #5a9e2c;
    padding: 0.8rem 1.5rem;
    border: 2px solid #5a9e2c;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #5a9e2c;
    color: white;
    transform: translateY(-1px);
}

/* Responsive pentru pagina proiecte */
@media (max-width: 1024px) {
    .project-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .project-image {
        height: 250px;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-list {
        padding: 2rem 0;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-image {
        height: 200px;
    }
}

/* Responsive pentru pagina despre */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .about-content h2,
    .board-members h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2.5rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content h2,
    .board-members h2 {
        font-size: 2.2rem;
    }
    
    .about-description {
        padding: 3rem 0;
    }
    
    .board-members {
        padding: 4rem 0;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .member-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cv-btn {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding: 3rem 1rem;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .member-info {
        padding: 2rem;
    }
    
    .member-image {
        height: 300px;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
}
