/*
Theme Name: Taipansheaven
Author: Taipan
Description: This is a pitch perfect theme
Version: 1.0
Text Domain: bravoecho
*/
.top-ad-wrapper {
	margin: auto;
	text-align: center;
	margin-bottom: 20px;
}
.top-ad-label {
	padding-bottom: 10px;
	display: block;
	text-transform: uppercase;
}
.top-ad-holder {
	margin: 0px auto 0px auto;
	max-width: 1200px;
}
.admin-ad-box {
	background: red;
	height: 100px;
	width: 100%;
}
body {
  margin: 0;

  background-color: #f9f9f9;
  color: #222;
}
body {
  overflow-x: hidden;
}
/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background: #ebebeb;
}
body.no-scroll {
  overflow: hidden;
}
.site-footer {
  background-color: #0c5460;
  color: white;
  padding: 2rem;
  text-align: center;
}
/* NEW DESIGN */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 14px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.pagination .page-numbers:hover {
    background-color: #ddd;
}

.pagination .current {
    background-color: #0c5460;
    color: #fff;
    font-weight: 700;
}

.pagination .dots {
    background: none;
    color: #999;
    padding: 8px 0;
    pointer-events: none;
}

.main-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto auto 20px auto;
}
.main-container .section-holder:last-of-type {
	margin-bottom: 0px;
}

.main-content {
    flex: 1;
    
}

.sidebar-right {
    width: 300px;
}
.section-header-holder h2, .section-header-holder h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0px;

}
.section-header-holder {
  padding: 15px 16px 11px;
  text-transform: uppercase;
  /* border-top: 2px solid #0c5460; */

}
.section-holder {
    margin: 0px 0px 20px 0px;
}

.section-image-holder {
    height: 300px;
    overflow: hidden;
}

.section-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-list-item {
  background: white;
  padding: 20px;
}
.article-list-item a {
  color: black;
  text-decoration: none;
}
.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.article-link:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Style title to look like the link */
.section-box-heading {
    color: black;
    
    font-weight: bold;
    margin-bottom: 8px;
}

.section-box-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}
.section-box-content, .article-box-content {
  background: white;
  padding: 20px 20px;
}
.section-box-content p:first-of-type {
  margin-top: 0px;
}
.section-box-content p:last-of-type {
  margin-bottom: 0px;
}
.article-box-content h1 {
margin: 0px;
}
.article-box-content .meta {
  margin-top: 0px;
  font-size: 13px;
}
.job-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
}
.job-card-inner-heading {
  margin: 0px;
  font-size: 16px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
}
.job-card-inner p {
  margin: 0px;
}
.job-info {
    flex: 1 1 auto;
    min-width: 200px;
}

.job-action {
    flex-shrink: 0;
}

.read-more-button {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.footer-menus {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-menu {
    flex: 1 1 200px;
    text-align: left;
    color: white;
}
.footer-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.footer-menu-list a {
  color: white;
  text-decoration: none;
}
.footer-menu-list li {
    margin-bottom: 8px;
}

/* END NEW DESIGN */
.site-footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.site-footer small {
  display: block;
  margin-top: 1rem;
  color: #aaa;
}
/* Admin Meta Box */
#last_application_date_field {
  margin-top: 1rem;
  max-width: 300px;
}
/* Navigation */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-bottom: 20px;
  background-color: white;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 12;
  border-bottom: 3px solid #0c5460;
}

.site-logo img {
  max-height: 50px;
}

/* Make the UL flex, not just .main-menu */
.main-menu ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Remove list styling */
.main-menu li {
  list-style: none;
}

/* Style the links inside the menu */
.main-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #111;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #333;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: white;
  padding: 0px 2rem 2rem 2rem;
  z-index: 999;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav .close-nav {
  align-self: flex-end;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 2rem;
}
.close-nav {
	font-size: 20px;
	color: black;
}

.mobile-nav a {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}

.container {

  padding: 20px;
}
.container-job-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0px;
}
.container-job-content {
  
}
.job-meta {
	list-style: none;
	margin: 0px;
	padding: 0px;
}
.job-meta li {
	display: inline;
}
.job-meta li::after {
	content: " | ";
}

.sub-hero {

    border-color: none;
	padding: 40px;
	text-align: center;
	color: white;
	border-radius: 25px;
}
.sub-hero h1 {
	font-size: 2.3rem;

}
.sub-hero p {
	font-size: 1.5rem;
	color: #0c5460;
	margin-top: -20px;
}
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #111;
}

p {
  line-height: 1.6;
  margin-bottom: 1em;
}

.btn, button.btn {
  display: inline-block;
  padding: 15px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
    appearance: none;
  -webkit-appearance: none;
}

/* Hero */
.hero {
    background-color: #d1ecf1;
    border-color: #bee5eb;;
  padding: 6rem 0;
  text-align: center;

}

