/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #4d7d19;
    --dark-primary: #2d4537;
    --accent-color: #b8d779;
    --text-color: #333;
    --bg-color: #f9fdf9;
    --white: #ffffff;
    --gray-light: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

body.menu-open {
    overflow: hidden;
}

p {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-primary); /* schimbat din var(--primary-color) */
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px; /* 1200 + 5% */
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
    padding: 0;
}

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: none;
    font-size: 1rem;
    margin-top: auto;
    transition: filter 0.2s;
}

.btn-card:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding: 0;
    min-height: auto;
    background: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0.62);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-overlay-content {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-title {
    color: #ffffff;
    max-width: 820px;
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 26px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.hero-btn-light {
    background-color: #ffffff;
    border: 2px solid #ffffff;
    color: #2d4537;
}

.hero-btn-outline {
    background-color: rgba(255, 255, 255, 0.16);
    border: 2px solid #ffffff;
    color: #ffffff;
    backdrop-filter: blur(2px);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholder Styles */
.placeholder-image {
    width: 100%;
    height: 300px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 10px;
    border: 2px dashed #999;
}

.placeholder-image-small {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 10px 10px 0 0;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.icon-svg {
    width: 40px;
    height: 40px;
    fill: #2e7d32;
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding-top: 80px;
    padding-bottom: 80px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    position: relative;
    z-index: 1;
    margin: 20px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 140px;
    height: 140px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: #a5d6a7;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

.about-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #111;
    font-weight: 800;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.hidden-content {
    display: none !important;
    margin-top: 20px;
}

.hidden-content.show {
    display: block !important;
    animation: fadeIn 0.5s;
}

#read-more-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

#read-more-btn:hover {
    color: #1b5e20;
}

#read-more-btn::after {
    content: '→';
    margin-left: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

#read-more-btn:hover::after {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MVV Section */
.mvv-section {
    background: url('../images/pexels-stephanthem-753873.jpg') center/cover no-repeat;
    position: relative;
    isolation: isolate;
}

.mvv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #1b3a2a;
    opacity: 0.4;
    z-index: 0;
}

.mvv-section > .container {
    position: relative;
    z-index: 1;
}

.mvv-section .section-title {
    color: #ffffff;
}

.mvv-section .section-title::after {
    background-color: var(--accent-color);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.mvv-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.mvv-card p,
.mvv-card li {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.mvv-card:hover {
    transform: translateY(-5px);
}

.values-list {
    text-align: left;
    list-style-type: none;
    margin-top: 4px;
}

.values-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Involvement Section */
.involve-section {
    background-color: var(--white);
    padding: 80px 0;
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.involve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.involve-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    height: 100%;
}

.involve-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.14);
}

.involve-card.featured {
    background-color: #4d7d19;
    color: white;
    border: none;
    z-index: 10;
}

.involve-card.featured:hover {
    transform: translateY(-5px);
}

.card-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    align-self: flex-start;
}

.badge-student {
    background-color: #e8f5e9;
    color: var(--primary-color);
}

.badge-alumnus {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.badge-partner {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Card partener: fundal dark primary + text alb */
.involve-card.partner-card {
    background-color: var(--dark-primary);
    color: #fff;
    border: none;
}

.involve-card.partner-card .card-title,
.involve-card.partner-card .card-desc,
.involve-card.partner-card .card-desc p,
.involve-card.partner-card .card-desc strong,
.involve-card.partner-card .card-features li {
    color: #fff !important;
}

/* buton "Citește mai mult" pe card partener, stil similar alumnus */
.involve-card.partner-card .btn-read-more-card {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.involve-card.partner-card .btn-read-more-card:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-partner {
    background-color: #fff;
    color: var(--dark-primary);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.featured .card-title {
    color: white;
}

.featured .card-desc,
.featured .card-desc p,
.featured .card-desc strong,
.featured .card-features li {
    color: white !important;
}

.card-desc {
    color: #666;
    /* margin-bottom: 20px; */
}

.card-desc p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured .card-desc p {
    color: rgba(255,255,255,0.9);
}

.card-features {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin: 0 0 20px 0;
}

.card-features li {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
    padding-left: 0;
    display: list-item;
}

.featured .card-features li {
    color: #fff;
}

.card-features li::before {
    content: normal;
}

.card-more-content {
    display: none;
    margin-top: 12px;
}

.card-more-content.show {
    display: block;
}

.btn-read-more-card {
    margin: 0 0 14px;
    align-self: flex-start;
    border: 1px solid rgba(77, 125, 25, 0.35);
    background: #f4f9ec;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    line-height: 1;
    transition: all 0.25s ease;
}

.btn-read-more-card::after {
    content: ' →';
    font-weight: 700;
}

.btn-read-more-card:hover {
    background: #e6f2d3;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.involve-card.featured .btn-read-more-card {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.involve-card.featured .btn-read-more-card:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-student {
    background-color: var(--primary-color);
    color: white;
}

.btn-alumnus {
    background-color: white;
    color: var(--dark-primary);
}

.btn-partner {
    background-color: #fff;
    color: var(--dark-primary);
}

.btn-student,
.btn-alumnus,
.btn-partner {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.involve-card .btn-card {
    transition: filter 0.2s, transform 0.2s;
}

.involve-card .btn-card:hover {
    filter: none;
    background-color: var(--accent-color);
    color: var(--dark-primary);
    border-color: var(--accent-color);
    transform: scale(1.02);
}

/* Contact Section */
.contact-section {
    background: url('../images/pexels-stepan-vrany-591647707-27936198.jpg') center/cover no-repeat;
    padding: 80px 0;
    position: relative;
    isolation: isolate;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(27, 58, 42, 0.85) 0%,
        rgba(27, 58, 42, 0.72) 35%,
        rgba(27, 58, 42, 0.35) 65%,
        rgba(27, 58, 42, 0.05) 100%
    );
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-desc {
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 90%;
}

.contact-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: var(--primary-color);
}

.contact-icon svg {
    fill: currentColor;
    width: 28px;
    height: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-text {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

a.contact-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-map {
    height: 450px;
    border-radius: 20px;
    border: 2px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--dark-primary);
    padding: 60px 0 30px;
    text-align: left;
}

.footer-logo {
    height: 100px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    color: white;
    gap: 15px;
}

.footer-social a {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--accent-color);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--dark-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social a:hover svg {
    stroke: var(--primary-color);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 0 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dark-primary);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--dark-primary);
}

.footer-links {
    display: flex;
    gap: 20px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
    min-width: 180px;
}

.footer-contact h4 {
    color: var(--dark-primary);
    margin: 0 0 4px 0;
    font-size: 1.2rem;
}

.footer-contact a,
.footer-contact span {
    color: var(--dark-primary);
    font-size: 1rem;
}

.footer-contact a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Navbar */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-container {
    min-height: 72px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 6%;
    padding-right: 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.navbar-logo {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    font-weight: 600;
    color: #1f2937;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

/* ca taburile să nu fie acoperite de navbar la scroll */
#despre, #mvv, #implica-te, #contact {
    scroll-margin-top: 90px;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--dark-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Burger Menu Animation */
.burger-menu.active span:first-child {
    transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mvv-grid, .involve-grid, .contact-container {
        grid-template-columns: 1fr;
        max-width: 630px; /* 600 + 5% */
        margin: 0 auto;
    }

    .hero-container, .about-container {
        grid-template-columns: 1fr;
    }

    .hero-image, .about-image {
        order: -1;
    }
    
    .hero-image {
        order: 1;
    }

    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-map {
        height: 350px;
    }

    /* Mobile Navigation */
    .burger-menu {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 72px; /* Navbar height */
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        gap: 30px;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Footer Mobile Improvements */
    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: center; /* Center everything */
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-right {
        align-items: center; /* Center alignment */
        text-align: center;
        width: 100%;
    }

    .footer-contact {
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Hero Section Fix for Mobile */
    .hero-section {
        min-height: 85vh; /* Force height to accommodate content */
        display: flex;
        align-items: center;
    }

    .hero-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cover the area */
        z-index: 1;
    }

    .hero-overlay {
        /* Keep it absolute from base to cover the whole image */
        z-index: 2;
        background: rgba(0,0,0,0.3); /* Slightly darker overlay for legibility */
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-overlay-content {
        padding-top: 28px;
        padding-bottom: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        max-width: 260px;
        width: 100%;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
