/* --- Globale Stile & Schriftarten --- */
/* Fonts are loaded via @font-face in template.php */

:root {
    --primary-color: #1a1a1a; /* Dunkles Grau für Text */
    --secondary-color: var(--revrebels-brand-turquoise);
    --revrebels-brand-purple: #62259e;
    --revrebels-brand-turquoise: #74ccd6; /* Heller Hintergrund */
    --accent-color: var(--revrebels-brand-purple);
    --white-color: #ffffff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Albert Sans', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    background-color: var(--white-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrap {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3 {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

section {
    padding: 60px 0;
}

/* --- Header & Navigation --- */
.navbar {
    background: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar .logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    filter: none;
    opacity: 1;
}

.navbar nav a {
    color: var(--revrebels-brand-purple);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
}

/* --- Mobile Navigation --- */
.mobile-menu-icon {
    display: none; /* Standardmäßig ausblenden */
    cursor: pointer;
}

.mobile-menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: var(--revrebels-brand-purple);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hamburger to X transformation */
.mobile-menu-icon.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-icon.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Startet außerhalb des Bildschirms */
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease-in-out;
}

.mobile-nav.active {
    left: 0; /* Fährt ins Bild */
}

.mobile-nav a, .mobile-nav h3 {
    color: var(--revrebels-brand-purple);
    text-decoration: none;
    font-size: 2rem;
    margin: 20px 0;
}

.mobile-nav h3 {
    color: var(--accent-color);
    border-top: 1px solid #eee;
    padding-top: 20px;
    width: 80%;
    text-align: center;
}

/* Responsive Breakpoint */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Desktop-Links ausblenden */
    }

    .mobile-menu-icon {
        display: block; /* Hamburger-Icon einblenden */
    }
}


/* --- Hero Section --- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #4F1C7A; /* Dunkleres Lila */
}

/* --- Hero Theme Variations --- */
.hero--default {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.hero--default h1,
.hero--default p {
    color: var(--white-color);
}

.hero--default .btn {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.hero--default .btn:hover {
    background-color: #4F1C7A;
}

.hero--purple-on-green {
    background-color: var(--revrebels-brand-turquoise);
    color: var(--revrebels-brand-purple);
}

.hero--purple-on-green h1,
.hero--purple-on-green p {
    color: var(--revrebels-brand-purple);
}

.hero--purple-on-green .btn {
    background-color: var(--revrebels-brand-purple);
    color: var(--white-color);
}

.hero--purple-on-green .btn:hover {
    background-color: #4F1C7A;
}

.hero--white-on-purple {
    background-color: var(--revrebels-brand-purple);
    color: var(--white-color);
}

.hero--white-on-purple h1,
.hero--white-on-purple p {
    color: var(--white-color) !important;
}

.hero--white-on-purple .btn {
    background-color: var(--revrebels-brand-turquoise);
    color: var(--revrebels-brand-purple);
}

.hero--white-on-purple .btn:hover {
    background-color: #5bb8c2;
}

/* --- Hero Services Grid (Flyer Design) --- */
.services-section {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.1;
    text-align: center;
}

.services-slider {
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    justify-content: center;
    min-width: 100%;
    flex-shrink: 0;
}

.service-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icons white for white-on-purple theme */
}

/* Adjust icon color for different themes */
.hero--default .service-icon-img {
    filter: brightness(0) invert(1); /* Make icons white for black theme */
}

.hero--purple-on-green .service-icon-img {
    filter: none; /* No filter needed - using purple icons */
}

/* Theme-specific colors for slider elements */
.hero--white-on-purple .services-title,
.hero--white-on-purple .service-title {
    color: var(--white-color);
}

.hero--default .services-title,
.hero--default .service-title {
    color: var(--white-color);
}

.hero--purple-on-green .services-title,
.hero--purple-on-green .service-title {
    color: var(--revrebels-brand-purple);
}

.service-content {
    /* flex: 1; */
} 

.service-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slider-btn {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: currentColor;
    color: var(--primary-color);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.slider-dot.active {
    opacity: 1;
}

.hero-cta {
    margin-top: 40px;
}

/* Mobile adjustments for services slider */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
        max-width: 100%;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .services-section {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .services-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .services-slider {
        margin-bottom: 40px;
    }
    
    .service-item {
        gap: 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
}

/* --- Sektionen Allgemein --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* --- Sektion: Unsere Leistungen --- */
#leistungen {
    background-color: var(--secondary-color);
}

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

.leistung-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.leistung-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.leistung-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.leistung-card ul li {
    margin-bottom: 10px;
}

.leistung-card .btn-secondary {
     background: transparent;
     color: var(--accent-color);
     border: 2px solid var(--accent-color);
}

.leistung-card .btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white-color);
}


