/*
 * TAM Digital Front Page — hand-coded replacement for the Elementor-Pro
 * homepage. Colors are the site's real values (checked against the live
 * Elementor data and the earlier webinar/reviews brand pass): purple
 * #937FC7 general accent, orange #FF6D1C secondary CTA, cream #FFFAEE
 * page background, #252525 heading text. The hero overlay (#833ca3) and
 * testimonial card tint (#decbe6) are this page's own original colors,
 * kept as-is rather than normalized to the general accent.
 */

/*
 * Same font already used site-wide (Elementor custom font "YEKAN BAKH"),
 * shipped locally here so this page renders it without depending on the
 * site's own font-face declaration (which pointed at an absolute
 * production URL and 404'd/CORS-failed on any other domain, e.g. local dev).
 */
@font-face {
    font-family: 'YEKAN BAKH';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('../fonts/YekanBakhFaNum-Regular-2.woff') format('woff');
}
@font-face {
    font-family: 'YEKAN BAKH';
    font-style: normal;
    font-weight: bold;
    font-display: swap;
    src: url('../fonts/YekanBakhFaNum-Bold-2.woff') format('woff');
}
@font-face {
    font-family: 'YEKAN BAKH';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/YekanBakhFaNum-ExtraBold-2.woff') format('woff');
}
@font-face {
    font-family: 'YEKAN BAKH';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/YekanBakhFaNum-Black-2.woff') format('woff');
}

:root {
    --tam-fp-primary: #252525;
    --tam-fp-accent: #937FC7;
    --tam-fp-accent-dark: #7c68b3;
    --tam-fp-secondary: #FF6D1C;
    --tam-fp-text: #6b6b6b;
    --tam-fp-bg: #FFFAEE;
    --tam-fp-border: #EDE4C8;
    --tam-fp-border-card: #CDCDCD;
    --tam-fp-radius: 10px;
    --tam-fp-font: 'YEKAN BAKH', Tahoma, sans-serif;
}

.tam-fp-hero,
.tam-fp-section,
.tam-fp-about,
.tam-fp-testimonials-section {
    font-family: var( --tam-fp-font );
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.tam-fp-hero {
    position: relative;
    height: 800px;
    min-height: 100vh;
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* The zooming photo lives on its own layer, separate from .tam-fp-hero
   itself, so the "Ken Burns" scale animation never touches the heading/
   text overlay above it. background-size:cover + no-repeat here are never
   overridden by the animation (which only animates transform, not
   background-size), so the photo always fully covers the box at every
   frame and every screen size/aspect ratio — the previous version
   animated background-size directly (100% -> 115%), which isn't "cover"
   at either end, so on a tall narrow viewport (mobile) the photo fell
   short of the box height and the browser's default background-repeat
   tiled it visibly multiple times down the page. */
.tam-fp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    animation: tam-fp-ken-burns 22s ease-in-out infinite alternate;
}

@keyframes tam-fp-ken-burns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

.tam-fp-hero-overlay {
    position: absolute;
    inset: 0;
    opacity: .5;
}

.tam-fp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    padding: 0 24px;
    text-align: center;
    color: #FCFAFA;
}

.tam-fp-hero-heading {
    font-size: clamp(1.7rem, 4.6vw, 3.7rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 20px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .tam-fp-hero-heading {
        white-space: normal;
    }
}

.tam-fp-hero-description {
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    max-width: 1080px;
    line-height: 1.8;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .tam-fp-hero-bg { animation: none; }
}

/* ── Shared section layout ──────────────────────────────────────────── */

.tam-fp-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 56px 20px;
}

.tam-fp-section--muted {
    max-width: none;
    background: var(--tam-fp-bg);
}

.tam-fp-section--muted > * {
    max-width: 1500px;
    margin-inline: auto;
}

.tam-fp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.tam-fp-section-title {
    color: var(--tam-fp-primary);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    margin: 0;
}

.tam-fp-section-title--center {
    text-align: center;
    margin-bottom: 36px;
}

a.tam-fp-btn {
    display: inline-block;
    background: var(--tam-fp-secondary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 6px;
    transition: opacity .15s ease, transform .15s ease;
}

a.tam-fp-btn:hover,
a.tam-fp-btn:focus,
a.tam-fp-btn:active,
a.tam-fp-btn:visited {
    color: #fff;
    opacity: .9;
    transform: translateY(-1px);
}

/* ── Cards (courses grid + articles row) ────────────────────────────── */
/* Matches the real card design: 1px #CDCDCD border, 10px radius, inset
   image, centered clamped title, full-width stacked pill buttons. */

.tam-fp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .tam-fp-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tam-fp-card-grid {
        grid-template-columns: 1fr;
    }
}

