/* ===========================================================
   The MediaTech Softs Frontend Theme
   Custom marketing site styles (Bootstrap 5 grid based).
   =========================================================== */
/* Transport frontend */

iconify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

:root {
    --tp-primary: #e0241b;
    --tp-primary-dark: #b71d16;
    --tp-dark: #14181f;
    --tp-darker: #0d1014;
    --tp-gray: #6b7280;
    --tp-light: #f6f7f9;
    --tp-radius: 14px;
    --tp-shadow: 0 12px 40px rgba(20, 24, 31, .08);
    --tp-transition: all .35s cubic-bezier(.2, .7, .3, 1);
}

* { scroll-behavior: smooth; }

body.tp-body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #2b2f36;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
}

.tp-section { padding: 100px 0; }
.tp-section-sm { padding: 70px 0; }
.tp-bg-light { background: var(--tp-light); }
.tp-bg-dark { background: var(--tp-dark); color: #cfd4db; }

a { text-decoration: none; }

/* Preloader */
#tp-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: #fff; display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
#tp-preloader.loaded { opacity: 0; visibility: hidden; }
.tp-spinner {
    width: 56px; height: 56px; border-radius: 50%;
    border: 5px solid rgba(224, 36, 27, .2);
    border-top-color: var(--tp-primary);
    animation: tp-spin 1s linear infinite;
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* Buttons */
.tp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 50px; font-weight: 600;
    border: 2px solid transparent; cursor: pointer; transition: var(--tp-transition);
    font-size: 15px;
}
.tp-btn-primary { background: var(--tp-primary); color: #fff; }
.tp-btn-primary:hover { background: var(--tp-primary-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(224, 36, 27, .35); }
.tp-btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.tp-btn-outline:hover { background: #fff; color: var(--tp-dark); transform: translateY(-3px); }
.tp-btn-dark { background: var(--tp-dark); color: #fff; }
.tp-btn-dark:hover { background: var(--tp-primary); color: #fff; transform: translateY(-3px); }

/* Header */
.tp-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: var(--tp-transition);
}
.tp-header.scrolled { background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); padding: 10px 0; }
.tp-header .navbar-brand img { max-height: 46px; transition: var(--tp-transition); }
.tp-nav { display: flex; align-items: center; gap: 30px; }
.tp-nav a {
    color: #fff; font-weight: 600; font-size: 15px; position: relative; transition: var(--tp-transition);
}
.tp-header.scrolled .tp-nav a, .tp-header.tp-solid .tp-nav a { color: var(--tp-dark); }
.tp-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--tp-primary); transition: var(--tp-transition);
}
.tp-nav a:hover::after, .tp-nav a.active::after { width: 100%; }
.tp-nav a:hover, .tp-nav a.active { color: var(--tp-primary); }

.tp-nav-dropdown { position: relative; }
.tp-nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 0;
    color: #fff; font-weight: 600; font-size: 15px; position: relative;
    transition: var(--tp-transition); cursor: pointer;
}
.tp-nav-dropdown-toggle::after {
    margin-left: 2px; vertical-align: middle;
    border-top-color: currentColor;
}
.tp-header.scrolled .tp-nav-dropdown-toggle,
.tp-header.tp-solid .tp-nav-dropdown-toggle { color: var(--tp-dark); }
.tp-nav-dropdown-toggle::before {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--tp-primary); transition: var(--tp-transition);
}
.tp-nav-dropdown-toggle:hover::before,
.tp-nav-dropdown-toggle.active::before,
.tp-nav-dropdown.show .tp-nav-dropdown-toggle::before { width: 100%; }
.tp-nav-dropdown-toggle:hover,
.tp-nav-dropdown-toggle.active,
.tp-nav-dropdown.show .tp-nav-dropdown-toggle { color: var(--tp-primary); }
.tp-nav-dropdown-menu {
    margin-top: 14px; min-width: 210px; padding: 10px;
    border: 0; border-radius: 12px; box-shadow: var(--tp-shadow);
}
.tp-nav-dropdown-menu .dropdown-item {
    border-radius: 8px; font-weight: 600; font-size: 14px; padding: 10px 14px;
    color: var(--tp-dark); transition: var(--tp-transition);
}
.tp-nav-dropdown-menu .dropdown-item:hover,
.tp-nav-dropdown-menu .dropdown-item.active {
    background: rgba(224, 36, 27, .08); color: var(--tp-primary);
}

.tp-header.tp-solid { background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.06); position: sticky; }
.tp-header.tp-solid .navbar-brand .logo-dark { display: inline-block; }

