/* =========================================================
   Typsnitt
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Lora:wght@400;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --xpc-orange: #f26b0f;
    --xpc-blue:   #1E3A8A;
    --xpc-text:   #374151;
    --xpc-bg:     #f8fafc;
}

/* =========================================================
   Grundinställningar
   ========================================================= */
body {
    font-family: 'Lora', serif;
    background-color: #f0f0f0;
    color: var(--xpc-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Bootstrap-container + egen layout */
.container {
    flex: 1;
    max-width: 1200px;   /* begränsa bredd på stora skärmar */
}

/* =========================================================
   Rubriker
   ========================================================= */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--xpc-blue);
    font-weight: 500;
    margin-top: 0;
}

h1 {
    font-size: 2.2rem;          /* ca 35px */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.6rem;          /* ca 26px */
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;          /* ca 19px */
    margin-bottom: 0.75rem;
}

/* rubriker i vissa sektioner kan vara lite mer kompakta */
.container h3,
.checklist h3,
.pres-text h3 {
    font-size: 1.2rem;
}

/* =========================================================
   Brödtext
   ========================================================= */
p {
    font-family: 'Lora', serif;
    font-size: 1rem;            /* ca 16px */
    color: var(--xpc-text);
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* =========================================================
   Specifik text: Description & Presentation
   ========================================================= */

/* Kort intro bredvid bilden */
.desc-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;      /* ca 19px */
    line-height: 1.7;
    color: #003366;
    letter-spacing: 0.04em; /* lite extra luft mellan bokstäverna */
}

/* Längre presentationsdel */
.pres-text,
.pres-text * {
    font-family: 'Lora', serif !important;
    font-size: 1.05rem !important;  /* ca 17px */
    line-height: 1.7 !important;
    color: #003366 !important;
}

/* Smalare textkolumn på desktop – bokkänsla */
@media (min-width: 992px) {
    .pres-text {
        max-width: 36rem;  /* ~580–600 px */
    }
}

/* =========================================================
   Navigationsmeny
   ========================================================= */
nav {
    background-color: var(--xpc-blue);
    padding: 10px 0;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 400;
    padding: 10px 15px;
}

nav a:hover {
    color: #FACC15;
}

/* =========================================================
   Knappar
   ========================================================= */
button,
.btn {
    background-color: #16A34A;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
}

button:hover,
.btn:hover {
    background-color: #12823E;
}

/* Primärknapp (profil, formulär mm) – orange */
.btn-primary {
    background-color: #FFA500 !important;
    border-color: #FFA500 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: #e69500 !important;
    border-color: #e69500 !important;
}

/* Specifik profil-knapp */
.custom-profile-btn {
    background-color: #FFA500;
    border-color: #FFA500;
    color: #fff;
}

.custom-profile-btn:hover {
    background-color: #e69500;
    border-color: #e69500;
    color: #fff;
}

/* =========================================================
   Formulär – generellt
   ========================================================= */
form {
    max-width: 600px;
    margin: 0 auto;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Lora', serif;
}

/* Layout för tre kolumner i formulär (t.ex. på andra sidor) */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.form-column {
    flex: 0 0 30%;
    box-sizing: border-box;
}

/* =========================================================
   Frågekortet på profilsidan
   ========================================================= */
.question-card {
    margin-top: 1.5rem;
    max-width: 520px;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    background-color: #ffffff;
    border: 1px solid var(--xpc-orange);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.question-card h5 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.question-card p {
    margin-bottom: 0.75rem;
}

.question-input,
.question-textarea {
    border: 1px solid var(--xpc-orange);
    border-radius: 0.4rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
    font-size: 1rem;
    font-family: 'Lora', serif;
}

.question-textarea {
    min-height: 130px;
    resize: vertical;
}

.question-input:focus,
.question-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(242, 107, 15, 0.25);
}

/* =========================================================
   Cards – föreläsarkort på startsidan
   ========================================================= */
.card {
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;                 /* barn följer radien */
    height: 100%;                     /* fyller kolumnen */
    display: flex;
    flex-direction: column;
    align-items: center;              /* centrera horisontellt */
    cursor: pointer;
}

