/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}



/* Hover Style */
.interactive-text {
  color: #06006b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.interactive-text:not(:hover):not(.locked) {
  color: #09096f;
}

.interactive-text:not(.locked):hover {
  color: #0094ff;
}


.interactive-text.locked {
  color: #0094ff;
}



/* PADDING STYLES */
.padding {
    padding-left: 20px!important;
    padding-right: 20px!important;
}



/* WIDTH STYLES */
.w-100 {
    width: 100%;
}



/* BG STYLES */
.bg-white {
    background-color: white;
}

.bg-blue-1 {
    background-color: #004fff;
}

.bg-blue-2 {
    background-color: #0085ff;
}

.bg-blue-3 {
    background-color: #0021ff;
}

.bg-red {
    background-color: red;
}

.bg-yellow {
    background-color: #ff7a00;
} 

.bg-pink {
    background-color: #ff006b;
}

.bg-green {
    background-color: green;
}

.bg-green2 {
    background-color:#39a200;
}


/* TEXT COLOR */
.text-white {
    text-decoration:none;
    color:white;
}

.text-white:hover {
    color: #0094ff;
}

.logo-text {
    font-size:12px;
    line-height:1rem;
    margin:10px;
}

.h-blue {
    color:#09096f;
}

.h-green {
    color:#42b72a;
}

.h-red {
    color:red;
}

.h-blue-1 {
    color: #004fff;
}

.h-blue-2 {
    color: #0085ff;
}

.h-blue-3 {
    color: #0021ff;
}

.h-blue-4 {
    color: #06006b;
}

.h-yellow {
    color:#ff7a00;
}

.h-pink {
    color:#ff006b;
}




/* HOVER EFFECTS */
.dropdown-menu .dropdown-item {
    color: #06006b;
    transition: background 0.2s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #06006b;
    color: white;
}

.dropdown-menu .dropdown-item:hover i {
    color: white;
}




/* SEARCH BAR STYLE */
.searcharea {
    max-width: 250px;
    
}

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

#clearBtn {
    position: absolute; 
    right: 12px; cursor: 
    pointer; color: #999; 
    display: none; 
    font-size: 18px; 
    user-select: none;
}

#noResults {
    display: none; 
    padding: 12px 15px; 
    color: #888; 
    font-style: italic; 
    font-size: 14px; 
    border-top: 1px solid #eee;
}

.searchdropdown {
    color: #09096f;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
}

#searchableList {
    list-style: none; 
    padding: 0; 
    margin: 0; 
    position: absolute; 
    top: 110%; 
    left: 0; 
    width: 100%; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    Z-index: 1050; 
    display: none; 
    max-height: 300px; 
    overflow-y: auto;
}




/* NAVBAR STYLES */
.navbar {
  background-color: white;
  z-index: 1050 !important;
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  color: black;
  font-weight: 500;
  gap: 5px;
}

.navbar-nav .nav-link.active {
  font-weight: 700;
  border-bottom: 3px solid black;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: transparent;
  color: black;
}

.navhome {
    color: #0094ff;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
}

.navname {
    color: #06006b;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
}

.navname:hover {
    color: #0094ff;
    font-weight: 600;
}

.searchbar {
    width: 100%; 
    padding: 8px 35px 8px 35px; 
    border: 1px solid #06006b; 
    border-radius: 20px; 
    outline: none; font-size: 14px;
}


/* Dropdown menu styles */
.dropdown-menu {
    display: none; 
    margin: 0;
    z-index: 1100 !important;
}

.dropdown-menu.show {
    display: block; 
}

@media (min-width: 992px) {
    .dropdown-menu {
        display: block; 
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        
        position: absolute;
        top: 100%;
        left: 0;
    }

    .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}




/* CENTER SECTION STYLE */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: url('images/mpci.png') no-repeat center center/cover; height: 500px;
  background-size: cover;
  background-position: center;
  height: 500px;
  color: #000;
}

.hero-section img {
  width: 150px;
  margin-bottom: 20px;
}

.hero-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
}

.program-button {
  margin-top: 20px;
  font-weight: 600;
}

.institution-banner.dark-theme {
  background-color: #06006b; /* deep navy */
  color: white;
}

.school-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.school-subtitle {
  font-size: 1rem;
  margin: 0;
}

/* Main image */
.main-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 12px;
}

.year-founded-cotainer {
    width: 170px;
}

.year-founded {
    color: #09096f;
    -webkit-text-stroke: 1px white;
    cursor: pointer;
}

.program-link {
    background-color: #0094ff;
    color:white; 
    border:none;
}

.program-link:hover {
    color: white;
    background-color: red;
}

