/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --btn-hover-background:#3a6aed2d;
    --btn-hover-border:#3a6aed;
    /* Color Palette */
    --primary-color: #3a6aed;
    --primary-light: #0088FF;
    --primary-dark: #603cff;
    --primary-gradient: linear-gradient(89deg, #0088FF 2.97%, #603cff 99.75%);
    
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-dark: #111827;
    
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    
    /* Utility Colors */
    --success-green: #10B981;
    --blue-500: #3B82F6;
    --blue-100: #EFF6FF;
    --orange-500: #F59E0B;
    --orange-100: #FEF3C7;
    --red-500: #EF4444;
    --red-100: #FEE2E2;
    --purple-500: #8B5CF6;
    --purple-100: #F3E8FF;
    --green-500: #10B981;
    --green-100: #D1FAE5;
    
    --border-color: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Radii */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;
    
    /* Layout */
    --max-width: 1280px;
}

body {
    font-family: var(--font-family);
    color: var(--text-gray);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 50px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.flex-between { display: flex; justify-content: space-between; }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 #603cff;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 10px 22px; /* Adjusted to match borders */
}

.btn-outline:hover {
    background: var(--btn-hover-background);
    color:var(--primary-color);
    border:1.5px solid var(--btn-hover-border);
    box-shadow: var(--shadow-sm);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-transparent {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.link-primary {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-primary:hover {
    color: var(--primary-dark);
    gap: 10px; /* animate arrow */
}

.explore-link,.try-now {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    border:1px solid gray;
    width:100%;
}

.explore-link:hover {
    border:1px solid var(--btn-hover-border);
    background:var(--btn-hover-background);
    color: var(--primary-color);
    gap: 10px;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Color Helpers */
.bg-blue-100 { background: var(--blue-100); }
.text-blue-600 { color: var(--blue-500); }
.bg-orange-100 { background: var(--orange-100); }
.text-orange-600 { color: var(--orange-500); }
.bg-red-100 { background: var(--red-100); }
.text-red-600 { color: var(--red-500); }
.bg-purple-100 { background: var(--purple-100); }
.text-purple-600 { color: var(--purple-500); }
.bg-green-100 { background: var(--green-100); }
.text-green-600 { color: var(--green-500); }

/* --- Navbar --- */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sign-in {
    font-weight: 600;
    color: var(--text-dark);
}

.sign-in:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding-top: 100px;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    position: relative;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.25;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: 0px;
    left: 0px;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--blue-500);
    bottom: 0;
    right: 0px;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-100);
    color: var(--blue-500);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border:1px solid rgba(61, 77, 88, 0.11);
}
.hero .badge span{
    color:rgb(23, 23, 73);
    font-weight: lighter;
}
.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 10px 10px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.search-icon {
    font-size: 1.5rem;
    color: var(--text-light);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.filter-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.filter-pill:hover {
    border-color: var(--btn-hover-border);
    background: var(--btn-hover-background);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* --- Popular Subjects --- */
.subjects-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.subject-card {
    flex: 1;
    background: white;
    max-width: 292px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
}

.subject-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.subject-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.subject-card p {
    font-size: 0.9rem;
}

/* --- AI Recommended For You --- */
.recommendation-list,.intake-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    
}
@media screen and (max-width:1024px) {
    .intake-list{
    grid-template-columns: repeat(2,1fr);
    }
}

@media screen and (max-width:585px){
    .recommended .section-header {
            display: block;
        }
}
.search-btn i{
    display:none;
}
@media screen and (max-width:540px) {
    .search-bar>.search-icon,
        #submit-filter svg,
        #submit-filter span {
            display: none !important;
        }
    
        .search-btn i {
            display: block;
        }
        .search-btn{
            padding:9px;
        }
        .search-bar{
            padding:10px;
            justify-content: space-between;
            gap:10px;
        }
        .search-bar input{
            flex:none;
            padding:0px;
            font-size: medium;
        }
}
@media screen and (max-width:708px) {
    .intake-list{
    grid-template-columns: repeat(1,1fr);
    }
}

@media screen and (max-width:768px){
    .recommendation-list{
        grid-template-columns: repeat(2,1fr) ;
    }
}
@media screen and (max-width:628px){
    .recommendation-list{
        grid-template-columns: repeat(1,1fr) ;
    }
}
.rec-card,.intake-card {
        position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    gap: 24px;
}

.rec-icon,.intake-icon{
    width: 56px;
    height: 56px;
    background: var(--purple-100);
    color: blue;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rec-content , .intake-content {
    flex: 1;
}

.rec-header,.intake-header {
    margin-bottom: 6px;
}

.match-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    height:27px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rec-content h3 ,.intake-content h3{
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.uni-name {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.rec-meta,.intake-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.rec-meta span ,.intak-meta span{
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Top Destinations --- */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.destination-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dest-image {
    height: 200px;
    overflow: hidden;
}

.dest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .dest-image img {
    transform: scale(1.05);
}

.dest-content {
    padding: 24px;
}

.dest-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.dest-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    padding: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* --- Tools Section --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    gap: 24px;
    align-items: flex-start;
}

.tool-icon {
    margin-bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.tool-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 0 0 96px; /* offset it below */
}

.cta-box {
    background: var(--primary-gradient);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    padding-bottom:20px;
    align-items: center;
    position: relative;
    box-shadow: 0 24px 50px -12px rgba(124, 58, 237, 0.4);
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 100% 100%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 0% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    flex: 1;
    padding: 40px;
    color: white;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 480px;
}

.cta-stats {
    margin-top: 50px;
    padding-top:50px;
    border-top: 1px solid rgba(200, 203, 216, 0.418);
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.cta-image {
    flex: 1;
    height: 100%;
    min-height: 500px;
    position: relative;
    display:flex;
    justify-content: center;
    align-items: center;
}

.cta-image img {
    position: absolute;
    width: 90%;
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
    /* clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%); */
}

/* --- Footer --- */
.footer {
    background: #F8FAFC;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.25rem;
}

.social-circle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links h3 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a:hover {
    color: var(--primary-color);
}
.bottom .details {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}


.dropdown {
  position: relative;
  display:flex;
  justify-content: center;
}

.dropbtn {
    margin-bottom: 5px;
  cursor: pointer;
}


.dropdown-content a {
    display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
}

.dropdown:hover .dropdown-wrapper {
  display: block;
}

.subject-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width:64px;
    height:64px;
    border-radius: 15px;
}
.subject-icon i{
    color:white;
    padding:5px;
    border-radius: 12px;
    font-size: 25px;
}

.icon-blue{
    background-color: rgba(0, 183, 255, 0.068);
    i{
        background: linear-gradient(135deg, #0044ff 0%, #6b9cf7 100%);
    }
}
.icon-purple{
    background-color: rgba(162, 0, 255, 0.068);
    i{
        background: linear-gradient(135deg, #a200ff 0%, #e06bf7 100%);
    }
}
.icon-orange{
    background-color: rgba(255, 115, 0, 0.068);
    i{
        background: linear-gradient(135deg, #ff4800 0%, #f7b66b 100%);
    }
}
.icon-dark-blue{
    background-color: rgba(47, 0, 255, 0.068);
    i{
        background: linear-gradient(135deg, #2f00ff 0%, #6b80f7 100%);
    }
}
.icon-green{
    background-color: rgba(0, 255, 76, 0.068);
    i{
        background: linear-gradient(135deg, #00ff80 0%, #6bf7a1 100%);
    }
}
.contain-width {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10px;
}

#header .site-header{
    background-color: transparent;
}


.dropdown-wrapper{
    display: none;
}
.dropdown-content {
    overflow: hidden;
    position: absolute;
  background: white;
  min-width: 150px;
  border: 1px solid #ccc;
  z-index: 999;
   border-radius: 15px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.filter.active .dropdown-wrapper {
  display: block;
}

.dropdown-content a {
  padding: 8px;
  text-decoration: none;
  color: var(--text-gray);
}

.dropdown-content a:hover{
  background: #eee;
}

.dropdown-content a.active {
    background: #eee;
    color:blue
}
.recommend-title{
    display: flex;
    gap:5px;
}
.recommend-title h1{
    margin-bottom: 0px !important;
}
.recommend-title .badge-icon{
    padding:6px 8px;
    background: var(--primary-gradient);
    color:white !important;
    border-radius: 10px;
    margin:5px;
    max-height:40px;
}

.rec-card .top{
    display:flex;
    width:100%;
    justify-content:space-between;
    margin-bottom: 10px;
}
.rec-card .bottom,.intake-card .bottom{
    display: flex;
    flex-direction: column;
    gap:20px;
}

.intake-card .top{
    display:flex;
    gap:20px;
    align-items: center;
    margin-bottom: 20px;
}
.top h3{
    margin-bottom: 5px;
}
.top p{
    margin:0px;
}
.popular-icon{
    background: var(--primary-gradient);
}
.popular-icon svg{
    stroke: white !important;;
}
.intake-icon svg{
    stroke:gray;
}
.intake-card .popular{
    position: absolute;
    top:-6%;
    left: 50%;
        transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 99;
    padding:5px 15px;
}
.popular p{
    font-weight: lighter;
    font-size: 15px;
    margin:0px;
    white-space: nowrap;
}


.details p{
    white-space: nowrap;
}
.bottom .btn{
    width:100%
}
.popular-card{
    border:1px solid var(--primary-light);
    background-color: rgba(0, 68, 255, 0.048);
}
.rec-btn{
    border:1.5px solid darkgray;
    color:black;
    border-radius: 10px;
}
.rec-btn:hover{
background: var(--primary-gradient) !important;
color: white !important;;
}



.try-now{
    border:none;
    color:blue;
}
.tools-badge{
    border:1px solid white;
    width:fit-content;
    padding: 7px 14px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.11);
    margin-bottom: 20px;
}

/* --- Responsive Design Basics --- */
@media (max-width: 1024px) {
    .subjects-grid {
        flex-wrap: wrap;
    }

    .subject-card {
        min-width: 30%;
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;
    }

    .cta-image {
        width: 100%;
        min-height: 400px;
    }

    .cta-image img {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links,
    .nav-actions{
        display: none;
    }
    .features-grid,.tools-grid, .footer-grid{
        grid-template-columns: 1fr;
    }

    .cta-stats {
        flex-direction: column;
        gap: 24px;
    }
}


@media(max-width:500px) {
    .destinations-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .subjects-grid {
        flex-direction: column;
        align-items: center;
    }

    .subject-card {
        width: 100%;
    }

    .bottom .details,.cta-actions {
        display: block;
    }

    .cta-actions .btn-white{
            margin-bottom: 10px;
        }
        .glow-1,.glow-2{
            display: none;
        }

}