:root {
    --primary: #524bd2;
    --primary-soft: rgba(82, 75, 210, 0.08);
    --bg: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --tick-bg: #7c4dff;
}

* {
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  transition: .3s;
}
body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; 
  color: #333;
}

img {
  max-width: 100%;
}
p {
  line-height: 1.5;
}



/*--------------------HEADER--------------------*/

.logo {
  width: 200px; /* Increased from 150px */
  height: auto; /* Maintains aspect ratio */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 4%;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


nav a {
  color: black;
  padding: 15px;
}

nav a:hover {
  background-color: #524bd2;
  color: white;
  border-radius: 5px;
}


.btn {
  background-color: #524bd2;
  color: #ffffff;
  padding: 11px 35px;
  border-radius: 5px;

}

.btn:hover {
  background-color: #413baf;
}
/*--------------------BUTTON--------------------*/

.btn1 {
  background-color: #524bd200;
  color: white;
  padding: 10px 17px;
  border-radius: 5px;
  border: 1px solid #ffffff;
  margin-left: 12px;
}

.btn1:hover {
  background-color: #524bd2;
  color: white;
  border: none;
}

/*--------------------HEADER--------------------*/

.title {
  text-align: center;
  padding: 15px;
}

.row {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 250px;
  padding: 15px;
  margin: 10px;
}


.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.text-bold{
  font-size: 63px;
  line-height: 60px;
  margin: 10px;
  margin-left: 0px;
  text-transform: uppercase;
}

/* --- SEARCH BOX --- */
.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px auto;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 2px solid var(--border);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
/* Add this to your style.css */


.search-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 13px 25px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px; 
}

/* Only affects screens smaller than 768px */
@media (max-width: 768px) {
    .search-button {
    justify-content: center
    }
}

.search-button:hover {
    opacity: 0.9;
}

/* --- FILTER BAR --- */
.filter-wrapper {
    margin-bottom: 40px;
    padding: 10px 0;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

input[type="radio"] {
    display: none;
}

.filter-label {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
    user-select: none;
}

/* Category Filter Active States */
#all:checked ~ .filter-wrapper label[for="all"],
#cat1:checked ~ .filter-wrapper label[for="cat1"],
#cat2:checked ~ .filter-wrapper label[for="cat2"],
#cat3:checked ~ .filter-wrapper label[for="cat3"],
#cat4:checked ~ .filter-wrapper label[for="cat4"],
#cat5:checked ~ .filter-wrapper label[for="cat5"] {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Logic to hide non-selected categories (unless searching) */
body:not(.is-searching) #cat1:checked ~ .course-container .category-section:not(.medical),
body:not(.is-searching) #cat2:checked ~ .course-container .category-section:not(.allied),
body:not(.is-searching) #cat3:checked ~ .course-container .category-section:not(.engineering),
body:not(.is-searching) #cat4:checked ~ .course-container .category-section:not(.management),
body:not(.is-searching) #cat5:checked ~ .course-container .category-section:not(.it) {
    display: none;
}

/* --- LIST STYLING --- */
.category-section {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: fadeIn 0.4s ease forwards;
}

.category-head {
    background: var(--primary-soft);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
}

.category-head h2 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.course-list {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
}

.course-item {
    padding: 12px 15px;
    background: #fafafa;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.course-item:hover {
    background: var(--primary-soft);
    transform: translateX(5px);
}

section[id] {
    scroll-margin-top: 150px; 
}

/* --- TICK CIRCLE DESIGN --- */
.tick-circle {
    min-width: 14px;
    height: 14px;
    background-color: var(--tick-bg);
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 5px;
}

.tick-circle::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2.5px;
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.course-name {
    flex-grow: 1;
}

#noResults {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 20px;
    border: 2px dashed var(--border);
    color: var(--text-light);
}

.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .course-list { grid-template-columns: 1fr; }
    .search-container { flex-direction: column; }
    header h1 { font-size: 2.2rem; }
}

/*--- media query for tab---*/
@media screen and (min-width: 501px) and (max-width: 950px) { 
    
    .logo{
        width: 130px;
    }

    .btn{
      font-size: 14px;
    }

    nav a{
        font-size: 15px;
        padding: 10px;
    }

    .hero .col{
      text-align: left;
    }

    .about .row{
      flex-direction: column;
    }
}

/* --- Desktop Adjustments --- */
.hamburger, .close-menu, .mobile-btn {
    display: none; /* Hide mobile elements on desktop */
}

/* --- Mobile Styling (Side Menu) --- */
@media screen and (max-width: 950px) {
    .desktop-btn {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 250px;
        height: 100vh;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        padding: 50px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 10000;
    }

    /* When menu is active */
    nav.active {
        right: 0;
    }

    nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .close-menu {
        display: block;
        font-size: 30px;
        position: absolute;
        top: 20px;
        right: 25px;
        cursor: pointer;
    }

    .mobile-btn {
        display: inline-block;
        margin-top: 20px;
        text-align: center;
    }
}

.black-footer {
    background-color: #181a22;
    color: #fff;
    padding: 4rem 1.5rem;
    margin-top: auto;
}

/* Inner Layout Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Social Icon Row */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Social Icon Styling */
.social-circle {
    width: 4rem;
    height: 4rem;
    border: 1px solid #3f3f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
    text-decoration: none;
}

/* Hover effects for icons: Using a scale and shadow for depth */
.social-circle:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

/* Contact Details Styling */
.contact-info {
    color: #71717a;
    font-size: 0.875rem;
    text-align: center;
}

.text-muted {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Enhanced Contact Links */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.contact-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.divider {
    margin: 0 0.75rem;
    opacity: 0.3;
}

/* Copyright Bar Styling */
.copyright-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #18181b;
    width: 100%;
    max-width: 600px;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #52525b;
}

/* Responsive adjust for mobile */
@media (max-width: 640px) {
    .social-circle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }
    .social-links {
        gap: 1rem;
    }
    .contact-info p {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .divider {
        display: none;
    }
}

/*--------------------UPARROW & WHAT'S APP--------------------*/

.uparrow {
    position: fixed;
    right: 30px;
    bottom: 30px;
    animation: shake 5s infinite;
}

@keyframes shake{
    0% {transform: translatey(0);}
    50% {transform: translatey(15px);}
    100% {transform: translatey(0);}
}
.whatsapp{
    position: fixed;
    left: 30px;
    bottom: 30px;
    animation: shake 5s infinite;
}

@keyframes shake{
    0% {transform: translatey(0);}
    50% {transform: translatey(15px);}
    100% {transform: translatey(0);}
}