/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: static;
    /* not fixed */
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo h1 {
    color: #2563eb;
    font-size: 1.33rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style-type: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 1.01rem;
    padding: 8px 18px;
    border-radius: 6px;
    transition: background 0.13s, color 0.13s;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: #2563eb;
    background: #f5faff;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.88em;
    margin-left: 3px;
    display: inline-block;
    transition: transform 0.26s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 110%;
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.07);
    border: 1px solid #e5e7eb;
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.21s;
    z-index: 200;
    padding: 7px 0 9px 0;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

.dropdown-menu a {
    color: #334155;
    text-decoration: none;
    font-size: 0.98rem;
    padding: 0.8rem 1.25rem;
    border-radius: 5px;
    transition: background 0.14s, color 0.14s;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: #e5eeff;
    color: #2563eb;
}

/* 'Calculate GPA' link as regular nav-link, but distinct color */
.menu-gpa-link {
    color: #119576;
    font-weight: 600;
    padding-left: 17px;
    padding-right: 17px;
}

.menu-gpa-link:hover,
.menu-gpa-link.active {
    background: #e0f7f2;
    color: #07876a;
}

@media (max-width: 950px) {
    .nav-menu {
        gap: 0.7rem;
    }

    .nav-link {
        font-size: 0.98rem;
        padding: 8px 11px;
    }
}

