/* ==========================================
   ARTICLE CONTENT AREA
   ========================================== */
#articleContentArea {
  margin: 5rem 0 0;
}

#articleIntro,
.contentSection {
    margin: 0 0 5rem;
}

.articleIntroduction {
    text-align: center;
}

.articleIntroduction p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.articleIntroduction p:last-child {
    margin-bottom: 0;
}

/* Section Backgrounds */
.bg-custom,
.bg-white,
.bg-blue,
.bg-contours {
  padding: 3rem 0;
  background-color: #fff;
}

.bg-blue {
  background-color: #0C6993;
}

.bg-contours {
    background-color: #e7e7e7;
}

.position-last {
  margin-bottom: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    color: #0C6993;
    font-weight: bold;
    margin-bottom: 40px;
    font-size: 2rem;
}

/* ==========================================
   LESSON STRUCTURE COMPONENTS
   ========================================== */

/* Legacy Lesson Cards Container */
.lesson-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

.lesson-section-card {
    background: #f8f9fa;
    border-left: 4px solid #0C6993;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: fit-content;
    min-height: 215px;
}

.lesson-section-card.customFittingCard {
    min-height: auto;
    margin: 1rem 0 2rem;
}

.lesson-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lesson-section-card h4 {
    color: #0C6993;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.lesson-section-card ul {
    margin: 0;
    padding-left: 18px;
}

.lesson-section-card li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 14px;
}

.lesson-section-card li:last-child {
    margin-bottom: 0;
}

.lesson-deliverables {
    max-width: 400px;
    margin: 0 auto 3rem;
    text-align: left;
    border-left-color: #28a745;
}

.lesson-deliverables h4 {
    color: #28a745;
}

/* Modern Lesson Layout */
.lessonLayout {
    padding: 0;
    margin-bottom: 2rem;
}

.lessonLayout-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
    margin-bottom: 20px;
}

.lessonLayout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0C6993;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lessonLayout-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.lessonLayout-card:hover::before {
    transform: scaleX(1);
}

.lessonLayout-title {
    color: #0C6993;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.lessonLayout-features {
    list-style: none;
    padding: 0;
}

