/* --- TEMPLE MANAGEMENT SOFTWARE PAGE STYLES --- */

.tm-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: #f8f9fa;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.tm-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.tm-hero-left {
    flex: 1;
    max-width: 600px;
}

.tm-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tm-breadcrumb a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.tm-breadcrumb a:hover {
    color: var(--primary-red);
}

.tm-breadcrumb span.sep {
    color: var(--primary-red);
    font-weight: 700;
}

.tm-hero-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: var(--primary-red);
}

.tm-hero-left h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.tm-hero-left h1 span.red {
    color: var(--primary-red);
    display: block;
}

.tm-hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    max-width: 500px;
}

.tm-hero-actions {
    display: flex;
    gap: 15px;
}

.tm-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tm-btn-red {
    background: var(--primary-red);
    color: #fff;
}

.tm-btn-red:hover {
    background: #c41414;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(230, 24, 24, 0.2);
}

.tm-btn-outline {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.tm-btn-outline:hover {
    background: #fdfdfd;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.tm-btn-icon {
    font-size: 18px;
}

/* Right Side Mockups */
.tm-hero-right {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.tm-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.tm-laptop {
    width: 90%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.15));
}

.tm-mobile {
    position: absolute;
    bottom: -5%;
    right: 0;
    width: 25%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

/* Features Section */
.tm-features-section {
    padding: 100px 0;
    background-color: #fff;
}

.tm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tm-subtitle {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.tm-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.tm-title-line {
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    margin: 0 auto;
}

.tm-features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tm-feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tm-feature-icon-wrapper {
    margin-bottom: 25px;
    position: relative;
}

.tm-feature-icon {
    width: 70px;
    height: 70px;
    background: #fff5f5;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tm-feature-item:hover .tm-feature-icon {
    transform: translateY(-5px);
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 10px 20px rgba(230, 24, 24, 0.2);
}

.tm-feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tm-feature-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .tm-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .tm-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tm-section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .tm-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Documentation Section */
.tm-docs-section {
    padding: 100px 0;
    background-color: #050709;
    background-image: linear-gradient(rgba(5, 7, 9, 0.92), rgba(5, 7, 9, 0.92)), 
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
}

.tm-docs-header h2 {
    color: #fff;
}

.tm-docs-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tm-docs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.tm-doc-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: all 0.3s ease;
}

.tm-doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tm-doc-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tm-doc-icon {
    color: var(--primary-red);
    flex-shrink: 0;
}

.tm-doc-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.tm-doc-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.tm-doc-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.tm-doc-link span {
    transition: transform 0.3s ease;
}

.tm-doc-link:hover span {
    transform: translateX(5px);
}

/* Live Demo Section */
.tm-demo-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.tm-demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.tm-demo-left {
    flex: 1;
    max-width: 500px;
}

.tm-demo-left h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.tm-demo-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.tm-demo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.tm-demo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 15px;
}

.tm-demo-list li svg {
    color: var(--primary-red);
    border: 1.5px solid var(--primary-red);
    border-radius: 50%;
    padding: 3px;
    width: 24px;
    height: 24px;
}

.tm-demo-btn {
    display: inline-flex;
}

.tm-demo-right {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.tm-tablet-mockup {
    width: 100%;
    max-width: 700px;
    background: #000;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

.tm-tablet-screen {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}

.tm-tablet-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 15px rgba(230, 24, 24, 0.2);
    transition: all 0.3s ease;
}

.tm-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 0 25px rgba(230, 24, 24, 0.1);
}

.tm-play-btn svg {
    margin-left: 5px;
}

/* Custom Theme Section */
.tm-theme-section {
    padding: 100px 0;
    background-color: #fff;
}

.tm-theme-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
}

.tm-theme-left {
    flex: 0 0 350px;
}

.tm-theme-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.tm-theme-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.tm-theme-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.tm-theme-list li svg {
    color: var(--primary-red);
}

.tm-theme-btn {
    border-color: #ddd;
    color: var(--primary-red);
}

.tm-theme-btn:hover {
    border-color: var(--primary-red);
    background-color: #fff5f5;
}

.tm-theme-right {
    flex: 1;
}

.tm-theme-previews {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.tm-theme-preview {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.tm-theme-preview:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.tm-theme-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Theme color variations using filters */
.tm-theme-gold img {
    filter: sepia(0.8) saturate(3) hue-rotate(15deg) brightness(1.1);
}

.tm-theme-maroon img {
    filter: hue-rotate(-10deg) saturate(1.5) brightness(0.9);
}

.tm-theme-blue img {
    filter: hue-rotate(185deg) saturate(2) brightness(1);
}

@media (max-width: 992px) {
    .tm-theme-container {
        flex-direction: column;
        text-align: center;
    }
    .tm-theme-left {
        max-width: 100%;
        flex: none;
        margin-bottom: 50px;
    }
    .tm-theme-list {
        display: inline-block;
        text-align: left;
    }
}

/* Enquiry Section */
.tm-enquiry-section {
    padding: 100px 0;
    background-color: #fff;
}

.tm-enquiry-card {
    background-color: #fff4f4; /* Light pinkish/white background */
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.tm-enquiry-left {
    flex: 1;
    z-index: 2;
}

.tm-enquiry-left h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tm-enquiry-left p {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
    max-width: 300px;
}

.tm-divider {
    width: 150px;
    height: 1px;
    background: #e0d0d0;
    margin-bottom: 30px;
}

.tm-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tm-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #555;
    font-size: 14px;
}

.tm-contact-item svg {
    color: var(--primary-red);
}

.tm-enquiry-middle {
    flex: 2;
    z-index: 2;
}

.tm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.tm-full-width {
    grid-column: span 2;
}

.tm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-left: 5px;
}

.tm-form-group input,
.tm-form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

.tm-form-group input:focus,
.tm-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(230, 24, 24, 0.05);
}

.tm-enquiry-right {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.tm-temple-illustration {
    width: 100%;
    max-width: 350px;
    opacity: 0.6;
}

.tm-temple-illustration svg {
    width: 100%;
    height: auto;
}

@media (max-width: 1200px) {
    .tm-enquiry-card {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }
    .tm-enquiry-left {
        max-width: 100%;
    }
    .tm-divider {
        margin: 0 auto 30px;
    }
    .tm-contact-info {
        align-items: center;
    }
    .tm-enquiry-middle {
        width: 100%;
    }
    .tm-enquiry-right {
        display: none; /* Hide illustration on mobile to save space */
    }
}

@media (max-width: 768px) {
    .tm-form-grid {
        grid-template-columns: 1fr;
    }
    .tm-full-width {
        grid-column: span 1;
    }
}
