/* Copied styles from original template to ensure full parity */
:root {
    --bg-color: #ffffff;
    --text-color: #1e1518;
    --primary-color: #2acaea; /* Pink from Pathwright */
    --secondary-color: #f36c42; /* Orange from Pathwright */
    --dark-color: #1e1518;
    --light-bg: #fff6f1; /* Light orange tint */
    --font-main: 'Vazirmatn', sans-serif;
    --card-hover-shadow: 0 20px 40px rgba(236, 0, 140, 0.15);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.with-fixed-nav {
    padding-top: 96px;
}

@media (max-width: 991.98px) {
    .with-fixed-nav {
        padding-top: 88px;
    }
}

.header-search-input {
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.header-search-input:focus {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 .25rem rgba(236, 0, 140, 0.15);
}

.header-search .btn {
    box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 800;
    color: var(--dark-color);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .offcanvas-end {
        width: 75%;
    }
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    right: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-outline-primary {
    border-radius: 50px;
    padding: 10px 28px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(236, 0, 140, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d1007b;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(236, 0, 140, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 120px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #fff0f9 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--dark-color);
    letter-spacing: -2px;
}

.hero-highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 16px 45px;
    font-size: 1.2rem;
    margin: 10px;
}

/* Visual Path Element - Enhanced */
.path-visual-container {
    position: relative;
    margin-top: 80px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 6px;
    background: #f1f3f5;
    border-radius: 10px;
    z-index: 1;
}

.path-line-active {
    position: absolute;
    top: 50%;
    right: 7.5%; /* RTL */
    width: 45%;
    height: 6px;
    background: linear-gradient(270deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(236, 0, 140, 0.4);
}

.path-node {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    font-size: 1.8rem;
    color: #adb5bd;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 45px;
}

.path-node.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(236, 0, 140, 0.25);
    transform: scale(1.1);
}

.path-node:hover {
    transform: scale(1.2) translateY(-5px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-desc {
    font-size: 1.2rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
}

.text-pre-line {
    white-space: pre-line;
}

/* Content Cards (Webinar & Video) */
.content-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    height: 100%;
    position: relative;
}

.content-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-hover-shadow);
}

.card-img-wrapper {
    position: relative;
    padding-top: 65%; /* Aspect Ratio */
    background-color: var(--light-bg);
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--secondary-color);
    background: linear-gradient(45deg, rgba(243, 108, 66, 0.05), rgba(236, 0, 140, 0.05));
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--dark-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
}

.card-badge.live {
    background: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236, 0, 140, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(236, 0, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 0, 140, 0); }
}

.card-body {
    padding: 30px;
}

.card-title {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.card-meta {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-card {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-card:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(236, 0, 140, 0.3);
}

/* Stats Section */
.stats-section {
    background-color: var(--dark-color);
    color: white;
    padding: 100px 0;
    border-radius: 40px;
    margin: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 0, 140, 0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 900;
}

.stat-item p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 1.1rem;
}

/* Quote Section */
.quote-section {
    padding: 120px 0;
    background: #fff;
    position: relative;
}

.quote-icon {
    font-size: 5rem;
    color: var(--light-bg);
    margin-bottom: 30px;
}

blockquote p {
    font-weight: 800 !important;
    color: var(--dark-color) !important;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 100px 0 40px;
    border-top: 1px solid #eee;
}

.about-hero {
    padding: 100px 0 60px;
    background: radial-gradient(circle at 50% 0%, #fff0f9 0%, #ffffff 70%);
}

.object-cover {
    height: 420px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .object-cover {
        height: 240px;
    }
}

.team-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform .3s ease, box-shadow .3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    margin: 0 auto 12px;
}

.team-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.gallery-card img {
    width: 100%;
    display: block;
    transition: transform .35s ease;
}

.gallery-card:hover img {
    transform: scale(1.03);
}

.gallery-card .gallery-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-card:hover .gallery-btn {
    opacity: 1;
}

.timeline {
    position: relative;
    padding-right: 20px;
}

.timeline-item {
    position: relative;
    padding-right: 24px;
    margin-bottom: 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    right: 3px;
    top: 16px;
    bottom: -10px;
    width: 2px;
    background: #e9ecef;
}

footer h5 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 800;
}

footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1.05rem;
}

footer a:hover {
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Pages Specific Styles --- */

/* Seminars Page */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 50px 50px;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.page-desc {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.seminar-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.seminar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.seminar-card .card-img-top {
    display: block;
    width: 100%;
    height: auto;
}

.seminar-card img.card-img-top,
.seminar-card video.card-img-top {
    background: transparent;
}

.media-blur-frame {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
    aspect-ratio: var(--media-aspect, 9 / 16);
}

.media-blur-frame::before {
    content: "";
    position: absolute;
    inset: -28px;
    background-image: var(--media-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.12);
    opacity: 0.9;
}

.media-blur-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
}

.media-blur-frame > video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.seminar-card .hover-video {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .seminar-card .card-img-top {
        height: auto;
    }
}

/* Videos Page */
.course-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.course-thumb {
    height: 220px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    position: relative;
    font-size: 3rem;
}

.course-thumb-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.course-thumb > i {
    position: relative;
    z-index: 1;
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 21, 24, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.course-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3.5rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.course-card:hover .play-icon {
    transform: scale(1);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-body {
    padding: 25px;
}

.course-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
    height: 3.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    margin-left: 8px;
}

.course-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* News Page */
.blog-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
    background: white;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.blog-img {
    height: 240px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 3rem;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.blog-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}
