/* Custom CSS for PHP version */

/* Jornada / Work With Us Section */
.work-with-us-area {
    padding: 60px 0;
}

.work-with-us-area .heading-info h5 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.work-with-us-area .heading-info h5 span {
    color: #f71e22;
    font-weight: 700;
}

.work-with-us-area .heading-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.fun-facts-items .fun-fact {
    padding: 20px 10px;
}

.fun-facts-items .fun-fact img {
    margin-bottom: 15px;
}

.fun-facts-items .fun-fact h4 {
    font-size: 32px;
    font-weight: 700;
    color: #f71e22;
    margin-bottom: 5px;
}

.fun-facts-items .fun-fact p {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

/* Category Section */
.category-area {
    padding: 60px 0;
}

.category-area h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.items-category {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.item-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.item-category:hover {
    transform: translateY(-5px);
}

.item-category img {
    margin-bottom: 10px;
    object-fit: contain;
}

.item-category p {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Success Section */
.success-area {
    padding: 80px 0;
    background: #fff;
}

.success-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
    line-height: 1.3;
}

.success-text p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-contate {
    display: inline-block;
    background: #e53935;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-contate:hover {
    background: #c62828;
    text-decoration: none;
    color: #fff !important;
}

.btn-contate i {
    margin-left: 6px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
    align-items: center;
    justify-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.logo-item img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 991px) {
    .success-text {
        margin-bottom: 40px;
        text-align: center;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog Section */
.blog-area .item .title {
    padding: 15px 20px 0;
}

.blog-area .item .title p {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.bg-gray-responsive {
    background: #f9f9f9;
}

/* Ebooks / Gallery Grid */
.gallery-items.colums-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-items .pf-item {
    margin-bottom: 0;
}

.gallery-items .pf-item .item {
    background: #fff;
    overflow: hidden;
}

.gallery-items .pf-item .item .thumb {
    position: relative;
    overflow: hidden;
}

.gallery-items .pf-item .item .thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-items .pf-item:hover .item .thumb img {
    transform: scale(1.05);
}

.gallery-items .pf-item .item .thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-items .pf-item:hover .item .thumb .overlay {
    opacity: 1;
}

.gallery-items .pf-item .item .thumb .overlay a,
.gallery-items .pf-item .item .thumb .overlay span {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}

.gallery-items .pf-item .item .info {
    padding: 15px 0;
}

.gallery-items .pf-item .item .info h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.gallery-items .pf-item .item .info h5 a {
    color: #232323;
    text-decoration: none;
}

.gallery-items .pf-item .item .info span {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
}

.gallery-items .pf-item .item .info span i {
    margin-right: 5px;
    color: #999;
}

@media (max-width: 991px) {
    .gallery-items.colums-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .gallery-items.colums-3 {
        grid-template-columns: 1fr;
    }
}

/* Ebook Download Modal */
.modal-ebook {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-ebook-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-ebook-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-ebook-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-ebook-close:hover {
    color: #333;
}

.modal-ebook-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #232323;
}

.modal-ebook-content > p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.modal-ebook-content .form-group {
    margin-bottom: 18px;
}

.modal-ebook-content .form-row {
    display: flex;
    gap: 15px;
}

.modal-ebook-content .form-group.half {
    flex: 1;
}

.modal-ebook-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.modal-ebook-content input[type="text"],
.modal-ebook-content input[type="email"],
.modal-ebook-content input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.modal-ebook-content input:focus {
    border-color: #e53935;
    outline: none;
}

.form-error {
    color: #e53935;
    font-size: 14px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-cancel {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-download {
    padding: 10px 24px;
    border: none;
    background: #e53935;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #c62828;
}

.btn-download:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Catalog items (reuse gallery styles) */

/* Video items */
.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Product gallery */
.product-gallery {
    margin-bottom: 30px;
}

.product-gallery img {
    border-radius: 8px;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-info .short-description {
    margin-bottom: 25px;
}

/* Fix for services tabs */
.services-box .tab-navs ul {
    border: none;
}

.services-box .tab-navs ul li {
    margin-bottom: 5px;
}

.services-box .tab-navs ul li a {
    display: block;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-box .tab-navs ul li a:hover,
.services-box .tab-navs ul li a.active {
    background: #f71e22;
    color: #fff;
}

/* Contact form improvements */
.contact-form button[type="submit"] {
    background: #f71e22;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background: #d41a1d;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer styles */
.footer-back {
    background: #f0f0f0;
}

.footer-top {
    padding: 30px 0;
}

.footer-top .logo img {
    max-height: 60px;
}

.widgets-social {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.widgets-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #c8302c;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.widgets-social a:hover {
    background: #f71e22;
    color: #fff;
}

footer .f-items {
    padding: 40px 0;
}

footer .f-item h4.widget-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

footer .f-item p,
footer .f-item ul li,
footer .f-item ul li a {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

footer .f-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .f-item ul li {
    margin-bottom: 8px;
}

footer .f-item ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .f-item ul li a:hover {
    color: #f71e22;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.footer-bottom a {
    color: #f71e22;
    text-decoration: none;
}

/* Responsive fixes */
@media (max-width: 991px) {
    .services-box .tab-navs {
        margin-bottom: 30px;
    }
    
    .widgets-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-top .logo {
        text-align: center !important;
    }
}