.tp-burger { display: none; background: none; border: 0; font-size: 28px; color: #fff; cursor: pointer; }
.tp-header.scrolled .tp-burger, .tp-header.tp-solid .tp-burger { color: var(--tp-dark); }

/* Mobile menu */
.tp-mobile-menu {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: #fff;
    z-index: 1100; box-shadow: -6px 0 30px rgba(0, 0, 0, .15); padding: 30px 24px;
    transition: right .4s ease; overflow-y: auto;
}
.tp-mobile-menu.open { right: 0; }
.tp-mobile-menu a { display: block; padding: 14px 0; color: var(--tp-dark); font-weight: 600; border-bottom: 1px solid #eee; }
.tp-mobile-menu a:hover { color: var(--tp-primary); padding-left: 6px; }
.tp-mobile-menu-label {
    display: block; padding: 18px 0 8px; color: var(--tp-gray);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.tp-mobile-submenu-link { padding-left: 14px !important; font-size: 14px; }
.tp-mobile-submenu-link.active { color: var(--tp-primary); }
.tp-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1050; opacity: 0; visibility: hidden; transition: var(--tp-transition); }
.tp-overlay.open { opacity: 1; visibility: visible; }

/* Hero */
.tp-hero {
    position: relative; min-height: clamp(500px, 48vw, 760px); display: flex; align-items: center;
    color: #fff; overflow: hidden;
}
.tp-hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center center;
    opacity: 0; transition: opacity 1.2s ease, transform 8s ease; transform: scale(1.05);
}
.tp-hero-slide.active { opacity: 1; transform: scale(1.08); }
.tp-hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13, 16, 20, .9) 0%, rgba(13, 16, 20, .65) 50%, rgba(13, 16, 20, .35) 100%); }
.tp-hero-content { position: relative; z-index: 3; max-width: 760px; margin: 0; text-align: left; }
.tp-hero-subtitle { color: var(--tp-primary); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 14px; margin-bottom: 16px; }
.tp-hero h1 { font-size: clamp(1.8rem, 4.4vw, 4rem); font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.tp-hero p { font-size: clamp(.95rem, 1.4vw, 1.15rem); color: #d7dbe1; margin-bottom: 30px; max-width: 620px; }
.tp-hero-dots { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 12px; }
.tp-hero-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: var(--tp-transition); }
.tp-hero-dots button.active { background: var(--tp-primary); border-color: var(--tp-primary); width: 34px; border-radius: 8px; }

/* Section heading */
.tp-heading { margin-bottom: 56px; }
.tp-heading .tp-eyebrow { color: var(--tp-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.tp-heading .tp-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--tp-primary); display: inline-block; }
.tp-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--tp-dark); margin: 14px 0 0; }
.tp-heading p { color: var(--tp-gray); margin-top: 14px; max-width: 640px; }
.tp-heading.center { text-align: center; }
.tp-heading.center .tp-eyebrow::before { display: none; }
.tp-heading.center p { margin-left: auto; margin-right: auto; }

/* Cards */
.tp-card {
    background: #fff; border-radius: var(--tp-radius); padding: 36px 30px;
    box-shadow: var(--tp-shadow); transition: var(--tp-transition); border: 1px solid #eef0f3;
    position: relative; overflow: hidden;
}
/* Sidebar: never stretch with the main column */
.tp-sidebar { align-self: flex-start !important; }
.tp-sidebar .tp-card {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
}
.tp-sidebar .tp-card:hover { transform: none; }
.tp-recent-post-thumb {
    width: 64px !important;
    height: 56px !important;
    max-width: 64px !important;
    max-height: 56px !important;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}