.hook-container {
    background: linear-gradient(to top, #002bff, #0094ff);
}

.hook2 {
    background-color: #09096f;
}

.hook3 {
    padding-bottom:1rem; 
    margin-top:50px;
}




.video-container {
    width: 100%; 
    max-width: 
    1800px; 
    margin: 0 auto;
}

.video-space {
    position: relative; 
    width: 100%; aspect-ratio: 16 / 9; background-color: #000000; 
    overflow: hidden;
}

video {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    pointer-events: none;
}




/* BANNER STYLE */
.img-banner {
    height: 300px; 
    object-fit: cover; 
    display: block;
}

.img-banner-2 {
    height: 550px; 
    object-fit: cover; 
    display: block;
}

.img-banner-3 {
    height: 550px; 
    object-fit: cover; 
    display: block;
}

@media (max-width: 576px) {
    .img-banner-3 {
        max-height: 120px; 
        object-fit: cover; 
        display: block;
    }
}

.gif-ads {
    background: url('images/mpci.gif') no-repeat center center/cover; height: 500px;
    width: 100%; 
    height: 40vw; 
    min-height: 150px; 
    max-height: 350px; 
    object-fit: cover; 
    display: block;
}

.gif-banner {
    width: 100%; 
    height: 40vw; 
    min-height: 150px; 
    max-height: 450px; 
    object-fit: cover; 
    display: block;
}




/* ANNOUNCEMNET AREA STYLES */
.announcement-area {
    background: url('images/bg.png') no-repeat center center/cover; 
    min-height: 300px;
}

.gov-logo {
    width: 100%; 
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content:center; align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.gov-logo-space {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1px;
}

.program-section {
    background: white url('images/bg.png') no-repeat center center/cover;
}

.button-link {
    color: white;
    background-color: #0094ff; 
    border: none;
}

.button-link:hover {
    background-color: red;
    font-weight: normal;
}

.button-link-blue {
    color: white;
    background-color: #0094ff; 
    border: none;
}

.button-link-blue:hover {
    background-color: red;
    font-weight: normal;
}

.button-link-rounded {
    background-color: #0094ff; 
    border: none;
    border-radius: 5px;
}

.button-link-rounded:hover {
    background-color: #38c400;
    font-weight: normal;
}

.card-shadow {
  box-shadow: none;
  transition: box-shadow 0.3s ease; /* Optional: makes the glow smooth */
}

.card-shadow:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}





/* REVEAL ANIMATION STYLES */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease-out;
}

.reveal-card.active {
    opacity: 1;
    transform: translateY(0);
        }
        
.reveal-card-x {
    opacity: 0;
    transform: translateX(-30px); 
    transition: all 0.9s ease-out;
}
        
.reveal-card-x.active {
    opacity: 1;
    transform: translateX(0);
}
        

.program-img {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
        
.program-img:hover {
    transform: scale(1.02);
}

/* List group styling overrides */
.list-group-item {
    background-color: transparent !important;
    border: none;
    border-bottom: 0.5px solid #dee2e6 !important; /* Added 1px black border to bottom */
    padding-left: 0;
    padding-bottom: 10px;
    margin-bottom: 5px;
    color: #000000!important;
}

.list-group-item:last-child {
    border-bottom: 1px solid #dee2e6;
}



/* Ensure smooth scrolling */
    p, h2, h4, li {
    will-change: transform, opacity;
}




/* BUTTON STYLES */
.btn-home {
    background-color: #2563eb;
    color: white !important;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-home:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.blue-btn {
    color: white;
    background-color: #06006b;
    border-radius: 5px;
}

.blue-btn:hover {
    font-weight: normal;
    background-color: #0085ff;
}

.red-btn {
    color: white;
    background-color: red;
    border-radius: 5px;
}

.red-btn:hover {
    font-weight: normal;
    background-color: #e30000;
}

.yellow-btn {
    color: white;
    background-color: #ff7a00;
    border-radius: 5px;
}

.yellow-btn:hover {
    font-weight: normal;
    background-color: #ffbc00;
}

.pink-btn {
    color: white;
    background-color: #ff006b;
    border-radius: 5px;
}

.pink-btn:hover {
    font-weight: normal;
    background-color: #ff0099;
}

.green-btn {
    color: white;
    background-color: #39a200;
    border-radius: 5px;
}

.green-btn:hover {
     font-weight: normal;
    background-color: #53e304;
}



/* LOGOS STYLES */
.mpci-logos-area {
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.mcpi-logos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dept-logo-1 {
    width: 60px; 
    height: auto;
}

.dept-logo-2 {
    width: 80px; 
    max-width: 80px;
    height: auto;
}

.st-white {
    -webkit-text-stroke: .5px white;
}




/* FOOTER STYLES */
.footer {
  background-color: #001f73;
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.custom-footer {
  background-color: #0094ff;
  color: white;
  padding-top: 40px;
  padding-bottom: 20px;
}

.custom-footer h6 {
  font-weight: bold;
}

.custom-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}



.dropdown-toggle::after {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}
    
.dropdown-toggle.show::after {
    transform: rotate(180deg);
}
    
.dropdown-item:active {
    background-color: #e9ecef;
    color: #06006b;
}
    

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.list-item {
    list-style:none !important;
    background-color: transparent;
    border: none;
    margin-bottom: 5px;
    color:white;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    font-weight: 600;
}





/* COURSE ASSESSMENT CALCULATOR */
.calculator-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column; /* Vertical stacking for all views */
}

.form-panel {
    padding: 2.5rem;
    width: 100%;
}
.result-panel {
    background: #0d6efd;
    color: white;
    padding: 2.5rem;
    width: 100%;
    min-height: 300px;
}

.form-label {
    font-weight: 700;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 0.5rem;
    overflow: hidden;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.display-fee {
    font-size: clamp(2rem, 5vw, 3rem); /* Fluid typography for better scaling */
    line-height: 1;
}

.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

@media (max-width: 576px) {
.form-panel, .result-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
.reminder-mobile{
        font-size: 12px;
    }
}

.course-input {
    overflow: hidden;
    display: flex;
    border: solid 1px #dee2e6;
    border-radius: 5px;
    padding: 0 10px 0 10px;
}

.w-100 {
    width: 100%;
}

.h-40 {
    height: 40px;
}

.btn-p-0 {
    padding-right: 0;
}

.bord-0 {
    border: none;
}

.border-0:focus {
    outline: none;
    border-color: none; 
    box-shadow: none;
}





/* ERROR PAGE STYLES */        
.error-page-wrapper {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.error-container {
    text-align: center;
    padding: 3.5rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    width: 90%;
    position: relative;
}

.animation-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
    position: relative;
}

.socket {
    width: 50px;
    height: 50px;
    background: #e5e7eb;
    border-radius: 10px;
    border: 3px solid #d1d5db;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
}

.socket::before, .socket::after {
    content: '';
    width: 8px;
    height: 18px;
    background: #9ca3af;
    border-radius: 2px;
}

.plug-wire-container {
    display: flex;
    align-items: center;
    animation: struggle 2.5s infinite ease-in-out;
}

.wire {
    width: 80px;
    height: 6px;
    background: #374151;
    border-radius: 3px 0 0 3px;
}

.plug {
    width: 40px;
    height: 30px;
    background: #374151;
    border-radius: 4px 10px 10px 4px;
    position: relative;
}

.plug::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 6px;
    width: 12px;
    height: 5px;
    background: #9ca3af;
    box-shadow: 0 13px 0 #9ca3af;
    border-radius: 0 2px 2px 0;
}

@keyframes struggle {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(35px); }
        }

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #ff0000;
    line-height: 1;
    margin-bottom: 0.5rem;
    animation: textShake 0.5s infinite alternate;
}

