/* Custom styles for ProExpertTrades website */

/* Trading section styling */
.trading-section {
    position: relative;
    background-color: #f8f9fa;
    padding: 90px 0 70px;
    overflow: hidden;
}

.trading-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/shape/shape-15.png') no-repeat;
    background-position: top left;
    opacity: 0.05;
    z-index: 1;
}

.trading-section .inner-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 2;
    height: 100%;
    min-height: 320px;
    margin-bottom: 30px;
    border-bottom: 3px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trading-section .inner-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    z-index: -1;
}

.trading-section .inner-box:hover:before {
    left: 100%;
}

.trading-section .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.trading-section .icon-box {
    position: relative;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.5s ease;
}

.trading-section .icon-box i {
    font-size: 28px;
    color: #ffffff;
    position: relative;
    display: block;
    line-height: 70px;
    transition: all 0.5s ease;
}

.trading-section .inner-box:hover .icon-box {
    transform: rotateY(180deg);
}

.trading-section .inner-box:hover .icon-box i {
    transform: rotateY(180deg);
}

.trading-section .inner-box h3 {
    position: relative;
    display: block;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.trading-section .inner-box h3 a {
    color: #0c0d24;
    transition: all 0.3s ease;
}

.trading-section .inner-box h3 a:hover {
    color: #1e73be;
}

.trading-section .inner-box p {
    position: relative;
    display: block;
    color: #737578;
    margin-bottom: 20px;
    text-align: center;
}

.trading-section .inner-box .link a {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trading-section .inner-box .link a:hover {
    text-decoration: underline;
}

/* Enhanced CTA section styling */
.cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-section .inner-container {
    position: relative;
    padding: 50px 60px;
    border-radius: 10px;
    z-index: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    overflow: hidden;
}

.cta-section .inner-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.8s ease;
    z-index: 0;
}

.cta-section .inner-container:hover:before {
    left: 100%;
}

.cta-section .pattern-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.cta-section .text-box h2 {
    position: relative;
    display: block;
    font-size: 36px;
    line-height: 1.3em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section .text-box p {
    position: relative;
    color: #ffffff;
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 0;
}

.cta-section .btn-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cta-section .btn-box .theme-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 16px;
    line-height: 30px;
    color: #ffffff;
    background: #000000;
    padding: 15px 40px;
    text-align: center;
    border-radius: 5px;
    z-index: 1;
    transition: all 500ms ease;
    font-weight: 600;
}

.cta-section .btn-box .theme-btn:before {
    display: none;
}

.cta-section .btn-box .theme-btn:hover:before {
    display: none;
}

.cta-section .btn-box .theme-btn:hover {
    color: #ffffff;
    background: #000000;
}

/* Color variations for trading boxes */
.trading-section .inner-box.green-box {
    border-bottom: 3px solid #4CAF50;
}

.trading-section .inner-box.orange-box {
    border-bottom: 3px solid #FF9800;
}

.trading-section .inner-box.blue-box {
    border-bottom: 3px solid #2196F3;
}

.trading-section .inner-box.purple-box {
    border-bottom: 3px solid #9C27B0;
}

.trading-section .inner-box.pink-box {
    border-bottom: 3px solid #E91E63;
}

.trading-section .inner-box.grey-box {
    border-bottom: 3px solid #607D8B;
}

/* Icon box color variations */
.trading-section .icon-box.green-bg {
    background-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.trading-section .icon-box.orange-bg {
    background-color: #FF9800;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.trading-section .icon-box.blue-bg {
    background-color: #2196F3;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.trading-section .icon-box.purple-bg {
    background-color: #9C27B0;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
}

.trading-section .icon-box.pink-bg {
    background-color: #E91E63;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.trading-section .icon-box.grey-bg {
    background-color: #607D8B;
    box-shadow: 0 5px 15px rgba(96, 125, 139, 0.3);
}

/* Link color variations */
.trading-section .inner-box .link a.green-text {
    color: #4CAF50;
}

.trading-section .inner-box .link a.orange-text {
    color: #FF9800;
}

.trading-section .inner-box .link a.blue-text {
    color: #2196F3;
}

.trading-section .inner-box .link a.purple-text {
    color: #9C27B0;
}

.trading-section .inner-box .link a.pink-text {
    color: #E91E63;
}

.trading-section .inner-box .link a.grey-text {
    color: #607D8B;
}

/* Responsive styles */
@media only screen and (max-width: 1200px) {
    .cta-section .inner-container {
        padding: 40px 30px;
    }
    
    .trading-section .inner-box {
        min-height: 350px;
        align-items: center;
        text-align: center;
    }
}

@media only screen and (max-width: 991px) {
    .cta-section .text-box h2 {
        font-size: 30px;
    }
    
    .cta-section .btn-box {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .trading-section .inner-box {
        min-height: 320px;
        align-items: center;
        text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .cta-section .inner-container {
        padding: 30px 20px;
    }
    
    .cta-section .text-box h2 {
        font-size: 26px;
    }
    
    .trading-section .inner-box {
        min-height: auto;
        align-items: center;
        text-align: center;
    }
}
