/* IEF - Innovation and Entrepreneurship Forum CSS Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Global styles */
:root {
    --primary-color: #1e8449;
    --primary-light: #27ae60;
    --primary-dark: #145a32;
    --secondary-color: #3498db;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #f9f9f9;
    --background-white: #ffffff;
    --accent-color: #f39c12;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Header styling */
.container-fluid {
    padding: 0;
}

/* Header image enhancement */
.container-fluid .row:first-child img {
    transition: var(--transition);
}

.container-fluid:hover .row:first-child img {
    filter: brightness(1.05);
}

/* Navigation styling */
.navbar {
    padding: 0;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #1a7740, #0d4a29) !important;
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}

.navbar-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.navbar-nav .nav-link {
    padding: 1rem 1.2rem;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    color: rgb(42, 116, 42) !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: rgb(255, 255, 255);
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
    opacity: 0;
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
    opacity: 1;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(52, 133, 69, 0.2);
    color: rgb(59, 206, 71) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    padding: 8px 0;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--background-white);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    color: var(--text-primary);
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    color: var(--primary-color);
    padding-left: 1.8rem;
}

/* Nested dropdown styling */
.dropdown-menu .dropdown-menu {
    margin-top: -10px;
    left: 100%;
    top: 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.12);
}

.dropdown-menu .dropdown-toggle::after {
    vertical-align: middle;
    border-left: 4px solid;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Main content area */
#iefinfo {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

#iefinfo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(39, 174, 96, 0.03), rgba(52, 152, 219, 0.02));
    z-index: 0;
}

#iefinfo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

#iefinfo h4 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#iefinfo h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--accent-color);
}

#iefinfo p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;
}

#iefinfo strong {
    color: var(--primary-dark);
    font-weight: 600;
    background: linear-gradient(120deg, rgba(39, 174, 96, 0.1), transparent);
    padding: 0 5px;
    border-radius: 3px;
}

#iefinfo ul {
    margin-bottom: 25px;
    padding-left: 10px;
}

#iefinfo ul li {
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
    padding-left: 28px;
    transition: var(--transition);
}

#iefinfo ul li:hover {
    transform: translateX(5px);
}

#iefinfo ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition);
}

#iefinfo ul li:hover:before {
    color: var(--accent-color);
    left: 5px;
}

#iefinfo img {
    max-width: 100%;
    height: auto;
    margin: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.7);
}

#iefinfo img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Links styling */
#iefinfo a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    padding: 0 3px;
}

#iefinfo a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

#iefinfo a:hover {
    color: var(--primary-color);
}

#iefinfo a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #iefinfo {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #iefinfo img {
        float: none !important;
        display: block;
        margin: 20px auto;
    }
    
    .dropdown-menu .dropdown-menu {
        margin-left: 15px;
        left: 0;
        box-shadow: none;
    }
    
    #iefinfo h4 {
        font-size: 20px;
    }
    
    #iefinfo {
        padding: 15px;
    }
}

/* Special styling for dropdown with multiple levels */
.dropdown-item.dropdown-toggle {
    position: relative;
}

.dropdown-item.dropdown-toggle::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Animation for dropdown menus */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.dropdown-menu {
    animation: fadeIn 0.3s ease-out;
}

.dropdown-menu .dropdown-menu {
    animation: slideInRight 0.3s ease-out;
}

/* Footer styling */
hr {
    margin-top: 3rem;
    margin-bottom: 3rem;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(39, 174, 96, 0.5), rgba(0, 0, 0, 0));
}

/* Add extra styles for navbar toggle button */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.4rem;
    border-radius: 4px;
    margin-right: 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Fix nested dropdown on hover */
.dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block;
}

.navbar-nav .active > .nav-link::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
    opacity: 1;
}

/* Card-like sections for special content */
.info-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Button styling */
.custom-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.25);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

/* Enhance tables if any */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

table th {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: rgba(39, 174, 96, 0.05);
}

table tr:hover {
    background-color: rgba(39, 174, 96, 0.1);
}