/*
 * Theme Name: University Hub Pro Child
 * Theme URI: #
 * Description: Enhanced child theme for University Hub Pro with modern design
 * Author: aku
 * Author URI: #
 * Template: university-hub-pro
 * Version: 2.0.0
*/

/* --- Modern Color Palette with Perfect Harmony --- */
:root {
    /* Primary Colors */
    --au-blue-dark: #002244;           /* Deep navy blue - professional and authoritative */
    --au-blue-medium: #0066CC;         /* Vibrant blue - for interactive elements */
    --au-blue-light: #E6F2FF;          /* Very light blue - for backgrounds */
    --au-gold: #FFC72C;                /* Warm gold - for accents (updated to more sophisticated shade) */
    --au-gold-light: #FFE699;          /* Light gold - for subtle highlights */
    
    /* Secondary Colors */
    --au-teal: #008080;                /* Sophisticated teal for secondary elements */
    --au-teal-light: #E6F7F7;          /* Light teal for backgrounds */
    --au-red: #CC3333;                 /* Updated red for important notices */
    
    /* Neutrals */
    --text-dark: #222222;              /* Almost black for text */
    --text-medium: #555555;            /* Medium gray for secondary text */
    --text-light: #888888;             /* Light gray for subtle text */
    --bg-white: #FFFFFF;              /* Pure white */
    --bg-light: #FAFAFA;              /* Very light gray for backgrounds */
    --border-light: #E0E0E0;           /* Light border color */
    --border-medium: #CCCCCC;          /* Medium border color */
    
    /* Gradients */
    --blue-gradient: linear-gradient(135deg, var(--au-blue-dark) 0%, var(--au-blue-medium) 100%);
    --gold-gradient: linear-gradient(135deg, var(--au-gold) 0%, #FFD700 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Header */
    --header-bg: var(--bg-white);
    --header-height: 80px;
}

html, body {
    margin: 0;
    padding:0px;
}
.site-content {
    width: 90%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}
@media (max-width: 768px) {
    body.page:not(.home) .main-content {
        padding: 20px;
    }
}
body.page:not(.home) .main-content {
    padding: 50px;
}
/* Apply border-radius to the whole page container */
#page, .site {
    overflow: hidden;
    margin: 20px auto;
    max-width: 1300px;
    padding:20px;
    background: #fff; /* Optional: Ensures the content has a background */
    border-radius: 8px; /* Added border-radius for the main page container */
    box-shadow: var(--shadow-lg); /* Added subtle shadow for depth */
}

body {
    overflow-x: hidden; /* Optional, prevent horizontal scroll */
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    background-color: #fefefe;
    color: var(--text-dark); /* Use variable for body text color */
}

body > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

a {
    color: var(--au-blue-medium); /* Use variable for link color */
    text-decoration: none;
    transition: color var(--transition-medium);
}
a:hover,
a:focus {
    color: var(--au-blue-dark); /* Darker blue on hover */
    outline: none;
    text-decoration: underline;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ------------------------------------
 * Container
 * ------------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
}


/* ------------------------------------
 * Top Bar
 * ------------------------------------ */
.top-bar {
    background-color:#52accc;
    color: #eee;
    font-size: 0.875rem;
    user-select: none;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    flex-wrap: wrap;
}
.top-left ul,
.top-right ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.top-left ul li,
.top-right ul li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.top-left ul li i,
.top-right ul li i {
    color: var(--au-gold); /* Using variable for icons */
}

/* Contact links */
.top-contact li a {
    color: #eee;
}
.top-contact li a:hover,
.top-links li a:hover,
.social-links li a:hover {
    color: var(--au-gold); /* Using variable for hover */
    text-decoration: underline;
}