/* --- Sektion: Wer wir sind --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    padding: 30px;
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.team-member h3 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 10px;
}

.team-member .role {
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.team-member.join-us {
    border: 2px dashed var(--accent-color);
    border-radius: 10px;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.team-member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-bg-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer a {
     margin: 0 10px;
     text-decoration: none;
}

.footer .footer-links {
    margin-bottom: 20px;
}

/* --- Footer Theme Variations --- */
.footer--default {
    background: var(--primary-color);
    color: var(--white-color);
}

.footer--default a {
    color: var(--white-color);
}

.footer--default a:hover {
    color: var(--accent-color);
}

.footer--default .btn {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.footer--default .btn:hover {
    background-color: #4F1C7A;
    color: var(--white-color);
}

.footer--purple-on-green {
    background: var(--revrebels-brand-turquoise);
    color: #4F1C7A; /* Darker purple for better contrast on green */
}

.footer--purple-on-green a {
    color: #4F1C7A; /* Darker purple for better contrast on green */
}

.footer--purple-on-green a:hover {
    color: #4F1C7A;
}

.footer--purple-on-green .btn {
    background-color: var(--revrebels-brand-purple);
    color: var(--white-color);
}

.footer--purple-on-green .btn:hover {
    background-color: #4F1C7A;
    color: var(--white-color);
}

.footer--white-on-purple h2 {
    color: var(--white-color) !important;
}

.footer--white-on-purple {
    background: var(--revrebels-brand-purple);
    color: var(--white-color) !important;
}

.footer--white-on-purple a {
    color: var(--white-color) !important;
}

.footer--white-on-purple a:hover {
    color: var(--revrebels-brand-turquoise);
}

.footer--white-on-purple .btn {
    background-color: var(--revrebels-brand-turquoise);
    color: var(--revrebels-brand-purple);
}

.footer--white-on-purple .btn:hover {
    background-color: #5bb8c2;
    color: var(--white-color);
}

/* Der Container für das Dropdown. Wichtig für die Positionierung. */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Der eigentliche Dropdown-Inhalt (die Liste), standardmäßig versteckt. */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  list-style: none; /* Entfernt die Aufzählungspunkte von der Liste */
  border-radius: 5px;
}

/* Die Links innerhalb des Dropdowns */
.dropdown-content a {
  color: var(--revrebels-brand-purple);
  padding: 12px 16px;
  text-decoration: none;
  display: block; /* Sorgt dafür, dass der ganze Bereich klickbar ist */
  text-align: left;
}

/* Farbänderung der Dropdown-Links beim Überfahren */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Zeigt das Dropdown-Menü an, wenn man über den Container fährt */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Der "Blog"-Text in der Navi, der das Menü auslöst */
.dropbtn {
  font-weight: 600;
  cursor: pointer; /* Zeigt einen Klick-Cursor an */
}

/* --- Logo Carousel (JavaScript-based with drag) --- */
.logo-carousel-section {
    padding: 40px 0;
    background-color: var(--white-color);
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
}

.logo-carousel:active {
    cursor: grabbing;
}