.glitch-subtext {
    color: #ff0000;
    display: block;
    margin-bottom: 1.5rem;
}

@keyframes textShake {
            from { transform: translateX(-1px); }
            to { transform: translateX(1px); }
}

.error-msg {
    color: #000000;
    line-height: 1.5;
}

.ict-footer {
    display: flex;
    margin-top: 2.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: center;
}
        
.footer-logo {
    width:20px;
}





/* BACK TO TOP ICON */
#backToTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none; /* Controlled by JS */
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #09096f; 
    color: white;
    cursor: pointer;
    padding: 11px;
    border-radius: 0px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
    justify-content: center;
    align-items: center;
    line-height: 0;
    opacity: 0;
    transform: translateY(10px);
    width: 44px; /* Explicit size for centering */
    height: 44px;
}

/* Active state for visible button */
#backToTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#backToTopBtn:hover {
    background-color: red; 
    transform: translateY(-3px);
}

/* Icon styling with SHARP tips and NO rounded joints */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: square; 
    stroke-linejoin: miter;
    fill: none;
    pointer-events: none; /* Ensures click goes to button */
    display: block;
}
    
    
    


/* COOKIE ICON AND BANNER */  
#cookie-trigger-icon {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

#cookie-trigger-icon:hover { transform: scale(1.1); }

#cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 320px;
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: left;
}

.cookie-banner-header {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: block;
    color: #06006b;
}

.cookie-banner-text {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.5;
    display: block;
}

.cookie-btn-group {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.cookie-btn-accept {
    background-color: #06006b;
    color: white;
}

.cookie-btn-accept:hover { background-color: #0094ff; }

.cookie-btn-reject {
    background-color: #ffffff;
    color: #06006b;
    border: 1px solid #06006b;
}

.cookie-btn-reject:hover { 
    background-color: #ffffff;
    color: red;
    border: 1px solid red;
  
}

/* Cookie Logic */
    body.hide-cookie-permanently #cookie-trigger-icon,
    body.hide-cookie-permanently #cookie-bar {
        display: none !important;
}

.cookie-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0.9) translateY(20px) !important;
    pointer-events: none;
}

.cookie-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) translateY(0) !important;
    pointer-events: auto;
}

@keyframes mpciFloat {
    0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }
    
.mpci-floating-icon { animation: mpciFloat 3s ease-in-out infinite; }

.icon-hidden {
    opacity: 0 !important;
    transform: scale(0) !important;
    pointer-events: none !important;
}
        
.cookie-footer {
    font-size:8px;
    margin:0;
}