:root {
    --tmf-color-background: #f5f5f7;
    --tmf-color-surface: #ffffff;
    --tmf-color-accent: #e60012;
    --tmf-color-text: #1a1a1a;
    --tmf-color-muted: #6b6b6b;
    --tmf-spacing-xs: 0.5rem;
    --tmf-spacing-sm: 1rem;
    --tmf-spacing-md: 2rem;
    --tmf-spacing-lg: 3rem;
    --tmf-spacing-xl: 4rem;
    --tmf-max-width: 1200px;
    --tmf-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --tmf-radius: 12px;
    font-size: 16px;
}

body.tmf-body {
    margin: 0;
    background: var(--tmf-color-background);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--tmf-color-text);
    line-height: 1.6;
}

.tmf-site {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

.tmf-header {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-sm) var(--tmf-spacing-md);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tmf-header__branding,
.tmf-header__nav,
.tmf-header__cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmf-header__branding {
    justify-content: flex-start;
}

.tmf-header__nav {
    justify-content: center;
    gap: 2rem;
}

.tmf-header__cta {
    justify-content: flex-end;
}

.tmf-nav-link {
    color: var(--tmf-color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.tmf-nav-link:hover {
    color: var(--tmf-color-accent);
}

.tmf-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tmf-color-accent);
    transition: width 0.3s ease;
}

.tmf-nav-link:hover::after {
    width: 100%;
}

.tmf-featured {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
    color: #fff;
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
}

.tmf-main {
    margin: 0 auto;
    width: 100%;
    max-width: var(--tmf-max-width);
    padding: var(--tmf-spacing-xl) var(--tmf-spacing-md);
    box-sizing: border-box;
}

.tmf-sidebar {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    margin: var(--tmf-spacing-md) auto;
    width: 100%;
    max-width: var(--tmf-max-width);
    box-sizing: border-box;
}

.tmf-footer {
    background: #000;
    color: #fff;
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
}

.tmf-footer__primary,
.tmf-footer__secondary {
    max-width: var(--tmf-max-width);
    margin: 0 auto;
}

.tmf-footer__nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.tmf-footer__section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--tmf-color-accent);
    font-weight: 600;
}

.tmf-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tmf-footer__menu li {
    margin-bottom: 0.75rem;
}

.tmf-footer__menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tmf-footer__menu a:hover {
    color: var(--tmf-color-accent);
}

