/**
 * Single Discipline Template Styles
 *
 * @package ceron
 */

/* Header Section */
.discipline-header {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.discipline-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 19, 56, 0.6);
}

.discipline-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

/* Intro Section */
.discipline-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0 80px 0;
    display: flex;
    gap: 80px;
    justify-content: space-between;
    align-items: center;
}

.discipline-intro-content {
    flex: 1;
    max-width: 636px;
}

.discipline-intro-content h1 {
    font-size: 50px;
    line-height: 1.2;
    color: #180a2c;
    margin-bottom: 30px;
}

.discipline-intro-content .description,
.discipline-intro-content .content {
    font-size: 18px;
    line-height: 30px;
    color: #666666;
}

/* Key Features */
.discipline-features {
    flex: 0 0 493px;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 28px;
    line-height: 1.2;
    color: #180a2c;
    margin: 0 0 4px 0;
}

.feature-content p {
    font-size: 16px;
    line-height: 26px;
    color: #666666;
    margin: 0;
}

/* Content Sections */
.discipline-content-sections {
    background: #ffffff;
    padding: 30px 0 100px 0;
}

.discipline-content-sections-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 22px;
}

.content-section-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.00) 22.75%, #F5F5F5 100%);
    padding: 28px 20px;
}

.content-section-item h3 {
    font-size: 28px;
    line-height: 1.2;
    color: #180a2c;
    margin: 0;
    font-weight: 300;
}

.content-section-item p {
    font-size: 16px;
    line-height: 30px;
    color: #666666;
    margin: 0;
}

/* Path Section */
.path-section {
    background: #f5f5f5;
}

.path-container {
    max-width: 1200px;
    margin: 0 auto;
}

.path-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
}

.path-content {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.path-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.path-header h2 {
    font-weight: 300;
    font-size: 50px;
    line-height: 60px;
    color: #180a2c;
    margin: 0;
}

.path-header .path-subheading {
    font-size: 22px;
    line-height: 34px;
    color: #666666;
    margin: 0;
}

.path-description {
    font-size: 18px;
    line-height: 30px;
    color: rgba(26, 26, 26, 0.7);
}

.path-description p {
    margin: 0;
}

.learning-objectives {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.learning-objectives h4 {
    font-weight: 300;
    font-size: 28px;
    line-height: normal;
    color: #180a2c;
    margin: 0;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.objective-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.objective-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.objective-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.objective-item p {
    font-size: 18px;
    line-height: 30px;
    color: rgba(26, 26, 26, 0.7);
    margin: 0;
    flex: 1;
}

.path-cta a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #180a2c;
    color: #ffffff;
    font-size: 20px;
    padding: 8px 40px 10px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.path-cta a.btn-primary:hover {
    opacity: 0.9;
}

/* Age Categories Wrapper */
.age-categories-wrapper {
    display: flex;
    flex-direction: column;
}

.age-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    overflow: hidden;
    min-height: 200px;
    text-decoration: none;
    cursor: pointer;
}

.age-category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.6s ease;
}

.age-category-card:hover .age-category-bg {
    transform: scale(1.08);
}

.age-category-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.age-category-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-category-content h3 {
    font-weight: 300;
    font-size: 36px;
    line-height: normal;
    color: #ffffff;
    margin: 0;
}

.age-category-content p {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 30px;
    color: #ffffff;
    margin: 0;
}

/* Dynamic height based on number of categories */
.age-count-3 .age-category-card {
    flex: 1;
    min-height: 300px;
}

.age-count-2 .age-category-card {
    flex: 1;
    min-height: 300px;
}

.age-count-1 .age-category-card {
    flex: 1;
    min-height: 600px;
}

/* Journey Section */
.journey-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0;
    text-align: center;
}

.journey-section h2 {
    font-size: 50px;
    line-height: 60px;
    color: #180a2c;
    margin: 0 0 60px 0;
}

.journey-timeline {
    position: relative;
}

/* Timeline line - default position for 3 or fewer items */
.journey-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 1px;
    background: #180a2c;
}

.journey-items {
    display: flex;
    justify-content: space-between;
    position: relative;
}

