/*
Theme Name: Educator Child
Theme URI: https://educator.qodeinteractive.com
Description: A child theme of Educator Theme
Author: Edge Themes
Author URI: http://themeforest.net/user/edge-themes
Version: 1.1
Text Domain: educator
Template: educator
*/

/* ---- Colegiul Național Petru Rareș ---- */

/* Sigla (sigla-site.png, 445×125): tema o afișa la jumătate (62px) și nu se citea. Header 100px (opțiunea menu_area_height), sigla 80px.
   Meniul are 9 elemente lungi; spațierea dintre ele scade pe ecrane mai înguste ca să rămână pe un rând lângă siglă. */
.edgt-page-header .edgt-logo-wrapper a { height: 80px !important; max-height: none !important; }
.edgt-main-menu > ul > li > a { padding: 0 13px; }

@media only screen and (min-width: 1280px) and (max-width: 1599px) {
	.edgt-main-menu > ul > li > a { padding: 0 9px; }
}
@media only screen and (min-width: 1280px) and (max-width: 1439px) {
	.edgt-page-header .edgt-logo-wrapper a { height: 70px !important; }
	.edgt-main-menu > ul > li > a { padding: 0 7px; font-size: 13px; }
}
/* Sub 1280px nici așa nu încape pe un rând: se folosește header-ul de mobil al temei (logo + hamburger). */
@media only screen and (min-width: 1025px) and (max-width: 1279px) {
	.edgt-page-header, .edgt-sticky-header { display: none !important; }
	.edgt-mobile-header { display: block !important; }
}

/* Noutăți pe prima pagină: multe imagini reprezentative sunt sigle mici (sub 1100px) pe care WP nu le poate decupa
   la 1100×550, deci au înălțimi diferite. Cadru fix 2:1 cu imaginea întreagă vizibilă + carduri de înălțime egală. */
.edgt-blog-list-holder.edgt-bl-standard .edgt-blog-list { display: flex; flex-wrap: wrap; }
.edgt-blog-list-holder.edgt-bl-standard .edgt-bl-item { float: none; display: flex; }
.edgt-blog-list-holder.edgt-bl-standard .edgt-bli-inner { display: flex; flex-direction: column; width: 100%; }
.edgt-blog-list-holder.edgt-bl-standard .edgt-post-image { aspect-ratio: 2 / 1; background: #f7f7f7; overflow: hidden; }
.edgt-blog-list-holder.edgt-bl-standard .edgt-post-image a,
.edgt-blog-list-holder.edgt-bl-standard .edgt-post-image img { display: block; width: 100%; height: 100%; }
.edgt-blog-list-holder.edgt-bl-standard .edgt-post-image img { object-fit: contain; }

/* Meniul mobil (panou lateral): grila internă are lățime fixă de 300px și tăia „Activități extrașcolare”. */
.edgt-mobile-side-area .edgt-mobile-nav .edgt-grid { width: auto; }
@media only screen and (max-width: 480px) {
	.edgt-mobile-side-area { padding-left: 40px; padding-right: 40px; }
}
/* Săgeata de submeniu rămânea singură pe un rând când textul se rupe; o lăsăm după ultimul cuvânt. */
.edgt-mobile-side-area .edgt-mobile-nav li.has_sub > a { display: inline; }
.edgt-mobile-side-area .edgt-mobile-nav li.has_sub > a > span { display: inline; }
.edgt-mobile-side-area .edgt-mobile-nav li.has_sub { padding: 12px 0; }
.edgt-mobile-side-area .edgt-mobile-nav li.has_sub > a { padding: 0; }

/* Footer: fotografia de fundal de pe prima pagină e luminoasă (în demo poza era deja întunecată) → strat închis peste ea. */
body.home .edgt-page-footer { box-shadow: inset 0 0 0 2000px rgba(20, 20, 20, 0.78); }
/* Toate articolele au același autor („Petru Rares Admin”); rândul „by …” din lista de noutăți nu aduce informație. */
.edgt-page-footer .edgt-post-info-author { display: none; }

/* Erasmus+ în bara de sus (dreapta): pe prima pagină bara e neagră → varianta cu text alb; în rest bara e albă → originalul. */
.edgt-top-bar .cnpr-erasmus { display: inline-block; line-height: 0; vertical-align: middle; }
.edgt-top-bar .cnpr-erasmus img { height: 28px !important; width: auto !important; display: inline-block !important; }
.edgt-top-bar .cnpr-erasmus img.cnpr-erasmus-light,
body.home .edgt-top-bar .cnpr-erasmus img.cnpr-erasmus-dark { display: none !important; }
body.home .edgt-top-bar .cnpr-erasmus img.cnpr-erasmus-light { display: inline-block !important; }
/* Bara de sus are 50px înălțime; logo-ul Erasmus (28px) stătea lipit de marginea de sus. */
.edgt-top-bar .cnpr-erasmus { margin-top: 11px; }

/* Header de mobil: grila are 300px; sigla (284px la 80px înălțime) + butonul de meniu nu încăpeau pe un rând. */
@media only screen and (max-width: 600px) {
	.edgt-mobile-header .edgt-mobile-logo-wrapper a { height: 64px !important; }
}

/* Prima pagină — „Viziune și misiune”: casetă albă peste cartea poștală veche (fundalul rândului). */
.cnpr-vm-panel > .vc_column-inner { background: rgba(255, 255, 255, 0.95); padding: 50px 50px 40px !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); }
@media only screen and (max-width: 768px) {
	.cnpr-vm-panel > .vc_column-inner { padding: 30px 22px 24px !important; }
}

