* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

@media (max-width: 768px) {
    body {
        scroll-padding-top: 120px;
    }
    
    .universities,
    .funding,
    .extras,
    .aps-calculator,
    .cart-section,
    .how-it-works,
    .contact {
        padding-top: 5rem;
    }
    
    .hero {
        padding-top: 2rem !important;
    }
    
    .about {
        padding-top: 5rem;
    }
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    opacity: 0.8;
}

.hero {
    background: #f5f5f5;
    color: #2c3e50;
    text-align: center;
    padding: 4rem 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.cta-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #5568d3;
}

.disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 2rem;
    min-height: auto;
}

.disclaimer-inline {
    background: #f5f5f5;
    border: 2px solid #2c3e50;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 3rem;
    border-radius: 8px;
}

.disclaimer-inline h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.disclaimer-inline p {
    color: #555;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.disclaimer p {
    color: #856404;
}

.about {
    padding: 4rem 2rem 2rem 2rem;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: #2c3e50;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 1.05rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
}

.about-list li {
    color: #555;
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    font-size: 0.9rem;
}

.about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1rem;
}

.universities {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.universities h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.funding {
    padding: 4rem 2rem;
    background: white;
}

.funding h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #2c3e50;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.aps-calculator {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.aps-calculator h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #2c3e50;
}

.aps-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 800px;
    border-left: 4px solid #2c3e50;
}