/* Top links */
.top-links li a {
    color: #eee;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Social icons */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}
.social-links li a {
    color: #eee;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-medium);
}
.social-links li a:hover {
    color: var(--au-gold); /* Using variable for social links hover */
}

/* ------------------------------------
 * Header
 * ------------------------------------ */
.site-header {
    background:var(--au-blue-medium); /* Using variable for header background */
    color:var(--bg-white); /* Adjust header text color for contrast */
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md); /* Using variable for shadow */
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: background var(--transition-medium);
    margin: 0;
}

.animated-gradient {
    animation: gradientMove 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Site branding */
.site-branding {
    display: flex;
    align-items: left;
    gap: 0.5rem;
    flex-shrink: 0;
    
}

.site-branding img {
    max-height: 100px;
    align-items: left;
    width: auto;
    
}

.site-title-desc {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-top:20px;
    
}

.site-title a {
    color: var(--bg-white); /* Using variable */
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}
.site-description {
    font-size: 0.85rem;
    color: #ddd; /* Keeping this specific lighter shade */
    margin-top: 0.15rem;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--bg-white); /* Using variable */
    cursor: pointer;
    display: none;
    transition: color var(--transition-medium);
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--au-gold); /* Using variable */
    outline: none;
}

/* ------------------------------------
 * Navigation Menu
 * ------------------------------------ */
.main-navigation {
    flex-grow: 1;
    margin-left: 5rem;
}

.menu-list {
    display: flex;
    gap: 1rem;
}

.menu-list li {
    position: relative;
    white-space: nowrap;
}

.menu-list > li > a {
    display: inline-flex;
    align-items: center;
    color: var(--bg-white); /* Using variable */
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    transition: background-color var(--transition-medium);
    border-radius: 4px;
}

.menu-list > li > a:hover,
.menu-list > li > a:focus {
    background-color: var(--au-gold); /* Using variable */
    outline: none;
    color: var(--text-dark); /* Using variable for contrast */
}

/* Menu item icons placeholder */
.menu-list li.menu-item-has-children > a > .menu-item-icon::after {
    content: "\f0d7"; /* FontAwesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.3em;
    font-size: 0.6em;
    vertical-align: middle;
    display: inline-block;
    transition: transform var(--transition-medium);
    color: var(--bg-white); /* Using variable */
}

/* Rotate arrow on active submenu */
.menu-list li.submenu-active > a > .menu-item-icon::after {
    transform: rotate(180deg);
}

/* Dropdown submenus */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--au-blue-dark); /* Using variable for submenu background */
    border-radius: 4px; /* Reduced border-radius for cleaner look */
    padding: 0.5rem 0; /* Adjusted padding */
    min-width: 220px;
    box-shadow: var(--shadow-md); /* Using variable for shadow */
    z-index: 9999;
}

/* Show submenu on hover/focus for desktop */
.menu-list li:hover > .sub-menu,
.menu-list li:focus-within > .sub-menu {
    display: block;
}

/* Submenu items */
.sub-menu li {
    position: relative;
}

.sub-menu li > a {
    display: block;
    padding: 0.75rem 1rem; /* Adjusted padding */
    color: var(--bg-white); /* Using variable */
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-medium);
}

.sub-menu li > a:hover,
.sub-menu li > a:focus {
    background-color: var(--au-gold); /* Using variable */
    color: var(--text-dark); /* Using variable for contrast */
    outline: none;
}

/* Nested submenus cascading to right */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Right arrow for nested submenu parent */
.sub-menu li.menu-item-has-children > a > .menu-item-icon::after {
    content: "\f105"; /* FontAwesome right arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.3em;
    font-size: 0.6em;
    vertical-align: middle;
    display: inline-block;
    transition: transform var(--transition-medium);
    color: var(--bg-white); /* Using variable */
}