/* Pagina „Despre noi” */
.cnpr-lead { font-size: 19px; line-height: 32px; font-style: italic; color: #555; }
.cnpr-quote { margin: 0; padding: 0 0 0 30px; border-left: 3px solid #b8893f; }
.cnpr-quote p { font-size: 24px; line-height: 38px; color: #212121; font-family: "Lora", serif; }
.cnpr-quote cite { display: block; margin-top: 15px; font-style: italic; color: #777; }
.cnpr-tur-title { margin-top: 20px; text-align: center; }
.cnpr-album a.cnpr-album-hidden { display: none; }
.cnpr-album .cnpr-album-cover { position: relative; display: block; overflow: hidden; }
.cnpr-album .cnpr-album-cover img { display: block; width: 100%; aspect-ratio: 350 / 282; object-fit: cover; transition: transform .4s; }
.cnpr-album .cnpr-album-cover:hover img { transform: scale(1.05); }
.cnpr-album .cnpr-album-count { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; }
.cnpr-album .cnpr-album-title { margin-top: 15px; }
/* Tur al Colegiului: cele trei carduri (2 poze + video) la aceeași proporție */
.cnpr-tur .vc_single_image-wrapper, .cnpr-tur .vc_single_image-wrapper img,
.cnpr-tur .edgt-video-button-image, .cnpr-tur .edgt-video-button-image img { display: block; width: 100%; }
.cnpr-tur .vc_single_image-wrapper img, .cnpr-tur .edgt-video-button-image img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.cnpr-tur .wpb_single_image, .cnpr-tur .wpb_single_image .vc_figure { display: block; width: 100%; margin-bottom: 0; }
/* Taburile „Cum să devii rareșist / Ce vei învăța”: fără coloana de imagine a temei, text pe toată lățimea */
.cnpr-tabs .edgt-tab-content-holder { display: block; width: 100%; } /* tema îl pune display:table → cu un PDF înăuntru se strângea la 5 px */
.cnpr-tabs .edgt-tab-content-holder .edgt-tab-content { display: block; width: 100%; padding-right: 0; }
.cnpr-tabs .edgt-tab-content-holder .edgt-tab-image { display: none; }
.cnpr-tabs .edgt-tab-content p { margin: 0 0 18px; font-size: 16px; line-height: 28px; }
.cnpr-tur img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }

/* Pagina Conducere (și alte liste de persoane) */
.cnpr-person-photo { display: block; width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.cnpr-person-name { margin: 0 0 6px; }
.cnpr-person-role { color: #b8893f; font-weight: 700; letter-spacing: 1px; font-size: 13px; text-transform: uppercase; }
.cnpr-person-disc { margin: 8px 0 18px; }
.cnpr-person-contact { list-style: none; margin: 0 0 30px; padding: 0; }
.cnpr-person-contact li { margin: 0 0 6px; }
.cnpr-person-contact i { width: 20px; color: #212121; }
.cnpr-tl-title { margin: 0 0 15px; }
.cnpr-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e5e5e5; }
.cnpr-timeline li { position: relative; padding: 0 0 18px 24px; }
.cnpr-timeline li:before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #b8893f; }
.cnpr-tl-year { display: block; font-weight: 700; color: #212121; }
.cnpr-tl-text { display: block; line-height: 26px; }
@media only screen and (max-width: 1024px) { .cnpr-person-photo { margin-bottom: 30px; } }

/* Liste de documente (PDF) pe paginile refăcute din page builder-ul vechi */
.cnpr-docs { list-style: none; margin: 0; padding: 0; }
.cnpr-docs li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #ebebeb; }
.cnpr-docs li > span { font-size: 16px; color: #212121; }
.cnpr-docs li a.edgt-btn { flex-shrink: 0; }
@media only screen and (max-width: 680px) { .cnpr-docs li { flex-direction: column; align-items: flex-start; } }
/* TablePress în tema nouă: tabel pe toată lățimea, rânduri alternante */
.tablepress { width: 100%; }
.tablepress thead th { background: #b8893f; color: #fff; }
/* TablePress colorează albastru coloana sortată și antetul la hover (variabila --head-active-bg-color = #049cdb); le aliniem la paletă */
table.tablepress.tablepress { --head-bg-color: #b8893f; --head-text-color: #fff; --head-active-bg-color: #9c7232; --head-active-text-color: #fff; --head-sort-arrow-color: #fff; --hover-bg-color: #f6f0e4; }
.cnpr-sc-intro p { font-size: 16px; line-height: 28px; }
.cnpr-pdf-tabs .wp-block-pdfemb-pdf-embedder-viewer, .cnpr-pdf-tabs .pdfemb-viewer { max-width: 900px; margin-left: auto; margin-right: auto; }
.cnpr-quote-sm p { font-size: 18px; line-height: 32px; }
.cnpr-info { margin: 0; display: grid; grid-template-columns: minmax(180px, 45%) 1fr; border-top: 1px solid #e5e5e5; }
.cnpr-info dt, .cnpr-info dd { margin: 0; padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.cnpr-info dt { font-weight: 600; color: #212121; padding-right: 20px; }
@media only screen and (max-width: 480px) { .cnpr-info { grid-template-columns: 1fr; } .cnpr-info dt { border-bottom: 0; padding-bottom: 0; } }
/* Rânduri cu carduri (icon with text) de înălțimi diferite: fiecare rând nou începe la stânga */
.cnpr-cols .wpb_column.vc_col-sm-6:nth-child(2n+1),
.cnpr-cols .wpb_column.vc_col-sm-4:nth-child(3n+1) { clear: left; }

/* Carduri simple (Atestate) și cursurile vechi */
.cnpr-card { display: flex; flex-direction: column; height: 100%; }
.cnpr-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f7f7f7; margin-bottom: 20px; }
.cnpr-card-img img { max-width: 70%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.cnpr-card-title { margin: 0 0 10px; }
.cnpr-card-more { margin-top: auto; font-weight: 600; }
.cnpr-curs-vechi { padding: 28px 0 90px; display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.cnpr-curs-img img { width: 100%; height: auto; }
@media only screen and (max-width: 768px) { .cnpr-curs-vechi { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; } .cnpr-curs-img { max-width: 240px; } }
.cnpr-arhiva-title { margin: 60px 0 30px; text-align: center; } .cnpr-arhiva .edgt-tab-content ul { margin: 0 0 10px; } .cnpr-arhiva .edgt-tab-content h3 { font-size: 17px; margin: 6px 0; }
.cnpr-arhiva .edgt-tab-content ul { list-style: none; padding: 0; }
.cnpr-arhiva .edgt-tab-content li { padding: 10px 0; border-bottom: 1px solid #ebebeb; }
.cnpr-arhiva .edgt-tab-content li h3 { display: inline; margin: 0; }
.cnpr-arhiva .edgt-tab-content li h3:before { content: "\f1c1"; font-family: FontAwesome; color: #c0392b; margin-right: 10px; }

/* Conținut mutat din page builder-ul vechi (pagini de arhivă: examene, Școala altfel, On-line, Cuvânt) */
.cnpr-builder { margin-top: 40px; }
.cnpr-builder .cnpr-sec-title { margin: 40px 0 20px; }
.cnpr-builder hr { margin: 25px 0; border: 0; border-top: 1px solid #ebebeb; }
.cnpr-builder table { width: 100%; }
.cnpr-builder img { max-width: 100%; height: auto; }

/* Butoane puse unul lângă altul (ex. Istoric / Viziune și misiune pe prima pagină): spațiu egal și când se rup pe două rânduri */
.cnpr-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cnpr-btns .edgt-btn { margin: 0 !important; }

/* Mobil (<=768px): spațiile mari de secțiune (≥60px) de pe paginile refăcute cu WPBakery se înjumătățesc.
   Generat din _wpb_shortcodes_custom_css al paginilor 12166, 79, 83, 91, 93, 67, 2457, 59 — dacă adaugi rânduri noi cu padding mare, adaugă-le și aici. */
@media only screen and (max-width: 768px) {
	.edgt-content .vc_row.vc_custom_1790000000003, .edgt-content .vc_row-fluid.vc_custom_1790000000003{padding-top: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000004, .edgt-content .vc_row-fluid.vc_custom_1790000000004{padding-top: 30px !important;padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000005, .edgt-content .vc_row-fluid.vc_custom_1790000000005{padding-top: 55px !important;padding-bottom: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000001, .edgt-content .vc_row-fluid.vc_custom_1790000000001{padding-top: 55px !important;padding-bottom: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000011, .edgt-content .vc_row-fluid.vc_custom_1790000000011{padding-top: 55px !important;padding-bottom: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000020, .edgt-content .vc_row-fluid.vc_custom_1790000000020{padding-top: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000021, .edgt-content .vc_row-fluid.vc_custom_1790000000021{padding-bottom: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000030, .edgt-content .vc_row-fluid.vc_custom_1790000000030{padding-top: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000031, .edgt-content .vc_row-fluid.vc_custom_1790000000031{padding-top: 30px !important;padding-bottom: 40px !important;}
	.edgt-content .vc_row.vc_custom_1790000000201, .edgt-content .vc_row-fluid.vc_custom_1790000000201{padding-top: 35px !important;padding-bottom: 35px !important;}
	.edgt-content .vc_row.vc_custom_1790000000202, .edgt-content .vc_row-fluid.vc_custom_1790000000202{padding-top: 45px !important;padding-bottom: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000205, .edgt-content .vc_row-fluid.vc_custom_1790000000205{padding-top: 50px !important;padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000206, .edgt-content .vc_row-fluid.vc_custom_1790000000206{padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000207, .edgt-content .vc_row-fluid.vc_custom_1790000000207{padding-top: 50px !important;}
	.edgt-content .vc_row.vc_custom_1790000000208, .edgt-content .vc_row-fluid.vc_custom_1790000000208{padding-bottom: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000209, .edgt-content .vc_row-fluid.vc_custom_1790000000209{padding-top: 50px !important;}
	.edgt-content .vc_row.vc_custom_1790000000210, .edgt-content .vc_row-fluid.vc_custom_1790000000210{padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000211, .edgt-content .vc_row-fluid.vc_custom_1790000000211{padding-bottom: 55px !important;}
	.edgt-content .vc_row.vc_custom_1790000000204, .edgt-content .vc_row-fluid.vc_custom_1790000000204{padding-top: 39px !important;}
	.edgt-content .vc_row.vc_custom_1790000000301, .edgt-content .vc_row-fluid.vc_custom_1790000000301{padding-top: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000310, .edgt-content .vc_row-fluid.vc_custom_1790000000310{padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000311, .edgt-content .vc_row-fluid.vc_custom_1790000000311{padding-bottom: 30px !important;}
	.edgt-content .vc_row.vc_custom_1790000000320, .edgt-content .vc_row-fluid.vc_custom_1790000000320{padding-bottom: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000401, .edgt-content .vc_row-fluid.vc_custom_1790000000401{padding-top: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000402, .edgt-content .vc_row-fluid.vc_custom_1790000000402{padding-top: 30px !important;padding-bottom: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000500, .edgt-content .vc_row-fluid.vc_custom_1790000000500{padding-top: 45px !important;padding-bottom: 40px !important;}
	.edgt-content .vc_row.vc_custom_1790000000501, .edgt-content .vc_row-fluid.vc_custom_1790000000501{padding-top: 45px !important;padding-bottom: 40px !important;}
	.edgt-content .vc_row.vc_custom_1790000000502, .edgt-content .vc_row-fluid.vc_custom_1790000000502{padding-top: 45px !important;padding-bottom: 40px !important;}
	.edgt-content .vc_row.vc_custom_1790000000601, .edgt-content .vc_row-fluid.vc_custom_1790000000601{padding-top: 45px !important;padding-bottom: 40px !important;}
	.edgt-content .vc_row.vc_custom_1790000000603, .edgt-content .vc_row-fluid.vc_custom_1790000000603{padding-top: 45px !important;}
	.edgt-content .vc_row.vc_custom_1790000000604, .edgt-content .vc_row-fluid.vc_custom_1790000000604{padding-top: 45px !important;padding-bottom: 50px !important;}
	.edgt-content .vc_row.vc_custom_1790000000701, .edgt-content .vc_row-fluid.vc_custom_1790000000701{padding-top: 45px !important;padding-bottom: 45px !important;}
}
/* Tabletă + mobil (≤1024): pe paginile full-width (cele refăcute cu WPBakery) tema mai adaugă 62px deasupra conținutului (style_dynamic_responsive.css, cu !important),
   peste spațiul propriu al primei secțiuni. */
@media only screen and (max-width: 1024px) {
	body.page-template-full-width .edgt-content .edgt-content-inner > .edgt-full-width > .edgt-full-width-inner { padding-top: 0 !important; }
}

/* Bara de sus: iconițe (Simple Line Icons, ca în footer) la adresă / telefon / e-mail; linkurile au aceeași culoare ca textul */
.edgt-top-bar .cnpr-tb { display: inline-flex; align-items: center; }
.edgt-top-bar .cnpr-tb i { font-size: 13px; color: #b8893f; margin-right: 7px; line-height: 1; }
.edgt-top-bar .cnpr-tb a { color: inherit; }
.edgt-top-bar .cnpr-tb a:hover { color: #b8893f; }

/* Meniul „prezentare” (id 52): elementele fără pagină (link #) nu par clickabile */
.cnpr-inactiv > a { cursor: default; }

/* Film redat direct în pagină pe telefon/tabletă (assets/cnpr-video-mobil.js) */
.cnpr-video-inline { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* Slider prima pagină: voal închis peste fotografii, ca textul alb să rămână lizibil pe clădirea însorită */
#rev_slider_9_1_wrapper rs-sbg-wrap::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 12, 8, 0.45) 0%, rgba(20, 12, 8, 0.35) 45%, rgba(20, 12, 8, 0.55) 100%); pointer-events: none; }

/* Antetul paginilor interioare: felie din panorama aeriană, cu voal închis ca titlul alb să rămână lizibil */
.edgt-title-holder.edgt-has-bg-image { position: relative; }
.edgt-title-holder.edgt-has-bg-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 17, 12, 0.62) 0%, rgba(22, 17, 12, 0.5) 50%, rgba(22, 17, 12, 0.66) 100%); pointer-events: none; }
.edgt-title-holder.edgt-has-bg-image .edgt-title-wrapper { position: relative; z-index: 1; }
.edgt-title-holder.edgt-has-bg-image .edgt-page-title { color: #fff; }
.edgt-title-holder.edgt-has-bg-image .edgt-breadcrumbs, .edgt-title-holder.edgt-has-bg-image .edgt-breadcrumbs a, .edgt-title-holder.edgt-has-bg-image .edgt-breadcrumbs .edgt-delimiter { color: rgba(255, 255, 255, 0.82); }
.edgt-title-holder.edgt-has-bg-image .edgt-breadcrumbs .edgt-current { color: #fff; }
.edgt-title-holder.edgt-has-bg-image { background-size: cover !important; background-position: center 68% !important; background-repeat: no-repeat !important; }
/* Titlul din antet pe telefon: mai mic, ca titlurile lungi să încapă în bandă */
@media only screen and (max-width: 680px) { .edgt-title-holder .edgt-title-wrapper .edgt-page-title { font-size: 26px !important; line-height: 32px !important; } .edgt-title-holder.edgt-standard-with-breadcrumbs-type .edgt-breadcrumbs-info { margin-top: 6px; font-size: 12px; } }
@media only screen and (min-width: 681px) and (max-width: 1024px) { .edgt-title-holder .edgt-title-wrapper .edgt-page-title { font-size: 36px !important; line-height: 44px !important; } }
/* Antet: firul de navigare sub titlu (tema îl punea absolut în dreapta, pe același rând — titlurile lungi intrau sub el) */
.edgt-title-holder.edgt-standard-with-breadcrumbs-type .edgt-title-info { display: block; width: 100%; }
.edgt-title-holder.edgt-standard-with-breadcrumbs-type .edgt-breadcrumbs-info { display: block; width: 100%; position: static; transform: none; margin: 10px 0 0; font-size: 13px; white-space: normal; text-align: left; }
/* Tabele TablePress pe ecrane înguste: derulare orizontală în loc de tăiere; celulele nu se rup pe rânduri */
.wpb_wrapper:has(> .tablepress), .dt-layout-row.dt-layout-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media only screen and (max-width: 680px) { .tablepress th, .tablepress td { white-space: nowrap; } }
/* Pagini convertite din HTML vechi (05.10): PDF, embed-uri, tabele simple */
.cnpr-pdf, .cnpr-embed { max-width: 900px; margin: 0 auto; }
.cnpr-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.cnpr-fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(500px, 100%), 1fr)); gap: 24px; justify-items: center; margin: 10px 0 20px; }
.cnpr-fb-grid iframe { max-width: 100%; }
.cnpr-embed video, .cnpr-embed img { max-width: 100%; height: auto; }
.cnpr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cnpr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.cnpr-table th { background: #b8893f; color: #fff; padding: 10px 12px; text-align: left; border: 0; }
table.cnpr-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
table.cnpr-table tr:nth-child(even) td { background: rgba(0,0,0,.025); }
.wpb_text_column h4 { margin: 28px 0 12px; }
.wpb_text_column p.cnpr-text { font-size: 19px; line-height: 32px; color: #333; }
.wpb_text_column ul:not(.cnpr-docs) { list-style: disc; padding-left: 22px; margin: 0 0 20px; }
.wpb_text_column ul:not(.cnpr-docs) li, .wpb_text_column ol li { margin-bottom: 6px; }
.wpb_text_column a:not(.edgt-btn), .cnpr-lead a { color: #9c7232; text-decoration: underline; text-underline-offset: 3px; }
.wpb_text_column a:not(.edgt-btn):hover { color: #b8893f; }
.wpb_single_image + .wpb_single_image { margin-top: 30px; }
/* Consiliul elevilor: portrete egale */
.edgt-image-with-text-holder.cnpr-portret .edgt-iwt-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.edgt-image-with-text-holder .edgt-iwt-text { color: #777; }
/* Titluri de secțiune pe paginile convertite (arhive, admitere etc.): mai mici decât h2-ul de 39 px */
.edgt-section-title-holder.cnpr-sec .edgt-st-title { font-size: 28px; line-height: 36px; }
@media only screen and (max-width: 680px) { .edgt-section-title-holder.cnpr-sec .edgt-st-title { font-size: 24px; line-height: 32px; } }
/* Pagini-jurnal (admitere pe ani): data item-ului, uniformă indiferent cum era scrisă în original */
.wpb_text_column p.cnpr-date { font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #8a8a8a; margin: 18px 0 4px; }
.wpb_text_column:first-child p.cnpr-date:first-child { margin-top: 0; }
/* Anunț important (fost banner-imagine): casetă de text */
.wpb_text_column p.cnpr-notice { margin: 12px 0 24px; padding: 22px 26px; background: #f6f0e4; border-left: 4px solid #b8893f; font-size: 18px; line-height: 30px; font-weight: 600; color: #212121; }
/* EPAS: carduri cu postări Facebook, 3 pe rând, înălțime egală */
.cnpr-fb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.cnpr-fb-card { background: #fff; border: 1px solid #e8e8e8; padding: 14px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cnpr-fb-frame { width: 100%; max-width: 350px; height: 560px; overflow: hidden; background: #fafafa; }
.cnpr-fb-frame iframe { display: block; width: 100%; }
.cnpr-fb-card .edgt-btn { margin-top: auto; }
/* Publicații: bara de taburi centrată (tema o pune la stânga, cu li float) */
.cnpr-pdf-tabs .edgt-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
.cnpr-pdf-tabs .edgt-tabs-nav li { float: none; }
@media only screen and (max-width: 680px) {
	.cnpr-pdf-tabs .edgt-tabs-nav li { flex: 1 1 auto; }
	.cnpr-pdf-tabs .edgt-tabs-nav li a { display: block; text-align: center; padding-left: 6px; padding-right: 6px; }
}
/* Clipuri video încărcate pe site (Proiecte) */
video.cnpr-video { display: block; width: 100%; height: auto; max-height: 420px; background: #000; }
/* Footer: sigla aliniată la stânga, deasupra textului de prezentare */
.edgt-footer-top-holder .edgt-image-widget { text-align: left; }
.edgt-footer-top-holder .edgt-image-widget { margin: 0; height: 84px; } /* sigla 64 px + 20 px; toate coloanele pornesc de la același nivel */
.edgt-footer-top-holder .edgt-image-widget img { display: block; margin: 0; width: auto; height: 64px; }
.edgt-footer-top-holder .edgt-image-widget + .widget_text { margin-top: 0; }
.edgt-footer-top-holder .edgt-image-widget + .widget_text .textwidget p { margin-top: 0; }
/* Articole (noutăți): coloană de citire, titlu + dată, fișiere ca rânduri cu buton, navigare Anterior / Următor pe două coloane egale */
.single-post .edgt-blog-single .edgt-post-text-inner { max-width: 880px; margin: 0 auto; }
.single-post .edgt-blog-single h1.edgt-post-title { font-size: 34px; line-height: 44px; font-weight: 600; color: #212121; margin: 0 0 12px; }
.single-post .edgt-blog-single .edgt-post-info-top { margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid #e5e5e5; }
.single-post .edgt-blog-single .edgt-post-info-top .edgt-blog-like, .single-post .edgt-blog-single .edgt-post-info-top .edgt-post-info-category, .single-post .edgt-blog-single .edgt-post-info-top .edgt-post-info-comments-holder { display: none; }
.single-post .edgt-blog-single .edgt-post-info-date, .single-post .edgt-blog-single .edgt-post-info-date a { font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #9c7232; }
.single-post .edgt-post-text-main { font-size: 17px; line-height: 30px; color: #333; }
.single-post .edgt-post-text-main p { margin: 0 0 18px; }
.single-post .edgt-post-text-main h1 { font-size: 28px; line-height: 38px; margin: 10px 0 18px; }
.single-post .edgt-post-text-main h2 { font-size: 25px; line-height: 34px; margin: 10px 0 16px; }
.single-post .edgt-post-text-main h3 { font-size: 22px; line-height: 31px; margin: 10px 0 14px; }
.single-post .edgt-post-text-main h4, .single-post .edgt-post-text-main h5, .single-post .edgt-post-text-main h6 { margin: 10px 0 12px; }
.single-post .edgt-post-text-main a:not(.wp-block-file__button):not(.edgt-btn) { color: #9c7232; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.single-post .edgt-post-text-main a:not(.wp-block-file__button):not(.edgt-btn):hover { color: #b8893f; }
.single-post .edgt-post-text-main ul, .single-post .edgt-post-text-main ol { padding-left: 22px; margin: 0 0 20px; }
.single-post .edgt-post-text-main ul { list-style: disc; }
.single-post .edgt-post-text-main li { margin-bottom: 6px; }
.single-post .edgt-post-text-main hr { border: 0; border-top: 1px solid #e5e5e5; margin: 26px 0; }
.single-post .edgt-post-text-main img { max-width: 100%; height: auto; }
.single-post .edgt-post-text-main .wp-block-image { margin: 0 0 24px; text-align: center; }
.single-post .edgt-post-text-main .wp-block-image figcaption { font-size: 14px; color: #777; }
.single-post .edgt-post-text-main .wp-block-gallery { margin-bottom: 24px; }
.single-post .edgt-post-text-main .pdfemb-viewer, .single-post .edgt-post-text-main .wp-block-file__embed { margin-bottom: 14px; }
.single-post .edgt-post-text-main .wp-block-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 18px; background: #f7f3eb; border-left: 4px solid #b8893f; font-size: 16px; line-height: 24px; }
.single-post .edgt-post-text-main .wp-block-file .wp-block-file__embed { flex: 0 0 100%; order: -1; }
.single-post .edgt-post-text-main .wp-block-file > a:not(.wp-block-file__button) { flex: 1 1 260px; color: #212121; text-decoration: none; font-weight: 600; }
.single-post .edgt-post-text-main .wp-block-file > a:not(.wp-block-file__button) mark { color: inherit !important; background: none !important; }
.single-post .edgt-post-text-main .wp-block-file .wp-block-file__button { margin: 0; padding: 9px 22px; border-radius: 0; background: #b8893f; color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; text-decoration: none; }
.single-post .edgt-post-text-main .wp-block-file .wp-block-file__button:hover { background: #9c7232; color: #fff; }
.single-post .edgt-post-text-main table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; margin: 0 0 24px; }
.single-post .edgt-post-text-main th, .single-post .edgt-post-text-main td { padding: 8px 10px; border: 1px solid #e5e5e5; vertical-align: top; }
.single-post .edgt-post-text-main .wp-block-table { overflow-x: auto; }
.single-post .edgt-post-text-main p.cnpr-inapoi { margin: 34px 0 0; text-align: center; }
.single-post .edgt-blog-single .edgt-post-info-bottom { margin-top: 30px; }
.single-post .edgt-blog-single .edgt-post-info-bottom { display: block; }
.single-post .edgt-blog-single article .edgt-post-info-bottom .edgt-post-info-bottom-left:empty { display: none; }
.single-post .edgt-blog-single article .edgt-post-info-bottom .edgt-post-info-bottom-right { float: none; display: block; width: 100%; text-align: center; }
.single-post .edgt-blog-single .edgt-post-info-bottom-right .edgt-blog-share { text-align: center; }
.single-post .edgt-blog-single-navigation { max-width: 880px; margin: 0 auto; display: block; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-navigation-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-navigation-inner::before, .single-post .edgt-blog-single-navigation .edgt-blog-single-navigation-inner::after { display: none; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-prev, .single-post .edgt-blog-single-navigation .edgt-blog-single-next { float: none; display: flex; align-items: center; gap: 14px; min-width: 0; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-next { grid-column: 2; flex-direction: row-reverse; text-align: right; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-prev div, .single-post .edgt-blog-single-navigation .edgt-blog-single-next div { display: block; padding: 0; position: static; width: auto; min-width: 0; transform: none; }
.single-post .edgt-blog-single-navigation .edgt-nav-blog-post-image { flex: 0 0 64px; }
.single-post .edgt-blog-single-navigation .edgt-nav-image { width: 64px; height: 64px; object-fit: cover; }
.single-post .edgt-blog-single-navigation .edgt-blog-single-nav-title { font-size: 14px; line-height: 21px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.single-post .edgt-blog-single-navigation a:hover .edgt-blog-single-nav-label, .single-post .edgt-blog-single-navigation a:hover .edgt-blog-single-nav-title { color: #9c7232 !important; }
/* Articole: titlurile care sunt doar un link (clasa cnpr-doc-link, pusă în functions.php) → rânduri ca blocul „fișier”; titlurile cu fundal colorat → bandă aurie */
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).cnpr-doc-link { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 10px; padding: 12px 18px; background: #f7f3eb; border-left: 4px solid #b8893f; font-size: 16px; line-height: 24px; font-weight: 600; color: #212121; text-align: left; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).cnpr-doc-link a { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #212121 !important; text-decoration: none !important; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).cnpr-doc-link a::after { content: "Deschide"; flex: 0 0 auto; padding: 7px 18px; background: #b8893f; color: #fff; font-size: 13px; line-height: 20px; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).cnpr-doc-link a:hover::after { background: #9c7232; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).cnpr-doc-link mark { color: inherit !important; background: none !important; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).has-background { margin: 26px 0 14px; padding: 10px 18px; background: #b8893f !important; color: #fff !important; font-size: 20px; line-height: 28px; }
.single-post .edgt-post-text-main :is(h1, h2, h3, h4, h5, h6).has-background mark { color: inherit !important; background: none !important; }
/* Articole: mărimile mari puse din editor (Large 36 px, X-Large 42 px) — prea mari în coloana de citire; pe telefon cuvintele lungi nu mai ieșeau din ecran */
.single-post .edgt-post-text-main .has-large-font-size { font-size: 24px !important; line-height: 34px !important; }
.single-post .edgt-post-text-main :is(.has-x-large-font-size, .has-huge-font-size) { font-size: 28px !important; line-height: 38px !important; }
.single-post .edgt-post-text-main :is(p, h1, h2, h3, h4, h5, h6, li) { overflow-wrap: break-word; }
/* Articole: galerii Smart Slider puse în celule de tabel (ex. „Prima zi – 150 de ani”) — tabelul se lățea la mii de px */
/* … și PDF-uri puse câte două într-un tabel (pe telefon tabelul ieșea din ecran): unul sub altul */
.single-post .edgt-post-text-main table:has(.n2-section-smartslider, .pdfemb-viewer), .single-post .edgt-post-text-main table:has(.n2-section-smartslider, .pdfemb-viewer) :is(tbody, tr, td) { display: block; width: 100% !important; height: auto !important; border: 0; padding: 0; }
.single-post .edgt-post-text-main table:has(.pdfemb-viewer) td + td { margin-top: 24px; }
/* Titluri Ultimate Blocks (își pun singure 36 px) */
.single-post .edgt-post-text-main .wp-block-ub-advanced-heading { font-size: 25px !important; line-height: 34px !important; }
/* Articole făcute în WPBakery (ex. Erasmus 2024-2025): rândurile temei au lățimea fixă a grilei (1300 px) */
.single-post .edgt-post-text-main .edgt-row-grid-section { width: auto !important; max-width: 100%; }
.single-post .edgt-post-text-main .vc_row { margin-left: 0; margin-right: 0; }
@media only screen and (max-width: 680px) {
	.single-post .edgt-blog-single h1.edgt-post-title { font-size: 25px; line-height: 33px; }
	.single-post .edgt-post-text-main { font-size: 16px; line-height: 28px; }
	.single-post .edgt-post-text-main h1 { font-size: 23px; line-height: 31px; }
	.single-post .edgt-post-text-main h2 { font-size: 21px; line-height: 29px; }
	.single-post .edgt-post-text-main .has-large-font-size { font-size: 21px !important; line-height: 30px !important; }
	.single-post .edgt-post-text-main :is(.has-x-large-font-size, .has-huge-font-size) { font-size: 23px !important; line-height: 32px !important; }
	.single-post .edgt-post-text-main .wp-block-ub-advanced-heading { font-size: 21px !important; line-height: 29px !important; }
	.single-post .edgt-blog-single-navigation .edgt-blog-single-navigation-inner { grid-template-columns: 1fr; gap: 18px; }
	.single-post .edgt-blog-single-navigation .edgt-blog-single-next { grid-column: 1; }
	.single-post .edgt-blog-single-navigation .edgt-nav-image { width: 52px; height: 52px; }
	.single-post .edgt-blog-single-navigation .edgt-nav-blog-post-image { flex-basis: 52px; }
	.single-post .edgt-blog-single-navigation .edgt-nav-blog-post-image, .single-post .edgt-blog-single-navigation .edgt-blog-single-nav-title { display: block !important; }
	.single-post .edgt-blog-single-navigation .edgt-blog-single-nav-title { display: -webkit-box !important; }
}