/* Default layout for 3 or fewer items */
.journey-item {
    flex: 0 0 285px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.journey-icon {
    width: 65px;
    height: 65px;
    background: #180a2c;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.journey-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.journey-item-content {
    text-align: left;
}

.journey-item-content h4 {
    font-size: 28px;
    line-height: 1.2;
    color: #180a2c;
    margin: 0 0 4px 0;
}

.journey-item-content p {
    font-size: 16px;
    line-height: 26px;
    color: #666666;
    margin: 0;
}

/* Extended layout for more than 3 items - alternating pattern */
.journey-timeline-extended::before {
    top: 50%;
    transform: translateY(-50%);
}

.journey-timeline-extended .journey-item {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    min-height: 280px;
}

.journey-timeline-extended .journey-icon {
    grid-row: 2;
    margin-bottom: 0;
}

/* Odd items: content below icon (in row 3) */
.journey-timeline-extended .journey-item:nth-child(odd) .journey-item-content {
    grid-row: 3;
    align-self: start;
    padding-top: 24px;
}

/* Even items: content above icon (in row 1) */
.journey-timeline-extended .journey-item:nth-child(even) .journey-item-content {
    grid-row: 1;
    align-self: end;
    padding-bottom: 24px;
}

/* Teachers Section */
.teachers-section {
    background: #f5f5f5;
    padding: 100px 0;
}

.teachers-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.teachers-section h2 {
    font-size: 50px;
    line-height: 60px;
    color: #180a2c;
    margin: 0 0 60px 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.teachers-grid p {
    font-size: 18px;
}

/* Teacher Card - All styles moved to custom.css for consistency */

/* Begin Journey Section */
.begin-journey {
    position: relative;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
}

.begin-journey::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
}

.begin-journey-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.begin-journey-content {
    max-width: 631px;
    color: white;
}

.begin-journey-content h2 {
    font-size: 50px;
    line-height: 60px;
    margin: 0 0 30px 0;
}

.begin-journey-content p {
    font-size: 18px;
    line-height: 30px;
    margin: 0 0 30px 0;
}

.begin-journey-content a {
    display: inline-block;
    border: 1px solid white;
    color: white;
    font-size: 18px;
    padding: 12px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
}

.begin-journey-content a:hover {
    background: white;
    color: #180a2c;
}

/* Testimonials Section */
.testimonials-section {
    background: #f5f5f5;
    padding: 100px 0;
}

.testimonials-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.testimonials-section h2 {
    font-weight: 300;
    font-size: 50px;
    line-height: 60px;
    color: #180a2c;
    margin: 0 0 8px 0;
}

.testimonials-section .subtitle {
    font-size: 22px;
    line-height: 34px;
    color: #666666;
    margin: 0 0 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    min-height: 350px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    height: 14px;
}

.testimonial-stars .star {
    font-size: 14px;
    line-height: 1;
    color: #180a2c;
}

.testimonial-stars .star.empty {
    opacity: 0.2;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 26px;
    color: #666666;
    margin: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author .author-name {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 20px;
    line-height: normal;
    color: #180a2c;
    margin: 0;
}

.testimonial-author .author-description {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    color: #180a2c;
    margin: 0;
}

/* Empty state */
.testimonials-grid > p {
    font-size: 18px;
    color: #666666;
    grid-column: 1 / -1;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet Large (1200px and below) */
@media (max-width: 1200px) {
    .discipline-intro,
    .discipline-content-sections-inner,
    .journey-section,
    .teachers-section-inner,
    .begin-journey-inner,
    .testimonials-section-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    .path-section-inner {
        grid-template-columns: 60% 40%;
    }

    .path-content {
        gap: 40px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .discipline-intro {
        flex-direction: column;
        gap: 60px;
        padding: 80px 40px;
    }

    .discipline-intro-content {
        max-width: 100%;
    }

    .discipline-features {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-item {
        margin-bottom: 0;
    }

    .path-section-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .path-content {
        max-width: 100%;
        padding: 60px 40px;
        margin-left: 0;
        grid-row: 1;
    }

    .age-categories-wrapper {
        position: static;
        flex-direction: column;
        min-height: auto;
        grid-row: 2;
        gap: 20px;
        padding: 60px 40px;
    }

    .age-category-card {
        flex: 1;
        min-height: 250px;
    }

    .journey-section {
        padding: 80px 40px;
    }

    .journey-items {
        flex-wrap: wrap;
        gap: 40px 20px;
    }

    .journey-item {
        flex: 0 0 calc(50% - 10px);
    }

    .journey-timeline::before {
        display: none;
    }

    /* Reset extended layout on tablet */
    .journey-timeline-extended .journey-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }

    .journey-timeline-extended .journey-icon {
        grid-row: auto;
        margin-bottom: 16px;
    }

    .journey-timeline-extended .journey-item:nth-child(odd) .journey-item-content,
    .journey-timeline-extended .journey-item:nth-child(even) .journey-item-content {
        grid-row: auto;
        padding: 0;
        align-self: auto;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .teacher-slide {
        flex: 0 0 calc(50% - 11px);
        min-width: calc(50% - 11px);
    }
}

/* Tablet Small (768px and below) */
@media (max-width: 768px) {
    .discipline-header {
        height: 300px;
    }

    .discipline-intro {
        padding: 60px 20px;
        gap: 40px;
    }

    .discipline-intro-content h1 {
        font-size: 36px;
    }

    .discipline-features {
        grid-template-columns: 1fr;
    }

    .feature-content h4 {
        font-size: 24px;
    }

    .discipline-content-sections {
        padding: 60px 0;
    }

    .discipline-content-sections-inner {
        padding-left: 20px;
        padding-right: 20px;
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .content-section-item h3 {
        font-size: 24px;
    }

    .content-section-item p {
        font-size: 16px;
        line-height: 1.6;
    }

    .path-content {
        padding: 50px 20px;
        gap: 40px;
    }

    .path-header h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .path-header .path-subheading {
        font-size: 18px;
        line-height: 1.5;
    }

    .path-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .learning-objectives h4 {
        font-size: 24px;
    }

    .objective-item p {
        font-size: 16px;
        line-height: 1.6;
    }

    .age-categories-wrapper {
        flex-direction: column;
        min-height: auto;
        gap: 0;
        padding: 0;
    }

    .age-category-card {
        min-height: 220px;
    }

    .age-category-content h3 {
        font-size: 28px;
    }

    .journey-section {
        padding: 60px 20px;
    }

    .journey-section h2 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 40px;
    }

    .journey-items {
        flex-direction: column;
        gap: 30px;
    }

    .journey-item {
        flex: 1;
        align-items: center;
    }

    /* Reset extended layout on mobile */
    .journey-timeline-extended .journey-item {
        display: flex;
        flex-direction: column;
        grid-template-rows: none;
        min-height: auto;
        align-items: center;
    }

    .journey-timeline-extended .journey-icon {
        grid-row: auto;
        margin-bottom: 16px;
    }

    .journey-timeline-extended .journey-item:nth-child(odd) .journey-item-content,
    .journey-timeline-extended .journey-item:nth-child(even) .journey-item-content {
        grid-row: auto;
        padding: 0;
        align-self: auto;
        text-align: center;
    }

    .journey-item-content {
        text-align: center;
    }

    .teachers-section {
        padding: 60px 0;
    }

    .teachers-section-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .teachers-section h2 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 40px;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .begin-journey {
        padding: 50px 0;
    }

    .begin-journey-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .begin-journey-content h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .testimonials-section h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .testimonials-section .subtitle {
        font-size: 18px;
        line-height: 1.5;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .discipline-header {
        height: 250px;
    }

    .discipline-intro {
        padding: 40px 20px;
        align-items: flex-start;
    }

    .discipline-intro-content h1 {
        font-size: 28px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-content h4 {
        font-size: 20px;
    }

    .feature-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .discipline-content-sections {
        padding: 40px 0;
    }

    .discipline-content-sections-inner {
        gap: 30px;
    }

    .content-section-item h3 {
        font-size: 22px;
    }

    .content-section-item p {
        font-size: 14px;
    }

    .path-content {
        padding: 40px 20px 0 20px;
        gap: 30px;
    }

    .path-header h2 {
        font-size: 28px;
    }

    .path-header .path-subheading {
        font-size: 16px;
    }

    .path-description {
        font-size: 14px;
    }

    .learning-objectives h4 {
        font-size: 20px;
    }

    .objective-item {
        gap: 12px;
    }

    .objective-item p {
        font-size: 14px;
    }

    .path-cta a.btn-primary {
        width: 100%;
        font-size: 18px;
    }

    .path-cta {
        text-align: center;
        margin-top: 20px;
    }

    .age-category-card {
        padding: 30px 20px;
        min-height: 180px;
    }

    .age-category-content h3 {
        font-size: 24px;
    }

    .age-category-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .journey-section {
        padding: 40px 20px;
    }

    .journey-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .journey-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .journey-icon img {
        width: 28px;
        height: 28px;
    }

    .journey-item-content h4 {
        font-size: 22px;
    }

    .journey-item-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .teachers-section {
        padding: 40px 0;
    }

    .teachers-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .teacher-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .teachers-slider-prev,
    .teachers-slider-next {
        width: 40px;
        height: 40px;
    }

    .begin-journey {
        padding: 40px 0;
    }

    .begin-journey-content {
        max-width: 100%;
    }

    .begin-journey-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .begin-journey-content p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .begin-journey-content a {
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 10px 30px;
    }

    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-section h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .testimonials-section .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .testimonial-card {
        padding: 20px 16px;
        min-height: 100px;
        width: 77%;
        margin: 0 auto;
    }

    .testimonial-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .testimonial-author .author-name {
        font-size: 18px;
    }

    .testimonial-author .author-description {
        font-size: 14px;
    }
}

/* Begin Journey Section */
.begin-journey-courses {
	padding: 60px 119px;
	background-color: #000000;
}

.begin-journey-courses-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: center;
}

.begin-journey-courses-content {
	color: white;
	display: flex;
	flex-direction: column;
	gap: 30px;
	align-items: flex-start;
	justify-content: center;
}

.begin-journey-courses-image {
	width: 100%;
	height: 100%;
}

.begin-journey-courses-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.begin-journey-courses-content h2 {
	font-size: 50px;
	line-height: 60px;
	margin: 0;
	white-space: nowrap;
}

.begin-journey-courses-content p {
	font-size: 18px;
	line-height: 30px;
	margin: 0;
	width: 100%;
}

.begin-journey-courses-content .cta-button {
	display: inline-block;
	border: 1px solid #ffffff;
	color: #ffffff;
	font-weight: 300;
	font-size: 18px;
	line-height: normal;
	padding: 8px 40px 10px 40px;
	border-radius: 100px;
	text-decoration: none;
	transition: all 0.3s;
}

.begin-journey-courses-content .cta-button:hover {
	background: #ffffff;
	color: #180a2c;
}

/* Responsive Design for Begin Journey Section */
@media (max-width: 1400px) {
	.begin-journey-courses {
		padding: 60px 60px;
	}
}

@media (max-width: 1200px) {
	.begin-journey-courses {
		padding: 60px 40px;
	}
}

@media (max-width: 992px) {
	.begin-journey-courses {
		padding: 50px 30px;
	}

	.begin-journey-courses-inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.begin-journey-courses-content h2 {
		font-size: 40px;
		line-height: 50px;
		white-space: normal;
	}
}

@media (max-width: 768px) {
	.begin-journey-courses {
		padding: 50px 20px;
	}

	.begin-journey-courses-content h2 {
		font-size: 36px;
		line-height: 44px;
	}

	.begin-journey-courses-content p {
		font-size: 16px;
		line-height: 26px;
	}

	.begin-journey-courses-content .cta-button {
		font-size: 16px;
		padding: 8px 32px 10px 32px;
	}
}

@media (max-width: 480px) {
	.begin-journey-courses {
		padding: 40px 16px;
	}

	.begin-journey-courses-content h2 {
		font-size: 32px;
		line-height: 40px;
	}

	.begin-journey-courses-content p {
		font-size: 15px;
		line-height: 24px;
	}

	.begin-journey-courses-content .cta-button {
		font-size: 15px;
		padding: 8px 28px 10px 28px;
	}
}