/* ------------------------------------
 * Responsive Styles
 * ------------------------------------ */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
    }

    .main-navigation {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    /* Show hamburger */
    .menu-toggle {
        display: block;
        order: 2;
    }

    .menu-list {
        flex-direction: column;
        display: none;
        width: 100%;
        background-color: var(--bg-white); /* Using variable */
        border-radius: 0 0 6px 6px;
    }
    .menu-list.menu-active {
        display: flex;
    }

    .menu-list > li > a {
        padding: 1rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Submenus stacked and hidden by default */
    .sub-menu {
        position: static;
        box-shadow: none;
        background: var(--au-blue-medium); /* Using variable */
        padding-left: 1rem;
        display: none;
        border-radius: 0;
        margin: 0;
    }

    /* Show submenu when active */
    .menu-list li.menu-item-has-children.submenu-active > .sub-menu {
        display: flex;
        flex-direction: column;
    }

    /* Remove hover show on mobile */
    .menu-list li:hover > .sub-menu,
    .menu-list li:focus-within > .sub-menu {
        display: none;
    }
}

/* ------------------------------------
 * Footer styles
 * ------------------------------------ */
/* Footer general layout */
.site-footer {
    color: #52accc; /* General text color for the footer */
    padding: 40px 20px 20px;
    font-size: 14px;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    background:#87CEFA;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; /* Space between columns */
    padding: 40px 20px; /* Padding for the entire footer content area */
    max-width: 1200px; /* Max width for the footer content */
    margin: 0 auto; /* Center the footer content */
}

.footer-col h3, .footer-col h4 { /* Combined for consistent styling */
    color: var(--au-gold); /* Gold color for headings */
    font-size: 1.25rem; /* Slightly larger headings */
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Slightly thicker line under headings */
    padding-bottom: 8px; /* More padding under the line */
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    color: #52accc; /* Details text color, keeping for text */
    display: flex;
    align-items: flex-start;
}
.contact-info li i {
    margin-right: 8px;
    font-size: 1em;
    color: var(--au-gold); /* UPDATED: Icon color set to gold */
    line-height: inherit; /* Align icon with text line-height */
}

.contact-info a {
    color: #52accc; /* Keeping this specific color for contact link text if it's meant to be different from var(--bg-white) */
    text-decoration: none;
}
.contact-info a:hover { /* Added hover for contact links */
    color: var(--au-gold); /* Gold on hover */
    text-decoration: underline;
}

/* Footer Links (General) */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #52accc; /* Footer link color */
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);

    /* --- NEW STYLES FOR ICON ALIGNMENT --- */
    display: flex; /* Make the link a flex container */
    align-items: center; /* Vertically center the icon and text */
    gap: 8px; /* Add some space between the icon and the text */
}
.footer-links a i {
    color: var(--au-gold); /* Ensure icons within links are gold */
    font-size: 0.95em; /* Slightly smaller than link text */
}

.footer-links a:hover {
    color: var(--au-gold); /* Gold on hover */
    transform: translateX(5px); /* Subtle hover effect */
}

/* Specific styling for the new leftmost column's social icons */
.footer-social-contact .social-icons {
    display: flex; /* Arrange icons in a row */
    flex-wrap: wrap; /* Allow wrapping if space is tight */
    gap: 15px; /* Space between icons */
    margin-top: 15px;
    justify-content: flex-start; /* Align icons to the left by default */
}

.footer-social-contact .social-icons a {
    display: flex; /* Use flex to easily center icon if it had text */
    align-items: center; /* UPDATED: Changed from left to center for better visual alignment */
    justify-content: center; /* UPDATED: Changed from left to center for better visual alignment */
    width: 42px; /* Fixed width for icon background */
    height: 42px; /* Fixed height for icon background */
    background-color: transparent; /* Keeping transparent by default */
    border: 2px solid var(--au-gold); /* Border color matching gold */
    border-radius: 50%; /* Make them circular */
    color: var(--au-gold); /* UPDATED: Icon color set to gold */
    font-size: 18px; /* Icon size */
    text-decoration: none;
    transition: background-color var(--transition-medium), color var(--transition-medium), transform var(--transition-medium); /* Smooth transition for hover */
}

