/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 19px;
    line-height: 1.5;
}

h1 { font-size: 35px; }
h2 { font-size: 25px; text-decoration: underline solid 3px; font-family: Georgia, serif; }
h3 { font-size: 20px; }
h4 { font-size: 15px; }

.course {margin-bottom: 10px;}

select, input, button {padding: 5px;}

button {margin-top: 5px;margin-bottom: 5px;}


#search
{
    text-align: center;
}


.container {
    max-width: 850px;
    margin: auto;
    background: #fff;
}

/* ============================================
   LINKS
   ============================================ */
a:link, a:visited {color: #0000FF;text-decoration: none;}

a:hover {text-decoration: underline;}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-container {overflow-y: auto;}

table {border-collapse: collapse;width: 100%;}

td, th {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

thead th {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 2;
}

tr:nth-child(even) {background-color: #ddd;}

/* Result boxes */
#result, #cgpaResult, #gpaResult, #gpaResultUnique, #cgpaResultUnique {
    background-color: green;
    color: #fff;
    margin-top: 5px;
    padding: 5px;
    border: 1px solid #808080;
    border-radius: 4px;
}

#calculationResult, #calculationResultUnique, #calculation {
    background-color: black;
    color: #fff;
    margin-top: 5px;
    padding: 5px;
    border: 1px solid #808080;
    border-radius: 4px;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.question {
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 24px;
    transition: transform 0.3s;
}

.faq.active .question::after {content: '-';}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 16px;
    padding-top: 10px;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;left: 0; right: 0;
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    z-index: 9999;
}

.cookie-banner a {color: #4dd0e1;text-decoration: underline;}

.cookie-buttons {margin-top: 10px;}

.cookie-buttons button {
    margin: 0 5px;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

#accept-cookies { background: #fff; color: #000; }
#accept-cookies:hover { background: #e0e0e0; }

#reject-cookies { background: #555; color: #fff; }
#reject-cookies:hover { background: #777; }

#manage-cookies { background: #888; color: #fff; }
#manage-cookies:hover { background: #aaa; }

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.cookie-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    width: 90%;
    max-width: 450px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cookie-category {margin: 10px 0;}

.cookie-modal-actions {margin-top: 15px; text-align: right;}

.cookie-modal-actions button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;cursor: pointer;
    background: #222;
    color: #fff;
}

.cookie-modal-actions button:hover {background: #444;}


/* ============================================
   NAVIGATION MENU
   ============================================ */
/* ============================================
   NAVIGATION MENU (FULLY RESPONSIVE)
============================================ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    font-size: 22px;
    font-weight: bold;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li a:hover {text-decoration: underline;}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: black;
    transition: 0.4s;
}

/* ============================================
   MOBILE MENU
============================================ */
@media (max-width: 768px) {

    .hamburger {display: flex;}

    .nav-menu {
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        background: #f0f0f0;
        flex-direction: column;
        padding: 10px;
        display: none;
        border-top: 1px solid #ddd;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        padding: 10px 10px;
        text-align: left;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {padding: 20px 40px 14px;}

.footer-container {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.footer-section h3 {margin-bottom: 0.5rem;}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section li {padding: 4px 0;}

.footer-bottom {text-align: center;}

hr {border: 1px solid #ddd;}

/* Social Icons */
.social-share a img {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    max-width: none;
}

.social-share a img:hover {transform: scale(1.1);}

/* Dropdown in footer */
.url-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #888;
    background: #fff;
    cursor: pointer;
}

.url-select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
}







/* ============================================
   Code for install button only
   ============================================ */
.btn-pulse {
  padding: 7px 15px;
  color: #fff;
  background: #ff4d4d;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 77, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}
