/* TPS Corporate Homepage - Technology House inspired design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --tps-red: #d32f2f;
    --tps-red-dark: #b71c1c;
    --tps-navy: #1a2744;
    --tps-navy-light: #243352;
    --tps-gray-bg: #f5f6f8;
    --tps-text: #555;
    --tps-heading: #1a1a2e;
    --tps-white: #ffffff;
}

body.tps-modern {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--tps-text);
    line-height: 1.7;
}

/* Header */
.tps-modern header.tps-header {
    position: relative;
    z-index: 1000;
}

.tps-modern .header-top {
    background: var(--tps-navy);
    padding: 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tps-modern .tps-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 12px;
}

.tps-modern .header-top .ht-left,
.tps-modern .header-top .ht-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.tps-modern .header-top .link {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    transition: color 0.25s;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 38px;
}

.tps-modern .header-top .link i {
    margin-right: 6px;
    font-size: 11px;
    opacity: 0.85;
}

.tps-modern .header-top .link:hover {
    color: #fff;
}

.tps-modern .header-top .link-cta {
    background: var(--tps-red);
    color: #fff !important;
    padding: 5px 16px;
    border-radius: 3px;
    line-height: 1.4;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tps-modern .header-top .link-cta:hover {
    background: var(--tps-red-dark);
    color: #fff !important;
}

.tps-modern .header-bottom {
    background: var(--tps-white) !important;
    border-bottom: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 0;
}

.tps-modern .header-bottom-inner {
    background: var(--tps-white) !important;
}

.tps-modern .tps-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.tps-modern .tps-navbar .logo {
    flex: 0 0 auto;
    padding: 8px 0;
}

.tps-modern .tps-navbar .logo img {
    max-height: 58px;
    width: auto;
    display: block;
}

.tps-modern .tps-main-nav {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
}

.tps-modern .tps-main-nav > ul {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
    float: none !important;
    margin: 0;
    padding: 0;
}

.tps-modern .tps-main-nav > ul > li {
    float: none !important;
    display: block;
    margin: 0 !important;
    position: relative;
    flex: 0 0 auto;
}

.tps-modern .tps-main-nav > ul > li > a {
    color: var(--tps-heading) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 26px 11px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    border-bottom: 3px solid transparent !important;
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s;
}

.tps-modern .tps-main-nav > ul > li:hover > a,
.tps-modern .tps-main-nav > ul > li.active > a {
    color: var(--tps-red) !important;
    border-bottom-color: var(--tps-red) !important;
}

.tps-modern .tps-main-nav li.has-sub > a:after {
    border-top-color: var(--tps-heading) !important;
    margin-left: 5px;
}

.tps-modern .tps-main-nav li.has-sub:hover > a:after {
    border-top-color: var(--tps-red) !important;
}

.tps-modern .tps-main-nav ul ul {
    background: var(--tps-white) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
    border-top: 3px solid var(--tps-red);
    min-width: 200px;
    border-radius: 0 0 6px 6px;
}

.tps-modern .tps-main-nav ul ul li a {
    font-size: 13px !important;
    padding: 10px 18px !important;
    color: var(--tps-text) !important;
    border: none !important;
    white-space: nowrap;
}

.tps-modern .tps-main-nav ul ul li a:hover {
    color: var(--tps-red) !important;
    background: rgba(211,47,47,0.06);
}

.tps-modern .navbar-fixed-top.header-bottom {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tps-modern .navbar-fixed-top .tps-navbar {
    min-height: 64px;
}

.tps-modern .navbar-fixed-top .tps-navbar .logo img {
    max-height: 50px;
}

.tps-modern .navbar-fixed-top .tps-main-nav > ul > li > a {
    padding: 20px 11px !important;
}

/* Stellarnav mobile */
.tps-modern .stellarnav.mobile {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.tps-modern .stellarnav.mobile .menu-toggle {
    padding: 8px;
}

.tps-modern .stellarnav.mobile .menu-toggle span.bars span {
    background: var(--tps-navy);
}

@media (max-width: 1199px) {
    .tps-modern .tps-navbar {
        position: relative;
        min-height: 64px;
    }

    .tps-modern .tps-main-nav {
        position: static;
    }
}

@media (max-width: 767px) {
    .tps-modern .header-top .ht-left .link:last-child {
        display: none;
    }

    .tps-modern .tps-navbar .logo img {
        max-height: 48px;
    }
}

/* Hero */
.tps-modern .hero-area {
    position: relative;
    margin-top: 0;
}

.tps-modern .single-hero-carousel {
    position: relative;
    min-height: 580px;
}

.tps-modern .single-hero-carousel .img {
    position: absolute;
    inset: 0;
}

.tps-modern .single-hero-carousel .img img {
    width: 100%;
    height: 580px;
    object-fit: cover;
}

.tps-modern .single-hero-carousel .img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,39,68,0.75) 0%, rgba(211,47,47,0.45) 100%);
}

