:root {
    --primary-color: #018837;
    --secondary-color: #28A745;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    overflow-x: hidden;
    padding-top: 130px;
    /* Space for fixed navbar */
    transition: padding 0.3s ease;
}

/* Navbar Top Styles */
.navbar-top {
    background-color: #f8f9fa;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-top.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.social-icon {
    background: linear-gradient(to bottom left, #018837, #28A745);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #fff;
    color: #018837;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    transform: translateY(-3px);
}

.nav-link-custom {
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link-custom:hover {
    color: var(--primary-color);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* Main Navbar Styles */
.main-navbar {
    transition: all 0.3s ease;
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-navbar.scrolled {
    top: 0;
}

.main-navbar.scrolled .container {
    padding: 5px 10px;
    max-width: 70%;
    box-shadow: #00914a 0px 0px 2px 0px;
}

.navbar-container {
    width: 100%;
    transition: all 0.3s ease;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .navbar-container.scrolled {
        width: 80% !important;
        max-width: 1400px;
    }
}

.navbar-brand h5 {
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 0.2rem;
    color: #333;
}

.navbar-brand small {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: #666;
}

.nav-link {
    font-weight: 500;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    padding: 0.5rem 1rem !important;
    color: #333 !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 8px;
    overflow: hidden;
    min-width: 220px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    padding: 0.65rem 1.25rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(1, 136, 55, 0.1), rgba(40, 167, 69, 0.2));
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 5px;
    vertical-align: middle;
}

.show>.dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* Logo sizing */
.navbar-brand img {
    width: clamp(45px, 5vw, 55px);
    height: auto;
    transition: all 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar-top {
        display: none;
    }

    .main-navbar {
        top: 0;
    }

    .main-navbar.scrolled .container {
        max-width: 95%;
    }

    .navbar-collapse {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--glass-shadow);
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        margin-left: 1rem;
        border-left: 3px solid var(--primary-color);
        box-shadow: none;
        animation: none;
    }

    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-top {
        display: flex;
    }

    body {
        padding-top: 110px;
    }

    .main-navbar {
        top: 40px;
    }
}

/* Animation for navbar items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.navbar-nav .nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar-nav .nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.navbar-nav .nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.navbar-nav .nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

.navbar-nav .nav-item:nth-child(5) {
    animation-delay: 0.5s;
}

.navbar-nav .nav-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* hero sectioin  */
/* Custom styles */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.carousel-item {
    height: 85vh;
}

.carousel-item1 {
    height: 50vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-nav .nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    margin: 0 15px;
}

.slider-nav .page-indicator button {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
    margin: 0 5px;
    font-size: 1.2rem;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.slider-nav .page-indicator button:last-child {
    border-right: none;
}

.slider-nav .page-indicator button.active {
    color: #ffc107;
}

.cta-btn {
    background-color: #0d6efd;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-btn:hover {
    background-color: white;
    color: #0d6efd;
}

.degree-section {
    position: absolute;
    right: 100px;
    bottom: 100px;
    width: 350px;
    color: white;
    text-align: left;
    z-index: 10;
}

.degree-item {
    margin-bottom: 15px;
    transition: all 0.3s ease;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.degree-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.degree-title {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.degree-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.education-highlight {
    color: #ffc107;
}

.header-icon {
    margin-right: 10px;
}

@media (max-width: 992px) {
    .hero-slider {
        height: 40vh;
    }
    
    .carousel-item {
        height: 40vh;
    }
    
    .carousel-item1 {
        height: 40vh;
    }
    .degree-section {
        display: none;
    }

    .slider-nav {
        top: 20px;
    }

    .slider-nav .nav-divider {
        display: none;
    }
}

/* notice section */
.tab-container {
    background-color: #f0f1f7;
    border-radius: 8px;
}

.custom-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 0;
    cursor: pointer;
}

.custom-tab.active {
    background-color: white;
    border-bottom: 4px solid #00914a;
}

.notice-item {
    background-color: #f0f1f7;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.date-badge {
    background-color: #00914a;
    color: white;
    padding: 4px 8px;
    text-align: center;
}

.day-number {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.view-all {
    color: #00914a;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.view-all:hover {
    text-decoration: underline;
}

.main-title {
    color: #00914a;
    font-weight: bold;
    font-size: 32px;
}

.notice-list, .publication-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
     /* Hide scrollbar for Chrome, Safari and Opera */
     scrollbar-width: none; /* Firefox */
     -ms-overflow-style: none; /* IE and Edge */
}

/* Hide content by default */
.tab-content {
    display: none;
}

/* Show active tab content */
.tab-content.active {
    display: block;
}
/* about uamc */
.text-highlight {
    color: #FFB400;
}

.text-accent {
    color: #28A745;
}

.btn-outline-accent {
    color: #28A745;
    border-color: #28A745;
}

.college-logo {
    width: 150px;
    height: 150px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.img-overlay {
    position: relative;
}

.custom-button {
    background-color: #28A745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

.custom-button:hover {
    background-color: #218838;
    color: white;
}

.btn-outline-green {
    color: #28A745;
    border: 1px dashed #28A745;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-outline-green:hover {
    background-color: #f8f9fa;
}


/* feature part  */
.feature-container {
    position: relative;
    width: 100%;
    height: 450px;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('https://i.postimg.cc/kGpkBp9L/cam1.jpg');
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.3;
}

.stats-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    background-color: rgba(0, 100, 0, 0.85);
    padding: 1.5rem;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    z-index: 10;
}

@media (min-width: 768px) {
    .feature-container {
        height: 300px;
    }

    .stats-box {
        width: 80%;
        padding: 3rem;
    }
}

@media (min-width: 992px) {
    .feature-container {
        height: 400px;
    }

    .stats-box {
        width: 75%;
    }
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
}

.stat-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    color: #FECD2F;
}

@media (min-width: 768px) {
    .stat-title {
        font-size: 2.75rem;
    }

    .stat-desc {
        font-size: 1.125rem;
    }
}

@media (min-width: 992px) {
    .stat-title {
        font-size: 4.5rem;
    }
}

/* footer  */
.footer-top {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}

.footer-bottom {
    background-color: #000;
    color: #888;
    padding: 20px 0;
    border-top: 1px solid #333;
}

.newsletter-section {
    padding: 20px 0;
    border-bottom: .5px solid #1f1f1f;
}

.newsletter-input {
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #018837;
    color: #fff;
}

.submit-btn {
    background-color: #fff;
    color: #000;
    border: none;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-heading {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}

.recent-post {
    display: flex;
    margin-bottom: 20px;
}

.post-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    object-fit: cover;
}

.post-content h6 {
    margin-bottom: 5px;
}

.post-date {
    color: #888;
    font-size: 0.8rem;
}

/* Facility  */
.facility-nav-item {
    position: relative;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.facility-nav-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.facility-nav-item.active {
    border-left: 4px solid #198754;
}

.facility-nav-item.active span {
    color: #198754;
    font-weight: 500;
}

.circle-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-content {
    display: none;
}

.facility-content.active {
    display: block;
}

.btn-details {
    color: #0d6efd;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.btn-details:hover {
    text-decoration: underline;
}

.section-header {
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}


.banner-section {
    background-image: url('/assets/images/banner.png');
    background-size: cover;
    /* background-position: center; */
    width: 100%;
    position: relative;
    padding: 4rem 0;
}

.banner-overlay {
    background-color: rgba(1, 136, 55, 0.3);
    margin: 0rem 5rem;
}


.breadcrumb-text {
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.banner-title {
    font-weight: 500;
    font-family: serif;
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 100%;
    height: auto;
}

/* Responsive styles */
@media (max-width: 575.98px) {
    .banner-section {
        padding: 1rem 0;
    }

    .banner-overlay {
        margin: 0rem 1rem;
    }
    .banner-overlay {
        padding: 1rem 1rem;
        text-align: center;
    }
    
    .breadcrumb-text {
        font-size: 0.9rem;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .logo-img {
        width: 200px;
        margin-top: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .banner-overlay {
        padding: 2.5rem 1.5rem;
    }
    
    .breadcrumb-text {
        font-size: 1rem;
    }
    
    .banner-title {
        font-size: 3rem;
    }
    
    .logo-img {
        width: 220px;
        margin-top: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .breadcrumb-text {
        font-size: 1.1rem;
    }
    
    .banner-title {
        font-size: 3.25rem;
    }
    
    .logo-img {
        width: 250px;
    }
}

@media (min-width: 992px) {
    .breadcrumb-text {
        font-size: 1.25rem;
    }
    
    .banner-title {
        font-size: 3.75rem;
    }
    
    .logo-img {
        width: 300px;
    }
}

/* notice section  */
.tab-container {
    background-color: #f0f1f7;
    border-radius: 8px;
  }
  .custom-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 0;
  }
  .custom-tab.active {
    background-color: white;
    border-bottom: 4px solid #00914a;
  }
  .notice-item {
    background-color: #f0f1f7;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
  }
  .date-badge {
    background-color: #00914a;
    color: white;
    padding: 4px 8px;
    text-align: center;
  }
  .day-number {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
  }
  .view-all {
    color: #00914a;
    text-decoration: none;
    display: flex;
    align-items: center;
  }
  .view-all:hover {
    text-decoration: underline;
  }
  .main-title {
    color: #00914a;
    font-weight: bold;
    font-size: 32px;
  }

/* footer  */
.footer-top {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}
.footer-bottom {
    background-color: #000;
    color: #888;
    padding: 20px 0;
    border-top: 1px solid #333;
}
.newsletter-section {
    padding: 20px 0;
    border-bottom: .5px solid #1f1f1f;
}
.newsletter-input {
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #018837;
    color: #fff;
}
.submit-btn {
    background-color: #fff;
    color: #000;
    border: none;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-heading {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #fff;
}
.recent-post {
    display: flex;
    margin-bottom: 20px;
}
.post-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    object-fit: cover;
}
.post-content h6 {
    margin-bottom: 5px;
}
.post-date {
    color: #888;
    font-size: 0.8rem;
}