/* ================================================
   Why Choose Us Section Styles
   Custom styles for the Why Choose Us section
   ================================================ */

/* Color Palette - Core Theme Colors */
:root {
    --wcu-primary: #26c976;
    --wcu-secondary: #333333;
    --wcu-accent-red: #FF6B6B;
    --wcu-accent-teal: #4ECDC4;
    --wcu-accent-yellow: #FFE66D;
    --wcu-accent-mint: #95E1D3;
    --wcu-text-dark: #2c3e50;
    --wcu-text-light: #5a6c7d;
    --wcu-bg-light: #f8f9fa;
    --wcu-white: #ffffff;
}

/* Main Section Container */
.why-choose-us-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 33, 34, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.why-choose-us-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Section Header */
.wcu-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.wcu-main-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--wcu-text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
    animation: wcu-fade-in-down 0.8s ease;
}

.wcu-highlight {
    color: var(--wcu-primary);
    position: relative;
    display: inline-block;
}

.wcu-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--wcu-primary) 0%, var(--wcu-accent-red) 100%);
    animation: wcu-underline-expand 1s ease 0.5s forwards;
    transform-origin: left;
    transform: scaleX(0);
}

.wcu-subtitle {
    font-size: 16px;
    color: var(--wcu-text-light);
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: wcu-fade-in-up 0.8s ease;
}

/* Features Grid */
.wcu-features-grid {
    position: relative;
    z-index: 1;
}

/* Feature Card */
.wcu-feature-card {
    background: var(--wcu-white);
    border-radius: 12px;
    padding: 35px 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wcu-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--wcu-accent-red), var(--wcu-accent-teal), var(--wcu-accent-yellow), var(--wcu-accent-mint));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.wcu-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(205, 33, 34, 0.1);
}

.wcu-feature-card:hover::before {
    transform: scaleX(1);
}

/* Icon Wrapper */
.wcu-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.wcu-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wcu-accent-red), var(--wcu-accent-teal), var(--wcu-accent-yellow), var(--wcu-accent-mint));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: wcu-rotate 8s linear infinite;
}

.wcu-feature-card:hover .wcu-icon-wrapper::before {
    opacity: 0.3;
}

.wcu-feature-card:hover .wcu-icon-wrapper {
    transform: scale(1.1) rotateY(360deg);
}

/* Icon SVG */
.wcu-icon-svg {
    width: 50px;
    height: 50px;
    transition: all 0.4s ease;
}

.wcu-feature-card:hover .wcu-icon-svg {
    transform: scale(1.1);
}

/* Specific Icon Background Colors */
.wcu-icon-books {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.wcu-icon-courses {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.wcu-icon-certificate {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.1) 0%, rgba(255, 230, 109, 0.05) 100%);
}

.wcu-icon-instructor {
    background: linear-gradient(135deg, rgba(149, 225, 211, 0.1) 0%, rgba(149, 225, 211, 0.05) 100%);
}

.wcu-icon-classroom {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.wcu-icon-institute {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.1) 0%, rgba(149, 225, 211, 0.05) 100%);
}

/* Feature Content */
.wcu-feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wcu-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--wcu-text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.wcu-feature-card:hover .wcu-feature-title {
    color: var(--wcu-primary);
}

.wcu-feature-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--wcu-text-light);
    margin: 0;
}

/* SVG Animations */
@keyframes wcu-draw-line {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.wcu-icon-svg path,
.wcu-icon-svg line,
.wcu-icon-svg circle[stroke],
.wcu-icon-svg rect[stroke] {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: wcu-draw-line 2s ease forwards;
}

.wcu-feature-card:nth-child(1) .wcu-icon-svg path,
.wcu-feature-card:nth-child(1) .wcu-icon-svg rect {
    animation-delay: 0.2s;
}

.wcu-feature-card:nth-child(2) .wcu-icon-svg path,
.wcu-feature-card:nth-child(2) .wcu-icon-svg circle {
    animation-delay: 0.3s;
}

.wcu-feature-card:nth-child(3) .wcu-icon-svg path,
.wcu-feature-card:nth-child(3) .wcu-icon-svg rect {
    animation-delay: 0.4s;
}

.wcu-feature-card:nth-child(4) .wcu-icon-svg path,
.wcu-feature-card:nth-child(4) .wcu-icon-svg circle {
    animation-delay: 0.5s;
}

.wcu-feature-card:nth-child(5) .wcu-icon-svg path,
.wcu-feature-card:nth-child(5) .wcu-icon-svg rect {
    animation-delay: 0.6s;
}

.wcu-feature-card:nth-child(6) .wcu-icon-svg path,
.wcu-feature-card:nth-child(6) .wcu-icon-svg circle {
    animation-delay: 0.7s;
}

/* Keyframe Animations */
@keyframes wcu-fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wcu-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wcu-underline-expand {
    to {
        transform: scaleX(1);
    }
}

@keyframes wcu-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes wcu-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .wcu-main-title {
        font-size: 36px;
    }

    .why-choose-us-section {
        padding: 60px 0;
    }

    .wcu-section-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .wcu-main-title {
        font-size: 30px;
    }

    .wcu-subtitle {
        font-size: 14px;
    }

    .wcu-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .wcu-icon-svg {
        width: 45px;
        height: 45px;
    }

    .wcu-feature-card {
        padding: 30px 20px;
    }

    .wcu-feature-title {
        font-size: 17px;
    }

    .why-choose-us-section {
        padding: 50px 0;
    }
}

@media (max-width: 575px) {
    .wcu-main-title {
        font-size: 26px;
    }

    .wcu-subtitle {
        font-size: 13px;
    }

    .wcu-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .wcu-icon-svg {
        width: 40px;
        height: 40px;
    }

    .wcu-feature-card {
        padding: 25px 18px;
        margin-bottom: 20px;
    }

    .wcu-feature-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .wcu-feature-desc {
        font-size: 13px;
    }

    .why-choose-us-section {
        padding: 40px 0;
    }

    .wcu-section-header {
        margin-bottom: 40px;
    }
}

/* Tablet Landscape - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .wcu-features-grid>div {
        margin-bottom: 30px;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .wcu-features-grid>div {
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .why-choose-us-section {
        padding: 20px 0;
    }

    .wcu-feature-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}