/*
Theme Name: nuraks
Theme URI: https://nuraks.org/
Author: trishuli web service
Author URI: https://trishuliweb.com
Description: A premium WordPress theme for nuraks.org built with Bootstrap 5.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuraks
Tags: bootstrap5, responsive-layout, dark-mode, multi-language
*/

:root {
    --primary-color: <?php echo get_theme_mod('nuraks_primary_color', '#135AAA'); ?>;
    --secondary-color: #0F1314;
    --accent-color: #E3E9E9;
    --text-color: #333;
    --bg-color: #fff;
}

[data-bs-theme="dark"] {
    --text-color: #f8f9fa;
    --bg-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: darken(var(--primary-color), 10%); border-color: darken(var(--primary-color), 10%); }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.border-primary { border-color: var(--primary-color) !important; }

/* Hover Transition Effect on Images with Links */
a.hover-transition, .hover-transition a {
    display: block;
    overflow: hidden;
}

.hover-transition img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hover-transition:hover img {
    transform: scale(1.1);
    filter: brightness(90%);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Homepage Section Spacing */
.section-title {
    font-weight: 800;
    color: var(--secondary-color);
}

/* Slider Customizations */
.carousel-caption {
    z-index: 10;
    animation: fadeInUp 1s ease-in-out;
}

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

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(45deg, var(--primary-color), #0a3d7a);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Card Enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

/* Footer Styling */
.site-footer {
    border-top: 5px solid var(--primary-color);
}

.footer-title {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a, .site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .site-footer a:hvoer {
    color: var(--bg-color);
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-contact i {
    width: 20px;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    filter: brightness(0) invert(1); /* Optional: makes logo white for dark footer */
}

.site-logo img {
    max-height: 90px;
    width: auto;
}

/* Mega Menu Styling */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        padding: 1rem;
    }

    /* Mega Menu Columnar Layout */
    .mega-menu {
        position: static !important;
    }

    .mega-menu .dropdown-menu {
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        margin: 0 auto;
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }

    .mega-menu:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .mega-menu .dropdown-menu .row {
        width: 100%;
    }
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 1.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 1.5rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}



/* Change default state link styles */
.pagination .page-link {
  color: #2c3e50;
  background-color: #ffffff;
  border-color: #dee2e6;
}

/* Hover style modifications */
.pagination {
    padding: 20px 0;
    border-top: 1px #e8e8e8 solid;
}
.page-numbers {
    padding: 3px 10px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px #eeeeee solid;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.page-numbers:hover {
    background-color: #e8e8e8;
}
.page-numbers.current:hover {
    background: none;
}
/*sticky*/
.sticky-top {
    position: relative !important;
}