/* Modern Sections - Gallery & Services */

/* Container Adjustments */
.gallery-sectio .auto-container,
.featured-services .auto-container,
.sponsors .auto-container {
    max-width: 1400px;
    /* Wider layout */
}

/* Flexbox Row Fix for Equal Heights */
.gallery-sectio .row,
.featured-services .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Stretch columns to same height */
}

/* Disable pseudo-elements that might interfere with flex */
.gallery-sectio .row:before,
.gallery-sectio .row:after,
.featured-services .row:before,
.featured-services .row:after {
    display: none;
}

/* Modern Card Component */
.modern-card-col {
    padding: 15px;
    display: flex;
    /* Flex container for the column itself */
    flex-direction: column;
    box-sizing: border-box;
}

/* Card Design */
.modern-tech-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    /* Fill the column height */
    flex-grow: 1;
    /* Stretch to fill available vertical space */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none !important;
}

.modern-tech-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(50, 50, 93, 0.15);
    border-color: rgba(156, 46, 54, 0.3);
}

/* Image Area */
.tech-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-tech-card:hover .tech-card-image img {
    transform: scale(1.1);
}

/* Overlay Effect */
.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(54, 64, 75, 0) 50%, rgba(54, 64, 75, 0.8) 100%);
    opacity: 0.6;
    transition: 0.3s;
}

.modern-tech-card:hover .tech-overlay {
    opacity: 0.9;
    background: linear-gradient(to bottom, rgba(156, 46, 54, 0.1) 0%, rgba(54, 64, 75, 0.9) 100%);
}

/* Content Area */
.tech-card-content {
    padding: 20px 25px;
    position: relative;
    background: #fff;
    z-index: 2;
    transition: 0.3s;
    flex-grow: 1;
    /* Push content to fill remaining space if needed */
    display: flex;
    align-items: flex-start;
    /* Top align text */
}

.modern-tech-card:hover .tech-card-content {
    background: #fcfcfc;
}

/* Title */
.tech-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    transition: 0.3s;
}

.modern-tech-card:hover .tech-card-title {
    color: #9c2e36;
}

/* Icon / Indicator */
.tech-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #9c2e36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.4s ease;
}

.modern-tech-card:hover .tech-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* Grid Override (force 4 cols) */
@media (min-width: 992px) {
    .modern-card-col {
        width: 25%;
    }
}

@media (max-width: 991px) {
    .modern-card-col {
        width: 50%;
    }
}

@media (max-width: 500px) {
    .modern-card-col {
        width: 100%;
    }
}

/* ===========================
   Modern Sponsors Grid 
   =========================== */
.sponsors {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    padding: 15px;
    border-radius: 8px;
    /* background: #f9f9f9; Optional bg */
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.sponsor-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Lift effect */
    transform: translateY(-5px);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

/* =========================================
   Expert Content Styles (Chiller Page) 
   ========================================= */
.expert-content-block {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

.expert-content-block h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.expert-content-block h2.section-title {
    font-size: 26px;
    font-weight: 600;
    color: #9c2e36;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #9c2e36;
}

.lead-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid #eee;
    padding-left: 20px;
    margin-bottom: 30px;
}

/* Info Grid */
.info-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
    border: 1px solid #eee;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #9c2e36;
}

.info-card .icon-box {
    font-size: 40px;
    color: #9c2e36;
    margin-bottom: 15px;
}

.info-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    font-size: 14px;
    color: #666;
}

/* Table */
.expert-table-wrap {
    margin-bottom: 30px;
}

