/* Define CSS variables for easier color management and consistency */
.aksum-department-block {
    --aksum-blue-primary: #004d99; /* Strong, authoritative blue */
    --aksum-red-accent: #a83232; /* Bold, contrasting red */
    --aksum-gold-highlight: #ffcc00; /* Vibrant gold for accents */
    --aksum-light-blue: #66b3ff; /* Softer blue for gradients/subtlety */

    /* Text colors for hierarchy and readability */
    --text-color-dark: #2c3e50; /* Darker for primary text */
    --text-color-medium: #34495e; /* Standard paragraph text */
    --text-color-light: #7f8c8d; /* Lighter for meta/subtle text */

    /* Backgrounds and borders for clean structure */
    --background-light: #f4f7f6; /* A very subtle light grey */
    --background-white: #ffffff; /* Crisp white */
    --border-subtle: #e0e0e0; /* Soft border color */
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);

    /* Typography */
     font-family: 'Open Sans', 'Noto Sans Ethiopic', sans-serif;
    line-height: 1.7; /* Increased for better readability */
    color: var(--text-color-medium);
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
    -moz-osx-font-smoothing: grayscale;

    /* UPDATED: Adjust margin and padding for the outer block to control overall layout */
    margin: 10px 0 25px 0; /* 10px top margin, 0 left/right, 25px bottom */
    padding: 0 25px 0 0; /* Removed left padding, kept right padding */
    width: 100%; /* Ensures it takes full available width */
    max-width: 100%; /* Ensures it takes full available width */
}
        h1 {
            color: #FFF; /* aksum-blue-primary */
            font-size: 0px;
            margin-bottom: 20px;
            text-align: center;
        }
        h2 {
            color: #004d99; /* aksum-blue-primary */
            font-size: 1.8em;
            margin-top: 30px;
            margin-bottom: 15px;
            border-bottom: 2px solid #e0e0e0; /* border-subtle */
            padding-bottom: 5px;
        }
        h3 {
            color: #a83232; /* aksum-red-accent */
            font-size: 1.3em;
            margin-top: 20px;
            margin-bottom: 10px;
        }
        p {
            margin-bottom: 15px;
        }
        ul {
            list-style-type: disc;
            margin-left: 25px;
            margin-bottom: 15px;
        }
        li {
            margin-bottom: 8px;
        }
        .caption {
            margin-top: 40px;
            padding: 15px;
            background-color: #ffffff;
            border: 1px solid #e0e0e0;
            border-left: 5px solid #ffcc00; /* aksum-gold-highlight */
            font-style: italic;
            color: #2c3e50; /* text-color-dark */
        }
/* Box sizing reset for consistent element sizing */
.aksum-department-block * {
    box-sizing: border-box;
}

/* Main Container - Modern and spacious layout */
.aksum-dept-container {
    display: grid;
    grid-template-columns: 1fr 280px; /* Slightly wider sidebar for better menu spacing */
    gap: 30px; /* Increased gap for more breathing room */
    padding: 0 0px 0px 0px; /* Removed top padding, kept others */
    background-color: var(--background-white);
    border-radius: 0; /* Removed border-radius */
    /*box-shadow: 0 8px 30px var(--shadow-medium);  Enhanced shadow for depth */
    margin: 0; /* Removed auto margin to align left */
    width: 100%; /* Ensures it takes full width of its parent (which has padding-right) */
    max-width: none; /* Removed max-width to make it full page width based on parent block */
    min-height:750; /* Increased min-height for a taller container */
    position: relative;
    overflow: hidden; /* Ensures shadows and borders are contained */
}

/* Main Content Area - Clean and readable */
.aksum-dept-content {
    padding: 5px; /* Increased padding for content */
    background-color: var(--background-white);
    border-radius: 0; /* Removed border-radius */
    box-shadow: 0 2px 5px var(--shadow-light); /* Subtle internal shadow */
}

.aksum-dept-content h2 {
    color: var(--aksum-blue-primary);
    font-size: 1.5em; /* Decreased font size for h2 */
    font-weight: 600; /* Bolder for impact */
    margin-top: 0;
    margin-bottom: 5px; /* More space below heading */
    padding-bottom: 5px; /* More space between text and underline */
    position: relative;
    line-height: 1.2; /* Tighter line height for headings */
}

/* Gradient Underline for H2 with refined proportions and colors */
.aksum-dept-content h2::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%; /* Extended width for the underline */
    height: 4px; /* Slightly thicker underline */
    background: linear-gradient(to right,
                var(--aksum-light-blue) 0%,
                var(--aksum-light-blue) 40%, /* Light blue extended */
                var(--background-white) 40%, /* White separator start */
                var(--background-white) 60%, /* White separator end (wider) */
                var(--aksum-gold-highlight) 60%, /* Gold starts */
                var(--aksum-gold-highlight) 100%);
    border-radius: 2px; /* Slightly rounded ends for the underline */
}

.aksum-dept-content p {
    margin-bottom: 22px; /* Increased margin for paragraph separation */
    text-align: justify;
    font-size: 1.08em; /* Slightly larger font size for readability */
    line-height: 1.8; /* Generous line height */
    color: var(--text-color-dark); /* Darker text for better contrast */
}
.aksum-dept-content ul li {
   padding: 10px; 
}
/* Sticky Sidebar (Desktop) - Enhanced visual appeal */
.aksum-dept-menu {
    position: sticky;
    top: 30px; /* Adjusted distance from top for better alignment with main content */
    max-height: calc(100vh - 60px); /* Adjusted for new top value */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 25px 0; /* Adjusted padding */
    background-color: var(--background-white);
    border-radius: 0; /* Removed border-radius for the menu block */
    box-shadow: 0 4px 20px var(--shadow-light); /* Softer shadow */
    align-self: start;
    border: 1px solid var(--border-subtle); /* Subtle border for definition */
}

