/*
Theme Name: IACU
Theme URI: https://iacuglobal.org/
Description: A premium, dynamic, and fully customizer-editable WordPress theme for the International Association of Colleges and Universities.
Version: 1.0.0
Author: Tofai
Author URI: https://iacuglobal.org/
Text Domain: tofai-iacu
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Core Theme Styles */
body {
    font-family: 'Grift', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: #475569;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Grift', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Custom styles and enhancements */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary Button Styling */
.btn-primary {
    background-color: #c52127;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
    background-color: #1e3a57;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 87, 0.4);
}

/* Card Hover Effects */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}
.feature-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
    transform: translateY(-8px);
}

/* Category Grid Images */
.bg-img-cover {
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.overflow-hidden:hover .bg-img-cover {
    transform: scale(1.10);
}

/* Mobile Drawer Styles */
#mobileMenuDrawer {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuDrawer.translate-x-full {
    transform: translateX(100%);
}

#mobileMenuDrawer.translate-x-0 {
    transform: translateX(0%);
}

/* Submenu / Dropdown Navigation */
@media (min-width: 1024px) {
    header nav ul li.menu-item-has-children > ul.sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 340px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 3px solid #c52127; /* Brand Red top border */
        box-shadow: 0 15px 30px -5px rgba(30, 58, 87, 0.15), 0 4px 6px -2px rgba(30, 58, 87, 0.05);
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 12px 0;
        margin: 0;
        list-style: none;
    }

    /* Show dropdown on hover of parent */
    header nav ul li.menu-item-has-children:hover > ul.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Submenu list items */
    header nav ul.sub-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
    }

    header nav ul.sub-menu li a {
        display: block;
        padding: 10px 24px !important;
        color: #1e3a57 !important; /* Brand Navy */
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        border: none !important;
        background: transparent;
        transition: all 0.2s ease-in-out;
    }

    header nav ul.sub-menu li a:hover {
        color: #c52127 !important; /* Brand Red */
        background: rgba(9, 159, 195, 0.04); /* Light Brand Teal tint */
        padding-left: 28px !important; /* Micro-interaction slide right */
    }
}

/* Mobile Submenu Styling */
@media (max-width: 1023px) {
    #mobileMenuDrawer ul.sub-menu {
        display: block;
        padding-left: 16px;
        margin-top: 8px;
        margin-bottom: 8px;
        border-left: 2px solid rgba(9, 159, 195, 0.3); /* Brand Teal border */
        list-style: none;
        width: 100%;
    }
    
    #mobileMenuDrawer ul.sub-menu li {
        display: block;
        width: 100%;
    }
    
    #mobileMenuDrawer ul.sub-menu li a {
        font-size: 13px !important;
        padding: 6px 0 !important;
        color: #475569 !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        border: none !important;
    }
    
    #mobileMenuDrawer ul.sub-menu li a:hover {
        color: #c52127 !important;
    }
}

/* Submenu Down Arrow Indicators */
@media (min-width: 1024px) {
    header nav ul li.menu-item-has-children > a::after {
        content: "\f078"; /* FontAwesome Chevron Down */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 8px;
        margin-left: 6px;
        display: inline-block;
        transition: transform 0.2s ease-in-out;
        vertical-align: middle;
    }
    header nav ul li.menu-item-has-children:hover > a::after {
        transform: translateY(2px);
    }
}

@media (max-width: 1023px) {
    /* Prevent duplicate carets */
    #mobileMenuDrawer ul li.menu-item-has-children > a::after {
        display: none !important;
        content: none !important;
    }

    /* Left-aligned clean menu structure matching reference */
    #mobileMenuDrawer nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    #mobileMenuDrawer nav ul li {
        width: 100%;
        display: block;
        border-bottom: 1px solid #f1f5f9;
    }
    #mobileMenuDrawer nav ul li a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        width: 100%;
        padding: 16px 0 !important;
        color: #1e3a57 !important;
        text-transform: none !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        letter-spacing: normal !important;
    }
    #mobileMenuDrawer nav ul li.menu-item-has-children > a {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    /* Left-aligned sub-menus */
    #mobileMenuDrawer nav ul.sub-menu {
        display: none;
        padding-left: 1.25rem !important;
        padding-right: 0 !important;
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
        border-left: 2px solid #e2e8f0;
        border-right: none !important;
        list-style: none;
        width: 100%;
    }
    #mobileMenuDrawer nav ul.sub-menu li {
        border-bottom: none !important;
    }
    #mobileMenuDrawer nav ul.sub-menu li a {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #475569 !important;
        padding: 10px 0 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }
}

/* ===== SEARCH SECTION – ANIMATED GRADIENT BACKGROUND ===== */

/* Keyframe: slowly shift gradient position for a living background */
@keyframes iacu-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Keyframe: gentle float for the orbs */
@keyframes iacu-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-24px) scale(1.06); }
}
@keyframes iacu-float-reverse {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(20px) scale(0.94); }
}

/* Main section base */
.iacu-search-section {
    isolation: isolate;
}

/* Deep navy → blue-indigo animated gradient */
.iacu-search-gradient {
    background: linear-gradient(
        135deg,
        #0b1e3d 0%,
        #102a52 20%,
        #1a3a6e 40%,
        #0e2148 60%,
        #16305f 80%,
        #0b1e3d 100%
    );
    background-size: 300% 300%;
    animation: iacu-gradient-shift 12s ease infinite;
}

/* Glowing orb – teal/cyan accent */
.iacu-orb-1 {
    background: radial-gradient(circle at 40% 40%, rgba(20, 184, 166, 0.45) 0%, transparent 70%);
    filter: blur(40px);
    animation: iacu-float 8s ease-in-out infinite;
}

/* Glowing orb – indigo accent */
.iacu-orb-2 {
    background: radial-gradient(circle at 60% 60%, rgba(99, 102, 241, 0.40) 0%, transparent 70%);
    filter: blur(36px);
    animation: iacu-float-reverse 10s ease-in-out infinite;
}

/* Glowing orb – soft red/rose accent */
.iacu-orb-3 {
    background: radial-gradient(circle at 50% 50%, rgba(217, 35, 42, 0.25) 0%, transparent 70%);
    filter: blur(30px);
    animation: iacu-float 13s ease-in-out infinite;
}

/* Subtle dot-grid pattern overlay */
.iacu-dot-grid {
    background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Premium Hero Slider */
.hero-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Zoom effect on background image when slide becomes active */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(20, 27, 45, 0.7), rgba(20, 27, 45, 0.85));
}

.hero-slide-content-wrapper {
    position: relative;
    z-index: 10;
}

/* ===== TESTIMONIALS SEAMLESS MARQUEE SCROLL ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee linear infinite;
}