.lessonLayout-features li {
    padding: 6px 0;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.lessonLayout-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.lessonLayout-deliverables {
    background: #f8f9fa;
    border: 2px solid #0C6993;
    margin-top: 30px;
}

.lessonLayout-deliverables::before {
    background: #0C6993;
    transform: scaleX(1);
}

/* ==========================================
   INSTRUCTOR GRID COMPONENTS
   ========================================== */
.instructors-grid.grid_overlay {
    color: #fff;
    margin: 30px 0 0;
}

.instructors-grid .block {
    padding: 10px 0px;
    text-align: center;
}

.animate-instructor .inner-block {
    border: 2px solid #0C6993;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.animate-instructor .instructor-card {
    position: relative;
    height: 290px;
    background: linear-gradient(135deg, #0C6993 0%, #094a66 100%);
    transition: all 800ms;
    display: flex;
    flex-direction: column;
}

.instructor-header {
    padding: 20px 15px;
    background: rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.instructor-header h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructor-header h3 {
    font-size: 18px;
    line-height: 22px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    color: #fff;
    margin: 0;
    font-weight: bold;
}

.pricing-overlay {
    flex: 1;
    position: relative;
}

.pricing-overlay .centered {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 15px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.pricing-list li {
    background: rgba(255,255,255,0.1);
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.3;
    backdrop-filter: blur(10px);
}

.book-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 8px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.book-btn:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================
   PRICING LAYOUT COMPONENTS
   ========================================== */
.pricingLayout {
    padding: 0;
}

.pricingLayout-card {
    background: white;
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
    margin-bottom: 20px;
}

.pricingLayout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0C6993;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.pricingLayout-card:hover::before {
    transform: scaleX(1);
}

/* Popular Card Styling */
.pricingLayout-popular {
    border: 2px solid #28a745;
    transform: scale(1.05);
}

.pricingLayout-popular::before {
    background: #28a745;
    transform: scaleX(1);
}

.pricingLayout-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 20px;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Content Elements */
.pricingLayout-title {
    color: #0C6993;
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.pricingLayout-instructor {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricingLayout-name {
    color: #0C6993;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.pricingLayout-pricing {
    margin-bottom: 25px;
}

.pricingLayout-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pricingLayout-time {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.pricingLayout-inclusion {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 20px;
}

.pricingLayout-features {
    list-style: none;
    padding: 0;
}

.pricingLayout-features li {
    padding: 8px 0;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.pricingLayout-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Pricing Buttons */
.pricingLayout-btn {
    background: #0C6993;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.pricingLayout-btn:hover {
    background: #094c6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 105, 147, 0.3);
}

.pricingLayout-bookBtn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricingLayout-bookBtn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

/* Bottom row centering for pricing */
.pricing-bottom-row {
    justify-content: center;
}

/* Accordion Styling */
.accordion-button {
    background-color: #0C6993 !important;
    color: white !important;
    font-weight: bold !important;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #0C6993 !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(12, 105, 147, 0.25) !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

/* ==========================================
   LOCATION COMPONENTS
   ========================================== */
.locationAreas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.areaOne, .areaTwo, .areaThree, .areaFour {
  margin-top: 5rem;
}

.locationAreas .areasLeft {
  flex: 1;
  text-align: left;
  min-width: 250px;
}

.locationAreas .areasRight {
  flex: 1;
  text-align: center;
  min-width: 250px;
}

.locationAreas .areasLeft h3,
.locationAreas .areasRight h3 {
  text-align: center;
  margin: 10px 0;
}

.locationAreas .logoContainer {
    margin-bottom: 10px;
    text-align: center;
}

.locationAreas .logoContainer img {
    display: inline-block;
    width: auto;
    text-align: center;
}

.locationAreas .moduleContainer {
  font-weight: bold;
  color: #333;
}

.locationAreas .mapContainer {
  margin-top: 10px;
}

.locationAreas .mapContainer a {
  display: inline-block;
  text-decoration: none;
}

.locationAreas .mapContainer img {
    display: inline-block;
    width: auto;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.locationAreas .mapContainer img:hover {
  opacity: 0.8;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Application */
.lessonLayout-card,
.pricingLayout-card {
    animation: fadeInUp 0.6s ease forwards;
}

.lessonLayout-card:nth-child(1) { animation-delay: 0.1s; }
.lessonLayout-card:nth-child(2) { animation-delay: 0.2s; }
.lessonLayout-card:nth-child(3) { animation-delay: 0.3s; }
.lessonLayout-card:nth-child(4) { animation-delay: 0.4s; }

.pricingLayout-card:nth-child(1) { animation-delay: 0.1s; }
.pricingLayout-card:nth-child(2) { animation-delay: 0.2s; }
.pricingLayout-card:nth-child(3) { animation-delay: 0.3s; }
.pricingLayout-card:nth-child(4) { animation-delay: 0.4s; }
.pricingLayout-card:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .lesson-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .lesson-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 0;
    }
    
    .lesson-section-card {
        padding: 15px;
    }
    
    .lesson-section-card h4 {
        font-size: 15px;
    }
    
    .lesson-section-card li {
        font-size: 13px;
    }
    
    .locationAreas {
        flex-direction: column;
        align-items: stretch;
    }
    
    .locationAreas .areasLeft,
    .locationAreas .areasRight {
        flex: none;
        width: 100%;
    }
}

/* Instructor Grid Responsive */
@media only screen and (min-device-width: 768px) and (max-device-width: 991px) {
    .instructor-header h3 {
        font-size: 16px !important;
    }
    
    .pricing-list li {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .lesson-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 15px 0;
    }
    
    .lesson-section-card {
        padding: 12px;
    }
    
    .lesson-section-card h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .lesson-section-card li {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 575px) {
    .animate-instructor .instructor-card {
        height: 220px;
    }
    
    .instructor-header h3 {
        font-size: 16px;
    }
    
    .pricing-list li {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .book-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
}