/* ==========================================================
   Electrosoft System — New Features stylesheet
   Loaded ONLY on the new pages (new-courses.php,
   new-course-details.php, new-blog.php, blog-post.php).
   All classes are prefixed "newc-" so nothing here can ever
   collide with or override the existing site styles.
   ========================================================== */

/* ---------- Stats counter ---------- */
.newc-stats-section {
    padding-bottom: 40px;
}

.newc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 3;
}

.newc-stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-soft);
}

.newc-stat-card i {
    font-size: 26px;
    color: var(--orange);
    margin-bottom: 12px;
}

.newc-stat-card h3 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--text-body);
}

.newc-stat-card span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* ---------- Modern course cards ---------- */
.newc-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.newc-course-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.newc-course-card:hover {
    transform: translateY(-8px);
}

.newc-course-card-media {
    position: relative;
    height: 170px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.newc-course-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newc-course-card-media i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.85);
}

.newc-course-card-mode {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}

.newc-course-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.newc-course-card-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--text-body);
}

.newc-course-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.newc-course-rating {
    color: #FFB020;
    font-size: 13px;
    margin-bottom: 10px;
}

.newc-course-rating span {
    color: var(--text-muted);
    margin-left: 4px;
}

.newc-course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.newc-course-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.newc-course-actions .btn {
    flex: 1;
    padding: 11px 14px;
    font-size: 13px;
}

/* ---------- Why choose us ---------- */
.newc-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.newc-why-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: var(--bg-surface);
    text-align: center;
}

.newc-why-card i {
    font-size: 30px;
    color: var(--orange);
    margin-bottom: 14px;
}

.newc-why-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.newc-why-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Placement stats mini ---------- */
.newc-placement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.newc-placement-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}

.newc-placement-card i {
    font-size: 24px;
    color: var(--orange-2);
    margin-bottom: 10px;
}

.newc-placement-card h3 {
    font-family: var(--font-head);
    font-size: 28px;
}

.newc-placement-card span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

/* ---------- Batch schedule ---------- */
.newc-batch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.newc-batch-table thead th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 20px 6px;
}

.newc-batch-table tbody tr {
    background: var(--bg-surface);
    box-shadow: var(--shadow-soft);
}

.newc-batch-table tbody td {
    padding: 18px 20px;
    font-size: 14px;
    color: var(--text-body);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.newc-batch-table tbody td:first-child {
    border-left: 1px solid var(--border-soft);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-weight: 600;
}

.newc-batch-table tbody td:last-child {
    border-right: 1px solid var(--border-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.newc-batch-mode {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
}

.newc-batch-seats {
    color: #E0483B;
    font-weight: 600;
}

.newc-batch-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.newc-batch-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}

.newc-batch-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.newc-batch-card div {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

/* ---------- FAQ accordion ---------- */
.newc-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.newc-faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.newc-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    font-family: var(--font-body);
}

.newc-faq-question i {
    color: var(--orange);
    transition: var(--transition);
    flex-shrink: 0;
}

.newc-faq-item.open .newc-faq-question i {
    transform: rotate(180deg);
}

.newc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.newc-faq-answer-inner {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Blog ---------- */
.newc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.newc-blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.newc-blog-card:hover {
    transform: translateY(-6px);
}

.newc-blog-card-media {
    height: 170px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.newc-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newc-blog-card-media i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.newc-blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.newc-blog-card-date {
    font-size: 12px;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.newc-blog-card-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-body);
}

.newc-blog-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.newc-blog-read-more {
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
}

.newc-blog-post-body {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.9;
}

.newc-blog-post-body p {
    margin-bottom: 20px;
    white-space: pre-line;
}

/* ---------- Video gallery ---------- */
.newc-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.newc-video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.newc-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.newc-video-frame iframe,
.newc-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.newc-video-frame-placeholder,
.newc-video-frame-link {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 999px rgba(10, 31, 68, 0.55);
}

.newc-video-frame-placeholder i,
.newc-video-frame-link i {
    font-size: 34px;
}

.newc-video-frame-placeholder span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.newc-video-frame-link {
    text-decoration: none;
}

.newc-video-card-body {
    padding: 18px 20px;
}

.newc-video-card-body span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.newc-video-card-body h4 {
    font-size: 16px;
    color: var(--text-body);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .newc-stats,
    .newc-placement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .newc-batch-table {
        display: none;
    }

    .newc-batch-cards {
        display: flex;
    }
}

@media (max-width: 640px) {
    .newc-stats,
    .newc-placement-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .newc-stat-card,
    .newc-placement-card {
        padding: 20px 14px;
    }

    .newc-stat-card h3,
    .newc-placement-card h3 {
        font-size: 24px;
    }

    .newc-course-actions {
        flex-direction: column;
    }
}

/* ---------- Founders section ---------- */
.newc-founders-section {
    position: relative;
    overflow: hidden;
}

.newc-founders-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 107, 0, 0.08), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(10, 31, 68, 0.10), transparent 45%);
    pointer-events: none;
}

.newc-founders-section > .container {
    position: relative;
    z-index: 1;
}

.newc-founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.newc-founder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 40px 32px 32px;
    text-align: center;
    transition: var(--transition);
}

.newc-founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -25px rgba(10, 31, 68, 0.4);
}

.newc-founder-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15), 0 14px 30px -10px rgba(10, 31, 68, 0.45);
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.newc-founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newc-founder-photo i {
    font-size: 56px;
    color: var(--orange);
}

.newc-founder-card h3 {
    font-size: 21px;
    color: var(--text-body);
    margin-bottom: 4px;
}

.newc-founder-role {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.newc-founder-exp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--off-white);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 auto 18px;
}

.newc-founder-exp i {
    color: var(--orange);
}

.newc-founder-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    margin-bottom: 20px;
}

.newc-founder-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}

.newc-founder-expertise span {
    background: rgba(10, 31, 68, 0.06);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

:root[data-theme="dark"] .newc-founder-expertise span {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-body);
}

.newc-founder-quote {
    border-left: 3px solid var(--orange);
    background: var(--off-white);
    text-align: left;
    font-style: italic;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.7;
    padding: 14px 18px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 22px;
}

.newc-founder-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.newc-founder-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    font-size: 15px;
    transition: var(--transition);
}

.newc-founder-social a:hover {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    transform: translateY(-3px);
}

/* Founder achievement stats - reuses .newc-placement-card's visual
   language but in an auto-fit grid to comfortably fit 6 tiles */
.newc-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

@media (max-width: 860px) {
    .newc-founder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .newc-achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
