/* ============================================================
   IMPACT-UBc - Stylesheet
   HTML 4.01 Transitional / CSS2
   Culori brand: navy #1F3A6E + portocaliu #EA5B2A
   ============================================================ */

/* ----- Reset minimal ----- */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, table, td, th, blockquote {
    margin: 0;
    padding: 0;
}
* { box-sizing: border-box; }

/* ----- Tipografie de baza ----- */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #33415C;
    background-color: #F7F9FC;
}

a            { color: #1F3A6E; text-decoration: none; }
a:hover      { text-decoration: underline; color: #EA5B2A; }
a:visited    { color: #1F3A6E; }

h1 { font-size: 2.2em;  line-height: 1.15; color: #10203E; }
h2 { font-size: 1.7em;  line-height: 1.2;  color: #10203E; margin-bottom: 0.5em; }
h3 { font-size: 1.2em;  line-height: 1.3;  color: #1B2A47; margin-bottom: 0.3em; }
h4 { font-size: 1em;    line-height: 1.35; color: #1B2A47; }
p  { margin-bottom: 0.85em; }

img { border: 0; max-width: 100%; height: auto; display: block; }

/* ----- Layout wrapper ----- */
.wrapper {
    width: 960px;
    margin: 0 auto;
}
@media screen and (max-width: 980px) {
    .wrapper { width: 96%; }
}

/* ============================================================
   HEADER / NAVIGATIE
   ============================================================ */
#header {
    background: #ffffff;
    border-bottom: 3px solid #1F3A6E;
    position: relative;
    z-index: 100;
}
#header .wrapper {
    padding: 0;
}
#header table {
    width: 100%;
    border-collapse: collapse;
}
#header td {
    vertical-align: middle;
    padding: 12px 0;
}
#header td.logo-cell {
    width: 160px;
}
#header td.logo-cell a {
    display: inline-block;
    line-height: 0;
}
#header td.logo-cell img {
    width: 140px;
    height: auto;
}
#header td.nav-cell {
    text-align: right;
}
#header td.tagline-cell {
    padding-left: 18px;
}
#header .site-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #10203E;
    letter-spacing: -0.3px;
}
#header .site-subtitle {
    font-size: 0.78em;
    color: #6B7A94;
    margin-top: 2px;
}

/* Nav */
#nav {
    display: inline;
}
#nav ul {
    list-style: none;
    display: inline;
    margin: 0;
    padding: 0;
}
#nav ul li {
    display: inline;
    margin-left: 6px;
}
#nav ul li a {
    display: inline-block;
    padding: 8px 14px;
    color: #33415C;
    font-size: 0.88em;
    font-weight: bold;
    letter-spacing: 0.2px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
}
#nav ul li a:hover {
    background-color: #FDEDE6;
    color: #EA5B2A;
    text-decoration: none;
    border-color: #f6d3c3;
}
#nav ul li.raport a {
    background-color: #EA5B2A;
    color: #ffffff;
    border-color: #EA5B2A;
}
#nav ul li.raport a:hover {
    background-color: #cf4a1c;
    border-color: #cf4a1c;
    color: #ffffff;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
#hero {
    position: relative;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background-color: #10203E;
}
#hero img.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 1;
    opacity: 0.42;
}
#hero:before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(31,58,110,0.82) 0%, rgba(16,32,62,0.72) 100%);
    z-index: 2;
}
#hero:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: linear-gradient(to bottom, rgba(247,249,252,0) 0%, rgba(247,249,252,0.85) 70%, rgba(247,249,252,1) 100%);
    z-index: 4;
    pointer-events: none;
}
#hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 70px 40px 170px;
}
#hero .hero-logo {
    display: block;
    margin: 0 auto 28px;
    max-width: 320px;
    width: 78%;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 26px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
#hero .hero-badge {
    display: inline-block;
    background-color: #EA5B2A;
    color: #ffffff;
    font-size: 0.78em;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
}
#hero h1 {
    color: #ffffff;
    font-size: 1.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    max-width: 820px;
    margin: 0 auto 20px;
    line-height: 1.28;
}
#hero h1 strong { font-weight: 900; color: #ffd9c8; }
#hero .hero-sub {
    color: #eef2f8;
    font-size: 0.95em;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
    max-width: 660px;
    margin: 0 auto 6px;
    text-transform: uppercase;
}
#hero .hero-code {
    color: #ffc4ab;
    font-size: 0.85em;
    margin-top: 10px;
    letter-spacing: 0.5px;
}
#hero .hero-director {
    color: #eef2f8;
    font-size: 0.92em;
    margin-top: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
#hero .hero-director strong { color: #ffffff; }
#hero .hero-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #EA5B2A;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9em;
    padding: 12px 32px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    border: 2px solid #EA5B2A;
}
#hero .hero-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   SECTIUNI PRINCIPALE
   ============================================================ */
.section {
    padding: 55px 0;
}
.section-alt {
    background-color: #ffffff;
}
.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title h2 {
    font-size: 1.75em;
    color: #10203E;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #EA5B2A;
    margin: 10px auto 0;
}

/* ----- Director / info proiect ----- */
.project-meta {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
    color: #4A5A78;
    font-size: 0.98em;
}
.project-meta strong { color: #1F3A6E; }
.project-director {
    font-size: 1.2em;
    color: #1B2A47;
}

/* ----- Scop ----- */
#scop .scop-box {
    background-color: #EEF3FB;
    border-left: 5px solid #EA5B2A;
    border-radius: 0 6px 6px 0;
    padding: 30px 36px;
    max-width: 760px;
    margin: 0 auto;
}
#scop .scop-box .scop-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #EA5B2A;
    transform: rotate(45deg);
    margin-right: 12px;
    flex: 0 0 auto;
}
#scop .scop-box h3 {
    font-size: 1.25em;
    color: #10203E;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
