/* ====================================================
   STILURI GLOBALE ȘI VARIABILE
   ==================================================== */
:root {
    --primary-green: #4caf50;
    --primary-blue: #42a5f5;
    --primary-orange: #ff9800;
    --primary-purple: #9c27b0;
    --text-dark: #090F38;
    --bg-light: #f5f5f5;
    --bg-soft: #C5D2CF;
    --shadow-default: 0 8px 20px rgba(0,0,0,0.1);
    --transition-default: all 0.3s ease;
    --border-radius-card: 16px;
    --border-radius-small: 8px;
}


/* ====================================================
   TIPOGRAFIE ȘI TITLURI
   ==================================================== */

/* Titluri generale */
#page-content h1 {
    font-size: 1.4em !important;
}

#content h1,
.entry-content h1,
article h1 {
    font-size: 28px !important;
}

/* Titluri H2 în diferite contexte */
.page #main h2 {
    font-size: 20px !important;
}

.category #main h2,
.archive #main h2 {
    font-size: 22px !important;
}

.single-post #main h2 {
    font-size: 22px !important;
}


/* ====================================================
   STRUCTURĂ PAGINĂ ȘI LAYOUT
   ==================================================== */

/* Elimină structura de coloane */
#primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Forțează main să ocupe toată lățimea */
#main {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 16px !important;
}

/* Ascunde sidebar-ul */
#sidebar {
    display: none !important;
}

/* Asigură că tot conținutul din main se întinde */
#page-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}


/* ====================================================
   HEADER ȘI MENIU
   ==================================================== */

/* Reduce letter-spacing în meniu */
#primary-menu.menu li {
    letter-spacing: 0.05em !important;
}


/* ====================================================
   BUTOANE
   ==================================================== */

/* Stil pentru butonul gamma - similar cu meniul */
.gamma-button,
.gamma-button:visited {
    display: inline-block;
    color: #ffffff;
    background: rgba(60, 168, 166, 0.6);
    border-radius: var(--border-radius-small);
    border-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.4em 1.2em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gamma-button:hover,
.gamma-button:active {
    background: rgba(62, 188, 166, 0.75);
    color: #ffffff;
    text-decoration: none;
}

.gamma-button.active {
    background: rgba(62, 188, 166, 0.5);
}

.gamma-button.secondary {
    background: transparent;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.gamma-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.flex-butoane {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.registration {
    max-width: 600px !important;
    width: 100% !important;
}


/* ====================================================
   FUNDAL PAGINĂ HOME
   ==================================================== */

.home {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 2)),
        url('/images/fundal5.png');
    background-size: 100vw auto; 
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--bg-light);
    background-blend-mode: overlay;
    animation: gentleZoom 1.2s ease-out forwards;
}

@keyframes gentleZoom {
    0% { background-size: 120vw auto; }
    100% { background-size: 100vw auto; }
}


/* ====================================================
   SECȚIUNEA MISIUNE
   ==================================================== */

.mission-wrapper {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.mission-card {
    flex: 1 1 300px;
    padding: 30px;
    border-radius: var(--border-radius-card);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mission-card.left {
    background: linear-gradient(135deg, rgba(33, 79, 69, 0.6), rgba(45, 173, 141, 0.8));
}

.mission-card.right {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.2), rgba(25, 118, 210, 0.3));
}

.mission-title {
    font-size: 30px !important;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #fff;
    letter-spacing: 1px;
}

