/* HVU Website - Consolidated CSS Styles */

/* Base Styles */
body { 
    font-family: -apple-system, Arial, sans-serif; 
    font-size: 16px;
}

a { 
    text-decoration: none;
}
a:hover { 
    text-decoration: underline;
}
/* Navigation Styles */
.dropdown-menu { 
    z-index: 1030; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: #cfe2ff;
}
.nav-item,
.nav-link,
.dropdown-item {
    font-size: 14px !important;
    letter-spacing: -.5px;
    text-transform: uppercase;
}
.navbar-nav .dropdown-menu {
    position: absolute;
}
#logo a:hover {
    text-decoration: none;
}
.nav-link {
    font-weight: 700;
}
.dropdown-menu li {
    padding-top: 6px;
    padding-bottom: 6px;
}
.nav-link:hover,
.nav-item:hover,
.nav-item:active {
    text-decoration: none;
    color: #d00 !important;
    border: 0;
}
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1031;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 1.5rem;
}

#menu-wrap .container {
    min-height: 30px;
}

/* Layout Sections */
#top {
    background: #004f9e;
    color: #fff;
}

#header {
    background: #004f9e url(https://www.hvu.edu.vn/demo/bg-top.jpg) no-repeat center center;
    color: #fff;
}

#featured-box {
    background: #fef8de url(https://www.hvu.edu.vn/demo/bg-box.jpg) no-repeat center bottom;
}

#content img {
    max-width: 100%;
    height: auto;
}

/* Typography */
.name {
    font-family: -apple-system, Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: -.5px;
}

.eng {
    font-family: -apple-system, Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.icon-title {
    font-size: 11.5px;
    font-weight: 600;
}

/* Header Search Styling */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    z-index: 2;
}

.search-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-form {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.search-container.active .search-icon {
    opacity: 0;
    pointer-events: none;
}

.search-container.active .search-form {
    opacity: 1;
    visibility: visible;
}

.search-form .input-group {
    width: 250px;
}

.search-form input {
    border-radius: 20px 0 0 20px;
    border: none;
    padding-left: 15px;
    height: 40px;
}

.search-form button {
    border-radius: 0 20px 20px 0;
    border: none;
    background: #fff;
    color: #004f9e;
    width: 40px;
    height: 40px;
}

.header-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-link:hover {
    color: #d00;
    //text-decoration: underline;
}

/* Carousel Styles */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 1px solid #6c757d;
    opacity: 1;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #dc3545;
    border: 1px solid #dc3545;
}

#idx-slide .carousel-item {
    position: relative;
    width: 100%;
    padding-bottom: 42.86%; /* 21:9 aspect ratio */
    overflow: hidden;
    border-radius: 0.375rem; /* rounded corners for container */
}

#idx-slide .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.375rem; /* rounded corners for image */
}

#idx-slide .carousel-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px);
    background-color: #f8f9fa !important;
}

.hover-shadow {
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 575.98px) {
    #logo img {
        width: 60px;
        height: 60px;
    }
    .name {
        font-size: 18px;
        margin-top: 5px;
    }
    .eng {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    #outline table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 991.98px) {
    #menu-wrap .container {
        position: relative;
    }
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #cfe2ff; /* bg-primary-subtle */
        border-top: 1px solid rgba(0,0,0,0.1);
        z-index: 1030;
        padding: 0 10px;
        margin-top: 5px;
    }
    
    /* Mobile search form styling */
    #mobileSearchForm {
        display: none;
        width: 100%;
    }
    
    #mobileSearchForm .input-group {
        max-width: 100%;
    }
    
    #mobileSearchForm input {
        border-radius: 20px 0 0 20px;
        border: 1px solid #ced4da;
        padding-left: 15px;
        height: 30px;
        font-size: 14px;
    }
    
    #mobileSearchForm button {
        border-radius: 0 20px 20px 0;
        border: 1px solid #0d6efd;
        background: #0d6efd;
        color: #fff;
        width: 40px;
        height: 30px;
        font-size: 14px;
    }
    
    #mobileSearchForm input.is-invalid {
        border-color: #dc3545;
    }
}