/* The attractive two-color separator bar (Desktop - left side) */
.aksum-dept-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px; /* Slightly wider separator */
    height: 100%;
    background: linear-gradient(to bottom, var(--aksum-blue-primary), var(--aksum-red-accent));
    border-radius: 8px 0 0 8px; /* Kept border-radius for the vertical bar */
    z-index: 1;
}

.aksum-dept-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 30px; /* Increased left padding for menu items */
    z-index: 2;
    position: relative;
}

.aksum-dept-menu li {
    margin-bottom: 10px; /* Slightly more space between list items */
}

.aksum-dept-menu li:last-child {
    margin-bottom: 0;
}

.aksum-dept-menu a {
    display: block;
    padding: 14px 22px; /* Increased padding for larger clickable area */
    text-decoration: none;
    color: var(--aksum-blue-primary);
    font-weight: 500;
    font-size: 1.05em; /* Slightly larger font size */
    border-radius: 6px; /* Slightly more rounded buttons */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother, more professional transition */
    position: relative;
    overflow: hidden; /* Ensures no overflow during hover effects */
}

.aksum-dept-menu a:hover {
    background-color: rgba(0, 77, 153, 0.08); /* Lighter hover background */
    color: var(--aksum-red-accent);
    transform: translateX(5px); /* More pronounced hover effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow on hover */
}

.aksum-dept-menu a.aksum-dept-active {
    background-color: var(--aksum-blue-primary);
    color: white !important;
    font-weight: 700;
    box-shadow: inset 5px 0 0 0 var(--aksum-gold-highlight); /* Thicker active indicator */
    padding-left: 25px; /* Adjusted padding for thicker indicator */
    pointer-events: none; /* Prevents clicks on active item */
    position: relative; /* Ensure z-index works for pseudo-element */
}

/* Responsive Layout (Mobile) - Adaptations for smaller screens */
@media (max-width: 768px) {
    .aksum-department-block {
        margin: 10px 0 0 0; /* 10px top margin, 0 for others on mobile */
        padding: 0; /* Remove all padding on small screens for true full width */
    }

    .aksum-dept-container {
        grid-template-columns: 1fr;
        padding: 20px; /* Adjusted padding for mobile */
        gap: 20px; /* Adjusted gap */
        border-radius: 0; /* Remove border-radius on mobile for full width */
        box-shadow: none; /* Remove main container shadow on mobile */
        margin: 0; /* No margin on mobile for full width */
        max-width: 100%; /* Ensure it's full width on mobile */
        min-height: auto; /* Allow height to be auto on mobile */
    }

    .aksum-dept-content {
        padding: 20px; /* Reduced content padding for mobile */
        border-radius: 0;
        box-shadow: none; /* Remove content shadow on mobile */
    }

    .aksum-dept-content h2 {
        font-size: 1.8em; /* Smaller heading for mobile */
        margin-bottom: 20px;
    }

    .aksum-dept-content h2::after {
        width: 50%; /* Wider underline for mobile */
    }

    .aksum-dept-content p {
        font-size: 1em; /* Standard font size for paragraphs */
        margin-bottom: 15px;
    }

    .aksum-dept-menu {
        order: -1;
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 100;
        background-color: var(--aksum-blue-primary); /* Solid blue background for mobile header */
        border-radius: 0;
        height: auto;
        max-height: none;
        box-shadow: 0 2px 10px var(--shadow-medium); /* Add shadow for mobile header */
        padding: 10px 0; /* Smaller padding for mobile top bar */
        overflow-y: visible;
        border: none; /* Remove border on mobile */
    }

    /* Adjust the two-color separator for the top bar on mobile */
    .aksum-dept-menu::before {
        width: 100%;
        height: 6px; /* Slightly thicker bar */
        background: linear-gradient(to right, var(--aksum-gold-highlight), var(--aksum-red-accent)); /* Reversed gradient for accent */
        border-radius: 0; /* Removed border-radius for mobile top bar */
        top: 0; /* Ensure it's at the very top */
        left: 0;
        right: 0;
    }

    .aksum-dept-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
        padding-top: 15px; /* More padding below the colored bar */
    }

    .aksum-dept-menu li {
        margin: 0 6px 8px; /* Adjusted spacing for horizontal items */
    }

    .aksum-dept-menu a {
        padding: 8px 12px; /* Smaller padding for compact mobile buttons */
        font-size: 0.85em; /* Smaller font size for mobile menu items */
        text-align: center;
        transform: none;
        color: var(--background-white); /* White text on blue background */
        background-color: rgba(255, 255, 255, 0.1); /* Subtle background for menu items */
        border: 1px solid rgba(255, 255, 255, 0.2); /* Light border for definition */
        border-radius: 4px; /* Slightly less rounded for mobile */
    }

    .aksum-dept-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--aksum-gold-highlight); /* Gold hover effect */
        transform: none;
        box-shadow: none;
    }

    .aksum-dept-menu a.aksum-dept-active {
        box-shadow: none;
        border-bottom: 4px solid var(--aksum-gold-highlight); /* More prominent bottom border for active state */
        padding-left: 12px; /* Adjusted padding */
        background-color: rgba(255, 255, 255, 0.25); /* More distinct active background */
        color: var(--aksum-gold-highlight) !important; /* Gold text for active on mobile */
        border-color: var(--aksum-gold-highlight); /* Match border color */
    }
}