.hero h1 {
	color: #0c5460;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
		color: #0c5460;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* About & Features */
.about,
.feature {
  background-color: #fff;
  padding: 4rem 0;
}

.feature.reverse .row {
  flex-direction: row-reverse;
}

.apply-button-padding-top {
	padding-top: 2rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.row .text, .row .image {
  flex: 1;
  min-width: 300px;
}

.row img {
  width: 100%;
  border-radius: 10px;
}

/* Archive Posts */
.archive-posts .grid,
.related-posts .grid,
.job-listings .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card, .job-card {
  background: white;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}
.post-card, .job-card a {
	text-decoration: none;

}

.post-card:hover,
.job-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.post-card h2, .job-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.read-more {
  color: #0c5460;
  font-weight: 600;
}

/* Single Post */
.single-post-header,
.job-detail-header {
  background-color: #f1f1f1;
  padding: 3rem 0;
}

.featured-image img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* Application Form */
.application-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.application-form input,
.application-form textarea,
.application-form select {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.application-form select[multiple] {
  height: auto;
  min-height: 100px;
}

.application-form label {
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #0c5460;
}

.breadcrumbs a {
  color: #0c5460;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Thank You Page */
/*
.thank-you {
  background-color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}

.thank-you h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.thank-you p {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}
*/
/* Chosen.js Styling */
.chosen-container {
  width: 100% !important;
}

.chosen-container-multi .chosen-choices {
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 5px;
  min-height: 42px;
  background: white;
}

.chosen-container .chosen-results li.highlighted {
  background: #0057b7;
  color: white;
}
/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
  	display: block;
  }
  .sidebar-right {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn {
    text-align: center;
  }

  .container {
    padding: 1.5rem 0rem;
  }

  .archive-posts .grid,
  .related-posts .grid,
  .job-listings .grid {
    grid-template-columns: 1fr;
    background-color: white;
  }
  .main-menu {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  list-style: none;
}

.mobile-nav a {
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}
}

@media (max-width: 480px) {
	.section-box-content, .article-box-content {
		padding: 10px;
	}
  .hero {
    padding: 4rem 1rem;
  }

  .application-form input,
  .application-form textarea,
  .application-form select {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .thank-you h1 {
    font-size: 2rem;
  }

  .thank-you p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .main-menu {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.mobile-nav li {
  list-style: none;
}

.mobile-nav a {
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}
}

/* THANK YOU PAGE */
/* Grundläggande Tank-sida/Header */
.thank-you-header {
    background-color: #f7f7f7; /* Ljus bakgrund för att skilja från kurssektionen */
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 2px solid #eeeeee;
}

.thank-you-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.thank-you-subtext {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    color: #666;
}
/* Kurssektion - Huvudfokus */
.course-spotlight {
    padding: 15px;
    text-align: center;
    background-color: #ffffff;
}

.course-spotlight h2 {
    font-size: 2.2rem;
    color: #007bff; /* Stark färg för rubriken */
    margin-bottom: 0.5rem;
}

.course-intro {
    max-width: 800px;
    margin: 0.5rem auto 3rem auto;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Kursgaller (Två kort) */
.course-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Kurskort */
.course-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
    
    /* NYTT: Gör kortet till en flexibel container */
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px); /* Subtil hover-effekt */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.course-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.course-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    
    /* NYTT: Låter texten växa */
    flex-grow: 1;
}

/* Tagg för Nyhet/Bästsäljare */
.course-tag {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #ffc107; /* Gul för synlighet */
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.best-seller {
    background-color: #28a745; /* Grön för Bästsäljare */
    color: #ffffff;
}

/* Video Platshållare */
.video-placeholder {
    /* Ta bort gammal höjd och centrumjustering för att låta iframe ta över */
    background-color: transparent;
    height: 0; /* Måste vara 0 för responsivitet */
    /* De viktigaste reglerna för iframe-responsivitet */
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    max-width: 100%;
    
    /* Behåll styling för utseende */
    border-radius: 8px;
    color: #666;
    font-style: italic;
    
    /* Ta bort de gamla flex-reglerna som bara fungerade för platshållartext */
    display: block; 
    align-items: initial;
    justify-content: initial;
}
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Prisinformation */
.price-info {
	margin-top: 20px;
    margin-bottom: 1.5rem;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: black;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.new-price {
    display: block;
    color: #dc3545; /* Röd för att markera sparat pris */
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.2;
}

/* CTA-Knapp */
.btn-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #ff4500; /* Orange/Röd för att dra uppmärksamhet */
    color: white !important; /* !important kan behövas beroende på ditt befintliga CSS-ramverk */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-cta:hover {
    background-color: #e63900;
}

/* Liten länk tillbaka till jobb */
.back-link {
    display: block;
    margin-top: 2rem;
    color: #007bff;
    text-decoration: underline;
    font-size: 1rem;
}

/* Responsivitet */
@media (max-width: 992px) {
    .course-grid {
        flex-direction: column;
        align-items: center;
    }
    .course-card {
        max-width: 90%;
    }
}

/* CHECKOUT */
.checkout-page {
    padding: 15px;
    background-color: #f7f7f7;
}
.checkout-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.checkout-grid {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

/* Formulärkolumn */
.checkout-form-column {
    flex: 2;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half-width {
    flex: 1;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}
.form-checkbox label a {
    color: #007bff;
    text-decoration: none;
}

/* CTA-knapp */
.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background-color: #ff4500;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #e63900;
}

/* Laddningsindikator (Spinner) */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Felmeddelande */
.error-message {
    margin-top: 1rem;
    color: #dc3545;
    text-align: center;
    font-weight: bold;
}

/* Ordersammanfattning */
.order-summary-column {
    flex: 1;
    background: #e9ecef;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.order-summary-column h2 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.summary-total {
    font-weight: bold;
    border-top: 2px solid #333;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
}
.summary-total .total-value {
    color: #ff4500;
}

.security-note {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1.5rem;
}
    .title-show-desktop {
	    display: block;
    }
    .title-show-mobile {
	    display: none;
    }
/* Responsivitet */
@media (max-width: 768px) {
    .checkout-grid {
        flex-direction: column;
    }
    .order-summary-column {
        order: -1; /* Flytta sammanfattningen högst upp på mobilen */
    }
    .title-show-desktop {
	    display: none;
    }
    .title-show-mobile {
	    display: block;
    }
}