.tam-fp-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tam-fp-border-card);
    border-radius: var(--tam-fp-radius);
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.tam-fp-card-cover {
    border-radius: 10px;
    overflow: hidden;
}

.tam-fp-card-cover img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.tam-fp-card-body {
    padding: 16px 4px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

a.tam-fp-card-title-link,
a.tam-fp-card-title-link:hover,
a.tam-fp-card-title-link:focus,
a.tam-fp-card-title-link:visited {
    text-decoration: none;
    color: inherit;
}

.tam-fp-card-title {
    color: var(--tam-fp-primary);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tam-fp-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

a.tam-fp-card-btn {
    display: block;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    padding: 11px 14px;
    border-radius: 6px;
    transition: opacity .15s ease;
}

a.tam-fp-card-btn:hover,
a.tam-fp-card-btn:focus,
a.tam-fp-card-btn:active,
a.tam-fp-card-btn:visited {
    opacity: .9;
    color: #fff;
}

.tam-fp-card-btn--info { background: var(--tam-fp-secondary); }
.tam-fp-card-btn--register { background: var(--tam-fp-accent); }

.tam-fp-card-price {
    display: block;
    text-align: center;
    color: var(--tam-fp-accent-dark);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 10px;
}

.tam-fp-card-date {
    color: var(--tam-fp-text);
    font-size: .85rem;
}

/* ── About ───────────────────────────────────────────────────────────── */

.tam-fp-about {
    max-width: 860px;
    text-align: center;
}

.tam-fp-about-heading {
    color: var(--tam-fp-primary);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 18px;
}

.tam-fp-about-content {
    color: var(--tam-fp-text);
    line-height: 2;
    font-size: 1.05rem;
}

/* ── Testimonials ────────────────────────────────────────────────────── */

.tam-fp-testimonial-carousel {
    position: relative;
}

.tam-fp-testimonial-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.tam-fp-testimonial-track::-webkit-scrollbar {
    display: none;
}

.tam-fp-testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .tam-fp-testimonial-slide {
        flex-basis: calc(50% - 10px);
    }
}

.tam-fp-testimonial-card {
    background: #f3ecf8;
    border: 1px solid #e6d9ef;
    border-radius: 12px;
    padding: 22px 24px;
    height: 100%;
    box-sizing: border-box;
}

.tam-fp-testimonial-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tam-fp-testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tam-fp-testimonial-avatar--placeholder {
    background: var(--tam-fp-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.tam-fp-testimonial-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tam-fp-testimonial-author {
    color: #2d2438;
    font-weight: 700;
}

.tam-fp-testimonial-course {
    color: var(--tam-fp-accent-dark);
    font-size: .82rem;
}

.tam-fp-testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.tam-fp-star {
    color: #d8cbe3;
    font-size: 1rem;
    line-height: 1;
}

.tam-fp-star.is-filled {
    color: #f5a623;
}

.tam-fp-testimonial-text {
    line-height: 1.9;
    max-height: 4.2em;
    overflow: hidden;
    transition: max-height .3s ease;
    margin: 0;
    color: #3d3d3d;
}

.tam-fp-testimonial-text.is-expanded {
    max-height: 1000px;
}

button.tam-fp-testimonial-toggle {
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--tam-fp-secondary);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    padding: 10px 0 0;
}

button.tam-fp-testimonial-toggle:hover,
button.tam-fp-testimonial-toggle:focus {
    background: none;
    color: var(--tam-fp-secondary);
    opacity: .8;
}

.tam-fp-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

button.tam-fp-testimonial-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--tam-fp-border);
    cursor: pointer;
    padding: 0;
}

button.tam-fp-testimonial-dot:hover,
button.tam-fp-testimonial-dot:focus {
    background: var(--tam-fp-border);
}

button.tam-fp-testimonial-dot.is-active,
button.tam-fp-testimonial-dot.is-active:hover,
button.tam-fp-testimonial-dot.is-active:focus {
    background: var(--tam-fp-accent);
}

@media (max-width: 600px) {
    .tam-fp-section { padding: 40px 20px; }
}