.tp-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--tp-primary); transition: var(--tp-transition); }
.tp-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(20, 24, 31, .14); }
.tp-card:hover::before { width: 100%; }
.tp-card-icon {
    width: 70px; height: 70px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: rgba(224, 36, 27, .1); color: var(--tp-primary); font-size: 32px; margin-bottom: 24px; transition: var(--tp-transition);
}
.tp-card-icon iconify-icon {
    font-size: 32px;
    width: 1em;
    height: 1em;
}
.tp-card:hover .tp-card-icon { background: var(--tp-primary); color: #fff; transform: rotateY(360deg); }
.tp-card h4 { font-size: 1.25rem; font-weight: 700; color: var(--tp-dark); margin-bottom: 12px; }
.tp-card p { color: var(--tp-gray); font-size: 15px; margin-bottom: 0; }
.tp-card .tp-card-link { color: var(--tp-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; }

/* Feature item */
.tp-feature { display: flex; gap: 18px; align-items: flex-start; }
.tp-feature .ic { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: rgba(224,36,27,.1); color: var(--tp-primary); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.tp-feature .ic iconify-icon,
.tp-counter .ic iconify-icon {
    font-size: inherit;
    width: 1em;
    height: 1em;
}
.tp-feature h5 { font-weight: 700; color: var(--tp-dark); margin-bottom: 6px; }
.tp-feature p { color: var(--tp-gray); font-size: 14px; margin: 0; }

/* Counters */
.tp-counter { text-align: center; color: #fff; }
.tp-counter .ic { font-size: 40px; color: var(--tp-primary); margin-bottom: 12px; }
.tp-counter .num { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.tp-counter .label { color: #aeb4bd; margin-top: 8px; }
.tp-counter-section { position: relative; background: var(--tp-dark) url('../images/carousel/carousel-img2.png') center/cover; }
.tp-counter-section::before { content: ''; position: absolute; inset: 0; background: rgba(13,16,20,.85); }
.tp-counter-section .container { position: relative; z-index: 2; }

/* About */
.tp-about-img { position: relative; border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); }
.tp-about-img img { width: 100%; display: block; transition: var(--tp-transition); }
.tp-about-img:hover img { transform: scale(1.05); }
.tp-about-badge { position: absolute; bottom: 24px; left: 24px; background: var(--tp-primary); color: #fff; padding: 20px 26px; border-radius: var(--tp-radius); }
.tp-about-badge .big { font-size: 2rem; font-weight: 800; line-height: 1; }
.tp-list { list-style: none; padding: 0; margin: 24px 0; }
.tp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; color: #2b2f36; }
.tp-list li i { color: var(--tp-primary); }

/* Portfolio */
.tp-portfolio-item { position: relative; border-radius: var(--tp-radius); overflow: hidden; }
.tp-portfolio-item img { width: 100%; height: 300px; object-fit: cover; transition: var(--tp-transition); }
.tp-portfolio-item:hover img { transform: scale(1.1); }
.tp-portfolio-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,16,20,.92), transparent);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; opacity: 0; transition: var(--tp-transition);
}
.tp-portfolio-item:hover .tp-portfolio-overlay { opacity: 1; }
.tp-portfolio-overlay span { color: var(--tp-primary); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tp-portfolio-overlay h5 { color: #fff; margin: 6px 0 0; }
.tp-portfolio-overlay .zoom { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; background: var(--tp-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tp-filter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.tp-filter button { border: 0; background: #fff; color: var(--tp-dark); padding: 10px 24px; border-radius: 50px; font-weight: 600; box-shadow: var(--tp-shadow); cursor: pointer; transition: var(--tp-transition); }
.tp-filter button.active, .tp-filter button:hover { background: var(--tp-primary); color: #fff; }

/* Testimonials */
.tp-testimonial { background: #fff; border-radius: var(--tp-radius); padding: 36px; box-shadow: var(--tp-shadow); margin: 14px; }
.tp-testimonial .quote { color: var(--tp-primary); font-size: 38px; opacity: .25; }
.tp-testimonial p { color: #4b5159; font-style: italic; margin: 14px 0 24px; }
.tp-testimonial .person { display: flex; align-items: center; gap: 14px; }
.tp-testimonial .person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tp-testimonial .person h6 { margin: 0; font-weight: 700; color: var(--tp-dark); }
.tp-testimonial .person span { color: var(--tp-gray); font-size: 13px; }
.tp-stars { color: #f5a623; margin-bottom: 6px; }

/* Blog */
.tp-blog-card { background: #fff; border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); height: 100%; transition: var(--tp-transition); }
.tp-blog-card:hover { transform: translateY(-8px); }
.tp-blog-card .thumb { height: 220px; overflow: hidden; }
.tp-blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--tp-transition); }
.tp-blog-card:hover .thumb img { transform: scale(1.08); }
.tp-blog-card .body { padding: 26px; }
.tp-blog-card .cat { color: var(--tp-primary); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.tp-blog-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--tp-dark); margin: 10px 0; }
.tp-blog-card .meta { color: var(--tp-gray); font-size: 13px; display: flex; gap: 16px; }

/* Page banner */
.tp-page-banner { position: relative; padding: 170px 0 90px; background: var(--tp-dark) center/cover; color: #fff; text-align: center; }
.tp-page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13,16,20,.92), rgba(224,36,27,.4)); }
.tp-page-banner .container { position: relative; z-index: 2; }
.tp-page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.tp-page-banner .crumb { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; }
.tp-page-banner .crumb a { color: #d7dbe1; }
.tp-page-banner .crumb a:hover { color: var(--tp-primary); }
.tp-page-banner .crumb span { color: var(--tp-primary); }

/* Contact */
.tp-contact-info { display: flex; gap: 18px; align-items: flex-start; padding: 26px; background: #fff; border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); margin-bottom: 20px; }
.tp-contact-info .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--tp-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.tp-contact-info h6 { font-weight: 700; margin: 0 0 4px; color: var(--tp-dark); }
.tp-contact-info p { margin: 0; color: var(--tp-gray); }
.tp-form-control { width: 100%; padding: 14px 18px; border: 1px solid #e1e4e9; border-radius: 10px; margin-bottom: 18px; font-size: 15px; transition: var(--tp-transition); }
.tp-form-control:focus { outline: none; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(224,36,27,.12); }

/* Share buttons */
.tp-share, .tp-follow { margin: 28px 0; }
.tp-share-label { font-weight: 700; font-size: 14px; color: var(--tp-dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.tp-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tp-share-btn {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; transition: var(--tp-transition); border: 0; padding: 0; line-height: 1;
}
.tp-share-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 8px 20px rgba(20, 24, 31, .15); }
.tp-share-btn.facebook { background: #1877f2; }
.tp-share-btn.twitter { background: #000; }
.tp-share-btn.linkedin { background: #0a66c2; }
.tp-share-btn.whatsapp { background: #25d366; }
.tp-share-btn.google { background: #ea4335; }
.tp-share-btn.pinterest { background: #e60023; }
.tp-share-btn.email { background: #6b7280; }
.tp-share-btn.copy { background: var(--tp-dark); cursor: pointer; }
.tp-share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tp-share-btn.youtube { background: #ff0000; }
.tp-share-copied { font-size: 12px; font-weight: 600; color: var(--tp-primary); }

/* Footer */
.tp-footer { background: var(--tp-darker); color: #aeb4bd; padding: 80px 0 0; }
.tp-footer h5 { color: #fff; font-weight: 700; margin-bottom: 24px; font-size: 1.1rem; }
.tp-footer a { color: #aeb4bd; transition: var(--tp-transition); }
.tp-footer a:hover { color: var(--tp-primary); padding-left: 4px; }
.tp-footer ul { list-style: none; padding: 0; }
.tp-footer ul li { padding: 7px 0; }
.tp-footer-social { display: flex; gap: 12px; margin-top: 20px; }
.tp-footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; }
.tp-footer-social a:hover { background: var(--tp-primary); transform: translateY(-4px); padding: 0; }
.tp-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 60px; padding: 24px 0; text-align: center; font-size: 14px; }

/* Pixel spacing utilities (wowdash-style, for frontend where theme style.css isn't loaded) */
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }

/* Header search */
.tp-search-toggle { background: none; border: 0; font-size: 18px; color: #fff; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; transition: var(--tp-transition); }
.tp-search-toggle:hover { background: rgba(255,255,255,.12); }
.tp-header.scrolled .tp-search-toggle, .tp-header.tp-solid .tp-search-toggle { color: var(--tp-dark); }
.tp-header.scrolled .tp-search-toggle:hover, .tp-header.tp-solid .tp-search-toggle:hover { background: rgba(0,0,0,.06); }
.tp-search-panel { max-height: 0; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.1); transition: max-height .35s ease; }
.tp-search-panel.open { max-height: 120px; }
.tp-search-panel form { padding: 18px 0; }
.tp-search-panel input { height: 50px; border-radius: 10px; }
.tp-search-form input { height: 56px; border-radius: 12px; }

/* Back to top */
.tp-totop { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--tp-primary); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--tp-transition); z-index: 900; }
.tp-totop.show { opacity: 1; visibility: visible; }
.tp-totop:hover { background: var(--tp-primary-dark); transform: translateY(-4px); }

/* Alert */
.tp-alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.tp-alert-success { background: #e6f7ed; color: #1a7f43; border: 1px solid #b6e6c8; }
.tp-alert-danger { background: #fde8e8; color: #b71d16; border: 1px solid #f6c5c2; }

/* Responsive */
@media (max-width: 991px) {
    .tp-nav { display: none; }
    .tp-burger { display: block; }
    .tp-section { padding: 70px 0; }
}
@media (max-width: 575px) {
    .tp-hero { min-height: 76vh; }
    .tp-hero-content { max-width: 100%; }
    .tp-section { padding: 56px 0; }
    .tp-card { padding: 28px 22px; }
}