.aps-info p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.aps-calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.aps-calculator-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.aps-subjects {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.aps-subject {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.aps-subject input[type="text"] {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.aps-subject input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.aps-subject input[type="number"] {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.aps-subject input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.aps-points {
    color: #27ae60;
    font-weight: 600;
    min-width: 80px;
}

.remove-subject-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.remove-subject-btn:hover {
    background: #c0392b;
}

.add-subject-btn {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
    margin-bottom: 2rem;
}

.add-subject-btn:hover {
    background: #5568d3;
}

.aps-result {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.aps-result h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.aps-total {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin: 1rem 0;
}

.aps-note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.contact {
    padding: 3rem 2rem;
    background: #f5f5f5;
}

.contact .container {
    max-width: 900px;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.contact-form-wrapper h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.contact-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.send-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
}

.send-button:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-info-section {
    margin-top: 2rem;
}

.contact-info-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.contact-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item h3 a:hover {
    color: #5568d3;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: #667eea;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

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

.university-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.university-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    min-height: 3.5em;
}

.university-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.university-card h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.university-card .location {
    color: #999;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.5em;
}

.university-card .link {
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.university-card .link:hover {
    color: #5568d3;
}

.university-card .fee-breakdown {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: none;
    flex-grow: 1;
}

.university-card .fee-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    align-items: center;
}

.university-card .fee-item:last-child {
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.university-card .fee-label {
    color: #666;
    font-weight: 400;
}

.university-card .fee-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.university-card .assistance-fee {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

.university-card .assistance-fee .fee-value {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 700;
}

.university-card.nsfas-card {
    border: 2px solid #2c3e50;
    background: white;
}

.university-card.nsfas-card h3 {
    color: #2c3e50;
}

.university-card.nsfas-card button {
    background: #2c3e50;
}

.university-card.nsfas-card button:hover {
    background: #1a252f;
}

.university-card .description {
    color: #666;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}

.university-card button {
    width: 100%;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    margin-top: auto;
}

.university-card button:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.how-it-works {
    padding: 4rem 2rem;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.disclaimer-checkbox {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.disclaimer-checkbox input {
    margin-top: 0.25rem;
}

.fee-note {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 3px solid #ffc107;
}

.fee-note small {
    color: #856404;
}

.submit-button {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #229954;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin-bottom: 1rem;
}

.footer-privacy {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.footer-privacy strong {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-privacy a {
    color: #667eea;
    text-decoration: none;
}

.footer-privacy a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin: 1rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
    
    .disclaimer-inline {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .disclaimer-inline h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .disclaimer-inline p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Hide hamburger menu */
    .menu-toggle {
        display: none;
    }
    
    /* Top navigation bar for mobile */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #2c3e50;
        padding: 0.5rem 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        flex: 1;
        text-align: center;
    }
    
    nav ul a {
        display: block;
        padding: 0.5rem 0.2rem;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    header {
        position: relative;
    }
    
    /* Add padding to top of page for fixed nav */
    body {
        padding-top: 90px;
        padding-bottom: 0;
    }
    
    .hero {
        padding-top: 2rem;
    }
    
    .about {
        padding: 1rem 0.75rem;
    }
    
    .about h2 {
        font-size: 1.2rem;
        padding: 0;
        margin-bottom: 0.75rem;
    }
    
    .about-text {
        padding: 0.9rem;
    }
    
    .about-text h3 {
        font-size: 0.95rem;
        margin-top: 0.7rem;
        margin-bottom: 0.35rem;
    }
    
    .about-text p,
    .about-list li {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.45rem;
    }
    
    .about-list li {
        padding: 0.2rem 0;
        padding-left: 1.2rem;
    }
    
    .about-list li:before {
        font-size: 0.85rem;
    }
    
    .aps-calculator {
        padding: 2rem 1rem;
    }
    
    .aps-calculator-form {
        padding: 1.5rem;
    }
    
    .aps-subject {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .aps-subject input[type="text"],
    .aps-subject input[type="number"] {
        font-size: 16px;
    }
    
    .remove-subject-btn {
        width: 100%;
    }
    
    .aps-total {
        font-size: 3rem;
    }
    
    .university-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 1rem;
    }
    
    .funding-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem 1rem;
    }
    
    .contact {
        padding: 5rem 1rem 3rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem 1.25rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-form {
        margin-top: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        font-size: 16px;
        margin-bottom: 1rem;
        padding: 0.85rem;
    }
    
    .send-button {
        width: 100%;
        align-self: stretch;
        padding: 0.9rem;
    }
    
    .contact-info-section {
        margin-top: 2rem;
    }
    
    .contact-info-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .university-card {
        padding: 1.2rem;
    }
    
    .university-card h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .university-card .location {
        font-size: 0.85rem;
    }
    
    .university-card .link {
        font-size: 0.9rem;
    }
    
    .university-logo {
        width: 42px;
        height: 42px;
    }
    
    .fee-breakdown {
        padding: 0.9rem;
    }
    
    .fee-item {
        font-size: 0.9rem;
    }
    
    .fee-label {
        font-size: 0.8rem;
    }
    
    .fee-value {
        font-size: 1rem;
    }
    
    .university-card button {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
    
    .cao-recommended-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .universities h2,
    .funding h2,
    .how-it-works h2,
    .contact h2 {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    .steps {
        padding: 0 1rem 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .cart-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .disclaimer-checkbox {
        font-size: 0.9rem;
    }
    
    .submit-button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .university-card h3 {
        font-size: 0.95rem;
    }
    
    .fee-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .cart-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        bottom: 1rem;
    }
    
    nav ul a {
        font-size: 0.7rem;
    }
}


/* Cart Button */
.cart-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s, background 0.3s;
}

.cart-button:hover {
    transform: scale(1.05);
    background: #229954;
}

.university-card.in-cart {
    border: 2px solid #27ae60;
    background: #f0fff4;
}

.university-card button.btn-add {
    background: #667eea;
}

.university-card button.btn-remove {
    background: #27ae60;
}

.university-card button.btn-remove:hover {
    background: #229954;
}

/* Cart Section */
.cart-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cart-item:hover {
    border-color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cart-item-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.cart-item-info .location {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.95rem;
}

.nsfas-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.cart-item-fee {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
}

.fee-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #27ae60;
}

.btn-remove-small {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-remove-small:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.cart-summary {
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-summary-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.cart-summary-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.cart-summary-details {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1.1rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.total-row {
    background: #f8f9fa;
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-top: 2px solid #2c3e50;
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.total-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #27ae60;
}

.cart-note {
    color: #666;
    font-size: 0.95rem;
    margin: 1.5rem 1.5rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.checkout-btn {
    margin: 0 1.5rem 1.5rem 1.5rem;
    width: calc(100% - 3rem);
    font-size: 1.1rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item-header {
        width: 100%;
    }
    
    .cart-item-fee {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .summary-row {
        font-size: 1rem;
    }
    
    .total-row {
        font-size: 1.1rem;
    }
    
    .total-amount {
        font-size: 1.6rem;
    }
}

/* Extras Section */
.extras {
    padding: 4rem 0;
    background: #fff;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.extra-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.extra-card .university-header h3 {
    color: white;
}

.extra-card .location {
    color: rgba(255,255,255,0.9);
}

.extra-card .description {
    color: rgba(255,255,255,0.95);
}

.extra-card .link {
    color: white;
    border-bottom-color: rgba(255,255,255,0.5);
}

.extra-card .link:hover {
    border-bottom-color: white;
}

.extra-card .fee-breakdown {
    background: rgba(255,255,255,0.1);
}

.extra-card .fee-label {
    color: rgba(255,255,255,0.9);
}

.extra-card .fee-value {
    color: white;
}

.extra-card .assistance-fee .fee-value {
    color: #ffd700;
}

@media (max-width: 768px) {
    .extras-grid {
        grid-template-columns: 1fr;
    }
}

.extra-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* CAO Recommended Badge */
.cao-recommended-badge {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cao-recommended-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
    color: white;
}

/* CAO Special Card */
.cao-card {
    background: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
}

.cao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.5);
}

.cao-card .university-header h3 {
    color: white;
    font-size: 1.1rem;
}

.cao-card .location {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
}

.cao-card .description {
    color: rgba(255,255,255,1);
    font-style: italic;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cao-card .link {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

.cao-card .link:hover {
    color: white;
    border-bottom-color: white;
}

.cao-card .fee-breakdown {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.cao-card .fee-label {
    color: rgba(255,255,255,1);
    font-size: 0.85rem;
}

.cao-card .fee-value {
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
}

.cao-card .assistance-fee .fee-value {
    color: #27ae60;
    font-weight: bold;
    font-size: 0.95rem;
}

.cao-card .btn-add {
    background: white;
    color: #2c3e50;
    font-weight: 600;
    border: none;
}

.cao-card .btn-add:hover {
    background: #ffd700;
    color: #2c3e50;
    transform: scale(1.05);
}

.cao-card .btn-remove {
    background: white;
    color: #e74c3c;
    font-weight: 600;
}

.cao-card .btn-remove:hover {
    background: #c0392b;
    color: white;
}

/* CAO Card in Cart State */
.cao-card.in-cart {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #27ae60;
}

.cao-card.in-cart .university-header h3,
.cao-card.in-cart .location,
.cao-card.in-cart .description,
.cao-card.in-cart .link,
.cao-card.in-cart .fee-label,
.cao-card.in-cart .fee-value {
    color: white;
}

.cao-card.in-cart .assistance-fee .fee-value {
    color: #ffd700;
}

.cao-card.in-cart .btn-remove {
    background: white;
    color: #e74c3c;
}

.cao-card.in-cart .btn-remove:hover {
    background: #e74c3c;
    color: white;
}