.tps-modern .single-hero-carousel .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    background: transparent !important;
    z-index: 2;
    padding: 0;
}

.tps-modern .single-hero-carousel .title-1 {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.tps-modern .single-hero-carousel .title-2 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.tps-modern .hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 300;
}

.tps-modern .single-hero-carousel .button,
.tps-modern .btn-tps-primary {
    display: inline-block;
    background: var(--tps-red);
    color: #fff !important;
    border: 2px solid var(--tps-red);
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.tps-modern .single-hero-carousel .button:hover,
.tps-modern .btn-tps-primary:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}

.tps-modern .hero-carousel .owl-nav > div {
    background: var(--tps-red) !important;
    color: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 50px;
    opacity: 0.9;
}

/* Quick Stats */
.tps-stats-bar {
    background: var(--tps-white);
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.tps-stats-bar .stat-item {
    text-align: center;
    padding: 15px;
    border-right: 1px solid #eee;
}

.tps-stats-bar .stat-item:last-child {
    border-right: none;
}

.tps-stats-bar .stat-icon {
    color: var(--tps-red);
    font-size: 32px;
    margin-bottom: 10px;
}

.tps-stats-bar .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--tps-red);
    line-height: 1;
}

.tps-stats-bar .stat-label {
    font-size: 14px;
    color: var(--tps-text);
    margin-top: 8px;
    font-weight: 500;
}

/* Section common */
.tps-section {
    padding: 80px 0;
}

.tps-section-gray {
    background: var(--tps-gray-bg);
}

.tps-section-dark {
    background: var(--tps-navy);
    color: #fff;
}

.tps-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.tps-section-title .subtitle {
    color: var(--tps-red);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.tps-section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--tps-heading);
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.tps-section-dark .tps-section-title h2 {
    color: #fff;
}

.tps-section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tps-red);
    margin: 15px auto 0;
}

/* About */
.tps-about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.tps-about-img img {
    width: 100%;
    border-radius: 8px;
}

.tps-about-img::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    border: 4px solid var(--tps-red);
    border-radius: 8px;
    z-index: -1;
}

.tps-about-content h3 {
    font-size: 14px;
    color: var(--tps-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.tps-about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--tps-heading);
    margin: 10px 0 20px;
}

.tps-about-content p {
    margin-bottom: 20px;
}

.tps-about-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.tps-about-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.tps-about-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--tps-red);
    position: absolute;
    left: 0;
}

/* Mission Vision */
.tps-mv-card {
    background: var(--tps-white);
    padding: 40px 35px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    height: 100%;
    border-top: 4px solid var(--tps-red);
}

.tps-mv-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tps-heading);
    margin-bottom: 15px;
}

/* Service Cards */
.tps-service-card {
    background: var(--tps-white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    margin-bottom: 30px;
}

.tps-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(211,47,47,0.15);
}