.tmf-footer__secondary {
    margin-top: var(--tmf-spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--tmf-spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.tmf-footer__secondary p {
    margin: 0;
}

.tmf-layout {
    display: grid;
    gap: var(--tmf-spacing-xl);
}

.tmf-hero {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
    box-shadow: var(--tmf-shadow);
    border-radius: var(--tmf-radius);
}

.tmf-news-grid {
    display: grid;
    gap: var(--tmf-spacing-lg);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.tmf-news-grid__main,
.tmf-news-grid__sidebar {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-md);
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-section {
    background: var(--tmf-color-surface);
    padding: var(--tmf-spacing-lg) var(--tmf-spacing-md);
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-section--highlights,
.tmf-section--latest {
    display: grid;
    gap: var(--tmf-spacing-md);
}

.tmf-area {
    display: grid;
    gap: var(--tmf-spacing-sm);
}

.tmf-block {
    background: #fff;
    border-radius: var(--tmf-radius);
    padding: var(--tmf-spacing-sm);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tmf-block--page-list .ccm-block-page-list-page-entry {
    display: grid;
    gap: var(--tmf-spacing-xs);
    padding: var(--tmf-spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tmf-text--button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--tmf-color-accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.tmf-text--lead {
    font-size: 1.2rem;
    color: var(--tmf-color-muted);
}

/* Hero Section */
.tmf-hero-content {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/application/files/3616/4092/4743/hero-resources.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tmf-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tmf-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Container */
.tmf-container {
    max-width: var(--tmf-max-width);
    margin: 0 auto;
    padding: 0 var(--tmf-spacing-md);
}

/* Music Page Styles */
.tmf-music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tmf-music-card {
    background: var(--tmf-color-surface);
    padding: 2rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
    text-align: center;
}

.tmf-music-cover {
    width: 100%;
    height: 300px;
    background: var(--tmf-color-accent);
    border-radius: var(--tmf-radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.tmf-music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmf-streaming-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tmf-streaming-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--tmf-color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.tmf-streaming-link:hover {
    background: #c50010;
}

/* Video Grid */
.tmf-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tmf-video-card {
    background: var(--tmf-color-surface);
    border-radius: var(--tmf-radius);
    overflow: hidden;
    box-shadow: var(--tmf-shadow);
}

.tmf-video-card iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Timeline Styles */
.tmf-timeline {
    margin: 2rem 0;
}

.tmf-timeline-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.tmf-timeline-year {
    background: var(--tmf-color-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.tmf-timeline-content {
    flex: 1;
    background: var(--tmf-color-surface);
    padding: 1rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

/* Home Page Styles */
.tmf-home-hero {
    position: relative;
    overflow: hidden;
    background: url('/application/files/4417/5997/4567/tmf.jpg') center center / cover no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmf-home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.tmf-home-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.tmf-home-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tmf-home-hero__subtitle {
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.tmf-home-section {
    background: var(--tmf-color-surface);
    padding: 3rem 2rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
    margin-bottom: 3rem;
}

.tmf-home-section__title {
    font-size: 2rem;
    margin: 0 0 2rem 0;
    text-align: center;
    color: var(--tmf-color-heading, #1a1a1a);
}

/* News Section */
.tmf-home-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tmf-home-news__item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmf-home-news__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tmf-home-news__item-title {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: var(--tmf-color-heading, #1a1a1a);
}

.tmf-home-news__item-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--tmf-color-text);
}

/* Music Section */
.tmf-home-music {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tmf-home-music__card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tmf-home-music__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tmf-home-music__cover {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--tmf-color-accent), #c50010);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.tmf-home-music__title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--tmf-color-heading, #1a1a1a);
}

.tmf-home-music__info {
    margin: 0 0 1.5rem 0;
    color: var(--tmf-color-muted);
}

/* About Section */
.tmf-home-about {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tmf-home-about__text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--tmf-color-text);
}

/* Link Button */
.tmf-home-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--tmf-color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tmf-home-link:hover {
    background: #c50010;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

/* Legacy styles for backward compatibility */
.tmf-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tmf-news-item {
    background: var(--tmf-color-surface);
    padding: 2rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--tmf-color-heading);
}

.tmf-news-item p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tmf-about-preview {
    text-align: center;
    padding: 2rem;
}

.tmf-about-preview p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* About Page Styles */
.tmf-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.tmf-about-text,
.tmf-about-image {
    background: var(--tmf-color-surface);
    padding: 2rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-about-image {
    text-align: center;
}

.tmf-profile-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--tmf-color-accent), #ff6b6b);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Contact Page Styles */
.tmf-contact-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--tmf-color-accent), #c50010);
    color: white;
}

.tmf-contact-hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tmf-contact-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.tmf-contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.tmf-contact-form-area,
.tmf-contact-form-wrapper,
.tmf-contact-info,
.tmf-contact-info-wrapper {
    background: var(--tmf-color-surface);
    padding: 2rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-contact-info-wrapper {
    position: sticky;
    top: 2rem;
}

.tmf-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tmf-contact-info__icon {
    width: 50px;
    height: 50px;
    background: var(--tmf-color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tmf-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.tmf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--tmf-color-accent);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.tmf-social-link:hover {
    background: #c50010;
    transform: translateY(-2px);
}

.tmf-contact-faq {
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.tmf-contact-faq__title {
    font-size: 1.8rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.tmf-contact-faq__grid {
    display: grid;
    gap: 1.5rem;
}

.tmf-contact-faq__item {
    background: var(--tmf-color-surface);
    padding: 1.5rem;
    border-radius: var(--tmf-radius);
    box-shadow: var(--tmf-shadow);
}

.tmf-contact-faq__item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.tmf-contact-faq__item p {
    margin: 0;
    line-height: 1.6;
}

/* Tablet and below */
@media (max-width: 960px) {
    .tmf-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--tmf-spacing-sm);
    }

    .tmf-header__branding,
    .tmf-header__nav,
    .tmf-header__cta {
        justify-content: center;
    }

    .tmf-header__nav {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .tmf-featured,
    .tmf-main,
    .tmf-sidebar {
        padding-left: var(--tmf-spacing-sm);
        padding-right: var(--tmf-spacing-sm);
    }

    /* Home Page Tablet */
    .tmf-home-hero {
        min-height: 40vh;
    }

    .tmf-home-hero__title {
        font-size: 2.5rem;
    }

    .tmf-home-hero__subtitle {
        font-size: 1.2rem;
    }

    .tmf-home-section {
        padding: 2.5rem 1.5rem;
    }

    .tmf-home-news,
    .tmf-home-music {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Legacy Styles */
    .tmf-news-grid {
        grid-template-columns: 1fr;
    }
    
    .tmf-music-grid,
    .tmf-video-grid {
        grid-template-columns: 1fr;
    }
    
    .tmf-about-content,
    .tmf-contact-content {
        grid-template-columns: 1fr;
    }
    
    .tmf-contact-info-wrapper {
        position: static;
    }

    .tmf-hero-title {
        font-size: 2rem;
    }

    .tmf-hero-subtitle {
        font-size: 1rem;
    }
}

/* Mobile specific */
@media (max-width: 640px) {
    :root {
        font-size: 14px;
    }

    .tmf-header {
        padding: 0.75rem;
    }

    .tmf-header__branding a span {
        font-size: 1.2rem !important;
    }

    .tmf-header__nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .tmf-nav-link {
        padding: 0.5rem;
        display: block;
    }

    .tmf-header__cta {
        display: none;
    }

    .tmf-main {
        padding: var(--tmf-spacing-md) var(--tmf-spacing-xs);
    }

    .tmf-featured,
    .tmf-sidebar {
        padding: var(--tmf-spacing-sm) var(--tmf-spacing-xs);
    }

    /* Home Page Hero */
    .tmf-home-hero {
        min-height: 35vh;
        background-attachment: scroll;
    }

    .tmf-home-hero__content {
        padding: 1.5rem 1rem;
    }

    .tmf-home-hero__title {
        font-size: 1.8rem;
    }

    .tmf-home-hero__subtitle {
        font-size: 1rem;
    }

    /* Home Page Sections */
    .tmf-home-section {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }

    .tmf-home-section__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Home News Grid */
    .tmf-home-news {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tmf-home-news__item {
        padding: 1.5rem;
    }

    .tmf-home-news__item-title {
        font-size: 1.3rem;
    }

    /* Home Music Grid */
    .tmf-home-music {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tmf-home-music__card {
        padding: 1.5rem;
    }

    .tmf-home-music__cover {
        height: 200px;
        font-size: 3rem;
    }

    .tmf-home-music__title {
        font-size: 1.3rem;
    }

    /* Home About */
    .tmf-home-about__text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    /* Home Link */
    .tmf-home-link {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
        display: block;
        text-align: center;
    }

    /* Legacy Hero */
    .tmf-hero-content {
        padding: 2rem 1rem;
        min-height: 30vh;
        background-attachment: scroll;
    }

    .tmf-hero-title {
        font-size: 1.5rem;
    }

    .tmf-hero-subtitle {
        font-size: 0.9rem;
    }

    /* Legacy Grids */
    .tmf-music-grid,
    .tmf-video-grid,
    .tmf-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tmf-music-card,
    .tmf-news-item {
        padding: 1rem;
    }

    .tmf-music-cover {
        height: 250px;
    }

    .tmf-video-card iframe {
        height: 200px;
    }

    .tmf-streaming-links {
        flex-direction: column;
        align-items: stretch;
    }

    .tmf-streaming-link {
        text-align: center;
        width: 100%;
    }

    .tmf-timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tmf-timeline-year {
        margin-right: 0;
        width: fit-content;
    }

    .tmf-contact-hero {
        padding: 2rem 1rem;
    }

    .tmf-contact-hero__title {
        font-size: 1.75rem;
    }

    .tmf-contact-hero__subtitle {
        font-size: 1rem;
    }

    .tmf-contact-content {
        gap: 1.5rem;
    }

    .tmf-contact-form-area,
    .tmf-contact-form-wrapper,
    .tmf-contact-info,
    .tmf-contact-info-wrapper {
        padding: 1rem;
    }

    .tmf-social-links {
        flex-wrap: wrap;
    }

    .tmf-footer {
        padding: var(--tmf-spacing-md) var(--tmf-spacing-sm);
    }

    .tmf-footer__nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tmf-section {
        padding: var(--tmf-spacing-md) var(--tmf-spacing-sm);
    }

    .tmf-text--button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .tmf-about-image {
        padding: 1rem;
    }

    .tmf-profile-image {
        max-width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .tmf-contact-faq__title {
        font-size: 1.5rem;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }

    .tmf-site {
        overflow-x: hidden;
    }
}