.expert-table {
    border: none;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.expert-table thead th {
    background: #2c3e50;
    color: #fff;
    padding: 15px;
    border: none;
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.expert-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.expert-table tbody tr:hover {
    background: #f8f9fa;
}

/* Steps */
.maintenance-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.step-item {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.step-num {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(156, 46, 54, 0.05);
    z-index: 1;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h4 {
    color: #9c2e36;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-content ul {
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
    color: #555;
}

/* CTA Box */
.content-cta-box {
    background: #2c3e50;
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.content-cta-box h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.content-cta-box p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.content-cta-box .theme-btn {
    position: relative;
    z-index: 2;
}

/* Buttons */
.cta-group {
    margin-top: 20px;
    text-align: right;
}

.cta-group .theme-btn {
    margin-left: 15px;
    margin-right: 0;
    margin-bottom: 10px;
}

/* =========================================
   Modern Buttons (Global Overrides) 
   ========================================= */
.theme-btn.btn-style-one,
.theme-btn.btn-style-two,
.theme-btn.dark-btn {
    border: none;
    border-radius: 6px;
    /* Minimal rounding */
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

/* Primary Button (Red/Brand) */
.theme-btn.btn-style-one,
.theme-btn.dark-btn.style-two {
    background: #9c2e36;
    /* Brand Red */
    background: linear-gradient(135deg, #9c2e36 0%, #c0392b 100%);
    color: #fff !important;
}

.theme-btn.btn-style-one:hover,
.theme-btn.dark-btn.style-two:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 46, 54, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #9c2e36 100%);
}

/* Secondary Button (Dark/Outline) */
.theme-btn.btn-style-two {
    background: #fff;
    color: #2c3e50 !important;
    border: 2px solid #eee;
    box-shadow: none;
}

.theme-btn.btn-style-two:hover {
    border-color: #9c2e36;
    color: #9c2e36 !important;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Icon adjustment inside buttons */
.theme-btn .fa {
    margin-left: 8px;
    transition: 0.3s;
}

.theme-btn:hover .fa {
    transform: translateX(3px);
}

/* =========================================
   Modern Popup Form (Uniform) 
   ========================================= */
/* Modal Overlay */
.mfp-bg {
    background: rgba(40, 48, 59, 0.9) !important;
    backdrop-filter: blur(5px);
}

/* Modal Content Wrapper */
.mfp-wrap .uf-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    width: auto;
    max-width: 450px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUpFade 0.4s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.uf-header {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
    position: relative;
    padding-bottom: 15px;
}

.uf-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #9c2e36;
    border-radius: 2px;
}

/* Inputs */
.uf-field {
    margin-bottom: 20px;
}

.uf-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    /* Matched to buttons */
    background: #f9f9f9;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
    color: #444;
    box-sizing: border-box;
}

.uf-input:focus {
    background: #fff;
    border-color: #9c2e36;
    box-shadow: 0 0 0 4px rgba(156, 46, 54, 0.1);
}

textarea.uf-input {
    min-height: 100px;
    resize: vertical;
}

/* Submit Button in Form */
.uf-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #9c2e36;
    background: linear-gradient(135deg, #9c2e36 0%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    /* Matched to global buttons */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(156, 46, 54, 0.3);
}

.uf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 46, 54, 0.5);
}

/* Close Icon */
.mfp-close {
    color: #999 !important;
    font-size: 36px;
    opacity: 0.6;
    transition: 0.3s;
    top: 10px !important;
    right: 10px !important;
}

.mfp-close:hover {
    color: #9c2e36 !important;
    opacity: 1;
    transform: rotate(90deg);
}

/* =========================================
   Contact Page Styles (Feedback)
   ========================================= */
.contact-header {
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 16px;
    color: #666;
}

/* Contact Cards Grid */
.contact-cards-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    margin-bottom: 40px;
}

.contact-card-col {
    width: 50%;
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.contact-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    align-items: flex-start;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: #9c2e36;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(156, 46, 54, 0.1);
    color: #9c2e36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.contact-details p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.contact-details a {
    color: #555;
    text-decoration: none;
    transition: 0.2s;
}

.contact-details a:hover {
    color: #9c2e36;
}

@media (max-width: 768px) {
    .contact-card-col {
        width: 100%;
    }
}

/* Directions Timeline (The "Scheme") */
.directions-block {
    margin-bottom: 50px;
}

.directions-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    border-left: 4px solid #9c2e36;
    padding-left: 15px;
}

.direction-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #eee;
    margin-left: 15px;
}

.direction-step {
    position: relative;
    margin-bottom: 30px;
}

.direction-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -39px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #9c2e36;
    border-radius: 50%;
}

.step-title {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 5px solid #fff;
    margin-bottom: 40px;
}

/* Modern Feedback Form (Embedded) */
.feedback-form-area {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.feedback-form-row {
    margin-bottom: 15px;
}

.feedback-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    width: 100%;
}

.feedback-input:focus {
    border-color: #9c2e36;
    background: #fff;
}