.tps-service-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(211,47,47,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--tps-red);
}

.tps-service-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tps-heading);
    margin-bottom: 12px;
}

.tps-service-card p {
    font-size: 14px;
    margin: 0;
}

/* Facility icons */
.tps-facility-item {
    text-align: center;
    padding: 30px 15px;
    background: var(--tps-white);
    border-radius: 8px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.tps-facility-item:hover {
    background: var(--tps-red);
    color: #fff;
    transform: translateY(-5px);
}

.tps-facility-item:hover h4,
.tps-facility-item:hover .icon {
    color: #fff !important;
}

.tps-facility-item .icon img {
    max-height: 60px;
    margin-bottom: 15px;
}

.tps-facility-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tps-heading);
}

/* News / Event cards */
.tps-modern .single-news,
.tps-modern .single-event {
    background: var(--tps-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: none !important;
}

.tps-modern .single-news::before,
.tps-modern .single-news::after,
.tps-modern .single-event::before,
.tps-modern .single-event::after {
    display: none !important;
}

.tps-modern .single-news .img img,
.tps-modern .single-event .img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: none !important;
}

.tps-modern .single-news .meta,
.tps-modern .single-event .meta {
    background: var(--tps-red) !important;
    padding: 10px 20px;
    font-size: 12px;
}

.tps-modern .single-news .content,
.tps-modern .single-event .content {
    padding: 20px;
}

.tps-modern .single-news .content .title,
.tps-modern .single-event .content .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tps-heading);
    border: none;
}

