/* ========================== 
   EduFinStart Bucuresti - style.css
   Scandinavian Clean: Light, simple, modern, playful accents
   ========================== */

/* 1. CSS RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #FEFEFE;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #235789;
  text-decoration: none;
  transition: color .17s;
}
a:hover, a:focus {
  color: #F1D302;
  outline: none;
  text-decoration: underline;
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #122336;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.125rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
p, ul, ol, dl {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #222;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
dl {
  margin-bottom: 18px;
}
dt {
  font-weight: 600;
  margin-bottom: 4px;
}
dd {
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
blockquote {
  margin: 0 0 8px 0;
  padding-left: 16px;
  border-left: 4px solid #235789;
  font-style: italic;
  color: #235789;
  background: #f5faff;
}

/* 3. LAYOUT CONTAINERS */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FEFEFE;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px 0 rgba(33,44,55,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(33,44,55,0.11);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px 16px 20px;
}
@media (max-width: 768px) {
  .card-container {
    gap: 14px;
  }
  .card {
    margin-bottom: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f7f9fa;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(33,44,55,0.07);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card blockquote {
  color: #235789;
  background: transparent;
  border-left: 4px solid #F1D302;
  font-size: 1.1rem;
}
.testimonial-card p strong {
  color: #235789;
  font-weight: 600;
}

/* ACCORDING TO spacing/alignment rules for testimonials and review sections */
.testimonial-card p,
.testimonial-card blockquote { margin-bottom: 0; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 4. HEADER & MAIN NAVIGATION */
header {
  background: #FEFEFE;
  border-bottom: 1px solid #EAEDF3;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
header nav > a img {
  height: 41px;
}
@media (max-width: 600px) {
  header nav > a img { height: 32px; }
}
header nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
}
header nav ul li a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 4px;
  border-radius: 6px;
  color: #275a8a;
  transition: background 0.14s, color 0.14s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #F1D302;
  color: #235789;
}
.btn-primary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: #235789;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 3px 14px 0 rgba(41,51,69,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1b3f60;
  color: #F1D302;
  outline: none;
  box-shadow: 0 7px 22px 0 rgba(41,51,69,0.17);
}

/* 5. MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  z-index: 120;
  top: 20px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: #FEFEFE;
  border: 1.5px solid #D2DFEF;
  border-radius: 12px;
  color: #235789;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: #F1D302;
  color: #235789;
}
@media (max-width: 1000px) {
  header nav ul,
  header nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  z-index: 250;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 30px rgba(41,51,69,0.11);
  transform: translateX(-100vw);
  transition: transform .36s cubic-bezier(.85,.11,.22,1);
  padding: 32px 16px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform .25s cubic-bezier(.92,.05,.6,1.05);
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  color: #235789;
  font-size: 2.1rem;
  align-self: flex-end;
  padding: 8px 12px 2px 12px;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F1D302;
  background: #f4f8f9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #235789;
  padding: 13px 0 13px 0;
  border-radius: 9px;
  transition: background .14s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1D302;
  color: #235789;
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* 6. MAIN LAYOUTS & SECTION SPACING */
main {
  flex: 1 1 0;
  padding-bottom: 30px;
  background: #FEFEFE;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FEFEFE;
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 rgba(41,51,69,0.05);
  margin-top: 0;
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
}

/* 7. FOOTER */
footer {
  background: #F8FAFC;
  padding: 42px 0 18px 0;
  border-top: 1px solid #e5eff5;
}
footer .container {
  display: flex;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
footer nav {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 6px;
}
footer nav a {
  color: #235789;
  font-weight: 500;
  transition: color 0.13s;
  padding: 3px 3px;
  border-radius: 4px;
}
footer nav a:hover, footer nav a:focus {
  background: #F1D302;
  color: #235789;
}
footer img {
  align-self: center;
  height: 36px;
}
footer p {
  color: #888;
  font-size: 0.98rem;
  padding: 6px 0 0 0;
}

/* 8. CARDS & LISTS & MISC */
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.7;
}
ul li strong {
  color: #235789;
  font-weight: 600;
}
.card em { color: #F1D302; font-weight: 700; }

/* Social media nav (contact page) */
.content-wrapper nav a img {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  border-radius: 8px;
  background: #e4f1fc;
  padding: 7px;
  transition: box-shadow .18s;
}
.content-wrapper nav a:hover img, .content-wrapper nav a:focus img {
  background: #F1D302;
  box-shadow: 0 6px 16px rgba(35,87,137,.15);
}
@media (max-width: 768px) {
  .content-wrapper nav a img {
    width: 32px; height: 32px; margin-right: 10px;
  }
}

/* 9. FORMS & BUTTONS STYLE (for future extensibility) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d7e4f2;
  padding: 10px 13px;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: #235789;
}

/* 10. COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: rgba(255,255,255,0.96);
  border-top: 2px solid #f1d302;
  box-shadow: 0 -2px 28px 0 rgba(40,50,59,.16);
  padding: 25px 14px 20px 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 28px;
  transition: transform .27s, opacity .21s;
}
.cookie-banner.hide-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: transform .22s, opacity .19s;
}
.cookie-banner-content {
  color: #222;
  font-size: 1.03rem;
  flex: 1 1 auto;
  max-width: 760px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  border: none;
  outline: none;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  border-radius: 6px;
  font-weight: 500;
  padding: 12px 18px;
  background: #235789;
  color: #fff;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1b3f60;
  color: #F1D302;
}
.cookie-btn.secondary {
  background: #F1D302;
  color: #235789;
  font-weight: 600;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #235789;
  color: #F1D302;
}
.cookie-btn.textonly {
  background: transparent;
  color: #235789;
  padding: 10px 2px;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 16px 3vw 10px 3vw;
    font-size: 0.92rem;
  }
  .cookie-actions {
    gap: 8px;
    flex-direction: column;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(13,20,32,0.61);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity .22s cubic-bezier(.68,.13,.36,1);
  opacity: 1;
}
.cookie-modal.hide-modal {
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 44px 0 rgba(40,50,59,.15);
  max-width: 430px;
  width: 94vw;
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookie-modal-fadein .25s;
}
@keyframes cookie-modal-fadein {
  from { transform: translateY(85px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  font-size: 2rem;
  color: #235789;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F1D302;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 4px;
  color: #235789;
  font-weight: 700;
}
.cookie-pref-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e9eaea;
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.cookie-pref-row strong {
  color: #235789;
  font-weight: 600;
  font-size: 1.08rem;
}
.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  width: 0; height: 0; opacity: 0; position: absolute;
}
.cookie-switch label {
  display: inline-block;
  width: 42px; height: 24px;
  background: #ddedfb;
  border-radius: 22px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-switch input[type="checkbox"]:checked + label {
  background: #235789;
}
.cookie-switch label::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 4px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px 0 rgba(41,51,69,0.08);
  transition: left .17s;
}
.cookie-switch input[type="checkbox"]:checked + label::after {
  left: 20px;
}
.cookie-switch input[disabled]+label {
  opacity: 0.45;
  cursor: not-allowed;
  background: #dde5ec;
}
/* End Cookie Modal */

/* 11. ANIMATIONS & MICRO-INTERACTIONS */
.btn-primary, .cookie-btn {
  transition-property: background, color, box-shadow, transform;
  transition-duration: 0.16s, 0.15s, 0.20s, 0.11s;
}
.testimonial-card {
  transition: box-shadow 0.16s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(35,87,137,0.13);
  transform: translateY(-4px) scale(1.028);
}
.nav a, .btn-primary, .cookie-btn {
  transition-timing-function: cubic-bezier(.59,.01,.16,1.09);
}

/* 12. RESPONSIVE FLEX ADJUSTMENTS */
@media (max-width: 860px) {
  .container { padding: 0 4vw; }
}
@media (max-width: 600px) {
  .container { padding: 0 2vw; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 520px) {
  .footer nav { flex-direction: column; gap: 8px; font-size: 0.95rem; }
  .content-wrapper { gap: 12px; }
}

/* 13. ACCESSIBILITY FOCUS */
a:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid #F1D302;
  outline-offset: 1.8px;
  box-shadow: 0 0 0 3px #fffbab6a;
}

/* == END == */