/* ==========================================================================
   1. GLOBAL & VARIABLES
   ========================================================================== */
:root {
    /* Sululta TVET Custom Colors */
    --primary-color: #0d6efd; /* Bootstrap Blue */
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --accent-color: #ffc107; /* Warning Yellow for highlights */
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    
    /* Typography */
    --font-main: 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    font-family: var(--font-main);
    color: #444;
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll on some mobile animations */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   2. TOP BAR & NAVIGATION
   ========================================================================== */
.top-bar {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar i {
    color: var(--accent-color);
}

.navbar {
    padding: 15px 0;
    transition: padding 0.3s ease;
	background-color: #FFFFF0 !important; /* Ivory Color */
}

.navbar-brand span {
    letter-spacing: 0.5px;
}
.navbar.shadow-sm {
    background-color: #FFFFF0 !important; /* Keep Ivory when scrolling */
}
.nav-link {
    font-weight: 600;
    color: #555 !important;
    padding: 10px 15px !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Underline effect for menu items */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0;
    margin-top: 15px;
	  background-color: #FFFFF0; /* Ivory Color */
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px; /* Slide effect */
    transition: all 0.2s;
}


/* ==========================================================================
   3. HERO SLIDER
   ========================================================================== */
.carousel-item img {
    /* Darken image slightly to make text readable */
    filter: brightness(0.65); 
}

.carousel-caption {
    bottom: 25%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes slideInDown {
    from { transform: translate3d(0, -100%, 0); visibility: visible; }
    to { transform: translate3d(0, 0, 0); }
}
.slideInDown { animation-name: slideInDown; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 100%, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.fadeInUp { animation-name: fadeInUp; }

/* ==========================================================================
   4. CARDS & GENERAL UI ELEMENTS
   ========================================================================== */
/* Generic Lift Effect */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Feature Icons */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Section Dividers */
.divider {
    border-radius: 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   5. PAGE SPECIFIC: NEWS
   ========================================================================== */
.news-card {
    overflow: hidden; /* Contains the zoomed image */
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.news-img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   6. PAGE SPECIFIC: INDUSTRY PARTNERS
   ========================================================================== */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    max-height: 80px;
}

.grayscale-wrapper div:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ==========================================================================
   7. PAGE SPECIFIC: STAFF
   ========================================================================== */
.staff-card {
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-card img {
    border: 3px solid #fff;
}

/* ==========================================================================
   8. PAGE SPECIFIC: DOWNLOADS
   ========================================================================== */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    border-top: 5px solid var(--primary-color);
}

footer h5 {
    letter-spacing: 1px;
}

.hover-white {
    transition: color 0.3s ease;
}

.hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.social-links .btn {
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    padding: 0;
    transition: all 0.3s;
}

.social-links .btn:hover {
    background-color: #fff;
    color: var(--primary-color); /* Invert colors */
    transform: translateY(-3px);
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Tablet & Mobile */
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        margin-top: 15px;
        border-radius: 5px;
    }
    
    .nav-link::after {
        display: none; /* Remove underline effect on mobile */
    }

    .carousel-item img {
        height: 400px !important; /* Smaller hero on mobile */
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    /* Small Mobile */
    .top-bar .contact-info {
        display: none; /* Hide email/phone on very small screens to save space */
    }
    
    .top-bar {
        text-align: center;
    }
    
    .auth-lang {
        width: 100%;
        justify-content: space-between !important;
    }
}