.mission-subtitle {
    font-size: 20px !important;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.mission-subtitle-right {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.mission-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #fff;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    position: relative;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list li::before {
    content: "•";
    position: absolute;
    left: -25px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: bold;
}


/* ====================================================
   SECȚIUNEA SERVICII - 4 COLOANE
   ==================================================== */

.services-section {
    margin-top: 0;
    padding-top: 0;
}

.services-grid {
    display: flex !important;
    margin-top: 6px;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
}

.service-card {
    flex: 0 1 calc(25% - 9px) !important;
    min-width: 220px !important;
    max-width: 260px !important;
    background: #fff;
    border-radius: var(--border-radius-card);
    padding: 14px 10px !important;
    box-shadow: var(--shadow-default);
    box-sizing: border-box !important;
}

.service-icon {
    width: 210px !important;
    height: 120px !important;
    margin: 0 auto 10px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.service-title {
    font-size: 26px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.service-text {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: var(--text-dark) !important;
    margin: 0 !important;
}

.service-card:nth-child(1) .service-title { color: var(--primary-green) !important; }
.service-card:nth-child(2) .service-title { color: var(--primary-blue) !important; }
.service-card:nth-child(3) .service-title { color: var(--primary-orange) !important; }
.service-card:nth-child(4) .service-title { color: var(--primary-purple) !important; }


/* ====================================================
   SECȚIUNEA STRUCTURĂ ORGANIZAȚIONALĂ
   ==================================================== */

.structure-section {
    margin: 30px 0;
    width: 100%;
}

.structure-title {
    text-align: center;
    font-size: 32px !important;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.structure-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

.structure-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    flex-wrap: wrap !important;
}

.structure-col {
    flex: 1 1 220px !important;
    min-width: 240px !important;
    max-width: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.structure-center {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 500px !important;
}

.structure-image-wrapper {
    width: 500px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.structure-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-default) !important;
}

.structure-left {
    text-align: right !important;
    align-items: flex-end !important;
}

.structure-right {
    text-align: left !important;
    align-items: flex-start !important;
}

.structure-item {
    padding: 20px !important;
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: var(--border-radius-card) !important;
    box-shadow: var(--shadow-default) !important;
    width: 100% !important;
}

.structure-item-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
}

.structure-left .structure-item-title {
    color: var(--primary-green) !important;
}

.structure-right .structure-item-title {
    color: var(--primary-blue) !important;
}

.structure-item-text {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: var(--text-dark) !important;
    margin: 0 !important;
}

.structure-left .structure-item,
.structure-right .structure-item {
    transform: translateY(45px) !important;
}


/* ====================================================
   SECȚIUNEA MEMBRI ȘI BENEFICII
   ==================================================== */

.members-section {
    width: 100%;
    padding: 60px 0;
    background-color: var(--bg-soft);
}

.members-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.members-title {
    text-align: center;
    font-size: 30px !important;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.members-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.member-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: white;
    border-radius: var(--border-radius-card);
    padding: 30px 25px;
    box-shadow: var(--shadow-default);
    text-align: center;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 50%;
    padding: 15px;
}

.member-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.member-title {
    font-size: 20px !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.member-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: left;
}

.member-text strong {
    color: var(--primary-green);
    font-weight: 600;
}


/* ====================================================
   SECȚIUNEA DOMENII DE ACTIVITATE STRATEGICĂ
   ==================================================== */

.domains-section {
    width: 100%;
    padding: 30px 0;
    background-color: #ffffff;
}

.domains-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.domains-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.domains-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

.domains-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.domain-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(9, 15, 56, 0.1);
}

.domain-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.domain-number {
    width: 80px;
    background-color: var(--text-dark);
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.domain-content {
    flex: 1;
    padding: 4px 8px;
    background-color: #ffffff;
}

.domain-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 8px;
}

.domain-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
}

.domain-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}


/* ====================================================
   POSTS ȘI CONȚINUT ASOCIAT
   ==================================================== */

/* Ascunde titlurile postărilor pe paginile individuale */
.single-post .entry-title,
.single-post h1.entry-title,
.single-post article header h1 {
    display: none !important;
}

/* Stiluri pentru posts */
.posts {
    position: relative;
    overflow: hidden;
    padding: 50px 40px;
    min-height: 500px;
    color: white;
    z-index: 1;
}

.posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/post1.png');
    background-size: cover;
    background-position: center;
    animation: gentleZoomPosts 4s ease-out forwards;
    z-index: -2;
}

.posts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

.posts-l {
    position: relative;
    overflow: hidden;
    padding: 50px 40px;
    min-height: 500px;
    color: white;
    z-index: 1;
}

.posts-l::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/fundal8.jpg');
    background-size: cover;
    background-position: center;
    animation: gentleZoomPosts 4s ease-out forwards;
    z-index: -2;
}

.posts-l::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: -1;
}

@keyframes gentleZoomPosts {
    0% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.posts-l > *,
.posts-l *,
.posts * {
    position: relative;
    z-index: 1;
    color: var(--text-dark) !important;
}

.posts-section {
    width: 100%;
    padding: 10px 0;
    background-color: var(--bg-soft);
}

.posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Asigură că imaginile nu depășesc containerul */
.posts-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ===== PAGINI DE CATEGORIE ===== */
.category .blog-list h2,
.archive .blog-list h2,
.blog-list h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
}

