/* Modern Custom Styles for Samruk-Kazyna Trust */

/* Variables */
:root {
    --primary-color: #6168FC;
    --primary-dark: #4A51E0;
    /* Darkened for better contrast */
    --primary-light: #77B5FF;
    --secondary-color: #222;
    --custom-subtitle: #333335;
    /* Darkened for better contrast */
    --accent-color: #ffd700;
    --background-color: #f8fafc;
    --section-default-bg: #fff;
    --section-muted-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-bg-color: #ffffff;
    --custom-card-bg: #ECEFF3;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --stick-navbar-bg: rgba(255, 255, 255, 0.9)
}

.uk-text-grey {
    color: #8A909B !important;
}

.uk-card-default {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.uk-card-primary {
    background-color: var(--card-primary-bg-color);
    color: var(--card-primary-text-color);
}

/* etc... for other components */
/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

/* Modern Card Design */
.uk-card {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: none;
    background-color: var(--card-bg-color);
}

.uk-card-muted {
    background: var(--section-muted-bg) !important;
    box-shadow: none !important;
}

.uk-card .uk-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.uk-card-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.uk-card-primary h1,
.uk-card-primary h2,
.uk-card-primary h3,
.uk-card-primary h4,
.uk-card-primary h5,
.uk-card-primary h6,
.uk-card-primary p {
    color: white !important;
}

.uk-card-default h1,
.uk-card-default h2,
.uk-card-default h3,
.uk-card-default h4,
.uk-card-default h5,
.uk-card-default h6,
.uk-card-default p {
    color: var(--secondary-color) !important;
}


.uk-card-hover:hover {
    transform: translateY(-10px);
}

.uk-card-primary h1 {
    font-size: 4rem;
    line-height: 1;
}

.uk-slider-nav .uk-active * {
    background: var(--primary-color);
    transform: scale(1.5);
}

/* Animated gradient background for CTA section */
.uk-section-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Document card icon styles */
.document-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.uk-card:hover .document-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.document-icon-wrapper [uk-icon] {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.uk-card:hover .document-icon-wrapper [uk-icon] {
    transform: scale(1.2);
}

/* Modern Navigation */
.uk-navbar-container {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Default state when not sticky */
.uk-navbar-transparent {
    background: transparent !important;
}

/* When sticky */
.uk-navbar-sticky {
    background: var(--stick-navbar-bg) !important;
}

.uk-navbar-nav>li>a {
    padding: 0px 8px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    margin: 0px 4px;
}

/* Text colors for transparent navbar (initial state) */
.uk-navbar-transparent .uk-navbar-nav>li>a {
    color: white !important;
}

.uk-navbar-transparent .uk-navbar-nav>li>a:hover,
.uk-navbar-transparent .uk-navbar-nav>li.uk-active>a {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Text colors for sticky navbar (after scrolling) */
.uk-navbar-sticky .uk-navbar-nav>li>a {
    color: var(--secondary-color) !important;
}


.uk-navbar-sticky .uk-navbar-nav>li.item>a:hover {
    background: var(--primary-color) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 10px;
    transition: all 0.3s ease;

}

.uk-navbar-sticky .uk-navbar-nav>li.item.uk-active>a {
    background: var(--primary-color) !important;
    color: white !important;

}

.uk-navbar-dropdown {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
    margin-top: 15px;
}

/* Modern Buttons */
.uk-button {
    border-radius: var(--border-radius-sm);
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.uk-button-primary {
    background: linear-gradient(var(--primary-dark), var(--primary-color), );
    border: none;
}

.uk-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.uk-button-text {
    padding: 0;
    position: relative;
}

.uk-button-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.uk-button-text:hover::after {
    width: 100%;
}

/* Modern Form Elements */
.uk-input,
.uk-select,
.uk-textarea {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e2e8f0;
    padding: 12px 15px;
    transition: all 0.3s ease;
    height: auto;
}

.uk-select {
    padding-right: 35px;
    /* Room for the dropdown arrow */
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 135, 240, 0.1);
}

/* Modern File Upload Container */
.modern-file-upload {
    position: relative;
    border: 2px dashed #e2e8f0;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--section-muted-bg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.modern-file-upload:hover {
    border-color: var(--primary-color);
    background-color: rgba(97, 104, 252, 0.05);
    /* very light primary color */
}

.modern-file-upload [uk-icon] {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.modern-file-upload .uk-input {
    border: none;
    background: transparent;
    padding: 0;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    height: auto;
    font-weight: 500;
}

.modern-file-upload .uk-input:focus {
    box-shadow: none;
}

/* Modern Section Styling */
.uk-section {
    padding: 40px 0;
}

.uk-section-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}


/* Improved Typography */
.uk-heading-3xlarge {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.uk-text-bolder {
    font-weight: 700;
}

/* Modern Footer */
footer.uk-background-secondary {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 60px 0;
}

footer .uk-list li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer .uk-list li a:hover {
    color: var(--primary-light);
}

/* Animations */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-light);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsive Images */
img {
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

/* Accordion Styling */
.uk-accordion-title {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.uk-accordion-title:hover {
    color: var(--primary-color);
}

/* Modern Icon Buttons */
.uk-icon-button {
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uk-icon-button [uk-icon] {
    width: 24px;
    height: 24px;
}

.uk-icon-button:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Mobile Navigation */
.uk-offcanvas-bar {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 20px;
}

.uk-nav-secondary>li>a {
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.uk-nav-secondary>li.uk-active>a,
.uk-nav-secondary>li>a:hover {
    background: var(--primary-color);
    color: white !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 72px;
    right: 16px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Modern Slider Dots */
.uk-dotnav>*>* {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.uk-dotnav>.uk-active>* {
    background: var(--primary-color);
    transform: scale(1.2);
}

.apply_img {
    height: 85px
}

/* Responsive Design Adjustments */
@media (max-width: 960px) {
    .uk-heading-3xlarge {
        font-size: 2.5rem;
    }

    .uk-section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .uk-heading-3xlarge {
        font-size: 2rem;
    }

    .apply_img {
        height: 185px
    }

    .uk-section {
        padding: 40px 0;
    }

    .uk-card {
        margin-bottom: 20px;
    }
}

/* Additional fixes for text contrast */
.uk-light h1,
.uk-light h2,
.uk-light h3,
.uk-light h4,
.uk-light h5,
.uk-light h6,
.uk-light p,
.uk-light span,
.uk-light a {
    color: white !important;
}

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

.uk-text-white {
    color: white !important;
}

/* Ensure proper contrast in hero section */
.uk-section-secondary .uk-text-primary {
    color: var(--primary-light) !important;
}

/* Fix logo visibility in navbar */
.uk-navbar-transparent .logo-white {
    display: block;
}

.uk-navbar-transparent .logo-dark {
    display: none;
}

.uk-navbar-sticky .logo-white {
    display: none;
}

.uk-navbar-sticky .logo-dark {
    display: block;
}

/* Alternative approach using filter for existing single logo */
.uk-navbar-transparent .uk-logo img:not(.logo-white):not(.logo-dark),
.uk-navbar-transparent .uk-logo svg:not(.logo-white):not(.logo-dark) {
    filter: brightness(0) invert(1);
}

.uk-navbar-sticky .uk-logo img:not(.logo-white):not(.logo-dark),
.uk-navbar-sticky .uk-logo svg:not(.logo-white):not(.logo-dark) {
    filter: none;
}

/* Fix mobile toggle icon visibility */
.uk-navbar-transparent .uk-navbar-toggle {
    color: white;
}

.uk-navbar-sticky .uk-navbar-toggle {
    color: var(--secondary-color);
}

/* Dropdown menu fixes */
.uk-navbar-dropdown {
    background: white;
}

.uk-navbar-dropdown .uk-nav-navbar a {
    color: var(--secondary-color) !important;
}

.uk-navbar-dropdown .uk-nav-navbar a:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

/* Document card fixes */
.uk-card-secondary {
    color: white !important;
}

.uk-card-secondary h1,
.uk-card-secondary h2,
.uk-card-secondary h3,
.uk-card-secondary h4,
.uk-card-secondary h5,
.uk-card-secondary h6,
.uk-card-secondary p,
.uk-card-secondary small {
    color: white !important;
}

.uk-card-secondary .uk-text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Admin navbar fixes */
.admin-navbar .uk-navbar-nav>li>a {
    color: white !important;
}

.admin-navbar .uk-navbar-nav>li.uk-active>a,
.admin-navbar .uk-navbar-nav>li>a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.uk-logo img {
    height: 86px;
    width: auto;

}

/* Bottom Navbar Styles */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    /* Semi-transparent white */
    backdrop-filter: blur(10px);
    /* Glass blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari support */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle top border */
    z-index: 980;
    display: none;
}

.bottom-navbar .uk-grid {
    margin: 0;
}

.bottom-navbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 10px;
    transition: all 0.3s ease;
}

.bottom-navbar a span {
    margin-bottom: 2px;
}

.bottom-navbar a.uk-active {
    color: #1e87f0;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .bottom-navbar {
        display: block;
    }
}

/* Side Nav Modifications */
#sidenav .uk-offcanvas-bar {
    padding-bottom: 80px;
    /* Add extra padding to avoid overlap with bottom navbar */
}


.uk-button-primary {
    background: linear-gradient(135deg, #6168FC 0%, #77B5FF 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.uk-button-primary:hover {
    background: linear-gradient(135deg, #6168FC 0%, #77B5FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}