/**
 * Custom Styles for Imperial Resources Theme
 */

/* Blink Animation for Tours link */
blink {
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Hero Slider */
.page_slider .flexslider {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
}

.page_slider .slides {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page_slider .slides > li {
    display: none;
    margin: 0;
}

.page_slider .slides img {
    width: 100%;
    height: auto;
    display: block;
}

.page_slider .flex-viewport {
    max-height: 2000px;
}

.page_slider .flex-control-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page_slider .flex-control-nav li {
    display: inline-block;
    margin: 0 5px;
}

.page_slider .flex-control-nav li a {
    display: block;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    text-indent: -9999px;
}

.page_slider .flex-control-nav li a.flex-active {
    background: #007bff;
}

.page_slider .flex-direction-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page_slider .flex-direction-nav li {
    position: absolute;
}

.page_slider .flex-direction-nav li:first-child {
    left: 20px;
}

.page_slider .flex-direction-nav li:last-child {
    right: 20px;
}

.page_slider .flex-direction-nav a {
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    font-size: 20px;
}

.page_slider .flex-direction-nav a:hover {
    background: rgba(0,0,0,0.8);
}

/* Intro Layers */
.intro_layers_wrapper {
    position: relative;
    z-index: 1;
}

.intro_layers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro_layer {
    width: 100%;
}

.intro_before_featured_word {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.intro_featured_word {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* About Section */
.about-section .heading-about h4 {
    font-size: 18px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.about-section .heading-about h3 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.about-section .heading-about p {
    line-height: 1.8;
    color: #555;
}

/* Industries */
.icon-boxed .icon-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.icon-boxed .icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.icon-boxed .icon-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px;
    color: #333;
}

.icon-boxed .icon-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.icon-boxed .icon-box img {
    max-width: 100%;
    height: auto;
}

/* Why Choose Us */
.section_gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section_gradient .info-block h3 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.section_gradient .info-block h6 {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

/* Training Institute */
.main_blog .contact-header h4 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.main_blog .box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main_blog .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.main_blog .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.main_blog .item-content {
    padding: 20px;
}

.main_blog .blog-header h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.main_blog .entry-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Clients Carousel */
.brand-carousel .single-logo {
    text-align: center;
    padding: 20px;
}

.brand-carousel .single-logo img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-carousel .single-logo img:hover {
    filter: grayscale(0%);
}

/* Contact Form */
.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 14px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form .form-group button {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form .form-group button:hover {
    background: #0056b3;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
}

.site-footer .footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li {
    margin-bottom: 12px;
}

.site-footer .footer-menu a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer .footer-menu a:hover {
    color: #fff;
}

.site-footer .footer-logo-ds .logo_text {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.site-footer .footer-logo-ds .logo_subtext {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-top: 5px;
}

.site-footer .media {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
}

.site-footer .media i {
    color: #007bff;
}

.site-footer .author-social {
    margin-top: 25px;
}

.site-footer .author-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s;
}

.site-footer .author-social a:hover {
    background: #007bff;
}

/* Newsletter */
.newsletter-widget .widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.newsletter-widget p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
}

.newsletter-widget .signup {
    display: flex;
    gap: 10px;
}

.newsletter-widget .signup input {
    flex: 1;
    padding: 12px 15px;
    background: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
}

.newsletter-widget .signup button {
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-widget .signup button:hover {
    background: #0056b3;
}

/* Copyright */
.site-copyright {
    background: #111;
    padding: 20px 0;
}

.site-copyright p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Page Title */
.page_title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.page_title h1 {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 15px 0 0;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
    content: "/";
}

.breadcrumb-item.active {
    color: #fff;
}

/* Sidebar */
.sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar .widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .page_toplogo .row {
        text-align: center;
    }
    
    .page_toplogo .col-lg-2,
    .page_toplogo .col-lg-4 {
        margin-bottom: 15px;
    }
    
    .intro_featured_word {
        font-size: 32px;
    }
    
    .intro_before_featured_word {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .intro_featured_word {
        font-size: 24px;
    }
    
    .intro_before_featured_word {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page_title h1 {
        font-size: 28px;
    }
    
    .newsletter-widget .signup {
        flex-direction: column;
    }
}

/* Animation Classes */
.animate {
    opacity: 0;
    animation-fill-mode: forwards;
}

[data-animation="fadeInUp"] {
    animation: fadeInUp 0.6s ease-out forwards;
}

[data-animation="slideInLeft"] {
    animation: slideInLeft 0.8s ease-out forwards;
}

[data-animation="slideInRight"] {
    animation: slideInRight 0.8s ease-out forwards;
}

[data-animation="slideDown"] {
    animation: slideDown 0.6s ease-out forwards;
}

[data-animation="pullUp"] {
    animation: pullUp 0.6s ease-out forwards;
}

[data-animation="pullDown"] {
    animation: pullDown 0.6s ease-out forwards;
}

[data-animation="fadeIn"] {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pullUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pullDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader_image {
    width: 50px;
    height: 50px;
    background: url('../images/preloader.gif') no-repeat center;
    background-size: contain;
}

body.loaded .preloader {
    display: none;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: none;
    transition: background 0.3s;
}

.scroll-to-top:hover {
    background: #0056b3;
}

/* Search Modal */
.modal {
    background: rgba(0,0,0,0.8);
}

.modal .close {
    color: #fff;
    font-size: 30px;
}

.modal .searchform {
    padding: 20px;
}

.modal .searchform input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
}

/* Testimonials */
.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 15px;
}

.testimonial-item p {
    font-style: italic;
    color: #666;
    line-height: 1.8;
}

.testimonial-item .author {
    margin-top: 20px;
    font-weight: bold;
    color: #333;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

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

.gallery-item .overlay a {
    color: #fff;
    font-size: 24px;
}