.category .entry-meta,
.archive .entry-meta {
    display: none !important;
}

.category .blog-post {
    margin-bottom: 20px !important;
}


/* ===== PAGINA ÎNSCRIERE ===== */
.inscriere-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.inscriere-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
}

.inscriere-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    border-radius: 2px;
}

.inscriere-intro {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(66, 165, 245, 0.1));
    padding: 30px;
    border-radius: var(--border-radius-card);
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.inscriere-card {
    display: flex;
    background: white;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-default);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(9, 15, 56, 0.1);
}

.inscriere-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-number {
    width: 80px;
    background: linear-gradient(135deg, var(--primary-green), #45a049);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inscriere-card:nth-child(even) .card-number {
    background: linear-gradient(135deg, var(--primary-blue), #1e88e5);
}

.card-content {
    flex: 1;
    padding: 20px;
}

.card-title {
    font-size: 26px !important;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    border-radius: 2px;
}

.sub-category {
    margin-bottom: 5px;
}

.sub-title {
    font-size: 20px !important;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.sub-title::before {
    content: '▹';
    color: var(--primary-green);
    margin-right: 8px;
}

.inscriere-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.inscriere-list li {
    position: relative;
    padding: 8px 0 8px 25px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(9, 15, 56, 0.05);
}

.inscriere-list li:last-child {
    border-bottom: none;
}

.inscriere-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--primary-green);
    font-size: 18px;
}

.inscriere-list.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.note {
    background: rgba(255, 152, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
    color: var(--text-dark);
    border-left: 4px solid var(--primary-orange);
    margin: 15px 0 0 0;
}

.card-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* Culori personalizate pentru carduri */
.inscriere-card:nth-of-type(2) .card-number {
    background: linear-gradient(135deg, #49BDCC, #178896) !important;
}

.inscriere-card:nth-of-type(4) .card-number {
    background: linear-gradient(135deg, #5FB1CF, #447385) !important;
}

.inscriere-card:nth-of-type(7) .card-number {
    background: linear-gradient(135deg, #F06448, #d04c38) !important;
}

.inscriere-card:nth-of-type(9) .card-number {
    background: linear-gradient(135deg, #45BACC, #2D9CAD) !important;
}


/* ===== PAGINA STRUCTURA ===== */
.structura-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.structura-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 20px;
    line-height: 1.3;
}

.structura-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    border-radius: 2px;
}

.structura-intro {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(66, 165, 245, 0.1));
    padding: 30px;
    border-radius: var(--border-radius-card);
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.structura-card {
    display: flex;
    background: white;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-default);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(9, 15, 56, 0.1);
}

.structura-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.structura-card .card-number {
    width: 80px;
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.structura-card .card-content {
    flex: 1;
    padding: 25px 30px;
}

.structura-card .card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.structura-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    border-radius: 2px;
}

.structura-card .card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

.structura-card .card-text strong {
    color: var(--primary-green);
    font-weight: 600;
}

.structura-card .card-text em {
    color: var(--primary-blue);
    font-style: italic;
}


/* ===== STILURI PENTRU GDPR ===== */
.gdpr {
    max-width: 1200px;
    font-size: 17px;
    line-height: 1.5;
    margin: 5px 0;
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: var(--border-radius-card);
    background: linear-gradient(135deg, rgba(213, 240, 235, 0.6), rgba(147, 230, 214, 0.8));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* ====================================================
   MEDIA QUERIES - TABLETE ȘI MOBILE
   ==================================================== */

/* Tablete și ecrane medii (max-width: 1000px) */
@media screen and (max-width: 1000px) {
    .service-card {
        flex: 0 1 calc(50% - 6px) !important;
        max-width: 300px !important;
    }
}

/* Mobile (max-width: 900px) - pentru structură */
@media screen and (max-width: 900px) {
    
    body.page-template-default #content,
    body.page-template-default #main,
    body.page-template-default #primary,
    body.page-template-default #page-content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .structure-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        padding: 0 5px !important;
    }
    
    .structure-col {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        gap: 8px !important;
    }
    
    .structure-center {
        flex: 0 0 auto !important;
        max-width: 35% !important;
    }
    
    .structure-image-wrapper {
        width: 100% !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .structure-item {
        padding: 8px 10px !important;
        border-radius: 12px !important;
    }
    
    .structure-item-title {
        font-size: 16px !important;
        margin-bottom: 3px !important;
    }
    
    .structure-item-text {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .structure-left .structure-item,
    .structure-right .structure-item {
        transform: translateY(20px) !important;
    }
}

/* Mobile standard (max-width: 768px) */
@media screen and (max-width: 768px) {
    
    /* Resetări generale pentru containere */
    body.page-template-default #content,
    body.page-template-default #main,
    body.page-template-default #primary,
    body.page-template-default #page-content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fundal mobil */
    .home {
        background-image: none !important;
        background-color: var(--bg-light) !important;
        animation: none !important;
    }
    
    body.home {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    body.home #masthead {
        padding: 10px 15px !important;
    }
    
    /* Conținut principal */
    #content {
        padding: 0 15px !important;
        margin-top: 20px !important;
    }
    
    #main {
        padding: 0 15px !important;
    }
    
    h1.section1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        padding: 0 10px !important;
    }
    
    .paragraph {
        font-size: 16px !important;
        padding: 0 10px !important;
    }
    
    /* Butoane */
    .gamma-button {
        display: block !important;
        width: 80% !important;
        margin: 4px auto !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 14px !important;
        max-width: 300px !important;
    }
    
    /* Footer */
    footer#colophon .classic {
        padding: 30px 15px !important;
        width: 100% !important;
    }
    
    footer#colophon .footerleft {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    .registration {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .registration p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        display: block !important;
        word-wrap: break-word !important;
    }
    
    .registration p span:first-child {
        display: inline-block !important;
        min-width: 25px !important;
        font-size: 1.1em !important;
    }
    
    .registration p strong {
        display: inline-block !important;
        min-width: 60px !important;
    }
    
    .registration p a {
        word-break: break-all !important;
    }
    
    footer#legal .cplegal {
        display: block !important;
        text-align: center !important;
        padding: 15px !important;
    }
    
    footer#legal .cpcopyright,
    footer#legal .cppolicy {
        text-align: center !important;
        padding: 5px 0 !important;
    }
    
    /* Secțiunea Misiune */
    .mission-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .mission-card {
        padding: 15px;
    }
    
    .mission-title {
        font-size: 28px;
    }
    
    .mission-subtitle,
    .mission-subtitle-right {
        font-size: 20px;
    }
    
    /* Servicii */
    .service-card {
        flex: 0 1 100% !important;
        max-width: 320px !important;
    }
    
    .service-text {
        font-size: 13px !important;
    }
    
    /* Membri */
    .members-section {
        padding: 30px 0 !important;
        margin-top: 0 !important;
    }
    
    .member-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 15px !important;
    }
    
    .members-grid {
        gap: 15px !important;
    }
    
    .structure-section {
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }
    
    /* Domenii */
    .domains-title {
        font-size: 22px;
    }
    
    .domain-card {
        flex-direction: column;
    }
    
    .domain-number {
        width: 100%;
        height: 50px;
        font-size: 24px;
    }
    
    .domain-content {
        padding: 18px;
    }
    
    .domain-title {
        font-size: 16px;
    }
    
    .domain-text {
        font-size: 15px;
    }
    
    /* Posts */
    .posts,
    .posts-l {
        padding: 30px 15px !important;
        min-height: auto !important;
    }
    
    .posts-container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .posts-container p,
    .posts-container ul,
    .posts-container h1,
    .posts-container h4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .posts-container h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .posts-container h4 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
    
    .posts-container p,
    .posts-container li {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    .posts-container ul,
    .posts-container ol {
        padding-left: 20px !important;
        margin-left: 0 !important;
    }
    
    .posts-container li {
        padding-left: 5px !important;
    }
    
    .member-icon {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Pagina Înscriere */
    .inscriere-section {
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 0 2px !important;
    }
    
    .inscriere-title {
        font-size: 24px !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .inscriere-title::after {
        width: 60px !important;
        height: 3px !important;
    }
    
    .inscriere-intro {
        padding: 15px 12px !important;
        margin-bottom: 20px !important;
        font-size: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .inscriere-card {
        flex-direction: column !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }
    
    .inscriere-card .card-number {
        width: 100% !important;
        height: 38px !important;
        font-size: 22px !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .inscriere-card .card-content {
        padding: 15px 12px !important;
        width: 100% !important;
    }
    
    .inscriere-card .card-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    
    .inscriere-card .card-title::after {
        width: 40px !important;
        height: 2px !important;
    }
    
    .inscriere-card .sub-title {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }
    
    .inscriere-card .sub-title::before {
        font-size: 15px !important;
        margin-right: 5px !important;
    }
    
    .inscriere-card .inscriere-list {
        margin: 8px 0 !important;
    }
    
    .inscriere-card .inscriere-list li {
        padding: 6px 0 6px 20px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .inscriere-card .inscriere-list li::before {
        font-size: 15px !important;
        left: 2px !important;
    }
    
    .inscriere-card .inscriere-list.two-columns {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .inscriere-card .note {
        padding: 10px !important;
        margin: 8px 0 0 0 !important;
        font-size: 13px !important;
        border-left-width: 3px !important;
    }
    
    .inscriere-card .card-content p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }
    
    /* Pagina Categorie */
    .category .blog-list h2,
    .archive .blog-list h2 {
        font-size: 18px !important;
    }
    
    /* Pagina Structură */
    .structura-card {
        flex-direction: column;
    }
    
    .structura-card .card-number {
        width: 100%;
        height: 60px;
        font-size: 28px;
    }
    
    .structura-card .card-content {
        padding: 20px;
    }
    
    .structura-card .card-title {
        font-size: 22px;
    }
    
    .structura-card .card-text {
        font-size: 15px;
    }
    
    .structura-intro {
        padding: 20px;
        font-size: 16px;
    }
    
    .structura-title {
        font-size: 30px;
    }
}

/* Mobile mic (max-width: 600px) */
@media screen and (max-width: 600px) {
    
    body.page-template-default #content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .service-card {
        flex: 0 1 100% !important;
        max-width: 320px !important;
    }
    
    .structure-center {
        max-width: 30% !important;
    }
    
    .structure-image-wrapper {
        max-width: 150px !important;
    }
    
    .structure-item {
        padding: 5px 8px !important;
    }
    
    .structure-item-title {
        font-size: 14px !important;
    }
    
    .structure-item-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .structure-left .structure-item,
    .structure-right .structure-item {
        transform: translateY(12px) !important;
    }
}

/* Ecrane foarte mici (max-width: 480px) */
@media screen and (max-width: 480px) {
    
    .posts,
    .posts-l {
        padding: 20px 10px !important;
    }
    
    .posts-container h1 {
        font-size: 24px !important;
    }
    
    .posts-container h4 {
        font-size: 16px !important;
    }
    
    .posts-container p,
    .posts-container li {
        font-size: 14px !important;
    }
    
    .posts-container ul,
    .posts-container ol {
        padding-left: 15px !important;
    }
    
    .member-title {
        font-size: 20px;
    }
    
    .member-text {
        font-size: 14px;
    }
    
    .member-icon {
        width: 80px;
        height: 80px;
    }
    
    .domains-title {
        font-size: 22px;
    }
    
    .domain-title {
        font-size: 16px;
    }
    
    .domain-text {
        font-size: 14px;
    }
    
    .inscriere-section {
        padding: 0 5px !important;
    }
    
    .inscriere-title {
        font-size: 20px !important;
    }
    
    .inscriere-card .card-number {
        height: 35px !important;
        font-size: 20px !important;
    }
    
    .inscriere-card .card-content {
        padding: 12px 10px !important;
    }
    
    .inscriere-card .card-title {
        font-size: 18px !important;
    }
    
    .inscriere-card .sub-title {
        font-size: 16px !important;
    }
    
    .inscriere-card .inscriere-list li {
        padding: 5px 0 5px 18px !important;
        font-size: 13px !important;
    }
    
    .structura-title {
        font-size: 24px;
    }
    
    .structura-card .card-title {
        font-size: 20px;
    }
    
    .structura-card .card-text {
        font-size: 14px;
    }
}

/* Ecrane ultra-mici (max-width: 400px) */
@media screen and (max-width: 400px) {
    .inscriere-section {
        padding: 0 5px !important;
    }
    
    .inscriere-title {
        font-size: 20px !important;
    }
    
    .inscriere-card .card-number {
        height: 35px !important;
        font-size: 20px !important;
    }
    
    .inscriere-card .card-content {
        padding: 12px 10px !important;
    }
    
    .inscriere-card .card-title {
        font-size: 18px !important;
    }
    
    .inscriere-card .sub-title {
        font-size: 16px !important;
    }
    
    .inscriere-card .inscriere-list li {
        padding: 5px 0 5px 18px !important;
        font-size: 13px !important;
    }
}

/* ====================================================
   AJUSTĂRI FOOTER
   ==================================================== */


/* Reduce height of colophon */
#colophon {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
    min-height: unset !important;        /* Remove any minimum height */
    line-height: 1.2 !important;         /* Tighter line height */
}

/* Make the footer widgets container more compact */
#colophon .footer-widgets {
    margin-bottom: 5px !important;
}

/* Reduce spacing between the two widget sections (Parteneri and Adresa) */
#colophon .widget-container {
    margin-bottom: 8px !important;      /* Reduced from default */
}

#colophon .widget-container:last-child {
    margin-bottom: 0 !important;          /* Remove margin from last widget */
}

