.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
    padding: calc(100px + 4rem) 1.5rem 4rem;
    min-height: 100vh;
    box-sizing: border-box;
    color: var(--text-light);
    overflow: hidden;
    background: #1a0a0e url('/assets/images/hero_image.jpg') no-repeat left center / cover;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 80% at 50% 42%,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            transparent 72%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.5) 45%,
            rgba(0, 0, 0, 0.65) 100%);
}

.centered-hero {
    position: relative;
    margin-top: -100px;
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg,
            var(--primary-black) 0%,
            #2a2a2a 100%);
    background-color: var(--primary-black);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5rem;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.65));
}

.subtitle {
    font-size: 1.25rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 16px rgba(0, 0, 0, 0.55);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 2px solid rgba(255, 255, 255, .5);
    border-bottom: 2px solid rgba(255, 255, 255, .5);
}

.stat-item {
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.45);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
}

.hero-cta {
    margin: 2rem 0 0 0;
}

.primary-cta,
.secondary-cta {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.primary-cta:hover {
    background: #a01830;
    transform: translateY(-2px);
}

.secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.secondary-cta:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.floating-cards {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
}

.test-card,
.accreditation-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.test-card:nth-child(1) {
    top: 20%;
    left: 10%;
}

.test-card:nth-child(2) {
    top: 40%;
    right: 10%;
}

.accreditation-card {
    bottom: 20%;
    left: 25%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(196, 30, 58, 0.1);
}

.test-card-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.test-card-content h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.test-card-content p {
    color: #999;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Disciplines Section */
.disciplines-section {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    max-width: 800px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
}

.discipline-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Removed - using Bootstrap grid */

.discipline-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    align-items: stretch;
    overflow: hidden;
}

.discipline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.discipline-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2f7;
    flex-shrink: 0;
}

.discipline-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discipline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discipline-content {
    text-align: left;
    padding: 1.5rem 2rem 2rem;
}

.discipline-content .discipline-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.discipline-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.discipline-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.discipline-features i {
    color: var(--primary-red);
    font-size: 0.9rem;
}

.discipline-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.discipline-link:hover {
    gap: 1rem;
}

.discipline-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.discipline-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.discipline-card h3 {
    padding: 1.5rem 1rem 1rem;
    color: var(--primary-red);
}

.discipline-card p {
    padding: 0 1rem 1.5rem;
}

/* Portal Features Section */
.portal-features-section {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
    padding: 5rem 0;
    color: var(--text-light);
}

.portal-features-content {
    gap: 2.5rem;
}

.portal-heading {
    font-size: 2.5rem;
    letter-spacing: 0.12em;
}

.portal-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #ffe5eb;
    margin-top: -1rem;
}

.portal-features-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.features-column li {
    font-size: 1.05rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.features-column li:last-child {
    border-bottom: none;
}

.features-column i {
    color: white;
    font-size: 1.2rem;
    width: 24px;
}

.portal-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffeff3;
    color: var(--primary-red);
    padding: 1rem 2.75rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-register-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
    background: white;
}

.why-choose-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

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

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

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Accreditation Section */
.accreditation-section {
    padding: 5rem 0;
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}

.accreditation-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-black);
}

.accreditation-content {
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.accreditation-badge {
    flex-shrink: 0;
}

.accreditation-badge img {
    max-width: 250px;
    height: auto;
}

.accreditation-text {
    flex: 1;
}

.accreditation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.accreditation-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.accreditation-link:hover {
    color: #a01830;
    gap: 0.75rem;
}

.accreditation-link i {
    font-size: 0.9rem;
}

/* Survey Section */
.survey-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #c41e3a 0%, #8f1228 100%);
    color: var(--text-light);
}

.survey-content {
    gap: 3rem;
}

.survey-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.survey-text h3 {
    font-size: 1.5rem;
    color: #ffd3db;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.survey-text p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.survey-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary-red);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.35);
}

.survey-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(196, 30, 58, 0.45);
    gap: 1rem;
}

.survey-button i {
    font-size: 1rem;
}

/* Home Page Responsive Design */
@media (max-width: 1200px) {
    .discipline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Hero Section Mobile — match main { padding-top: 80px } in styles.css */
    .home-hero {
        margin-top: -80px;
        padding: calc(80px + 3rem) 1rem 3rem;
        min-height: 100vh;
    }

    .centered-hero {
        margin-top: -80px;
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }

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

    .subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .primary-cta,
    .secondary-cta {
        width: 100%;
        text-align: center;
    }

    /* Disciplines Section Mobile */
    .disciplines-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Removed - using Bootstrap responsive grid */

    .discipline-item {
        padding: 0;
    }

    .discipline-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .proficiency-menu {
        width: 100%;
    }

    .proficiency-menu {
        width: 100%;
    }

    .proficiency-menu .menu-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        color: var(--text-light);
    }

    .proficiency-dropdown {
        position: static;
        width: 100%;
        display: none;
        margin-top: 0;
    }

    .proficiency-menu.open .proficiency-dropdown {
        display: block;
    }

    .dropdown-list {
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.35);
        padding: 0.5rem 0;
        flex-direction: column;
    }

    .dropdown-list li a {
        color: var(--text-light);
        padding: 0.75rem;
        background: transparent;
    }

    .dropdown-list li a:hover,
    .dropdown-list li a:focus {
        background: rgba(196, 30, 58, 0.35);
    }

    /* Portal Features Section Mobile */
    .portal-features-section {
        padding: 3rem 0;
    }

    .portal-features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portal-logo {
        padding: 1.5rem;
    }

    .portal-logo img {
        max-width: 150px;
    }

    .portal-logo h2 {
        font-size: 1.8rem;
    }

    .portal-cta .order-text {
        font-size: 1rem;
    }

    .portal-button {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
    }

    .portal-features-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-column li {
        font-size: 1rem;
    }

    /* Why Choose Section Mobile */
    .why-choose-section {
        padding: 3rem 0;
    }

    .why-choose-section h2 {
        font-size: 1.8rem;
    }

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

    .feature-item {
        padding: 1.5rem;
    }

    /* Accreditation Section Mobile */
    .accreditation-section {
        padding: 3rem 0;
    }

    .accreditation-section h2 {
        font-size: 1.8rem;
    }

    .accreditation-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .accreditation-badge img {
        max-width: 200px;
    }

    .accreditation-text p {
        font-size: 1rem;
    }

    /* Survey Section Mobile */
    .survey-section {
        padding: 3rem 0;
    }

    .survey-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .survey-text h2 {
        font-size: 1.8rem;
    }

    .survey-text h3 {
        font-size: 1.2rem;
    }

    .survey-text p {
        font-size: 1rem;
    }

    .survey-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .stat-number {
        font-size: 1.5rem;
    }
}