/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL BODY FÖR MÖRKT TEMA SOM STANDARD */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #e0e0e0; /* Ljus standardtextfärg */
    background-color: #0d0d0d; /* Mörk standardbakgrund */
    padding-top: 70px; /* Global padding-top för fixed header */
}

.container {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto; 
}

header .container { /* Gäller vanliga headern */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-team { 
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit; 
}

ul {
    list-style: none;
}

/* Header Styles (Standard header) */
header {
    background-color: #111;
    color: #f4f4f4;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}
/* ... (resten av standard header-stilar som tidigare) ... */
header .logo a { font-weight: bold; font-size: 1.1rem; color: #f4f4f4; }
header nav ul { display: flex; align-items: center; }
header nav ul li { margin-left: 15px; }
header nav ul li:first-child { margin-left: 0; }
header nav ul li a { padding: 0.5rem; transition: color 0.3s ease; font-size: 0.9rem; color: #f4f4f4; }
header nav ul li a:hover,
header nav ul li a.active { color: #fff; font-weight: bold; }
header nav ul li .separator { color: #555; margin: 0 5px; font-size: 1.2rem; line-height: 1; }


/* Hero Section Styles (index.html) - Updated for compact layout */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff; 
    padding: 60px 20px 40px; 
    min-height: 80vh;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content h1 { 
    font-size: 3.2rem; 
    font-weight: 900; 
    margin-bottom: 0.8rem; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    line-height: 1.1;
}

.hero-content h2 { 
    font-size: 1.8rem; 
    font-weight: 700; 
    margin-bottom: 1.2rem; 
    letter-spacing: 0.5px; 
    text-transform: uppercase; 
    line-height: 1.2;
}

.hero-content h3 { 
    font-size: 1.3rem; 
    font-weight: 400; 
    margin-bottom: 1.8rem; 
    line-height: 1.3;
}

.mission-points { 
    display: inline-block; 
    text-align: left; 
    margin-top: 0.5rem; 
    max-width: 900px;
}

.mission-points li { 
    margin-bottom: 0.6rem; 
    font-size: 0.95rem; 
    padding-left: 20px; 
    position: relative; 
    line-height: 1.4; 
}

.mission-points li::before { 
    content: '•'; 
    position: absolute; 
    left: 0px; 
    top: 0px; 
    color: #fff; 
    font-size: 1.2em; 
    line-height: 1; 
}

#hero h1, #hero h2, #hero h3, #hero .mission-points li { color: #fff; }


/* Team Section Styles */
#team {
    /* ... (dina team-stilar som tidigare, de är redan anpassade för mörk bakgrund) ... */
    background-color: #0d0d0d; 
    color: #e0e0e0; 
    padding: 80px 0;
    text-align: center;
}
.section-title h2 { font-size: 2.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; color: #fff; }
.section-title p { font-size: 1.1rem; color: #aaa; margin-bottom: 60px; }
.team-members { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.team-member-card { padding: 25px; max-width: 300px; width: 100%; text-align: left; margin-bottom: 20px; }
.team-photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 25px auto; display: block; border: 4px solid #282828; }
.team-member-card h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; text-align: center; }
.member-description { font-size: 0.95rem; color: #bbb; margin-bottom: 25px; line-height: 1.6; text-align: center; }


/* Button Styles (Anpassade för globalt mörkt tema) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #555; 
    color: #fff; 
    border: 2px solid #777; 
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}
.btn:hover { background-color: #777; border-color: #999; }
.btn-outline { 
    background-color: transparent;
    color: #ccc;
    border-color: #555;
    display: block; margin: 0 auto; width: fit-content;
}
.btn-outline:hover { background-color: #333; color: #fff; border-color: #444; }


/* Footer Styles */
footer {
    /* ... (dina footer-stilar som tidigare, de är redan anpassade för mörk bakgrund) ... */
    background-color: #0d0d0d;
    color: #a0a0a0;
    padding: 50px 0 30px 0;
    text-align: center; 
}
.footer-divider { border: 0; height: 1px; background-color: #333; margin: 0 auto 40px auto; width: 90%; max-width: 1000px; }
.footer-content h4 { font-size: 1.3rem; color: #fff; margin-bottom: 15px; font-weight: 700; }
.footer-content .contact-name { font-size: 1.05rem; color: #ccc; margin-bottom: 8px; font-weight: bold; }
.footer-content .contact-email a { color: #ccc; text-decoration: none; font-size: 0.95rem; }
.footer-content .contact-email a:hover { text-decoration: underline; color: #fff; }
.social-icons { margin: 25px 0; }
.social-icons a { color: #ccc; font-size: 1.4rem; margin: 0 12px; transition: color 0.3s ease; }
.social-icons a:hover { color: #fff; }
.copyright { font-size: 0.85rem; color: #777; margin-top: 25px; }


/* Navigation Submenu Styles */
header nav ul li.has-submenu { position: relative; }
header nav ul li .submenu { display: none; position: absolute; top: 100%; left: 0; background-color: #222; border: 1px solid #444; border-top: none; list-style: none; padding: 0; margin: 0; min-width: 200px; z-index: 1001; box-shadow: 0 4px 8px rgba(0,0,0,0.3); border-radius: 0 0 4px 4px; }
header nav ul li.has-submenu:hover > .submenu { display: block; }
header nav ul li .submenu li { margin-left: 0; width: 100%; }
header nav ul li .submenu li a { display: block; padding: 10px 15px; color: #ccc; font-size: 0.85rem; white-space: nowrap; text-decoration: none; border-bottom: 1px solid #383838; }
header nav ul li .submenu li:last-child a { border-bottom: none; }
header nav ul li .submenu li a:hover { background-color: #333; color: #fff; }


/* Kurssektion Stilar */
#courses-section {
    /* ... (dina kurssektions-stilar som tidigare, anpassade för mörkt tema) ... */
    padding: 40px 0; 
}
.courses-section-title { text-align: center; font-size: 2.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 50px; color: #ffffff; }
.course-row { display: flex; flex-wrap: wrap; margin-bottom: 40px; gap: 30px; align-items: stretch; }
.course-row:last-child { margin-bottom: 0; }
.course-column { flex: 1; min-width: 300px; display: flex; flex-direction: column; }
.placeholder-box { border: 2px solid #555; border-radius: 15px; padding: 20px; text-align: center; font-weight: bold; display: flex; flex-direction: column; justify-content: center; align-items: center; flex-grow: 1; min-height: 250px; background-color: #1a1a1a; color: #e0e0e0; width: 100%; box-sizing: border-box; font-size: 1.2em; }
.image-box img { max-width: 100%; height: auto; display: block; border-radius: 12px; object-fit: cover; width: 100%; height: 100%; }
.video-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 2px solid #555; border-radius: 15px; background-color: #000; width: 100%; box-sizing: border-box; flex-grow: 1; }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 13px; }
.text-content-column { display: flex; flex-direction: column; justify-content: center; padding: 20px; background-color: #1f1f1f; border-radius: 15px; flex-grow: 1;}
.text-content-column h3 { font-size: 1.5rem; color: #ffffff; margin-bottom: 15px; }
.text-content-column p { font-size: 1rem; color: #cccccc; line-height: 1.6; margin-bottom: 10px; }


/* ============================ */
/* Portfolio Page Specific Styles */
/* ============================ */
/* Justera padding-top för body på portfoliosidan om portfolio-headern har annan höjd än standardheadern */
/* Om portfolio-headern är högre, kan du behöva en specifik body-klass för portfoliosidan för att justera padding-top,
   eller se till att .portfolio-page-content har tillräckligt med padding-top.
   För nu antar vi att den globala body padding-top är ok eller att .portfolio-page-content hanterar det.
*/

header.portfolio-header {
    background-color: #0d0d0d; /* Matchar body-bakgrunden */
    color: #f4f4f4;
    position: fixed; /* Behåll fixed position */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Se till att den är överst */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Lite skugga för djup */
}

header.portfolio-header .nav-container {
    display: flex;
    justify-content: center; /* Centrera nav-elementen */
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem; /* Samma som standardheader */
    width: 100%; /* Ta full bredd */
    max-width: none; /* Åsidosätt eventuell .container max-width */
}
header.portfolio-header .nav-container nav {
    width: 90%; /* Begränsa nav-bredden inuti .nav-container */
    max-width: 1200px; /* Eller din föredragna max-bredd */
    display: flex; 
    justify-content: center;
}
/* Ärver nav ul li stilar från standardheader, vilket bör vara ok */
header.portfolio-header nav ul li a.active { /* Specifik aktiv-stil för portfolio-nav */
    color: #fff;
    font-weight: bold;
}


.page-main-title {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #333;
    background-color: #111; /* Mörk bakgrund för denna del av headern */
}
.page-main-title h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff; /* Ljus text */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.portfolio-page-content {
    padding-top: 140px; /* Justera detta baserat på den faktiska höjden av .portfolio-header */
    min-height: calc(100vh - 200px); /* Exempel, justera efter behov */
}

#portfolio-gallery-section {
    padding: 30px 0 60px 0;
}

.container-portfolio { /* Används för att centrera galleriinnehållet */
    width: 90%;
    max-width: 1600px; /* Kan vara bredare för portfolio */
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-title-style { /* Används av .section-title i portfolio */
    text-align: center;
    margin-bottom: 30px;
}
.portfolio-title-style h2 { /* Ärver från .section-title h2, bör vara #fff */
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: bold;
}
.portfolio-title-style p { /* Ärver från .section-title p, bör vara #aaa */
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Justerad minmax för bildstorlek */
    gap: 25px; /* Lite mer mellanrum */
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px; /* Lite mjukare rundning */
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); /* Tydligare skugga på mörk bakgrund */
    line-height: 0; /* Viktigt för att img inte ska få extra utrymme under sig */
    background-color: #181818; /* Lätt bakgrund för varje item om bilden inte täcker helt */
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%; /* VIKTIGT: Fyller .gallery-item i bredd */
    height: auto;  /* VIKTIGT: Behåller bildens proportioner */
    display: block; /* Tar bort eventuellt extra utrymme under bilden */
    border-radius: 6px; /* Matchar .gallery-item */
    transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Lite större zoom vid hover */
    filter: brightness(0.75); /* Mörkar ner lite mer vid hover */
}


/* Responsiva justeringar */
@media (max-width: 768px) {
    body {
         padding-top: 0; /* Ta bort global padding om portfolio-header hanterar det själv */
    }
    header:not(.portfolio-header) .container { /* Gäller bara standardheadern */
        flex-direction: column;
        padding-bottom: 0.5rem;
    }
    header:not(.portfolio-header) nav { margin-top: 0.5rem; margin-bottom: 0.5rem; }
    
    /* Hero section mobile adjustments */
    .hero-content h1 { 
        font-size: 2.5rem; 
        margin-bottom: 0.6rem;
    }
    .hero-content h2 { 
        font-size: 1.4rem; 
        margin-bottom: 1rem;
    }
    .hero-content h3 { 
        font-size: 1.1rem; 
        margin-bottom: 1.5rem;
    }
    .mission-points li { 
        font-size: 0.9rem; 
        margin-bottom: 0.5rem;
    }

    header.portfolio-header .nav-container nav ul { /* För portfolio-headern på mobil */
        flex-direction: column;
        align-items: center;
    }
     header.portfolio-header .nav-container nav ul li {
        margin: 8px 0;
    }
     header.portfolio-header .nav-container nav ul li .separator {
        display: none;
    }

    .portfolio-page-content {
        padding-top: 180px; /* Kan behöva justeras om portfolio-headern blir högre på mobil */
    }
    .page-main-title h1 { font-size: 1.4rem; }
    .portfolio-title-style h2 { font-size: 1.6rem; }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { 
        font-size: 2rem; 
        margin-bottom: 0.5rem;
    }
    .hero-content h2 { 
        font-size: 1.2rem; 
        margin-bottom: 0.8rem;
    }
    .hero-content h3 { 
        font-size: 1rem; 
        margin-bottom: 1.2rem;
    }
    .mission-points li { 
        font-size: 0.85rem; 
        padding-left: 18px;
    }
    
    .portfolio-page-content {
        padding-top: 160px; /* Justera efter behov */
    }
    .page-main-title h1 { font-size: 1.3rem; }
    .gallery-grid {
        grid-template-columns: 1fr; /* En kolumn på de allra minsta skärmarna */
        gap: 20px;
    }
}

/* BIO sidor */
.journal-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 3cm;
}

.journal-page-header {
     text-align: center; 
    margin-bottom: 2rem;
}

.journal-page p {
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
    
}
 .team-photo {
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    margin: 1rem auto;     /* Centrerar bilden horisontellt */
    display: block;     /* Behövs för att margin: auto ska fungera */
}


 .social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #007bff; /* Eller vilken färg du föredrar */
}

/* Specifika färger för varje plattform vid hover */
.social-icons a:hover .fa-x-twitter {
    color: #000;
}

.social-icons a:hover .fa-instagram {
    color: #E4405F;
}

.social-icons a:hover .fa-facebook-f {
    color: #1877F2;
}

.social-icons a:hover .fa-youtube {
    color: #FF0000;
}
