/*-- -------------------------- -->
<---     Knowledge Center       -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-knowledge {
    padding: var(--sectionPadding);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }
  
  #hero-knowledge .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  
  #hero-knowledge .cs-content {
    text-align: center;
    width: 100%;
    max-width: 39.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #hero-knowledge .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  
  #hero-knowledge .cs-color {
    color: var(--primary);
  }
  
  #hero-knowledge .cs-text {
    font-size: 1.125rem;
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
  }
  
  #hero-knowledge .cs-image-group {
    width: 100%;
    max-width: 31.25rem;
    height: auto;
    display: block;
    position: relative;
  }
  
  #hero-knowledge .cs-picture {
    width: 100%;
    height: auto;
    display: block;
  }
  
  #hero-knowledge .cs-picture img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Slide in animations */
  .slide-in-left {
    opacity: 0;
    transform: translateX(-3.125rem);
    animation: slideInLeft 0.6s forwards;
    animation-delay: 0.2s;
  }
  
  .slide-in-right {
    opacity: 0;
    transform: translateX(3.125rem);
    animation: slideInRight 0.6s forwards;
    animation-delay: 0.4s;
  }
  
  @keyframes slideInLeft {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #hero-knowledge .cs-container {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
  }
  
  #hero-knowledge .cs-content {
    text-align: left;
    width: 50%;
    flex: none;
    align-items: flex-start;
  }
  
  #hero-knowledge .cs-image-group {
    width: 50%;
    max-width: none;
  }
}

/*-- -------------------------- -->
<---    VoIP Training Resources  -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #voip-training {
    padding: var(--sectionPadding);
    background-color: #f8f9fa;
  }
  
  #voip-training .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  
  #voip-training .cs-content {
    text-align: center;
    width: 100%;
    max-width: 39.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #voip-training .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
  }
  
  #voip-training .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  
  #voip-training .cs-text {
    font-size: 1.125rem;
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
  }
  
  /* Training Tabs Navigation */
  #voip-training .cs-training-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  
  #voip-training .cs-tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--bodyTextColor);
    min-width: 120px;
    justify-content: center;
  }
  
  #voip-training .cs-tab-button:hover {
    border-color: var(--primary);
    background: #f8f9fa;
    transform: translateY(-2px);
  }
  
  #voip-training .cs-tab-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(181, 1, 12, 0.3);
  }
  
  #voip-training .cs-tab-button img {
    filter: none;
    transition: filter 0.3s ease;
  }
  
  #voip-training .cs-tab-button.active img {
    filter: brightness(0) invert(1);
  }
  
  /* Training Panels */
  #voip-training .cs-training-panels {
    width: 100%;
  }
  
  #voip-training .cs-training-panel {
    display: none;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }
  
  #voip-training .cs-training-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Training Header */
  #voip-training .cs-training-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-bottom: 3px solid var(--primary);
  }
  
  #voip-training .cs-training-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 0.75rem;
  }
  
  #voip-training .cs-training-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--bodyTextColor);
    margin-bottom: 1.5rem;
  }
  
  #voip-training .cs-training-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  #voip-training .cs-feature {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid #e9ecef;
    white-space: nowrap;
  }
  
  /* Video Container - Much Larger! */
  #voip-training .cs-training-video {
    padding: 0;
  }
  
  #voip-training .cs-video-container {
    position: relative;
    width: 100%;
    height: 37.5rem; /* Much larger - 600px */
    background: #000;
    overflow: hidden;
  }
  
  #voip-training .cs-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-width: 100%;
    min-height: 100%;
    /* Force iframe to recalculate on load */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  
  /* Iframe placeholder styling for smooth transitions */
  #voip-training .cs-video-container .iframe-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    position: relative;
  }
  
  #voip-training .cs-video-container .iframe-placeholder::before {
    content: "Loading video player...";
    opacity: 0.7;
  }
  
  /* Loading animation for iframe placeholder */
  #voip-training .cs-video-container .iframe-placeholder::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: 30px;
    margin-left: -20px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Collapsed video player styling */
  #voip-training .cs-video-container.collapsed {
    height: auto;
    min-height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  #voip-training .cs-video-container.collapsed iframe {
    display: none;
  }
  
  #voip-training .restore-video-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(181, 1, 12, 0.3);
  }
  
  #voip-training .restore-video-btn:hover {
    background: #e0002b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(181, 1, 12, 0.4);
  }
  
  #voip-training .restore-video-btn:active {
    transform: translateY(0);
  }
  
  /* Exit fallback overlay - covers the EXIT button area */
  #voip-training .cs-exit-fallback {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 60px;
    background: transparent;
    z-index: 5;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  #voip-training .cs-exit-fallback:hover {
    border-radius: 4px;
  }
  
  /* Hide fallback when video is collapsed */
  #voip-training .cs-video-container.collapsed .cs-exit-fallback {
    display: none;
  }
  
  #voip-training .cs-video-controls {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
  }
  
  #voip-training .cs-control-hint {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bodyTextColor);
    margin: 0;
    text-align: center;
  }
  
  #voip-training .cs-control-hint strong {
    color: var(--primary);
  }
  
  /* Fallback styling for video placeholders if needed */
  #voip-training .cs-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, #e0002b 100%);
    height: 100%;
  }
  
  #voip-training .cs-play-icon {
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  #voip-training .cs-video-placeholder:hover .cs-play-icon {
    transform: scale(1.1);
  }
  
  #voip-training .cs-video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
  }
  
  /* Document Resources */
  #voip-training .cs-document {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 1.5rem;
  }
  
  #voip-training .cs-document-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
  }
  
  #voip-training .cs-document-icon img {
    filter: brightness(0) invert(1);
  }
  
  #voip-training .cs-resource-content {
    padding: 1.5rem;
    flex: 1;
  }
  
  #voip-training .cs-video .cs-resource-content {
    padding: 1.5rem;
  }
  
  #voip-training .cs-resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4em;
    color: var(--headerColor);
    margin-bottom: 0.5rem;
  }
  
  #voip-training .cs-resource-description {
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin-bottom: 1rem;
  }
  
  #voip-training .cs-resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    gap: 1rem;
  }
  
  #voip-training .cs-category {
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
  }
  
  #voip-training .cs-date {
    color: var(--bodyTextColor);
    font-weight: 500;
  }
  
  #voip-training .cs-download-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
  }
  
  #voip-training .cs-download-link:hover {
    color: #e0002b;
  }
  
  /* Additional Resources Section */
  #voip-training .cs-additional-resources {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
  }
  
  #voip-training .cs-resources-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  #voip-training .cs-resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Document Resources in Additional Section */
  #voip-training .cs-additional-resources .cs-resource-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  #voip-training .cs-additional-resources .cs-resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #voip-training .cs-video-container {
    height: 43.75rem; /* Even larger on tablet - 700px */
  }
  
  #voip-training .cs-training-features {
    justify-content: center;
  }
  
  #voip-training .cs-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #voip-training .cs-video-container {
    height: 50rem; /* Largest on desktop - 800px */
  }
  
  #voip-training .cs-training-header {
    padding: 3rem;
  }
  
  #voip-training .cs-training-title {
    font-size: 2rem;
  }
  
  #voip-training .cs-training-description {
    font-size: 1.25rem;
  }
}