/* Make the text blocks more compact */
#colophon .widget_custom_html p {
    margin-bottom: 3px !important;        /* Tighter spacing between lines */
    line-height: 1.2 !important;          /* Tighter line height */
}

#colophon .widget_custom_html p:last-child {
    margin-bottom: 0 !important;          /* Remove margin from last paragraph */
}

/* Reduce the icon sizes slightly */
#colophon .widget_custom_html p span[style*="font-size: 0.6em"] {
    font-size: 0.5em !important;          /* Smaller icons */
}

/* Make the widget titles more compact */
#colophon .widget-title {
    margin-bottom: 5px !important;        /* Less space below titles */
    font-size: 1em !important;            /* Slightly smaller if needed */
}

/* If you want even more reduction, uncomment this: */

#colophon .classic {
    padding: 0 !important;
}

#colophon .widget_custom_html p {
    font-size: 0.85em !important;
}

/* CAPTCHA */

/* Move reCAPTCHA v3 badge to bottom left */
.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: 4px !important;           /* Position on left */
    right: unset !important;         /* Remove default right positioning */
    bottom: 4px !important;          /* Keep at bottom (adjust if needed) */
}


/* Optional: Expand on hover to show full text */
.grecaptcha-badge:hover {
    width: 256px !important;
}

/* ====================================================
   MOBILE LANDSCAPE OPTIMIZATION
   (telefoane orizontal)
   ==================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* Global spacing mai compact */
    body {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    #main {
        padding: 8px !important;
    }

    /* Titluri reduse */
    h1, .mission-title, .domains-title, .members-title, 
    .structure-title, .inscriere-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    h2, h3, .service-title, .card-title {
        font-size: 18px !important;
    }

    /* Butoane mai compacte */
    .gamma-button {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Misiune – 2 coloane compacte */
    .mission-wrapper {
        flex-direction: row !important;
        gap: 10px !important;
    }

    .mission-card {
        padding: 12px !important;
    }

    /* Servicii – 2 pe rând */
    .service-card {
        flex: 0 1 calc(50% - 6px) !important;
        max-width: 280px !important;
    }

    .service-icon {
        width: 160px !important;
        height: 90px !important;
    }

    .service-text {
        font-size: 12px !important;
    }

    /* STRUCTURA – compactă orizontal */
    .structure-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
    }

    .structure-center {
        max-width: 25% !important;
    }

    .structure-image-wrapper {
        max-width: 180px !important;
    }

    .structure-item {
        padding: 6px 8px !important;
    }

    .structure-item-title {
        font-size: 14px !important;
    }

    .structure-item-text {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    /* Membri – 2 pe rând */
    .members-grid {
        gap: 10px !important;
    }

    .member-card {
        flex: 1 1 calc(50% - 10px) !important;
        padding: 12px !important;
    }

    .member-text {
        font-size: 13px !important;
    }

    /* Domenii */
    .domain-card {
        flex-direction: row !important;
    }

    .domain-number {
        width: 50px !important;
        font-size: 20px !important;
    }

    .domain-title {
        font-size: 16px !important;
    }

    .domain-text {
        font-size: 13px !important;
    }

    /* Pagina înscriere – carduri compacte */
    .inscriere-card {
        flex-direction: row !important;
    }

    .inscriere-card .card-number {
        width: 60px !important;
        font-size: 20px !important;
    }

    .inscriere-card .card-content {
        padding: 10px !important;
    }

    .inscriere-card .card-title {
        font-size: 18px !important;
    }

    /* Footer compact */
    #colophon {
        padding: 5px !important;
        font-size: 12px !important;
    }
}