/*==========================================================
  MODERN INNER PAGES - iAttitude Corporate Training
  Clean, premium, minimal design system
==========================================================*/

/* ---------- Page Hero / Header ---------- */
.page-hero {
    position: relative;
    padding: 100px 0 60px;
    margin-top: 77px;
    background: #fafbfc;
    overflow: hidden;
}

/* Subtle abstract background shapes */
.page-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231,76,60,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120,173,201,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Accent bottom line */
.page-hero .hero-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--event-accent, #e74c3c), rgba(231,76,60,0.2));
}

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

/* Breadcrumb */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #999;
}

.hero-breadcrumb a {
    color: var(--event-accent, #e74c3c);
    text-decoration: none;
    transition: color 0.3s;
}

.hero-breadcrumb a:hover {
    color: var(--event-accent-dark, #c0392b);
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-sep {
    color: #ccc;
    font-size: 10px;
}

.hero-breadcrumb .breadcrumb-current {
    color: #999;
}

/* Title */
.hero-title {
    font-family: 'Varela', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--event-accent, #e74c3c);
}

/* Subtitle */
.hero-subtitle {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
}

/* ---------- Content Section ---------- */
.page-content {
    padding: 50px 0 70px;
    background: #fff;
}

/* ---------- Modern Cards ---------- */
.modern-card {
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.modern-card:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* ---------- Modern Typography ---------- */
.modern-heading {
    font-family: 'Varela', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.modern-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--event-accent-gradient, linear-gradient(135deg, #e74c3c, #c0392b));
    border-radius: 2px;
}

.modern-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* ---------- Modern Lists ---------- */
.modern-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.modern-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.modern-list li:last-child {
    border-bottom: none;
}

.modern-list li .list-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--event-accent-gradient, linear-gradient(135deg, #e74c3c, #c0392b));
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    margin-top: 3px;
}

/* ---------- Modern Buttons ---------- */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.modern-btn-primary {
    background: var(--event-accent-gradient, linear-gradient(135deg, #e74c3c, #c0392b));
    color: #fff;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    color: #fff;
    text-decoration: none;
}

.modern-btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #e8e8e8;
}

.modern-btn-secondary:hover {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---------- CTA Section ---------- */
.modern-cta {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border-radius: 16px;
    padding: 45px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.modern-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(231,76,60,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.modern-cta h3 {
    font-family: 'Varela', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.modern-cta p {
    font-size: 15px;
    color: #777;
    margin: 0 0 20px;
    line-height: 1.6;
}

.modern-cta .cta-info {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.modern-cta .cta-info strong {
    color: var(--event-accent, #e74c3c);
}

.modern-cta .cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Section Dividers ---------- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
    margin: 50px 0;
}

/* ---------- Spacing Helpers ---------- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .page-hero {
        padding: 80px 0 45px;
    }

    .hero-title {
        font-size: 30px;
    }

    .modern-card {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 70px 0 35px;
        margin-top: 65px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .page-content {
        padding: 35px 0 50px;
    }

    .modern-card {
        padding: 20px;
        border-radius: 10px;
    }

    .modern-heading {
        font-size: 20px;
    }

    .modern-text {
        font-size: 14px;
    }

    .modern-cta {
        padding: 30px 20px;
    }

    .modern-cta h3 {
        font-size: 18px;
    }

    .modern-btn {
        width: 100%;
        justify-content: center;
    }

    .modern-cta .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 60px 0 30px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-breadcrumb {
        font-size: 12px;
    }
}

/* ---------- Legacy Section Overrides ---------- */
/* These make existing #courseArchive / #contact / .single_blog sections
   blend with the modern page header design */

#courseArchive,
#contact {
    padding: 50px 0 70px !important;
    background: #fff !important;
}

.courseArchive_content {
    margin-bottom: 0 !important;
}

.single_blog {
    background: transparent !important;
    padding: 0 !important;
}

.single_blog .blog_title {
    font-family: 'Varela', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.single_blog h3 {
    font-family: 'Varela', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin: 30px 0 15px !important;
}

.single_blog p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin-bottom: 15px !important;
}

.single_blog blockquote {
    background: #fafbfc !important;
    border-left: 4px solid var(--event-accent, #e74c3c) !important;
    padding: 20px 25px !important;
    margin: 0 0 25px !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
}

.single_blog blockquote span {
    color: var(--event-accent, #e74c3c) !important;
}

.single_blog ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

.single_blog ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.single_blog ul li:last-child {
    border-bottom: none !important;
}

.single_blog ul li .fa-angle-double-right {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--event-accent-gradient, linear-gradient(135deg, #e74c3c, #c0392b)) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    margin-top: 3px !important;
    line-height: 22px !important;
    text-align: center !important;
}

.single_blog .cta-section {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%) !important;
    border-radius: 16px !important;
    padding: 45px !important;
    margin-top: 40px !important;
    text-align: center !important;
    border: 1px solid #f0f0f0 !important;
}

.single_blog .cta-section h3 {
    margin-top: 0 !important;
}

.single_blog .cta-section .submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 30px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    background: var(--event-accent-gradient, linear-gradient(135deg, #e74c3c, #c0392b)) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3) !important;
}

.single_blog .cta-section .submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(231,76,60,0.4) !important;
}

/* Contact page overrides */
#contact .title_area {
    margin-bottom: 30px;
}

#contact .title_area h2 {
    font-family: 'Varela', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
}

#contact .contact_form {
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

#contact .contact_form .form-control {
    height: 50px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
}

#contact .contact_form .form-control:focus {
    border-color: var(--event-accent, #e74c3c) !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1) !important;
}

#contact .contact_form textarea.form-control {
    min-height: 120px !important;
}

#contact .contact_address {
    background: #fafbfc;
    border-radius: 14px;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

#contact .contact_address h3 {
    font-family: 'Varela', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 0;
}

#contact .contact_address .address_group p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

#contact .contact_address .address_group p i {
    color: var(--event-accent, #e74c3c);
    margin-right: 8px;
    width: 18px;
}

/* Sidebar overrides */
.courseArchive_sidebar {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
}

.single_sidebar {
    background: #fff !important;
    border-radius: 14px !important;
    padding: 25px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important;
    margin-bottom: 25px !important;
}

.single_sidebar > h2 {
    border-radius: 8px 8px 0 0 !important;
    font-size: 20px !important;
    margin: -25px -25px 15px !important;
    padding: 15px 20px !important;
}

.single_sidebar .side_add img {
    border-radius: 8px !important;
    width: 100% !important;
}

.single_sidebar .see_all {
    margin-top: 10px;
}

/* Events page override - remove bg from courseArchive since we have page-hero */
#courseArchive .events-header {
    margin-top: 0;
}

/* Default h2 in courseArchive content area */
.courseArchive_content > .row > div > .single_blog > h2 {
    font-family: 'Varela', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
}