@media (max-width: 690px) {
    .nav-container {
        flex-direction: column;
        padding: 0 4px;
        height: auto;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Remove old nav-cta/cta-button/nav-toggle/hamburger --- */
.nav-cta,
.nav-toggle,
.cta-button {
    display: none !important;
}

/* --- END ADVANCED NAV --- */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.calculator-icon {
    font-size: 8rem;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #2563eb;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

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

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Universities Section */
.universities {
    padding: 80px 0;
    background: #f8fafc;
}

/* University Search Styles */
.university-search-container {
    margin-bottom: 3rem;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn,
.clear-btn {
    padding: 16px 20px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #1d4ed8;
}

.clear-btn {
    background: #ef4444;
}

.clear-btn:hover {
    background: #dc2626;
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.search-results-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.view-all-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #1d4ed8;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.university-categories {
    margin-bottom: 4rem;
}

.university-tier {
    margin-bottom: 3rem;
}

.university-tier h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

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

.university-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.university-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.calculate-gpa-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.calculate-gpa-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.university-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.university-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.university-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.grading-system {
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.grading-info {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.grading-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
    text-align: center;
}

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

.grading-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.grading-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.grading-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.grading-card ul {
    list-style: none;
    padding: 0;
}

.grading-card ul li {
    padding: 0.5rem 0;
    color: #475569;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.grading-card ul li:last-child {
    border-bottom: none;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 16px;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    color: #64748b;
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

/* Resources Section */
.resources {
    padding: 80px 0;
    background: white;
}

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

.resource-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.resource-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.resource-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #1d4ed8;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e2e8f0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.faq-item.active::before {
    opacity: 1;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
    padding-right: 1.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: #2563eb;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.faq-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.faq-item.active .faq-answer {
    padding: 1.2rem 1.5rem;
    max-height: 1000px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.faq-answer p {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    color: #475569;
    padding-left: 0;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.9rem;
    list-style: none;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
    padding-left: 1.5rem;
}

.faq-answer ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 1rem;
    font-weight: bold;
    top: 0;
}

.faq-answer ol {
    counter-reset: faq-counter;
}

.faq-answer ol li {
    counter-increment: faq-counter;
}

.faq-answer ol li::before {
    content: counter(faq-counter) ".";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    top: 0;
}

.faq-answer strong {
    color: #1e293b;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Related Pages Section */
.related-pages {
    padding: 80px 0;
    background: #f8fafc;
}

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

.related-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.related-card ul {
    list-style: none;
    padding: 0;
}

.related-card ul li {
    margin-bottom: 0.75rem;
}

.related-card ul li a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.related-card ul li a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.related-card ul li:last-child a {
    border-bottom: none;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.social-link {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.social-link svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-link {
        color: #64748b;
        padding: 1rem 2rem;
        display: block;
        border-radius: 0;
        margin: 0;
        font-size: 1rem;
    }

    .nav-link:hover {
        color: #2563eb;
        background-color: #f8fafc;
    }

    .nav-link.active {
        color: #2563eb;
        background-color: #f1f5f9;
    }

    .nav-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
        aspect-ratio: 16/9;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .university-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .grading-systems {
        grid-template-columns: 1fr;
    }

    .grading-info {
        padding: 2rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .features,
    .about,
    .cta {
        padding: 60px 0;
    }

    .about-content {
        gap: 2rem;
    }

    .about-image-wrapper {
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .university-grid {
        grid-template-columns: 1fr;
    }

    .grading-info {
        padding: 1.5rem;
    }

    .university-card {
        padding: 1rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 1.5rem;
    }

    .faq {
        padding: 60px 0;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-column {
        gap: 1.2rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
        padding-right: 0.8rem;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem 1.2rem;
    }

    .faq-answer {
        padding: 0 1.2rem;
    }

    .faq-answer li {
        padding-left: 1.2rem;
    }

    .faq-answer ul li::before {
        font-size: 0.9rem;
    }

    .faq-answer ol li::before {
        font-size: 0.8rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
    border-radius: 14px;
    padding: 16px;
    display: none;
}

/* Scroll To Top */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    border: 0;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 640px) {
    .scroll-to-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
}

.cookie-inner {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cookie-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex: 0 0 auto;
}

.cookie-content {
    flex: 1 1 auto;
}

.cookie-title {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.cookie-text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-accept {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45);
}

.cookie-decline {
    background: transparent;
    color: #93c5fd;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-decline:hover {
    background: rgba(148, 163, 184, 0.08);
}

@media (max-width: 640px) {
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.our-story {
    padding: 80px 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.story-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-graphic {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.story-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.story-graphic p {
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.mission-vision {
    padding: 80px 0;
    background: #f8fafc;
}

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

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.mission-card p {
    color: #64748b;
    line-height: 1.6;
}

.why-built {
    padding: 80px 0;
    background: white;
}

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

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

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.why-item p {
    color: #64748b;
    line-height: 1.6;
}

.team {
    padding: 80px 0;
    background: #f8fafc;
}

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

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-member h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.team-member p {
    color: #64748b;
    line-height: 1.6;
}

.stats {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.technology {
    padding: 80px 0;
    background: #f8fafc;
}

.tech-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.tech-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.tech-feature {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tech-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.tech-feature p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.tech-graphic {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.tech-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tech-graphic p {
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.commitment {
    padding: 80px 0;
    background: white;
}

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

.commitment-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.commitment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.commitment-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.commitment-item p {
    color: #64748b;
    line-height: 1.6;
}

.contact-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .story-content,
    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-text h2,
    .tech-text h2 {
        font-size: 2rem;
    }

    .mission-grid,
    .why-grid,
    .team-grid,
    .stats-grid,
    .commitment-grid {
        grid-template-columns: 1fr;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero-content h1 {
        font-size: 2rem;
    }

    .about-hero-subtitle {
        font-size: 1rem;
    }

    .our-story,
    .mission-vision,
    .why-built,
    .team,
    .stats,
    .technology,
    .commitment,
    .contact-cta {
        padding: 60px 0;
    }

    .story-graphic,
    .tech-graphic {
        padding: 2rem;
    }

    .mission-card,
    .team-member,
    .stat-item,
    .commitment-item {
        padding: 1.5rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-methods {
    padding: 80px 0;
    background: #f8fafc;
}

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

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.contact-info strong {
    color: #2563eb;
    font-size: 1.1rem;
}

.response-time {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.contact-btn:hover {
    background: #1d4ed8;
}

.whatsapp-btn {
    background: #25d366;
}

.whatsapp-btn:hover {
    background: #1ea952;
}

.live-chat-btn {
    background: #10b981;
}

.live-chat-btn:hover {
    background: #059669;
}

.contact-form-section {
    padding: 80px 0;
    background: white;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.form-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.form-content p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    color: #64748b;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
}

.form-sidebar {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.form-sidebar h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.help-links {
    margin-bottom: 2rem;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.help-link:hover {
    transform: translateX(5px);
}

.help-icon {
    font-size: 1.5rem;
}

.help-link strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.help-link p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

.contact-hours {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.contact-hours h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-hours p {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-faq {
    padding: 80px 0;
    background: #f8fafc;
}

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

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.faq-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.contact-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-content h2 {
        font-size: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 100px 0 60px;
    }

    .contact-hero-content h1 {
        font-size: 2rem;
    }

    .contact-hero-subtitle {
        font-size: 1rem;
    }

    .contact-methods,
    .contact-form-section,
    .contact-faq,
    .contact-cta {
        padding: 60px 0;
    }

    .contact-card,
    .faq {
        padding: 50px 0;
    }

    .faq-container {
        gap: 1.5rem;
    }

    .faq-column {
        gap: 1rem;
    }

    .faq-question {
        padding: 0.9rem 1rem;
    }

    .faq-question h3 {
        font-size: 0.9rem;
        padding-right: 0.6rem;
    }

    .faq-toggle {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .faq-item.active .faq-answer {
        padding: 0.9rem 1rem;
    }

    .faq-answer {
        padding: 0 1rem;
    }

    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .faq-answer li {
        padding-left: 1rem;
    }

    .faq-answer ul,
    .faq-answer ol {
        font-size: 0.85rem;
    }

    .faq-answer ul li::before {
        font-size: 0.8rem;
    }

    .faq-answer ol li::before {
        font-size: 0.75rem;
    }

    .contact-form,
    .form-sidebar {
        padding: 1.5rem;
    }
}

/* Pakistani Universities Page Styles */
.universities-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.universities-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.universities-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.universities-search {
    padding: 40px 0;
    background: #f8fafc;
}

.universities-grid-section {
    padding: 80px 0;
    background: white;
}

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

.university-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.university-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.university-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.university-card p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.university-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.location {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.grading-system {
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.university-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.universities-stats {
    padding: 80px 0;
    background: #f8fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.universities-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.universities-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.universities-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Mobile Responsiveness for Universities Page */
@media (max-width: 768px) {
    .universities-hero-content h1 {
        font-size: 2.5rem;
    }

    .universities-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .university-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .universities-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .universities-hero {
        padding: 100px 0 60px;
    }

    .universities-hero-content h1 {
        font-size: 2rem;
    }

    .universities-hero-subtitle {
        font-size: 1rem;
    }

    .universities-search,
    .universities-grid-section,
    .universities-stats,
    .universities-cta {
        padding: 60px 0;
    }

    .university-card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Privacy Policy Page Styles */
.privacy-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.privacy-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.privacy-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.privacy-overview {
    padding: 80px 0;
    background: #f8fafc;
}

.overview-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.overview-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
    text-align: center;
}

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

.overview-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
}

.overview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.overview-item p {
    color: #64748b;
    line-height: 1.6;
}

.privacy-details {
    padding: 80px 0;
    background: white;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.privacy-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.privacy-section p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
}

.privacy-section ul li {
    padding: 0.75rem 0;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-section ul li:last-child {
    border-bottom: none;
}

.privacy-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.privacy-section ul li strong {
    color: #1e293b;
    font-weight: 600;
}

.privacy-section a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.privacy-section a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.privacy-commitment {
    padding: 80px 0;
    background: #f8fafc;
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.commitment-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1e293b;
}

.commitment-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.commitment-feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.commitment-feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.commitment-feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.commitment-feature p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.privacy-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.privacy-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.privacy-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 1rem;
}

.privacy-note a {
    color: #94a3b8;
    text-decoration: none;
}

.privacy-note a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile Responsiveness for Privacy Policy */
@media (max-width: 768px) {
    .privacy-hero-content h1 {
        font-size: 2.5rem;
    }

    .privacy-hero-subtitle {
        font-size: 1.1rem;
    }

    .overview-card {
        padding: 2rem;
    }

    .overview-card h2 {
        font-size: 2rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .privacy-section {
        padding: 1.5rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }

    .commitment-content h2 {
        font-size: 2rem;
    }

    .commitment-features {
        grid-template-columns: 1fr;
    }

    .privacy-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .privacy-hero {
        padding: 100px 0 60px;
    }

    .privacy-hero-content h1 {
        font-size: 2rem;
    }

    .privacy-hero-subtitle {
        font-size: 1rem;
    }

    .privacy-overview,
    .privacy-details,
    .privacy-commitment,
    .privacy-cta {
        padding: 60px 0;
    }

    .overview-card,
    .privacy-section,
    .commitment-feature {
        padding: 1.5rem;
    }

    .privacy-badge {
        padding: 0.5rem 1rem;
    }
}

/* NUST GPA Calculator Page Styles */
.nust-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.nust-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.nust-logo {
    margin-bottom: 2rem;
}

.university-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.nust-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.university-full-name {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nust-info {
    padding: 80px 0;
    background: #f8fafc;
}

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

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.info-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #475569;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.grading-table {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #1e40af;
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

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

.table-row.fail {
    background: #fef2f2;
    color: #dc2626;
}

.table-row span {
    font-weight: 500;
}

.calculator-section {
    padding: 80px 0;
    background: white;
}

.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.calculator-header p {
    color: #64748b;
    font-size: 1rem;
}

.calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* legacy form layout for older calculator (not the Bootstrap table one) */
.course-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
}

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

.remove-course-btn:hover {
    background: #dc2626;
}

.results-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.results-content {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.result-item.highlight {
    background: #1e40af;
    color: white;
    font-weight: 600;
}

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.nust-programs {
    padding: 80px 0;
    background: #f8fafc;
}

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

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card ul li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.program-card ul li:last-child {
    border-bottom: none;
}

.program-card ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #1e40af;
    font-size: 0.8rem;
}

.nust-tips {
    padding: 80px 0;
    background: white;
}

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

.tip-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tip-card ul li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.tip-card ul li:last-child {
    border-bottom: none;
}

.tip-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.nust-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.nust-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nust-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness for NUST Page */
@media (max-width: 768px) {
    .nust-logo h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .course-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .programs-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .nust-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nust-hero {
        padding: 100px 0 60px;
    }

    .nust-logo h1 {
        font-size: 2rem;
    }

    .university-full-name {
        font-size: 1rem;
    }

    .hero-description p {
        font-size: 1rem;
    }

    .nust-info,
    .calculator-section,
    .nust-programs,
    .nust-tips,
    .nust-cta {
        padding: 60px 0;
    }

    .calculator-container,
    .info-card,
    .program-card,
    .tip-card {
        padding: 1.5rem;
    }

    .table-header,
    .table-row {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===== Additional Calculator Page Styles ===== */

/* CGPA Calculator 4.0 Scale */
.cgpa-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.cgpa-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgpa-logo {
    margin-bottom: 2rem;
}

.calculator-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cgpa-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calculator-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cgpa-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* GPA to CGPA Calculator */
.gpa-cgpa-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.gpa-cgpa-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gpa-cgpa-logo {
    margin-bottom: 2rem;
}

.gpa-cgpa-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gpa-cgpa-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Percentage to CGPA Calculator */
.percentage-cgpa-hero {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.percentage-cgpa-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.percentage-cgpa-logo {
    margin-bottom: 2rem;
}

.percentage-cgpa-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.percentage-cgpa-cta {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* SGPA to CGPA Calculator */
.sgpa-cgpa-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.sgpa-cgpa-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.sgpa-cgpa-logo {
    margin-bottom: 2rem;
}

.sgpa-cgpa-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sgpa-cgpa-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* CGPA to Percentage Calculator */
.cgpa-percentage-hero {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.cgpa-percentage-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.cgpa-percentage-logo {
    margin-bottom: 2rem;
}

.cgpa-percentage-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cgpa-percentage-cta {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* GPA to Percentage Calculator */
.gpa-percentage-hero {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.gpa-percentage-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gpa-percentage-logo {
    margin-bottom: 2rem;
}

.gpa-percentage-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gpa-percentage-cta {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Grade Predictor Calculator */
.grade-predictor-hero {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.grade-predictor-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.grade-predictor-logo {
    margin-bottom: 2rem;
}

.grade-predictor-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.grade-predictor-cta {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* Additional Calculator Styles */
.calculation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: #475569;
    font-weight: 500;
}

.formula {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.formula-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.formula-item {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.note-box {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    margin: 1rem 0;
}

.tip-box {
    background: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    margin: 1rem 0;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.impact-list li:last-child {
    border-bottom: none;
}

.impact-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.definition-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.definition-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tip-list {
    list-style: none;
    padding: 0;
}

.tip-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.tip-list li:last-child {
    border-bottom: none;
}

.tip-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Mobile Responsiveness for Calculator Pages */
@media (max-width: 768px) {

    .cgpa-logo h1,
    .gpa-cgpa-logo h1,
    .percentage-cgpa-logo h1,
    .sgpa-cgpa-logo h1,
    .cgpa-percentage-logo h1,
    .gpa-percentage-logo h1,
    .grade-predictor-logo h1 {
        font-size: 2.5rem;
    }

    .calculator-description {
        font-size: 1rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .step-text {
        text-align: center;
    }
}

@media (max-width: 480px) {

    .cgpa-hero,
    .gpa-cgpa-hero,
    .percentage-cgpa-hero,
    .sgpa-cgpa-hero,
    .cgpa-percentage-hero,
    .gpa-percentage-hero,
    .grade-predictor-hero {
        padding: 100px 0 60px;
    }

    .cgpa-logo h1,
    .gpa-cgpa-logo h1,
    .percentage-cgpa-logo h1,
    .sgpa-cgpa-logo h1,
    .cgpa-percentage-logo h1,
    .gpa-percentage-logo h1,
    .grade-predictor-logo h1 {
        font-size: 2rem;
    }

    .calculator-description {
        font-size: 0.9rem;
    }

    .cgpa-cta,
    .gpa-cgpa-cta,
    .percentage-cgpa-cta,
    .sgpa-cgpa-cta,
    .cgpa-percentage-cta,
    .gpa-percentage-cta,
    .grade-predictor-cta {
        padding: 60px 0;
    }
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        margin-top: 0.5rem;
        border-radius: 6px;
        padding: 0.25rem 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }

    .dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    .dropdown-arrow {
        display: none;
    }
}

/* ===== GPA Calculator (Bootstrap) scoped styles for NUST page ===== */
#calculator-section {
    background: #f5f7fb;
}

#calculator-section .card {
    border-radius: 20px;
    overflow: hidden;
}

#calculator-section .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

#calculator-section .card-header h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#calculator-section .table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    /* ensure consistent column sizing */
}

#calculator-section .table thead th {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
}

/* Column widths similar to original design */
#calculator-section .table thead th:nth-child(1),
#calculator-section .table tbody td:nth-child(1) {
    width: 18%;
}

#calculator-section .table thead th:nth-child(2),
#calculator-section .table tbody td:nth-child(2) {
    width: 18%;
}

#calculator-section .table thead th:nth-child(3),
#calculator-section .table tbody td:nth-child(3) {
    width: 22%;
}

#calculator-section .table thead th:nth-child(4),
#calculator-section .table tbody td:nth-child(4) {
    width: 22%;
}

#calculator-section .table thead th:nth-child(5),
#calculator-section .table tbody td:nth-child(5) {
    width: 20%;
}

#calculator-section .table tbody tr {
    transition: all 0.3s ease;
}

#calculator-section .table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#calculator-section .form-control,
#calculator-section .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    /* expand controls to cell width */
}

#calculator-section .form-control:focus,
#calculator-section .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

#calculator-section .form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

#calculator-section .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

#calculator-section .btn {
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#calculator-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#calculator-section .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#calculator-section .btn-success {
    background: linear-gradient(90deg, #198754 0%, #48c78e 100%) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.13), 0 1.5px 7px rgba(44, 62, 80, 0.07);
    border-radius: 99px;
    color: #fff;
    font-weight: 600;
    transition: box-shadow 0.18s cubic-bezier(.7, .2, .2, 1), background 0.22s;
    letter-spacing: 0.01em;
}

#calculator-section .btn-success:hover,
#calculator-section .btn-success:focus {
    background: linear-gradient(90deg, #22b07e 0%, #198754 80%, #43e97b 100%) !important;
    box-shadow: 0 6px 36px rgba(25, 135, 84, 0.19) !important;
    color: #fff;
}

#calculator-section .btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#calculator-section .btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

#calculator-section .btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

#calculator-section .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

#calculator-section .btn-outline-danger {
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    background: transparent;
}

#calculator-section .btn-outline-danger:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-color: #ff6b6b;
    color: white;
}

#calculator-section .alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#calculator-section .alert-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #495057;
}

#calculator-section .course-row {
    /* animation hook for JS-created rows */
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#calculator-section .grade-select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#calculator-section .grade-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Reset the older grid-based .course-row when used inside table rows */
#calculator-section #courseTable .course-row {
    display: table-row;
    padding: 0;
    background: transparent;
    border: none;
    margin: 0;
}

@media (max-width: 768px) {
    #calculator-section {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-height: none;
    }

    #calculator-section .container {
        max-width: 100%;
        padding: 0;
    }

    #calculator-section .card {
        margin: 0 10px;
        max-width: calc(100% - 20px);
        overflow: visible;
    }

    #calculator-section .card-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    #calculator-section .card-body {
        padding: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
    }

    #calculator-section .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #calculator-section .row {
        margin: 0;
    }

    #calculator-section .col-md-4,
    #calculator-section .col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 0.75rem;
    }

    #calculator-section .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }

    #calculator-section .table-responsive {
        font-size: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        display: block;
        width: 100%;
    }

    #calculator-section .table {
        min-width: 600px;
        width: 100%;
    }

    /* Mobile-specific table improvements */
    #calculator-section .table thead th {
        padding: 10px 5px;
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    #calculator-section .table tbody td {
        padding: 8px 5px;
        font-size: 13px;
    }

    #calculator-section .form-control,
    #calculator-section .form-select {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Stack buttons vertically on mobile */
    #calculator-section .text-center .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 200px;
    }

    #calculator-section .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    #calculator-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #calculator-section .card {
        margin: 0 5px;
        max-width: calc(100% - 10px);
        border-radius: 10px;
    }

    #calculator-section .card-body {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #calculator-section .table-responsive {
        margin: 0 -10px;
        padding: 0 10px;
    }

    #calculator-section .table {
        min-width: 500px;
    }

    #calculator-section .table thead th {
        padding: 8px 3px;
        font-size: 11px;
        white-space: nowrap;
    }

    #calculator-section .table tbody td {
        padding: 6px 3px;
        font-size: 12px;
        white-space: nowrap;
    }

    #calculator-section .form-control,
    #calculator-section .form-select {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 0;
    }

    #calculator-section .btn {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    #calculator-section .btn-lg {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Make table more compact */
    #calculator-section .table-responsive {
        font-size: 12px;
        margin-bottom: 1rem;
    }

    /* Improve button spacing */
    #calculator-section .text-center .btn {
        margin-bottom: 8px;
        max-width: 180px;
    }

    /* Better spacing for form sections */
    #calculator-section .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    #calculator-section .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Compact form labels */
    #calculator-section .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    /* Better mobile table column widths */
    #calculator-section .table thead th:nth-child(1),
    #calculator-section .table tbody td:nth-child(1) {
        width: 20%;
    }

    #calculator-section .table thead th:nth-child(2),
    #calculator-section .table tbody td:nth-child(2) {
        width: 15%;
    }

    #calculator-section .table thead th:nth-child(3),
    #calculator-section .table tbody td:nth-child(3) {
        width: 20%;
    }

    #calculator-section .table thead th:nth-child(4),
    #calculator-section .table tbody td:nth-child(4) {
        width: 20%;
    }

    #calculator-section .table thead th:nth-child(5),
    #calculator-section .table tbody td:nth-child(5) {
        width: 25%;
    }
}

#calculator-section .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#calculator-section .form-control.is-valid {
    border-color: #28a745;
}

#calculator-section .form-control.is-invalid {
    border-color: #dc3545;
}