.logo-carousel::before,
.logo-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* Breite des Fading-Bereichs */
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--white-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--white-color) 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-track {
    display: flex;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Verhindert, dass Logos schrumpfen */
    padding: 0 20px;
}

.logo img {
    max-width: 120px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.faq-section {
    background-color: #f9f9f9;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-tile {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-tile:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    margin: 0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex: 1;
}

.faq-icon {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px 20px;
}

.faq-toggle:checked + .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-toggle:checked ~ .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.faq-answer ul {
    margin-bottom: 20px;
}

.faq-answer li {
    padding-left: 35px;
}



/* --- New Page Layouts --- */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--white-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Hero Section Theme Variations --- */
.hero-section--default {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.hero-section--default h1,
.hero-section--default .hero-subtitle {
    color: var(--white-color);
}

.hero-section--purple-on-green {
    background-color: var(--revrebels-brand-turquoise);
    color: var(--revrebels-brand-purple);
}

.hero-section--purple-on-green h1,
.hero-section--purple-on-green .hero-subtitle {
    color: var(--revrebels-brand-purple);
}

.hero-section--white-on-purple {
    background-color: var(--revrebels-brand-purple);
    color: var(--white-color);
}

.hero-section--white-on-purple h1,
.hero-section--white-on-purple .hero-subtitle {
    color: var(--white-color) !important;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.content-section {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.content-main h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.content-main h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    color: var(--accent-color);
}

.content-main p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.content-main ul {
    margin: 20px 0;
    padding-left: 20px;
}

.content-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight-box {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
}

.highlight-box h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cta-section {
    text-align: center;
    margin: 40px 0;
}

.content-sidebar {
    position: sticky;
    top: 100px;
}

.info-card {
    background: var(--white-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.info-card ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Info Section for top positioning */
.info-section {
    margin-bottom: 40px;
    text-align: center;
}

.info-section .info-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--accent-color);
}

/* Package Grid for Revenue Management */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.package-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.package-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.package-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.package-card ul {
    list-style: none;
    padding: 0;
}

.package-card ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.package-card ul li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.package-cta {
    text-align: center;
}

/* Training Features */
.training-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: var(--white-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.feature-card h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Responsive Design for New Pages */
@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-sidebar {
        position: static;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .training-features {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .hero .container {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .services-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .service-title {
        font-size: 1rem;
    }
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white-color);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-profile-info h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-align: left;
}

.modal-profile-info h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0;
    text-align: left;
    font-style: italic;
}

.modal-content h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
}

.modal-body p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--primary-color);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
}

/* Modal trigger button styling */
.modal-trigger {
    margin-top: 15px;
    width: 100%;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-profile-image {
        width: 100px;
        height: 100px;
    }
    
    .modal-profile-info h2 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .modal-profile-info h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .modal-content h2 {
        font-size: 1.6rem;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
}

/* --- CTA Modal Styles --- */
.cta-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.cta-modal-content {
    position: relative;
    background-color: var(--white-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    height: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cta-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cta-modal-close:hover,
.cta-modal-close:focus {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

#cta-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive CTA modal */
@media (max-width: 768px) {
    .cta-modal-content {
        margin: 10% auto;
        width: 95%;
        height: 85%;
    }
    
    .cta-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* --- Blog Content Styles --- */
.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Modern flexbox image layouts */
.blog-post-content .img-text-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

.blog-post-content .img-text-left img {
    flex-shrink: 0;
    width: 50%;
    margin: 0;
}

.blog-post-content .img-text-right {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
    flex-direction: row-reverse;
}

.blog-post-content .img-text-right img {
    flex-shrink: 0;
    width: 50%;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blog-post-content .img-text-left,
    .blog-post-content .img-text-right {
        flex-direction: column;
    }
    
    .blog-post-content .img-text-left img,
    .blog-post-content .img-text-right img {
        flex: none;
        width: 100%;
    }
}