.tps-modern .single-news .content .more,
.tps-modern .single-event .content .more {
    color: var(--tps-red) !important;
    border-color: var(--tps-red) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

/* Stats counter */
.tps-counter-section {
    background: linear-gradient(135deg, var(--tps-navy) 0%, var(--tps-navy-light) 100%);
    padding: 70px 0;
}

.tps-counter-item {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.tps-counter-item .counter {
    font-size: 48px;
    font-weight: 700;
    color: var(--tps-red);
    display: block;
}

.tps-counter-item .label {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
    font-weight: 400;
}

.tps-counter-item .icon {
    font-size: 40px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 10px;
}

/* Team */
.tps-team-card {
    background: var(--tps-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.tps-team-card:hover {
    transform: translateY(-5px);
}

.tps-team-card .photo {
    position: relative;
    overflow: hidden;
}

.tps-team-card .photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.tps-team-card .info {
    padding: 20px;
}

.tps-team-card .info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tps-heading);
    margin: 0 0 5px;
}

.tps-team-card .info span {
    color: var(--tps-red);
    font-size: 13px;
    font-weight: 500;
}

/* Testimonials */
.tps-modern .testimonial-area {
    background: var(--tps-gray-bg) !important;
    padding: 80px 0;
}

.tps-modern .single-testimonial {
    background: var(--tps-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    text-align: center;
}

.tps-modern .single-testimonial .author-thumb img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tps-red);
}

.tps-modern .single-testimonial .text {
    font-style: italic;
    font-size: 16px;
    color: var(--tps-text);
    margin: 20px 0;
}

/* Gallery */
.tps-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tps-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.tps-gallery-item:hover img {
    transform: scale(1.1);
}

.tps-gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(211,47,47,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.tps-gallery-item:hover .overlay {
    opacity: 1;
}

.tps-gallery-item .overlay a {
    color: #fff;
    font-size: 24px;
}

/* CTA Banner */
.tps-cta-banner {
    background: var(--tps-red);
    padding: 60px 0;
    text-align: center;
}

.tps-cta-banner h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tps-cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tps-cta-banner .btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    margin: 0 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s;
}

.tps-cta-banner .btn-outline:hover,
.tps-cta-banner .btn-outline.filled {
    background: #fff;
    color: var(--tps-red);
}

/* Footer */
.tps-modern footer {
    background: var(--tps-navy) !important;
    border-top: 4px solid var(--tps-red) !important;
    color: rgba(255,255,255,0.8);
}

.tps-modern .footer-top {
    padding: 60px 0 40px;
}

.tps-modern .footer-widget .title {
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid var(--tps-red) !important;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.tps-modern .footer-widget .links li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.tps-modern .footer-widget .links li a:hover {
    color: var(--tps-red) !important;
}

.tps-modern .footer-widget .links li a::before {
    background: var(--tps-red) !important;
}

.tps-modern .footer-widget .social li a {
    background: rgba(255,255,255,0.1);
    border-color: transparent !important;
    color: #fff !important;
}

.tps-modern .footer-widget .social li a:hover {
    background: var(--tps-red) !important;
}

.tps-modern .footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

.tps-modern .apply-area {
    display: none;
}

.tps-modern .footer-widget .contact-info li .icon,
.tps-modern .footer-widget .contact-info li a:hover {
    color: var(--tps-red) !important;
}

/* Hide old section decorations */
.tps-modern .section-title .title img {
    display: none;
}

.tps-modern .section-title .title {
    border: none !important;
    font-size: 36px;
    font-weight: 700;
    color: var(--tps-heading);
}

.tps-modern .facilities-area,
.tps-modern .achivement-area,
.tps-modern .event-area,
.tps-modern .news-area {
    padding: 80px 0;
}

.tps-modern .facilities-area {
    background: var(--tps-gray-bg);
}

.tps-modern .achivement-area {
    background: transparent !important;
    padding: 0 !important;
}

.tps-modern .single-achivement {
    border-color: var(--tps-red) !important;
}

.tps-modern .single-achivement .icon {
    color: var(--tps-red) !important;
    border-color: var(--tps-red) !important;
}

.tps-modern .btn-tps-outline {
    display: inline-block;
    border: 2px solid var(--tps-red);
    color: var(--tps-red);
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s;
}

.tps-modern .btn-tps-outline:hover {
    background: var(--tps-red);
    color: #fff;
}

/* Theme overrides for tps-modern */
.tps-modern .header-top,
.tps-modern .single-hero-carousel .button:hover,
.tps-modern .apply-box,
.tps-modern .single-facilities,
.tps-modern .single-news .meta,
.tps-modern .single-event .meta {
    background: var(--tps-navy) !important;
}

.tps-modern .header-top .link-cta {
    background: var(--tps-red) !important;
}

.tps-modern a:hover,
.tps-modern header .stellarnav ul li:hover > a,
.tps-modern .hero-carousel .owl-nav > div,
.tps-modern .single-news .content .more,
.tps-modern .single-event .content .more {
    color: var(--tps-red) !important;
}

.tps-modern .welcome-content .title-2,
.tps-modern .page-header-content .title {
    color: var(--tps-red) !important;
}

.tps-modern footer {
    border-top-color: var(--tps-red) !important;
}

.tps-modern #preloader {
    background: var(--tps-white);
}

/* Force override legacy style.css nav rules */
body.tps-modern header .stellarnav {
    padding: 0 !important;
}

body.tps-modern header .stellarnav ul li {
    margin-left: 0 !important;
}

body.tps-modern header .stellarnav ul li a {
    font-size: 13px !important;
    font-weight: 500 !important;
}

body.tps-modern header .header-top .ht-right .link .icon {
    color: inherit !important;
}

body.tps-modern .header-bottom.navbar-fixed-top {
    background: #fff !important;
}
@media (max-width: 991px) {
    .tps-modern .single-hero-carousel .title-2 {
        font-size: 32px;
    }
    .tps-stats-bar .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .tps-section {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .tps-modern .single-hero-carousel,
    .tps-modern .single-hero-carousel .img img {
        min-height: 420px;
        height: 420px;
    }
    .tps-modern .single-hero-carousel .title-2 {
        font-size: 26px;
    }
}