/* --- BEGIN: Premium Bootstrap Navbar & Dropdown Styles (sitewide override) --- */
.navbar .btn.btn-success {
    background: linear-gradient(90deg, #198754 0%, #48c78e 100%) !important;
    border: none;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.13), 0 1.5px 7px rgba(44, 62, 80, 0.07);
    border-radius: 99px;
    color: #fff;
    font-weight: 600;
    transition: box-shadow 0.18s cubic-bezier(.7, .2, .2, 1), background 0.22s;
    letter-spacing: 0.01em;
}

.navbar .btn.btn-success:hover,
.navbar .btn.btn-success:focus {
    background: linear-gradient(90deg, #22b07e 0%, #198754 80%, #43e97b 100%) !important;
    box-shadow: 0 6px 36px rgba(25, 135, 84, 0.19) !important;
    color: #fff;
}

.dropdown-menu {
    border-radius: 1.1em !important;
    background: #fff !important;
    border: 1.5px solid #e2eee3 !important;
    box-shadow: 0 12px 32px 0 rgba(30, 119, 93, 0.09), 0 1.5px 7px rgba(44, 62, 80, 0.04) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-width: 230px;
    transition: all 0.33s cubic-bezier(.62, .13, .56, .91) !important;
}

.dropdown-menu .dropdown-item {
    border-radius: 2em !important;
    padding: 0.7em 1.3em !important;
    margin: 0.08em 0.2em !important;
    font-weight: 500 !important;
    color: #145c44 !important;
    background: none !important;
    transition: background 0.18s, color 0.16s, border-left 0.18s !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: linear-gradient(90deg, #e6ffee 70%, #e5f8f2 100%) !important;
    color: #198754 !important;
    border-left: 4px solid #198754 !important;
    box-shadow: 0 2.5px 12px 0 rgba(25, 135, 84, 0.09) !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background: linear-gradient(90deg, #e6ffe5 60%, #e0fbee 100%) !important;
    color: #1a8245 !important;
    border-left: 4px solid #25ba74 !important;
    box-shadow: 0 3px 12px 0 rgba(25, 135, 84, 0.18) !important;
}

/* Remove bullets fallback */
.dropdown-menu,
.dropdown-menu ul,
.dropdown-menu li {
    list-style: none !important;
}

.dropdown-menu.animate__animated {
    animation-duration: 0.23s !important;
    animation-timing-function: cubic-bezier(.63, .14, .54, .94) !important;
}

.navbar .navbar-nav .nav-link {
    font-weight: 500 !important;
    padding-left: 1.2em !important;
    padding-right: 1.2em !important;
    border-radius: 2em !important;
    transition: background 0.18s, color 0.16s !important;
    color: #25623c !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    background: #f2ffee !important;
    color: #1a8245 !important;
}

.navbar .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, #3ddc97 70%, #198754 100%) !important;
    box-shadow: 0 3px 13px rgba(25, 135, 84, 0.13) !important;
}

/* Mobile-specific: expand spacing for clarity */
@media (max-width: 992px) {
    .navbar .btn.btn-success {
        width: 100% !important;
        margin-top: 0.6em !important;
        margin-bottom: 0.3em !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-bottom: 0.26em !important;
    }
}

/* --- END: Premium Navbar Styles --- */

/* --- BEGIN: Final Navbar Mobile & Button Fix Patch --- */
@media (max-width: 992px) {
    .navbar .btn.btn-success {
        display: block !important;
        min-width: 0 !important;
        width: 95% !important;
        margin: 14px auto 8px !important;
        max-width: 340px !important;
        border-radius: 99px !important;
        font-weight: 700 !important;
        font-size: 1.08rem !important;
        box-shadow: 0 8px 36px 3px rgba(25, 135, 84, 0.16) !important;
        text-align: center;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.57em !important;
    }

    .navbar .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 12px !important;
        padding-top: 6px !important;
        width: 100% !important;
        align-items: flex-start !important;
    }

    .navbar .navbar-collapse {
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 0 1.3rem 1.3rem !important;
        padding-bottom: 0 !important;
    }

    .navbar .navbar-brand {
        margin-top: 12px !important;
        margin-bottom: 10px !important;
    }

    .dropdown-menu {
        width: 96% !important;
        left: 2% !important;
        right: 2% !important;
        box-shadow: 0 12px 32px 0 rgba(30, 119, 93, 0.13) !important;
        border-radius: 1.2em !important;
        margin-bottom: 16px !important;
    }

    .dropdown-menu .dropdown-item {
        margin-left: 2px !important;
        margin-right: 2px !important;
        font-size: 1em !important;
        text-align: left !important;
        border-radius: 2em !important;
    }

    .navbar .navbar-nav .nav-link {
        padding-left: 1.7em !important;
        padding-right: 1.7em !important;
        text-align: left !important;
        display: block !important;
        margin-bottom: 0.35em !important;
        font-size: 1.08em !important;
    }
}

/* Extra: ensure button never overflows on all widths */
.navbar .btn.btn-success {
    max-width: 340px !important;
    min-width: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* --- END: Final Navbar Mobile & Button Patch --- */

/* ===== Calculator Tools Section Styles ===== */
.calculator-tools-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.calculator-tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0" opacity="0.4"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.calculator-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.tool-icon-wrapper {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tool-card:hover .tool-icon::before {
    width: 100px;
    height: 100px;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
    line-height: 1.3;
}

.tool-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

.tool-features li {
    color: #475569;
    font-size: 0.8rem;
    padding: 0.35rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.tool-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.tool-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.tool-btn:active {
    transform: translateY(0);
}

/* Tool Card Color Variants */
.tool-card-primary .tool-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.tool-card-primary:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.tool-card-primary .tool-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tool-card-secondary .tool-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.tool-card-secondary:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.tool-card-secondary .tool-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.tool-card-accent .tool-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.tool-card-accent:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.tool-card-accent .tool-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.tool-card-warning .tool-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.tool-card-warning:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.tool-card-warning .tool-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tool-card-success .tool-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.tool-card-success:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.tool-card-success .tool-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.tool-card-info .tool-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
}

.tool-card-info:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.tool-card-info .tool-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

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

.tool-card-gradient .tool-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.tool-card-gradient h3,
.tool-card-gradient p,
.tool-card-gradient .tool-features li {
    color: rgba(255, 255, 255, 0.95);
}

.tool-card-gradient .tool-features li::before {
    background: rgba(255, 255, 255, 0.8);
}

.tool-card-gradient:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-card-gradient .tool-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tool-card-gradient .tool-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Mobile Responsiveness for Calculator Tools */
@media (max-width: 768px) {
    .calculator-tools-section {
        padding: 50px 0;
    }

    .calculator-tools-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .tool-icon {
        width: 65px;
        height: 65px;
        font-size: 2.25rem;
    }

    .tool-card h3 {
        font-size: 1.15rem;
    }

    .tool-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calculator-tools-section {
        padding: 40px 0;
    }

    .calculator-tools-grid {
        gap: 1rem;
    }

    .tool-card {
        padding: 1rem;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .tool-card h3 {
        font-size: 1.1rem;
    }

    .tool-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}