@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #0d9488;
    /* Vibrant Teal */
    --primary-dark: #0f766e;
    --accent: #3b82f6;
    /* Modern Blue */
    --surface-glass: rgba(255, 255, 255, 0.85);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(13, 148, 136, 0.15);
}

body,
p,
li,
span,
div,
a {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}

/* -------------------------------------
 * Service cards (Glassmorphism & Elevate)
 * ------------------------------------- */
.services-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
}

.services-block .inner-box {
    background: var(--surface-glass) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px !important;
    box-shadow: var(--shadow-premium) !important;
    padding: 40px 30px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.services-block .inner-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover) !important;
}

.services-block .upper-box {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.services-block .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.3);
    flex-shrink: 0;
    margin-bottom: 0 !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
}

.services-block h3 {
    margin-left: 20px !important;
    margin-top: 0 !important;
}

.services-block h3 a {
    color: #1e293b !important;
    transition: color 0.3s ease;
    font-size: 22px;
}

.services-block:hover h3 a {
    color: var(--primary) !important;
}

.services-block .text {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

/* -------------------------------------
 * Modern Buttons
 * ------------------------------------- */
.theme-btn.btn-style-two,
.theme-btn.btn-style-three {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 34px !important;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.theme-btn.btn-style-two:hover,
.theme-btn.btn-style-three:hover {
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4) !important;
    transform: translateY(-2px);
    color: white !important;
}

.theme-btn.btn-style-two::before,
.theme-btn.btn-style-three::before {
    display: none !important;
}

/* -------------------------------------
 * Welcome Section Upgrades
 * ------------------------------------- */
.welcome-section {
    padding: 90px 0;
    background: #ffffff;
}

.welcome-section .sec-title h2 {
    font-size: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.welcome-section .image {
    perspective: 1000px;
}

.welcome-section .image img {
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.welcome-section .image:hover img {
    transform: scale(1.02) rotateY(2deg);
    box-shadow: var(--shadow-hover);
}

.welcome-section .text {
    font-size: 16px;
    color: #475569;
    line-height: 1.85;
    margin-bottom: 35px;
}

/* -------------------------------------
 * Slider Typography Overrides
 * ------------------------------------- */
.tp-caption h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tp-caption .text {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------
 * Team Directory Cards (Standard UI)
 * ------------------------------------- */
.team-section-two {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 60px;
}

/* Fix for equal height columns in Bootstrap 3 flex row */
.team-section-two .row {
    display: flex;
    flex-wrap: wrap;
}

.team-section-two .row::before,
.team-section-two .row::after {
    display: none !important;
}

.team-block-two {
    margin-bottom: 30px;
    display: flex;
}

.team-block-two .inner-box {
    border-radius: 6px;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #ffffff;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-block-two .inner-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.team-block-two .image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.team-block-two .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Prevents chopping off the head */
    display: block;
}

/* Subtle Gradient Overlay & Social Icons on Hover */
.team-block-two .image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-block-two .inner-box:hover .image::after {
    opacity: 1;
}

.team-block-two .social-icon-two {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-block-two .inner-box:hover .social-icon-two {
    opacity: 1;
    transform: translateY(0);
}

.team-block-two .social-icon-two li {
    display: inline-block;
}

.team-block-two .social-icon-two li a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    transition: all 0.3s ease;
}

.team-block-two .social-icon-two li a:hover {
    background: #b01a20; /* Classy corporate red */
    color: #ffffff !important;
    transform: translateY(-2px);
}

.team-block-two .lower-content {
    padding: 16px 20px 20px;
    text-align: left; /* Standard corporate left align */
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-block-two h3 {
    color: #a81c20 !important; /* Preserves the original deep red colors from screenshot */
    font-size: 18px !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0 0 4px !important;
    font-weight: 700;
    line-height: 1.3;
}

.team-block-two h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-block-two h3 a:hover {
    color: #c92025 !important;
}

.team-block-two .designation {
    color: #718096 !important;
    font-size: 11px;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.team-block-two .detail-text {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}