/* ============================================
   CONTENT ELEMENTS — Service Card, Testimonial, CTA,
   Feature Box, Team Member, Pricing, Stat Counter,
   Icon List, Grid Layouts
   Loaded on ALL pages (used by content elements)
   ============================================ */

/* Service Card */
.service-card {
    background: white;
    border: 1px solid #e94560;
    border-radius: 8px;
    padding: 65px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    height: 100%;
}

.service-card:hover {
    border-color: #f17188;
    transform: none;
}

.service-icon {
    flex-shrink: 0;
}

.service-icon img {
    width: 100px;
    /* Increased icon size */
    height: 100px;
    object-fit: contain;
}

.service-content {
    flex: 1;
}

.service-card h3 {
    color: #1a1a2e;
    font-size: 36px;
    margin-bottom: 10px;
}

.service-subtitle {
    color: #e94560;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.service-description {
    color: #666;
    line-height: 1.8;
    font-size: 20px;
}

/* Testimonial */
.testimonial {
    background: #ffffff;
    border-left: 5px solid #e94560;
    padding: 65px;
    /* Increased from 45px */
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    position: relative;
    margin-bottom: 20px;
}

.quote-icon {
    opacity: 0.3;
    margin-bottom: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    color: #1a1a2e;
    font-size: 24px;
    /* Increased from 18px */
}

.author-role {
    display: block;
    color: #666;
    font-size: 14px;
}

.cta-box {
    background: linear-gradient(135deg, #e94560, #c73652);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
    /* Reduced from 150px */
}

.cta-heading {
    font-size: 36px;
    margin-bottom: 15px;
    color: white;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-box .btn {
    background: white;
    color: #e94560;
    font-size: 18px;
    padding: 15px 40px;
}

.cta-box .btn:hover {
    background: #f0f0f0;
}

/* Feature Box */
.feature-box {
    display: flex;
    flex-wrap: wrap;
    /* Allow stacking on narrow screens/containers */
    align-items: flex-start;
    gap: 40px;
    padding: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
    margin: 0px 0;
    text-align: left;
}

/* Revert to vertical layout when inside narrow column containers */
.two-column-layout .feature-box,
.three-column-layout .feature-box {
    display: block;
    text-align: center;
}

.two-column-layout .feature-icon,
.three-column-layout .feature-icon {
    margin: 0 auto 25px;
}

.feature-box:hover {
    border-color: #e94560;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon img {
    width: 200px;
    height: 200px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: #1a1a2e;
    font-size: 28px;
    margin-bottom: 15px;
}

.feature-description {
    color: #666;
    line-height: 1.7;
    font-size: 20px;
}

/* Team Member */
.team-member {
    text-align: center;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.member-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 30px 20px;
}

.member-name {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 5px;
}

.member-role {
    color: #e94560;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
}

.member-bio {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.member-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
}

.member-social:hover {
    color: #005582;
}

/* Pricing Card */
.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.pricing-card:hover {
    border-color: #e94560;
    transform: translateY(-10px);
}

.pricing-plan {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Statistics Counter */
.stat-counter {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 64px;
    font-weight: bold;
    color: #e94560;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-description {
    color: #666;
    font-size: 14px;
}

/* Icon List */
.icon-list {
    margin: 30px 0;
}

.list-title {
    color: #1a1a2e;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-list-items {
    list-style: none;
    padding: 0;
}

.icon-list-items li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.icon-list-items li:last-child {
    border-bottom: none;
}

.list-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-list-items span {
    color: #666;
    line-height: 1.7;
}

.services-grid,
.testimonials-grid,
.team-grid,
.pricing-grid,
.stats-grid {
    display: grid;
    gap: 10px;
    margin: 40px 0;
    /* Reduced from 150px */
}

.services-grid {
    grid-template-columns: 1fr;
}

/* Ensure headings inside grids don't take up a grid cell */
.services-grid>*:not(.service-card),
.feature-grid>*:not(.feature-box),
.testimonials-grid>*:not(.testimonial) {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Increased from 250px */
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    /* Increased from 300px */
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Hero Section (Reusable) */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    background: #1a1a2e;
}


.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

/* Hero Overlay Positioning for Page Templates */
.hero-wrapper {
    position: relative;
    width: 100%;
}

.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.hero-overlay-content>.container {
    pointer-events: auto;
    text-align: center;
}

/* Enforce white color for all elements inside hero overlay */
.hero-overlay-content,
.hero-overlay-content *,
.hero-overlay-content h1,
.hero-overlay-content h2,
.hero-overlay-content h3,
.hero-overlay-content p,
.hero-overlay-content a,
.hero-overlay-content span {
    color: #ffffff !important;
}

/* Extra Spacing for Column Headers */
.sidebar-left h2,
.sidebar-right h2,
.three-column-layout .main-content h2 {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
}

/* Aggressive Section Spacing (Guarantee vertical separation) */

/* Aggressive Section Spacing (Guarantee vertical separation) */
/* Aggressive Section Spacing (Guarantee vertical separation) */
.intro-section,
.services-section,
.testimonials-section,
.cta-section {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    display: block !important;
    clear: both !important;
}

/* Ensure headings within these sections also have top breathing room */
.intro-section h2,
.services-section h2,
.testimonials-section h2,
.cta-section h2 {
    margin-top: 40px !important;
    margin-bottom: 60px !important;
}