/* ==========================================================================
   TRacing Media - Custom PHP & MySQL Theme Stylesheet (Based on LiveGrid Theme)
   100% Responsive for Desktop, Tablet & Vertical Mobile Screens
   ========================================================================== */

:root {
    --tm-red: #e31e24;
    --tm-red-dark: #b81419;
    --tm-black: #0a0a0a;
    --tm-dark: #141414;
    --tm-gray-nav: rgba(230, 230, 230, 0.94);
    --tm-white: #ffffff;
    --tm-text: #111111;
    --tm-muted: #666666;
    --tm-header-h: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'PT Sans Narrow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #000000;
    color: var(--tm-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.tm-body-bg {
    background-color: #000000;
    background-position: center top;
    background-repeat: repeat;
    background-attachment: fixed;
}

body.tm-splash-body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   1. FIXED TOP HEADER (INNER PAGES) - LIVEGRID STYLE + MOBILE RESPONSIVE
   ========================================================================== */
.tm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tm-header-h);
    background: var(--tm-gray-nav);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    z-index: 5000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.tm-logo-box {
    background-color: var(--tm-red);
    width: 238px;
    min-width: 238px;
    height: var(--tm-header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    z-index: 10;
    transition: background-color 0.25s ease;
}

.tm-logo-box:hover {
    background-color: var(--tm-red-dark);
}

.tm-logo-box img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.tm-nav-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}

.tm-nav-wrap::-webkit-scrollbar {
    display: none;
}

.tm-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.tm-nav-list li {
    display: flex;
    align-items: stretch;
}

.tm-nav-list li a {
    display: flex;
    align-items: center;
    padding: 0 22px;
    height: var(--tm-header-h);
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    white-space: nowrap;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.tm-nav-list li a:hover,
.tm-nav-list li.active a {
    background-color: #ffffff;
    color: var(--tm-red);
}

.tm-header-actions {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    z-index: 10;
}

.tm-icon-btn {
    width: 46px;
    height: var(--tm-header-h);
    border: none;
    background: #ffffff;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid #ececec;
    transition: all 0.25s ease;
    position: relative;
}

.tm-icon-btn:hover,
.tm-icon-btn.active {
    background-color: var(--tm-red);
    color: #ffffff;
}

.tm-social-dropdown {
    position: relative;
    display: flex;
}

.tm-social-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #141414;
    border-top: 3px solid var(--tm-red);
    min-width: 180px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 6000;
}

.tm-social-dropdown:hover .tm-social-menu,
.tm-social-dropdown.open .tm-social-menu {
    display: flex;
}

.tm-social-menu a {
    color: #ffffff;
    padding: 11px 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #242424;
}

.tm-social-menu a:hover {
    background: var(--tm-red);
}

.tm-mobile-toggle {
    display: none;
    width: 54px;
    height: var(--tm-header-h);
    border: none;
    background: #111111;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Mobile Drawer Navigation */
.tm-mobile-drawer {
    position: fixed;
    top: var(--tm-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    z-index: 4999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.tm-mobile-drawer.open {
    transform: translateX(0);
}

.tm-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-mobile-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 21px;
    font-weight: 700;
    text-transform: uppercase;
    border-left: 4px solid transparent;
    border-radius: 4px;
}

.tm-mobile-nav-list li.active a,
.tm-mobile-nav-list li a:hover {
    background: #242424;
    color: var(--tm-red);
    border-left-color: var(--tm-red);
}

/* ==========================================================================
   2. HOMEPAGE SPLASH & ANIMATED PHOTO GRID (REQUIREMENT #1)
   ========================================================================== */
.tm-home-grid-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

.tm-interactive-grid {
    display: grid;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #000;
}

.tm-grid-cell {
    position: relative;
    overflow: hidden;
    background: #111;
    perspective: 600px;
    cursor: pointer;
    user-select: none;
}

.tm-grid-cell-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.65s ease, filter 0.35s ease;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.tm-grid-cell:hover {
    z-index: 5;
    box-shadow: inset 0 0 0 2px var(--tm-red), 0 0 18px rgba(227, 30, 36, 0.6);
}

/* Tile Animation States */
.tm-grid-cell.anim-flip-y .tm-grid-cell-inner.out {
    transform: rotateY(90deg) scale(0.92);
    opacity: 0;
}
.tm-grid-cell.anim-flip-y .tm-grid-cell-inner.in-start {
    transform: rotateY(-90deg) scale(0.92);
    opacity: 0;
}

.tm-grid-cell.anim-flip-x .tm-grid-cell-inner.out {
    transform: rotateX(90deg) scale(0.92);
    opacity: 0;
}
.tm-grid-cell.anim-flip-x .tm-grid-cell-inner.in-start {
    transform: rotateX(-90deg) scale(0.92);
    opacity: 0;
}

.tm-grid-cell.anim-slide-left .tm-grid-cell-inner.out {
    transform: translateX(-100%);
    opacity: 0;
}
.tm-grid-cell.anim-slide-left .tm-grid-cell-inner.in-start {
    transform: translateX(100%);
    opacity: 0;
}

.tm-grid-cell.anim-slide-top .tm-grid-cell-inner.out {
    transform: translateY(-100%);
    opacity: 0;
}
.tm-grid-cell.anim-slide-top .tm-grid-cell-inner.in-start {
    transform: translateY(100%);
    opacity: 0;
}

.tm-grid-cell.anim-scale .tm-grid-cell-inner.out {
    transform: scale(0.2) rotate(12deg);
    opacity: 0;
}
.tm-grid-cell.anim-scale .tm-grid-cell-inner.in-start {
    transform: scale(1.4) rotate(-8deg);
    opacity: 0;
}

.tm-grid-cell.anim-fade .tm-grid-cell-inner.out {
    opacity: 0;
    transform: scale(1.08);
}
.tm-grid-cell.anim-fade .tm-grid-cell-inner.in-start {
    opacity: 0;
    transform: scale(0.95);
}

/* Homepage Splash Overlay Bar (Exact LiveGrid Aesthetic) */
.tm-splash-header {
    position: fixed;
    top: 42%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3000;
    pointer-events: none;
    display: flex;
    align-items: stretch;
}

.tm-splash-bar {
    display: inline-flex;
    align-items: stretch;
    pointer-events: auto;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
    max-width: 100vw;
}

.tm-splash-logo {
    background-color: var(--tm-red);
    width: 306px;
    min-width: 306px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    z-index: 10;
}

.tm-splash-logo img {
    max-height: 76px;
    width: auto;
}

.tm-splash-enter {
    background: rgba(235, 235, 235, 0.93);
    backdrop-filter: blur(6px);
    color: #000000;
    height: 90px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tm-splash-enter:hover {
    background: #ffffff;
    color: var(--tm-red);
    padding-right: 38px;
}

.tm-splash-enter svg {
    transition: transform 0.3s ease;
}

.tm-splash-enter:hover svg {
    transform: translateX(6px);
}

.tm-splash-menu-wrap {
    display: flex;
    align-items: stretch;
    background: rgba(235, 235, 235, 0.94);
    backdrop-filter: blur(8px);
    height: 90px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.tm-splash-bar.expanded .tm-splash-enter {
    display: none;
}

.tm-splash-bar.expanded .tm-splash-menu-wrap {
    max-width: calc(100vw - 306px);
    opacity: 1;
    overflow-x: auto;
}

.tm-splash-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 90px;
}

.tm-splash-menu li {
    display: flex;
}

.tm-splash-menu li a {
    display: flex;
    align-items: center;
    padding: 0 30px;
    height: 90px;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
    white-space: nowrap;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.tm-splash-menu li a:hover {
    background: #ffffff;
    color: var(--tm-red);
}

/* Floating Audio & Admin Controls on Homepage */
.tm-splash-floating-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 3500;
    display: flex;
    gap: 8px;
}

.tm-float-btn {
    background: rgba(20, 20, 20, 0.82);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.18);
    height: 40px;
    padding: 0 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tm-float-btn:hover,
.tm-float-btn.active {
    background: var(--tm-red);
    border-color: var(--tm-red);
}

/* ==========================================================================
   3. PAGE CONTAINER & HAKKIMIZDA (REQUIREMENT #2)
   ========================================================================== */
.tm-page-wrapper {
    padding-top: calc(var(--tm-header-h) + 30px);
    padding-bottom: 60px;
    min-height: 100vh;
}

/* Signature LiveGrid Profile Box aligned with Logo edge on desktop, enhanced for Galleries */
.tm-about-container {
    margin-left: 238px;
    max-width: 860px;
    background: #ffffff;
    color: #111111;
    padding: 34px 44px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    position: relative;
}

.tm-about-content {
    font-size: 19px;
    line-height: 1.55;
    color: #111111;
}

.tm-about-content p {
    margin: 0 0 16px 0;
    font-size: 19px;
    line-height: 1.55;
}

.tm-about-content img {
    border-radius: 3px;
    margin: 18px auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.tm-double-divider {
    height: 4px;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin: 26px 0;
}

/* Inline & Extra Photo Galleries in Hakkımızda and News Detail */
.tm-extra-gallery-block {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 2px solid #efefef;
}

.tm-extra-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tm-extra-gallery-title {
    font-family: 'Oswald', 'Open Sans Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.tm-extra-gallery-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--tm-red);
}

.tm-masonry-gallery {
    column-count: 3;
    column-gap: 12px;
}

.tm-masonry-item {
    display: block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #111;
    cursor: pointer;
}

.tm-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.tm-masonry-item:hover img {
    transform: scale(1.05);
}

.tm-masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transition: opacity 0.28s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    color: #ffffff;
    text-align: center;
}

.tm-masonry-item:hover .tm-masonry-overlay {
    opacity: 1;
}

.tm-masonry-zoom-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tm-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transform: scale(0.82);
    transition: transform 0.25s ease;
}

.tm-masonry-item:hover .tm-masonry-zoom-icon {
    transform: scale(1);
}

.tm-masonry-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   4. HABERLER LISTING & FILTER BAR + HABER DETAY (REQUIREMENT #3)
   ========================================================================== */
.tm-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-filter-bar {
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid #2b2b2b;
    border-left: 4px solid var(--tm-red);
    padding: 18px 22px;
    margin-bottom: 24px;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.tm-filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.tm-search-form {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 260px;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-search-input-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
}

.tm-search-input {
    width: 100%;
    height: 42px;
    background: #0d0d0d;
    border: 1px solid #383838;
    color: #ffffff;
    padding: 0 40px 0 14px;
    font-family: inherit;
    font-size: 16px;
    border-radius: 2px;
}

.tm-search-input:focus {
    outline: none;
    border-color: var(--tm-red);
}

.tm-select-input {
    height: 42px;
    background: #0d0d0d;
    border: 1px solid #383838;
    color: #ffffff;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    border-radius: 2px;
    cursor: pointer;
}

.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    background: var(--tm-red);
    color: #ffffff;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
    letter-spacing: 0.5px;
}

.tm-btn:hover {
    background: var(--tm-red-dark);
    color: #ffffff;
}

.tm-btn-dark {
    background: #262626;
    color: #ffffff;
}

.tm-btn-dark:hover {
    background: #3a3a3a;
}

.tm-category-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #1f1f1f;
    border: 1px solid #333333;
    color: #dddddd;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.tm-chip:hover,
.tm-chip.active {
    background: var(--tm-red);
    border-color: var(--tm-red);
    color: #ffffff;
}

.tm-chip-count {
    background: rgba(0,0,0,0.3);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 12px;
}

/* News Grid (LiveGrid White Cards over Black Background) */
.tm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.tm-news-card {
    background: #ffffff;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tm-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

.tm-news-thumb-wrap {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
    margin-bottom: 14px;
}

.tm-news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.tm-news-card:hover .tm-news-thumb-wrap img {
    transform: scale(1.06);
}

.tm-news-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tm-red);
    color: #ffffff;
    padding: 3px 10px;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-news-gal-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    padding: 3px 9px;
    font-size: 13px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tm-news-body {
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tm-news-title {
    margin: 0 0 4px 0;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 700;
    color: #000000;
}

.tm-news-title a:hover {
    color: var(--tm-red);
}

.tm-news-meta-cat {
    font-size: 15px;
    color: #787878;
    margin-bottom: 10px;
}

.tm-news-meta-cat a {
    color: #111111;
    font-weight: 700;
}

.tm-news-meta-cat a:hover {
    color: var(--tm-red);
}

.tm-news-excerpt {
    font-size: 16px;
    line-height: 1.45;
    color: #222222;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 3px double #222222;
    flex: 1;
}

.tm-news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tm-news-date {
    color: var(--tm-red);
    font-size: 18px;
    font-weight: 700;
}

.tm-news-readmore {
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
}

.tm-news-readmore:hover {
    color: var(--tm-red);
}

/* Pagination */
.tm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.tm-page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.tm-page-link:hover,
.tm-page-link.active {
    background: var(--tm-red);
    border-color: var(--tm-red);
    color: #ffffff;
}

/* Single News Detail Layout */
.tm-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.tm-article-box {
    background: #ffffff;
    padding: 32px 38px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.tm-article-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 3px double #222;
    margin-bottom: 22px;
}

.tm-article-title {
    margin: 0 0 8px 0;
    font-size: 32px;
    line-height: 1.22;
    color: #000000;
}

.tm-article-date-box {
    text-align: right;
    white-space: nowrap;
}

.tm-article-featured-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 2px;
}

.tm-article-content {
    font-size: 19px;
    line-height: 1.62;
    color: #111111;
}

.tm-article-content p {
    margin: 0 0 18px 0;
    font-size: 19px;
    line-height: 1.62;
}

.tm-sidebar-box {
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.tm-sidebar-widget {
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 3px double #222;
}

.tm-sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tm-sidebar-title {
    font-family: 'Oswald', 'Open Sans Condensed', sans-serif;
    font-size: 20px;
    color: var(--tm-red);
    text-transform: uppercase;
    margin: 0 0 14px 0;
}

/* ==========================================================================
   5. FOTOĞRAFLAR: ALBÜMLER MASONRY & DETAY MASONRY (REQUIREMENT #5)
   ========================================================================== */
.tm-albums-masonry {
    column-count: 3;
    column-gap: 18px;
}

.tm-album-card {
    break-inside: avoid;
    margin-bottom: 18px;
    background: #141414;
    border: 1px solid #262626;
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tm-album-card:hover {
    transform: translateY(-4px);
    border-color: var(--tm-red);
}

.tm-album-img-wrap {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.tm-album-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.35s ease;
}

.tm-album-card:hover .tm-album-img-wrap img {
    transform: scale(1.06);
}

.tm-album-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.82);
    border-left: 3px solid var(--tm-red);
    color: #ffffff;
    padding: 5px 11px;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.tm-album-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tm-red);
    color: #ffffff;
    padding: 3px 10px;
    font-family: 'Open Sans Condensed', 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.tm-album-info {
    padding: 16px 18px;
    background: #ffffff;
    color: #111111;
    border-top: 3px solid var(--tm-red);
}

.tm-album-title {
    margin: 0 0 4px 0;
    font-family: 'Oswald', 'Open Sans Condensed', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.tm-album-card:hover .tm-album-title {
    color: var(--tm-red);
}

.tm-album-desc {
    margin: 0;
    font-size: 15px;
    color: #666666;
}

/* Album Detail Photos Masonry */
.tm-photos-masonry {
    column-count: 4;
    column-gap: 10px;
}

.tm-photo-tile {
    display: block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.tm-photo-tile img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.tm-photo-tile:hover img {
    transform: scale(1.05);
}

.tm-photo-tile-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    color: #ffffff;
}

.tm-photo-tile:hover .tm-photo-tile-hover {
    opacity: 1;
}

.tm-photo-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tm-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* ==========================================================================
   6. FULLSCREEN LIGHTBOX PLAYER (PREV / NEXT / SLIDESHOW / SWIPE)
   ========================================================================== */
.tm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 99999;
    display: none;
    flex-direction: column;
    user-select: none;
}

.tm-lightbox.active {
    display: flex;
}

.tm-lb-topbar {
    height: 58px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 15, 15, 0.9);
    border-bottom: 1px solid #222;
    color: #ffffff;
}

.tm-lb-counter {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    color: #cccccc;
}

.tm-lb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-lb-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #1c1c1c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tm-lb-btn:hover,
.tm-lb-btn.active {
    background: var(--tm-red);
    border-color: var(--tm-red);
}

.tm-lb-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 70px;
}

.tm-lb-img {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 45px rgba(0,0,0,0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tm-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(25, 25, 25, 0.85);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.tm-lb-nav:hover {
    background: var(--tm-red);
    border-color: var(--tm-red);
    transform: translateY(-50%) scale(1.08);
}

.tm-lb-prev {
    left: 16px;
}

.tm-lb-next {
    right: 16px;
}

.tm-lb-captionbar {
    min-height: 48px;
    padding: 10px 20px;
    background: rgba(15, 15, 15, 0.9);
    border-top: 1px solid #222;
    color: #ffffff;
    text-align: center;
    font-size: 17px;
}

/* ==========================================================================
   7. İLETİŞİM PAGE & YANDEX MAIL FORM (REQUIREMENT #6)
   ========================================================================== */
.tm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 26px;
    align-items: start;
}

.tm-contact-card {
    background: #ffffff;
    padding: 32px 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    color: #111111;
}

.tm-contact-card h2 {
    margin: 0 0 18px 0;
    font-family: 'Oswald', 'Open Sans Condensed', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    color: #000000;
    border-bottom: 3px double #222;
    padding-bottom: 12px;
}

.tm-contact-info-list {
    list-style: none;
    margin: 0 0 22px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.tm-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--tm-red);
    color: #ffffff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-map-frame {
    width: 100%;
    height: 300px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.tm-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tm-form-group {
    margin-bottom: 16px;
}

.tm-form-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: #111111;
}

.tm-form-control {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 17px;
    border: 1px solid #333333;
    background: #fafafa;
    color: #111111;
    border-radius: 2px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tm-form-control:focus {
    outline: none;
    border-color: var(--tm-red);
    background: #ffffff;
}

.tm-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-alert {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 3px;
    font-size: 17px;
    font-weight: 700;
}

.tm-alert-success {
    background: #e8f8ee;
    border-left: 4px solid #1f9d55;
    color: #125c31;
}

.tm-alert-error {
    background: #fdeaea;
    border-left: 4px solid var(--tm-red);
    color: #9b1317;
}

/* ==========================================================================
   8. 100% VERTICAL MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1100px) {
    .tm-about-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 94%;
    }
    .tm-photos-masonry {
        column-count: 3;
    }
    .tm-detail-layout {
        grid-template-columns: 1fr;
    }
    .tm-logo-box {
        width: 185px;
        min-width: 185px;
    }
    .tm-nav-list li a {
        padding: 0 13px;
        font-size: 17px;
    }
}

@media (max-width: 960px) {
    .tm-contact-grid {
        grid-template-columns: 1fr;
    }
    .tm-albums-masonry {
        column-count: 2;
    }
    .tm-photos-masonry {
        column-count: 2;
    }
    .tm-masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .tm-nav-wrap {
        display: none;
    }
    .tm-mobile-toggle {
        display: flex;
    }
    .tm-logo-box {
        width: 175px;
        min-width: 175px;
    }
    /* Homepage Splash Vertical Mobile Adaptation */
    .tm-splash-header {
        top: 50%;
        padding: 0 14px;
        justify-content: center;
    }
    .tm-splash-bar {
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        border-radius: 4px;
        overflow: hidden;
    }
    .tm-splash-logo {
        width: 100%;
        min-width: 0;
        height: 76px;
    }
    .tm-splash-enter {
        width: 100%;
        height: 62px;
        justify-content: center;
        font-size: 24px;
    }
    .tm-splash-bar.expanded .tm-splash-menu-wrap {
        max-width: 100%;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
    .tm-splash-menu {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    .tm-splash-menu li a {
        width: 100%;
        height: 52px;
        padding: 0 20px;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        font-size: 19px;
    }

    .tm-about-container {
        padding: 22px 18px;
        max-width: 100%;
        margin: 0 12px;
    }
    .tm-article-box {
        padding: 20px 16px;
    }
    .tm-article-header {
        flex-direction: column;
    }
    .tm-article-date-box {
        text-align: left;
    }
    .tm-article-title {
        font-size: 24px;
    }
    .tm-contact-card {
        padding: 22px 18px;
    }
    .tm-lb-stage {
        padding: 10px 12px;
    }
    .tm-lb-nav {
        width: 42px;
        height: 42px;
    }
    .tm-lb-prev {
        left: 8px;
    }
    .tm-lb-next {
        right: 8px;
    }
}

@media (max-width: 540px) {
    .tm-logo-box {
        width: 165px;
        min-width: 165px;
    }
    .tm-albums-masonry {
        column-count: 1;
    }
    .tm-photos-masonry {
        column-count: 2;
        column-gap: 8px;
    }
    .tm-masonry-gallery {
        column-count: 2;
        column-gap: 8px;
    }
    .tm-news-grid {
        grid-template-columns: 1fr;
    }
    .tm-filter-bar {
        padding: 14px;
    }
}