#scop .scop-box p {
    font-size: 1.05em;
    color: #33415C;
    margin: 0;
    line-height: 1.7;
}

/* ----- Obiective ----- */
#obiective .ob-list {
    list-style: none;
    padding: 0;
    max-width: 820px;
    margin: 0 auto;
}
#obiective .ob-list li {
    display: table;
    width: 100%;
    margin-bottom: 22px;
    background-color: #ffffff;
    border: 1px solid #e2e8f2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#obiective .ob-list li .ob-num {
    display: table-cell;
    width: 74px;
    background-color: #1F3A6E;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: 0.5px;
}
#obiective .ob-list li .ob-body {
    display: table-cell;
    padding: 18px 24px;
    vertical-align: middle;
}
#obiective .ob-list li .ob-body h3 {
    font-size: 1em;
    color: #EA5B2A;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#obiective .ob-list li .ob-body p {
    margin: 0;
    color: #33415C;
    font-size: 0.95em;
    line-height: 1.65;
}

/* ----- Activitati ----- */
#activitati .act-list {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 0 auto;
    counter-reset: act-counter;
}
#activitati .act-list li {
    counter-increment: act-counter;
    display: table;
    width: 100%;
    margin-bottom: 12px;
    background-color: #F7F9FC;
    border: 1px solid #e2e8f2;
    border-radius: 5px;
    overflow: hidden;
}
#activitati .act-list li:hover {
    background-color: #FDEDE6;
    border-color: #f6d3c3;
}
#activitati .act-list li .act-num {
    display: table-cell;
    width: 56px;
    background-color: #1F3A6E;
    color: #ffffff;
    text-align: center;
    vertical-align: middle;
    font-size: 0.9em;
    font-weight: bold;
}
#activitati .act-list li:hover .act-num {
    background-color: #EA5B2A;
}
#activitati .act-list li .act-num:before {
    content: "A" counter(act-counter);
}
#activitati .act-list li .act-text {
    display: table-cell;
    padding: 13px 20px;
    vertical-align: middle;
    font-size: 0.93em;
    color: #33415C;
    line-height: 1.55;
}
#activitati .act-list li .act-text a {
    color: #33415C;
    text-decoration: none;
}
#activitati .act-list li:hover .act-text a {
    color: #EA5B2A;
}

/* ============================================================
   PAGINI DE ACTIVITATI
   ============================================================ */
.page-header {
    background-color: #1F3A6E;
    padding: 40px 0 32px;
    border-bottom: 4px solid #EA5B2A;
}
.page-header .back-link {
    color: #ffc4ab;
    font-size: 0.85em;
    margin-bottom: 12px;
    display: block;
}
.page-header .back-link:hover { color: #ffffff; }
.page-header h1 {
    color: #ffffff;
    font-size: 1.8em;
    line-height: 1.2;
}
.page-header .act-meta {
    color: #b9c4d8;
    font-size: 0.85em;
    margin-top: 8px;
}

.page-body {
    padding: 48px 0 60px;
}
.page-body p {
    font-size: 1.02em;
    color: #33415C;
    line-height: 1.75;
    margin-bottom: 1em;
    max-width: 760px;
}

/* Info-box in pagini */
.info-box {
    margin-top: 30px;
    background-color: #EEF3FB;
    border-left: 5px solid #1F3A6E;
    border-radius: 0 6px 6px 0;
    padding: 22px 28px;
    max-width: 760px;
}
.info-box h3 {
    color: #1F3A6E;
    font-size: 1.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-box p { margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background-color: #10203E;
    color: #9FADC6;
    padding: 36px 0;
    font-size: 0.85em;
}
#footer table {
    width: 100%;
    border-collapse: collapse;
}
#footer td {
    vertical-align: top;
    padding: 0 20px 0 0;
}
#footer td:last-child { padding-right: 0; }
#footer h4 {
    color: #ffffff;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#footer ul li {
    margin-bottom: 6px;
}
#footer ul li a {
    color: #9FADC6;
    text-decoration: none;
}
#footer ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}
#footer .footer-bottom {
    border-top: 1px solid #2a3d5c;
    margin-top: 28px;
    padding-top: 18px;
    text-align: center;
    color: #6B7A94;
    font-size: 0.88em;
}
#footer .footer-logo img {
    width: 150px;
    height: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

/* ============================================================
   BUTON SCROLL-TO-TOP
   ============================================================ */
#btn-top {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background-color: #EA5B2A;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.3em;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    text-decoration: none;
}
#btn-top:hover {
    background-color: #cf4a1c;
    text-decoration: none;
    color: #ffffff;
}

/* ============================================================
   UTILITARE
   ============================================================ */
.clearfix:after { content: ""; display: table; clear: both; }
.text-center     { text-align: center; }
.mt20 { margin-top: 20px; }
.mt40 { margin-top: 40px; }
.mb20 { margin-bottom: 20px; }

hr.divider {
    border: 0;
    height: 1px;
    background-color: #e2e8f2;
    margin: 40px auto;
    max-width: 820px;
}

/* Responsive: footer si liste pe ecrane mici */
@media screen and (max-width: 720px) {
    #header td.nav-cell,
    #header td.tagline-cell { display: block; text-align: center; padding-left: 0; }
    #footer td { display: block; width: 100% !important; padding: 0 0 20px 0; }
    #hero h1 { font-size: 1.5em; }
}