/* HOVER EFFECT: Background and icon color change */
.footer-social-contact .social-icons a:hover {
    background-color: var(--au-gold); /* Change background to gold on hover */
    color: var(--au-blue-dark); /* UPDATED: Change icon color to dark blue on hover for contrast */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Styles for the dividers and strong text */
.footer-links .footer-divider,
.contact-info .footer-divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25); /* A subtle white line */
    margin: 15px 0; /* Space above and below the line */
    list-style: none; /* Ensure no bullet point for the divider */
    padding: 0; /* Remove padding */
    height: 1px; /* Ensure it's a thin line */
}

.footer-col strong {
    display: block; /* Make it take its own line */
    margin-top: 10px; /* Space above the heading */
    margin-bottom: 5px; /* Space below */
    font-size: 0.95em; /* Slightly smaller than main headings */
    color: #52accc; /* Changed to white for consistency on dark background */
}

/* Footer Bottom area (copyright) */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* A light white border */
    color: #52accc; /* Lighter gray for copyright text */
    font-size: 13px;
}

/* Collapsible Footer Sections */
.footer-collapsible-section h4 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px; /* Adjust as needed */
    margin-bottom: 15px; /* Keep consistent with non-collapsible headers */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Consistent with h3/h4 */
    padding-bottom: 8px; /* Consistent with h3/h4 */
}

.footer-collapsible-section .toggle-icon {
    transition: transform var(--transition-medium);
    font-size: 0.9em; /* Adjust icon size */
    color: var(--au-gold); /* Ensure icon color matches headings */
}

.footer-collapsible-section.active .toggle-icon {
    transform: rotate(180deg);
}

.footer-collapsible-section .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-out, padding-bottom var(--transition-medium) ease-out; /* Add padding-bottom to transition */
    padding-bottom: 0; /* Ensures no extra space when collapsed */
    margin-top: -10px; /* Adjust to pull content up slightly */
}

.footer-collapsible-section.active .collapsible-content {
    max-height: 500px; /* A value larger than the max possible height of content */
    padding-bottom: 15px; /* Re-add desired padding when expanded */
}

/* IMPORTANT: Apply collapsible behavior ONLY on smaller screens */
@media (max-width: 768px) {
    .footer-collapsible-section .collapsible-content {
        max-height: 0;
        transition: max-height var(--transition-medium) ease-out, padding-bottom var(--transition-medium) ease-out;
        padding-bottom: 0;
        margin-top: -10px;
    }
    .footer-collapsible-section.active .collapsible-content {
        max-height: 500px; /* Ensure this is large enough to contain all links */
        padding-bottom: 15px;
    }
    .footer-collapsible-section h4 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .footer-collapsible-section .toggle-icon {
        display: inline-block; /* Ensure icon is visible on mobile */
    }
    /* Set all sections to start collapsed on small screens */
    .footer-collapsible-section:not(.active) .collapsible-content {
        max-height: 0; /* Explicitly ensure it's collapsed */
    }
}

/* On larger screens, the content should always be visible */
@media (min-width: 769px) {
    .footer-collapsible-section .collapsible-content {
        max-height: none !important; /* Override max-height to always show */
        overflow: visible !important; /* Override overflow */
        padding-bottom: 0; /* Reset any padding-bottom from smaller screens */
        margin-top: 0; /* Reset any negative margin */
    }
    .footer-collapsible-section .toggle-icon {
        display: none !important; /* Hide toggle icon on large screens */
    }
    /* Ensure the heading cursor is normal on larger screens */
    .footer-collapsible-section h4 {
        cursor: default;
    }
}

/* Media Queries for Responsiveness (adjust as needed) */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns for tablets */
        gap: 20px;
        padding: 30px 15px;
    }
    .footer-social-contact .social-icons {
        justify-content: flex-start; /* Ensure icons are left-aligned */
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack columns on very small screens */
        gap: 20px;
        padding: 20px 10px;
    }
    .footer-col {
        text-align: left; /* Ensure text aligns left on very small screens */
    }
    .footer-col h3, .footer-col h4 {
        border-bottom: none; /* Remove line under headings on small screens */
        padding-bottom: 0;
    }
    .footer-social-contact .social-icons {
        justify-content: flex-start; /* Ensure social icons also start from left */
    }
}


