/* 
 * Simplineers Website Styles
 * Primary color: #6268DB
 * Secondary color: #F9F9F9
 * Text color: #1C1C1C
 *
 * Last updated: 2025-03-07
 */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.animate {
    animation: fadeInUp 0.5s ease forwards;
}

body {
    font-family: 'Lato', sans-serif;
    color: #1C1C1C;
    background-color: #F9F9F9;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

a {
    color: #6268DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a4fb3;
}

.cta-button {
    display: inline-block;
    background-color: #6268DB;
    color: #F9F9F9;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #4a4fb3;
    color: #F9F9F9;
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: #6268DB;
    border: 2px solid #6268DB;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.secondary-button:hover {
    background-color: #6268DB;
    color: #F9F9F9;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: #F9F9F9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

header .logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: #6268DB;
    margin-bottom: 0;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #1C1C1C;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #6268DB;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: #1C1C1C;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(98, 104, 219, 0.85), rgba(98, 104, 219, 0.7)), url('images/stockholm.jpg');
    background-size: cover;
    background-position: center;
    color: #F9F9F9;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 0; /* Ensures no gap with fixed header */
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Page Headers */
.page-header {
    background-color: #6268DB;
    color: #F9F9F9;
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #F9F9F9;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Overview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: #6268DB;
    margin-bottom: 20px;
}

/* About Preview */
.about-preview {
    background-color: #F0F2FF;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Training Preview */
.training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.training-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
}

.training-preview {
    text-align: center;
}

/* Course Details Page */
.course-details {
    padding: 60px 0;
}

.course-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.course-intro .lead {
    font-size: 1.3rem;
    color: #1C1C1C;
    margin-top: 20px;
}

.course-content {
    max-width: 800px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 20px;
    color: #1C1C1C;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: #6268DB;
    margin-right: 15px;
    font-size: 1.2rem;
    position: relative;
    top: 2px;
}

.course-icon i {
    font-size: 3.5rem;
    color: #6268DB;
}

/* Courses Overview */
.courses-overview {
    padding: 60px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    margin-bottom: 30px;
}

.course-card h3 {
    color: #1C1C1C;
    margin: 15px 0;
}

.course-description {
    margin-bottom: 20px;
    color: #1C1C1C;
}

.course-details {
    list-style: none;
    margin-bottom: 20px;
}

.course-details li {
    margin-bottom: 10px;
    color: #555;
}

.course-details li i {
    color: #6268DB;
    margin-right: 10px;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #1C1C1C;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f8f9fa;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 5px;
    color: #333;
}

.member-title {
    color: #6268DB;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.member-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.contact-link {
    color: #555;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.contact-link i {
    margin-right: 8px;
    color: #6268DB;
}

.contact-link:hover {
    color: #6268DB;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f2f6;
    color: #6268DB;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #6268DB;
    color: white;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 18px;
}

.social-link:last-child {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-item {
    text-align: left;
}

.expertise-item h3 {
    margin: 15px 0;
    color: #1C1C1C;
}

.expertise-item ul {
    padding-left: 20px;
}

.expertise-item ul li {
    margin-bottom: 10px;
    color: #1C1C1C;
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    padding: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    color: #1C1C1C;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author p {
    margin-bottom: 5px;
}

/* Contact Section */
.contact {
    background-color: #F0F2FF;
    text-align: center;
}

form {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* CTA Section */
.cta-section {
    background-color: #6268DB;
    color: #F9F9F9;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: #F9F9F9;
    margin-bottom: 20px;
}

.cta-section p {
    color: #F9F9F9;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background-color: #F9F9F9;
    color: #6268DB;
}

.cta-section .cta-button:hover {
    background-color: #ffffff;
    color: #4a4fb3;
}

/* Footer */
footer {
    background-color: #1C1C1C;
    color: #F9F9F9;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    text-align: left;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-contact p {
    color: #ddd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #6268DB;
}

.footer-contact i {
    margin-right: 10px;
    color: #6268DB;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: #1C1C1C;
    transition: all 0.3s ease;
}

/* Nyhetssektionen stilar */
.news-header {
    background-color: #6268DB;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.news-header h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

.news-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
}

.news-main {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.news-date, .news-author {
    display: flex;
    align-items: center;
}

.news-date i, .news-author i {
    margin-right: 5px;
}

.news-content h3 {
    margin: 0 0 15px;
    font-size: 1.3em;
    line-height: 1.4;
    color: #333;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    color: #6268DB;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Nyheter förhandsvisning på startsidan */
.news-preview {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.news-preview h2 {
    text-align: center;
    margin-bottom: 20px;
}

.news-preview > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.news-preview-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-preview-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-preview-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

.news-preview-title {
    margin: 0 0 15px;
    font-size: 1.3em;
    line-height: 1.4;
    color: #333;
}

.news-preview-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.news-preview .secondary-button {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
}

/* Media queries för responsivitet */
@media (max-width: 768px) {
    .news-grid, .news-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #F9F9F9;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Animation for hamburger to X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Overlay when menu is active */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    header, nav, footer, .cta-section, .cta-button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .expertise-grid,
    .course-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    nav {
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 160px 0 80px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .expertise-grid,
    .course-grid,
    .team-grid,
    .testimonial-slider,
    .training-cards {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button, 
    .secondary-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