/*-- -------------------------- -->
<---      IT Services FAQ       -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #it-services-faq {
    padding: var(--sectionPadding);
    background-color: #ffffff;
  }
  
  #it-services-faq .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  
  #it-services-faq .cs-content {
    text-align: center;
    width: 100%;
    max-width: 39.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #it-services-faq .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
  }
  
  #it-services-faq .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  
  #it-services-faq .cs-text {
    font-size: 1.125rem;
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    max-width: 40.625rem;
    margin: 0;
    color: var(--bodyTextColor);
  }
  
  #it-services-faq .cs-faq-group {
    width: 100%;
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  #it-services-faq .cs-faq-category {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
  }
  
  #it-services-faq .cs-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--headerColor);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
  }
  
  #it-services-faq .cs-faq-item {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
  }
  
  #it-services-faq .cs-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  #it-services-faq .cs-faq-button {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
  }
  
  #it-services-faq .cs-faq-button:hover {
    color: var(--primary);
  }
  
  #it-services-faq .cs-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--headerColor);
    line-height: 1.4em;
  }
  
  #it-services-faq .cs-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
  }
  
  #it-services-faq .cs-faq-button[aria-expanded="true"] .cs-faq-icon {
    transform: rotate(45deg);
  }
  
  #it-services-faq .cs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  #it-services-faq .cs-faq-answer.active {
    max-height: 20rem;
    padding-bottom: 1rem;
  }
  
  #it-services-faq .cs-faq-answer p {
    font-size: 1rem;
    line-height: 1.6em;
    color: var(--bodyTextColor);
    margin: 0;
  }
  
  /* FAQ CTA Section */
  #it-services-faq .cs-faq-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #e0002b 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
  }
  
  #it-services-faq .cs-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
  }
  
  #it-services-faq .cs-cta-text {
    font-size: 1.125rem;
    line-height: 1.5em;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
  }
  
  #it-services-faq .cs-button-solid {
    font-size: 1rem;
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: var(--primary);
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: white;
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }
  
  #it-services-faq .cs-button-solid:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #it-services-faq .cs-faq-group {
    gap: 2.5rem;
  }
  
  #it-services-faq .cs-faq-category {
    padding: 2rem;
  }
}