/* Styles for main content area */
#content, .site-content, .site-main, main {
    max-width: 1100px; /* Adjust width as needed */
    margin: 0px auto; /* Top and bottom margin + auto left/right centering */
    padding: 20px 20px;
    background-color: #fefefe;
    border-radius: 7px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    color: #333;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Optional: inner content */
.entry-content, .page-content {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Make sure media is responsive */
.entry-content img,
.entry-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive adjustments for main content */
@media (max-width: 768px) {
    #content, .site-content, .site-main, main {
        margin: 5px 5px; /* Reduce margin on small screens */
        padding: 10px 10px;
    }

    .entry-content, .page-content {
        padding: 10px;
    }
}

/* ------------------------------------
 * Search Wrapper styles (Enhanced)
 * ------------------------------------ */
.search-wrapper {
    position: relative;
    overflow: visible;
    z-index: 999;  
}
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem; /* Slightly larger icon */
    color: var(--bg-white); /* Using variable */
    padding: 5px; /* Add some padding around the icon */
    transition: color var(--transition-fast);
}

.search-toggle:hover,
.search-toggle:focus {
    color: var(--au-gold); /* Gold on hover/focus */
    outline: none;
}

.search-form-container {
    position: absolute;
    top: calc(100% + 5px); /* Position slightly below the toggle */
    right: 0;
    background: var(--au-blue-dark); /* Using variable */
    padding: 15px; /* Increased padding */
    z-index: 10001; /* Ensure this is higher than your nav */
    box-shadow: var(--shadow-lg); /* More prominent shadow */
    border-radius: 6px; /* Rounded corners */
    min-width: 280px; /* Ensure a minimum width */
    display: none; /* Hidden by default, toggled by JS */
    opacity: 0; /* Start with opacity 0 for transition */
    transform: translateY(-10px); /* Start slightly above for slide-down effect */
    transition: opacity var(--transition-medium) ease, transform var(--transition-medium) ease;
}

.search-form-container.active {
    display: block; /* Make visible */
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Slide down */
}

.search-form-container form {
    display: flex; /* Arrange input and button in a row */
    width: 100%;
}

.search-form-container input[type="search"] {
    flex-grow: 1; /* Allow input to take available space */
    padding: 10px 12px; /* More padding */
    border: 1px solid var(--border-light); /* Lighter border */
    border-radius: 4px 0 0 4px; /* Rounded left corners */
    font-size: 1rem; /* Readable font size */
    background-color: var(--bg-white); /* White background for input */
    color: var(--text-dark); /* Dark text color */
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-form-container input[type="search"]:focus {
    outline: none;
    border-color: var(--au-blue-medium); /* Blue border on focus */
    box-shadow: 0 0 0 3px var(--au-blue-light); /* Subtle focus ring */
}

.search-form-container input[type="submit"] {
    padding: 10px 15px; /* Consistent padding */
    background-color: var(--au-gold); /* Gold background for button */
    color: var(--au-blue-dark); /* Dark blue text for contrast */
    border: none;
    border-radius: 0 4px 4px 0; /* Rounded right corners */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap; /* Prevent button text from wrapping */
}

.search-form-container input[type="submit"]:hover,
.search-form-container input[type="submit"]:focus {
    background-color: #e6b800; /* Slightly darker gold on hover */
    transform: translateY(-1px); /* Subtle lift effect */
    outline: none;
}

/* Responsive Search Form */
@media (max-width: 480px) {
    .search-form-container {
        left: 10px; /* Align to left with some margin */
        right: 10px; /* Align to right with some margin */
        width: auto; /* Allow width to adapt */
        min-width: unset; /* Remove min-width constraint */
    }
}