.card-img-top {
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.card-body {
    text-align: left;
    padding: 1rem;
    flex: 1;                          /* fyll höjd */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.card-title {
    margin: .5rem 0 0;
    font-weight: 600;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;            /* tre rader text */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* tags/filterchips om du använder dem */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}

.card-tags .chip {
    padding: .2rem .5rem;
    border-radius: 999px;
    font-size: .85rem;
    background: #eef2ff;
}

/* rad-gaps i Bootstrap-rader */
.row {
    row-gap: 30px;
}

/* =========================================================
   Ljusblå sektion (startsida)
   ========================================================= */
.blue-section {
    background-color: #93C5FD;
    padding: 50px 0;
    text-align: center;
    color: var(--xpc-blue);
}

/* =========================================================
   Hero-sektion (startsida)
   ========================================================= */
.hero-image {
    position: relative;
    width: 100%;
    height: 90vh;
    background: url('img/talare.jpeg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Om du använder .hero som klass (t.ex. annan sida) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
                                rgba(0, 0, 0, 0.6),
                                rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 80%;
    margin: 0 auto 1rem;
}

.hero-subtext {
    position: relative;
    z-index: 2;
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 70%;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    color: white;
}

.hero-cta .btn {
    position: relative;
    z-index: 2;
    display: inline-block;
    background-color: #FACC15;
    color: #1E3A8A;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s ease-in-out;
}

.hero-cta .btn:hover {
    background-color: #FBBF24;
    color: #1E40AF;
}

/* =========================================================
   Bilder
   ========================================================= */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 500px;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Profilbild */
.custom-img {
    width: 500px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================================
   Listor & ikoner i sidokolumn
   ========================================================= */
.checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.checklist li::before {
    content: "✓";
    color: green;
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
}

.trophy-list {
    list-style: none;
    padding-left: 0;
}

.trophy-list li::before {
    content: "🏆";
    margin-right: 8px;
    font-size: 0.75em;      /* ca 25% mindre */
    vertical-align: middle;
}

.emoji-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.emoji-list.star li::before {
    content: "⭐️";
    margin-right: 8px;
    font-size: 0.75em;
    vertical-align: middle;
}

.emoji-list.finger li::before {
    content: "👌";
    margin-right: 8px;
    font-size: 0.75em;
    vertical-align: middle;
}

.emoji-list.link li::before {
    content: "🔗";
    margin-right: 8px;
    font-size: 0.75em;
    vertical-align: middle;
}

.emoji-list.ok li::before {
    content: "👌";
}

/* Sociala ikoner under listorna */
.social-icons {
  margin-bottom: 1cm;
}

@media (max-width: 768px) {
  .social-icons {
    margin-bottom: 20px;
  }
}

/* =========================================================
   Länkar
   ========================================================= */
a,
a:link,
a:visited {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Speciallänk med pseudo-element ("Läs mer") */
.more-link::after {
  text-decoration: none;
}

.more-link:hover::after,
.more-link:focus::after {
  text-decoration: underline;
}

/* =========================================================
   Filter-chips / CTA-bar (om du använder dem)
   ========================================================= */
.filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem 1rem;
  scroll-snap-type: x proximity;
}

.filters .chip {
  scroll-snap-align: start;
  white-space: nowrap;
}

.profile-cta {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.profile-cta .btn {
  flex: 1;
}

/* =========================================================
   Diverse layoutjusteringar / sidokolumn
   ========================================================= */
.row.align-items-start {
    display: flex;
    align-items: flex-start;
}

.col-md-8 {
    display: flex;
    align-items: flex-start;
}

/* Delbar sidokolumn med tunna kort (om du vill använda) */
.info-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.info-block h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Kolumnen "Talaren föreläser om" kan göras något lättare */
.topics-column {
    font-size: 0.95rem;
    line-height: 1.6;
}

.topics-column ul {
    padding-left: 1.1rem;
}

/* Liten divider mellan presentation och sidokolumn på desktop */
@media (min-width: 992px) {
    .profile-aside {
        border-left: 1px solid #e5e7eb;
        padding-left: 2rem;
    }
}

/* =========================================================
   Responsivitet
   ========================================================= */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-column {
        flex: 1 0 100%;
    }

    nav a {
        display: block;
        text-align: center;
    }

    .blue-section .row {
        flex-direction: column;
    }

    .card {
        margin-bottom: 20px;
    }

    .custom-img {
        width: 100%;
    }

    .hero-text {
        font-size: 2rem;
        max-width: 90%;
    }

    .hero-subtext {
        font-size: 1rem;
        max-width: 85%;
    }

    .hero-cta .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }


.card {
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    width: 100%;
    height: 500px;      /* eller t.ex. 260px om du vill ha lägre kort */
    object-fit: cover;
}




    
}
/* =========================
   Startsidans talarkort
   ========================= */

.home-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.home-card-img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.home-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.85rem 0.85rem 1rem 0.85rem;
}

.home-card-title {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    margin-bottom: 0.45rem;
}

.home-card-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
    color: #444;
}

.home-card-btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 4px;
}