:root {
    /* Primary colors with increased contrast */
    --primary-color: #061148;     /* penn-blue - main brand color */
    --secondary-color: #001464;   /* federal-blue - secondary elements */
    --accent-color: #855CA6;      /* royal-purple - accents and highlights */
    --dark-accent: #061148;       /* penn-blue - for text */
    --cta-color: #F19C96;         /* coral-pink - for call-to-action buttons */
    --cta-hover: #FFB366;         /* orange - for hover states */
    
    /* UI colors with better contrast */
    --background: #FFFFFF;
    --card-bg: #F8F9FA;
    --text-primary: #061148;      /* penn-blue for main text */
    --text-secondary: #001464;    /* federal-blue for secondary text */
    --link-color: #855CA6;        /* royal-purple for links */
    --border-color: rgba(6, 17, 72, 0.2); /* darker border */
    --nav-hover: rgba(133, 92, 166, 0.1); /* royal-purple with opacity */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(6, 17, 72, 0.15);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --line-height-body: 1.6;
}

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

html {
    font-size: 100%; /* Ensures consistent base sizing */
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: var(--line-height-body);
    font-size: 16px; /* Explicit base font size */
}

.top-bar {
    background: var(--dark-accent);
    height: 0.5rem;
    padding: 0;
}

.top-bar-content {
    display: none;
}

header {
    background: white;
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.2);
    width: 100%; /* Ensure header extends full width */
    overflow: hidden; /* Prevent content from breaking out */
}

/* Fix navigation wrapping */
header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem; /* Reduce padding to give more space */
    flex-wrap: nowrap; /* Prevent wrapping */
    max-width: 1400px; /* Increase max width to accommodate all items */
    margin: 0 auto;
    gap: 2rem; /* Add gap between logo and nav for better spacing */
    width: 100%; /* Ensure content area uses full available width */
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0; /* Prevent logo from shrinking */
    min-width: 0; /* Allow flex shrinking if absolutely necessary */
}

.university-logo {
    height: 50px;
    width: auto;
}

.site-title {
    display: flex;
    flex-direction: column;
}

h1.site-name {
    color: var(--dark-accent);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    letter-spacing: -0.5px;
}

.site-description {
    color: var(--primary-color);
    font-size: 0.9rem; /* Slightly smaller to accommodate longer French text */
    font-weight: 200;
    width: 240px;
    line-height: 1.2;
    white-space: normal;
    flex-shrink: 0; /* Prevent description from shrinking */
}

nav {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Reduce gap to accommodate longer French text */
    flex-wrap: nowrap; /* Prevent wrapping */
    white-space: nowrap; /* Prevent text wrapping within nav items */
    flex-shrink: 1; /* Allow nav to shrink if needed */
    min-width: 0; /* Allow flex items to shrink below content size */
}

nav a, .dropdown > a {
    color: var(--dark-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Slightly smaller to accommodate longer French text */
    padding: 0.5rem 0.4rem; /* Reduce horizontal padding */
    border-radius: var(--border-radius);
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent individual nav items from shrinking */
    max-width: 120px; /* Limit max width to prevent excessive expansion */
    overflow: hidden;
    text-overflow: ellipsis; /* Show ellipsis if text is too long */
}

nav a:hover, .dropdown > a:hover {
    color: var(--accent-color);
    background: var(--nav-hover);
    transform: translateY(-2px);
}

.questions-portal-btn,
.portal-btn {
    background: var(--cta-color) !important;
    color: white !important;
    padding: 0.5rem 0.8rem !important; /* Reduce padding for longer text */
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important; /* Slightly smaller for longer French text */
    margin-left: 0.5rem !important;
    flex-shrink: 0; /* Prevent button from shrinking */
    white-space: nowrap !important; /* Prevent text wrapping */
    transition: all 0.3s ease !important;
}

.questions-portal-btn:hover,
.portal-btn:hover {
    background: #E88C86 !important; /* Darker shade of coral-pink */
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(241, 156, 150, 0.3) !important;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--cta-color);
}

.policy-section {
    background: var(--card-bg);
    padding: 2.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.2);
    border: 1px solid var(--border-color);
}

h2 {
    color: var(--dark-accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
    letter-spacing: -0.3px;
}

h2 i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

h3 {
    color: var(--dark-accent);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    letter-spacing: -0.1px;
}

p {
    margin: 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

footer {
    background: var(--dark-accent);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
}

.floating-news-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 140px;
    padding: 12px 15px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    border: 2px solid transparent;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-news-button .floating-news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-news-button .floating-news-icon i {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.floating-news-button .floating-news-label {
    font-size: 1rem;
    color: #ffffff;
    display: block;
    width: 100%;
    line-height: 1.2;
}

.floating-news-button .floating-news-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ffffff;
    color: var(--accent-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 0;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.floating-news-button .floating-news-close:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.05);
}

.floating-news-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    display: none;
}

.floating-news-button:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.25);
}

.floating-news-button:hover .floating-news-icon i,
.floating-news-button:hover .floating-news-label {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .floating-news-button {
        bottom: 15px;
        left: 15px;
        width: 120px;
        padding: 6px 8px;
        font-size: 0.75rem;
        line-height: 1.2;
        min-height: auto;
    }

    .floating-news-button .floating-news-icon i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .floating-news-button .floating-news-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .floating-news-button .floating-news-close {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.1px;
}

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

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    display: block;
    margin: 0.5rem 0;
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--cta-color);
}

.copyright {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    color: #CCC;
    font-size: 0.85rem;
    margin-top: 2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    .logo-container {
        flex-shrink: 1; /* Allow logo to shrink */
    }
    
    .site-name {
        font-size: 1.5rem; /* Reduce site name size on medium screens */
    }
    
    nav a, .dropdown > a {
        font-size: 0.9rem; /* Further reduce font size */
        padding: 0.5rem 0.5rem; /* Reduce padding */
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem; /* Reduce from 2rem to 1rem for more text space */
        margin: 1rem auto; /* Reduce top/bottom margin slightly */
    }

    header .header-content {
        flex-direction: column;
        padding: 0.75rem; /* Reduce from 1rem to 0.75rem for consistency */
    }
    
    nav {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping on mobile */
        gap: 0.8rem;
    }
    
    .site-description {
        display: none; /* Hide description on mobile */
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

    .university-logo {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .site-title {
        text-align: left;
    }

    h1.site-name {
        font-size: 1.5rem;
        margin: 0;
    }

    .site-description {
        display: none;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        gap: 0.2rem;
        width: 100%;
        padding: 0.2rem 0;
    }

    nav a, nav .dropdown {
        text-align: center;
        width: 100%;
        padding: 0.2rem;
        font-size: 0.9rem;
    }

    .dropdown {
        position: static;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }

    .header-content {
        position: relative;
        z-index: 100;
        background: white;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem; /* Reduce from 1rem to 0.5rem for more text space */
    }

    .feature-card {
        padding: 1.25rem; /* Slightly reduce from 1.5rem to 1.25rem */
    }

    .carousel-section {
        display: none;
    }

    .carousel-slide {
        min-width: 100%;
        flex: 0 0 100%;
        padding: 0 10px;
    }

    .carousel-button {
        display: none;
    }

    .iphone-frame {
        max-width: 220px;
        margin: 10px auto;
    }

    .carousel-caption {
        width: 100%;
        margin: 0.5rem auto;
    }

    .story-card {
        padding: 1.5rem;
    }

    .story-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0.75rem; /* Reduce horizontal padding from 1rem to 0.75rem */
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .subscription-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .subscription-card {
        margin: 0.5rem 0;
    }

    .faq-section {
        padding: 1rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .policy-section {
        padding: 0.75rem; /* Reduce from 1rem to 0.75rem for more text space */
    }

    .support-email {
        width: 100%;
    }

    .content-block {
        padding: 0.5rem; /* Reduce from 1rem to 0.5rem for more text space */
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .breadcrumb {
        padding: 0.5rem 0.75rem; /* Reduce horizontal padding for consistency */
        font-size: 0.9rem;
    }

    /* Add a mobile-specific message */
    .mobile-app-prompt {
        display: block;
        text-align: center;
        padding: 1.5rem 0.5rem; /* Reduce horizontal padding from 1rem to 0.5rem */
        background: var(--card-bg);
        border-radius: var(--border-radius);
        margin: 2rem 0;
    }
}

/* Hide mobile prompt on desktop */
.mobile-app-prompt {
    display: none;
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 380px) {
    main {
        padding: 0 0.75rem; /* Further reduce padding for very small screens */
    }
    
    .policy-section {
        padding: 0.5rem; /* Further reduce for very small screens */
    }
    
    .content-block {
        padding: 0.25rem; /* Minimal padding for very small screens */
    }
    
    header .header-content {
        padding: 0.5rem; /* Reduce header padding for very small screens */
    }
    
    .footer-content {
        padding: 1rem 0.5rem; /* Further reduce footer padding */
    }
    
    .site-name {
        font-size: 1.5rem;
    }

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

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .iphone-frame {
        max-width: 180px;
    }
}

/* Update feature card styles */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card h3 {
    color: var(--dark-accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .feature-item {
        gap: 0.6rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }
}

.highlight-section {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.highlight-section h3 {
    color: white;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.highlight-section ul {
    margin: 0;
    color: white;
}

.highlight-section ul li::before {
    color: var(--accent-color);
}

.note-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

/* Subscription Page Styles */
.subscription-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.subscription-card {
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subscription-card.featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.2);
}

.best-value {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.subscription-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.subscription-header h3 {
    color: var(--dark-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-accent);
    letter-spacing: -0.5px;
}

.price .period {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.subscription-card ul {
    margin: 2rem 0;
    list-style: none;
}

.subscription-card ul li {
    margin: 1rem 0;
    padding-left: 2rem;
    position: relative;
}

.subscription-card ul li i {
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.subscribe-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--cta-color);
    color: var(--dark-accent);
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(250, 160, 86, 0.3);
    font-size: 1.2rem;
    letter-spacing: -0.2px;
}

.subscribe-button:hover {
    background: #fb8f3d;
    box-shadow: 0 4px 12px rgba(250, 160, 86, 0.4);
    transform: translateY(-2px);
}

.subscribe-button i {
    transition: transform 0.3s ease;
}

.subscribe-button:hover i {
    transform: translateX(5px);
}

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

/* Add CTA button styles */
.cta-button-container {
    text-align: center;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Update dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 0.2rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(6, 17, 72, 0.15);
    border-radius: var(--border-radius);
    z-index: 1000;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.dropdown-content a {
    padding: 0.2rem 0.5rem;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--nav-hover);
    color: var(--accent-color);
}

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

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

/* Mobile responsive styles */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 0.5rem;
        padding: 0;
    }

    .dropdown-content a {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
    }

    nav a, 
    .dropdown > a {
        padding: 0.75rem;
    }

    .dropdown > a::after {
        content: '▼';
        font-size: 0.8em;
        margin-left: 0.5rem;
    }
}

/* Center the CTA button container */
.content-block .cta-button-container {
    text-align: center;
    margin: 2rem 0 3rem;
}

/* Style the App Store button */
.content-block .cta-button {
    background: var(--cta-color);
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
}

.content-block .cta-button i {
    font-size: 1.5rem;
    margin-left: 0.8rem;
}

/* Support page styles */
.support-email {
    text-align: center;
    margin: 2rem 0;
}

.support-email .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: var(--cta-color);
    color: var(--dark-accent);
}

.support-email .cta-button:hover {
    background: #fb8f3d;
}

.response-time {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1rem;
}

.policy-section ul {
    list-style-type: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
    text-align: left;
}

.policy-section ul li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: left;
}

.policy-section ul li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Add device availability text style */
.device-availability {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: 400;
}

/* Update home page content block */
.content-block {
    margin-bottom: 3rem;
}

.content-block:not(.text-center) {
    text-align: left;
}

.content-block.note-section,
.content-block.subscription-intro,
.content-block.cta-button-container {
    text-align: center;
}

/* FAQ Styles */
.faq-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--dark-accent);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.faq-item h3 i {
    color: var(--accent-color);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.faq-item:hover h3 i {
    transform: translateX(5px);
}

.faq-answer {
    margin-top: 0;
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-top: 0px solid var(--border-color);
}

.faq-item.active .faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    max-height: 500px; /* Adjust based on content */
    border-top: 1px solid var(--border-color);
}

.faq-item h3 i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.faq-item.active h3 i {
    transform: rotate(90deg);
}

.faq-answer p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Update carousel and caption positioning */
.carousel-section {
    margin: 3rem auto;
    padding: 2rem 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 1200px;
    overflow: hidden; /* Contain all slides */
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 30px; /* Reduced from 60px */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0;
    align-items: center;
    transform: translateX(33.333%); /* Offset by one slide width to center */
}

.carousel-slide {
    min-width: 33.333%;
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    opacity: 0.3;
    transform: scale(0.7);
    transition: all 0.5s ease-in-out;
    padding: 0 20px;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.iphone-frame {
    position: relative;
    padding: 8px;
    background: var(--primary-color);
    border-radius: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 20px;
    margin-bottom: 1rem; /* Reduced from 2rem */
    max-width: 280px;
    display: inline-block;
}

.iphone-frame img {
    width: 100%;
    height: auto;
    border-radius: 38px;
    display: block;
}

.carousel-caption {
    position: relative;
    width: 90%;
    text-align: center;
    padding: 1.5rem;
    z-index: 1;
    background: linear-gradient(145deg, #f6f7f9, #e8e9ec);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem; /* Reduced from 1rem */
    margin-bottom: 0.5rem; /* Reduced from 1rem */
    display: block;
}

.carousel-caption h3 {
    color: var(--dark-accent);
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.carousel-caption p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Update carousel navigation */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button.prev {
    left: 5%;
}

.carousel-button.next {
    right: 5%;
}

/* Add carousel dots styling */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem; /* Reduced from 1rem */
    padding-bottom: 0.5rem; /* Reduced from 1rem */
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Story Section Styles */
.story-section {
    margin-top: 4rem;
}

.story-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.story-section h3 {
    color: var(--dark-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.story-section h3 i {
    color: var(--accent-color);
}

.story-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.highlight {
    padding: 1.5rem;
    background: linear-gradient(145deg, #f6f7f9, #e8e9ec);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

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

.highlight i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.highlight h4 {
    color: var(--dark-accent);
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.highlight p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .story-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(6, 17, 72, 0.15);
}

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

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--dark-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--accent-color);
}

.blog-content p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Hero Section for Landing Pages */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Testimonial Styles */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    margin-top: 1.5rem;
    text-align: right;
}

.testimonial-author p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Add rounded corners to blog images */
.blog-featured-image {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-image img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-image img:hover {
    transform: translateY(-5px);
}

/* Ensure consistent image dimensions in blog cards */
.blog-card .blog-image {
    height: 180px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Add this to your CSS file */
.disclaimer-box {
  background-color: #f8f9fa;
  border-left: 4px solid #2c3e50;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.content-disclaimer {
  background-color: #f1f8ff;
  border: 1px solid #d0e3ff;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.9rem;
}

/* Author Bio Section (E-A-T Signals) - Compact */
.author-bio {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
}

.author-bio h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.author-details h3 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-details > p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.author-expertise,
.author-credentials {
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 0.25rem 0;
}

.author-expertise h4,
.author-credentials p strong {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    display: block;
}

.author-expertise ul,
.author-credentials ul {
    list-style: none;
    padding-left: 0;
    margin: 0.2rem 0;
}

.author-expertise ul li,
.author-credentials ul li {
    padding: 0.15rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9rem;
}

.author-expertise ul li:before,
.author-credentials ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.author-contact {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.author-contact a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.author-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .author-bio {
        padding: 1rem;
    }
    .author-bio h2 {
        font-size: 1rem;
    }
    .author-details h3 {
        font-size: 0.95rem;
    }
}

/* Add hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-line {
    width: 2rem;
    height: 0.25rem;
    background-color: #2c3e50;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.mobile-nav-header .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-header .site-name {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-menu {
    padding: 15px 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item a {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-nav-item a:hover {
    background-color: #f5f5f5;
    color: #3498db;
}

/* Remove border from portal item to make it look like a button, not a list item */
.mobile-nav-portal-item {
    border-bottom: none !important;
}

.mobile-nav-portal-link {
    background: var(--accent-color);
    color: white !important;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin: 0.5rem 1rem;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    width: calc(100% - 2rem);
    border: none;
}

.mobile-nav-portal-link i {
    color: white !important;
}

.mobile-nav-portal-link:hover {
    background: var(--cta-hover);
    transform: translateY(-1px);
}

.mobile-nav-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 20px;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.mobile-dropdown-toggle.active {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    background-color: #f8f9fa;
    padding: 5px 0;
}

.mobile-nav-submenu.active {
    display: block;
}

.mobile-nav-submenu a {
    padding: 12px 30px;
    font-weight: normal;
    color: #555;
}

.mobile-nav-submenu a:hover {
    background-color: #eaeaea;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    top: 15px;
    right: 15px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    nav {
        display: none;
    }
}

/* Remove the overlay styles */
.mobile-nav-overlay {
    display: none !important;
}

.mobile-nav-backdrop {
    display: none !important;
}

/* Update floating button to have iOS-style rounded corners */
.floating-mcq-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--cta-color);
    color: var(--dark-accent);
    padding: 12px 15px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 1.3;
    width: 140px;
    border: 2px solid transparent;
}

.floating-mcq-button i {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--dark-accent);
}

.floating-mcq-button span {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.floating-mcq-button span:last-child {
    margin-top: 2px;
}

.floating-mcq-button:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.25);
}

.floating-mcq-button:hover i {
    color: var(--accent-color);
}

/* Update qualifying exam page to match passMCQ design with new color palette */
.qualifying-exam-page {
    --primary-color: #061148;     /* penn-blue - main brand color */
    --secondary-color: #001464;   /* federal-blue - secondary elements */
    --accent-color: #855CA6;      /* royal-purple - accents and highlights */
    --text-on-primary: #FFFFFF;   /* white text on dark backgrounds */
    --light-purple: rgba(133, 92, 166, 0.1); /* light purple for backgrounds */
    --cta-color: #F19C96;         /* coral-pink - for call-to-action buttons */
    --highlight-color: #F6C7C4;   /* tea-rose-red - for subtle highlights */
    --purple-gradient: linear-gradient(135deg, #061148, #001464);
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --line-height-body: 1.6;
}

.qualifying-exam-page body,
.qualifying-exam-page p,
.qualifying-exam-page h1,
.qualifying-exam-page h2,
.qualifying-exam-page h3,
.qualifying-exam-page h4,
.qualifying-exam-page li {
    font-family: var(--font-primary);
    line-height: var(--line-height-body);
}

/* Update floating button to match site color palette */
.floating-mcq-button {
    background-color: var(--cta-color);
    color: var(--dark-accent);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
}

.floating-mcq-button i {
    color: var(--dark-accent);
}

.floating-mcq-button:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.25);
}

.floating-mcq-button:hover i {
    color: var(--accent-color);
}

/* Animations for dramatic effect */
@keyframes celebrateIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .qualifying-exam-page .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .qualifying-exam-page .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .qualifying-exam-page .hero-section p {
        font-size: 1rem;
    }
}

/* Updated styles for the brand transition in the header */
.qualifying-exam-page .logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Consistent spacing between logo and text */
}

.qualifying-exam-page .site-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.qualifying-exam-page .site-name {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.brand-transition {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

/* Make both icons the same size with consistent spacing */
.university-logo, .passmcq-icon {
    height: 2.5rem !important;
    width: auto;
}

.passmcq-icon {
    margin: 0 5px 0 10px; /* Increased left margin to match university logo spacing */
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .site-name {
        font-size: 1.2rem;
    }
    
    .university-logo, .passmcq-icon {
        height: 2rem !important;
    }
}

/* Improved layout for feature cards and testimonials on desktop */
.qualifying-exam-page .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.qualifying-exam-page .feature-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-top: 4px solid var(--primary-color);
    width: 100%;
}

.qualifying-exam-page .feature-details {
    width: 100%;
}

.qualifying-exam-page .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto;
}

.qualifying-exam-page .testimonial-card {
    background-color: var(--light-purple);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .qualifying-exam-page .content-block {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .qualifying-exam-page .feature-card {
        padding: 2.5rem;
    }
    
    .qualifying-exam-page .testimonial-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .qualifying-exam-page .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure buttons use the purple color scheme */
.qualifying-exam-page .cta-button {
    background-color: var(--accent-color);
    border: 2px solid transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qualifying-exam-page .cta-button:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.qualifying-exam-page .cta-button.large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
}

.qualifying-exam-page .cta-button.large:hover {
    background-color: white;
    color: var(--primary-color);
}

.qualifying-exam-page .hero-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--highlight-color); /* Using tea-rose-red for better contrast */
    font-weight: 400;
}

/* Add a prominent passMCQ link to the mobile navigation */
.mobile-nav-mcq-link {
    display: block;
    margin: 20px 15px;
    padding: 12px 15px;
    background-color: var(--cta-color);
    color: var(--dark-accent);
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-mcq-link i {
    margin-right: 8px;
    color: var(--dark-accent);
}

.mobile-nav-mcq-link:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.mobile-nav-mcq-link:hover i {
    color: var(--accent-color);
}

/* Promotion Styling - Matching passEE design exactly */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    justify-items: start;
}

.promotion-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(6, 17, 72, 0.1);
    width: 100%;
    max-width: 400px;
}

.promotion-card.active {
    border-color: var(--cta-color);
    box-shadow: 0 8px 25px rgba(241, 156, 150, 0.15);
}

.promotion-card.upcoming {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(133, 92, 166, 0.15);
}

.promotion-card.expired {
    opacity: 0.6;
    border-color: #ccc;
}

.promotion-badge-bundle {
    display: flex;
    gap: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
}

.promotion-badge {
    background: var(--cta-color);
    color: #fff;
    padding: 0.28em 0.95em;
    border: 2px solid rgba(241, 156, 150, 0.6);
    border-radius: 10px 0 0 0;
    position: relative;
    z-index: 3;
    font-weight: 700;
    line-height: 1.1;
    font-size: 0.93em;
}

.promotion-badge.new {
    background: #28a745;
    color: #fff;
    border: 2px solid #90ee90;
}

.promotion-card.upcoming .promotion-badge {
    background: var(--accent-color);
    border-color: rgba(133, 92, 166, 0.6);
}

.promotion-card.expired .promotion-badge,
.promotion-badge.expired {
    background: #DC3545;
    color: #fff;
    border: 2px solid #fdc6cb;
}

.promotion-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-accent);
}

.promotion-details {
    margin-top: 1rem;
}

.promotion-details p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.promotion-date {
    font-style: italic;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .promotion-grid {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    
    .promotion-card {
        padding: 1.5rem;
        max-width: 100%;
    }
}

/* App Store Buttons Styles */
.app-store-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.app-store-buttons .cta-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 320px;
    min-height: 80px;
    border: 2px solid transparent;
}

.app-store-buttons .cta-button i {
    font-size: 2rem;
    flex-shrink: 0;
}

.app-store-buttons .cta-button span {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Apple App Store buttons */
.app-store-buttons .cta-button[href*="apps.apple.com"] {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.app-store-buttons .cta-button[href*="apps.apple.com"]:hover {
    background: #e8e8e8;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.app-store-buttons .cta-button[href*="apps.apple.com"] i {
    color: #000000;
}

/* Google Play Store buttons */
.app-store-buttons .cta-button[href*="play.google.com"] {
    background: #e8f0fe;
    border-color: rgba(66, 133, 244, 0.3);
    color: var(--text-primary);
}

.app-store-buttons .cta-button[href*="play.google.com"]:hover {
    background: #d2e3fc;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.2);
}

.app-store-buttons .cta-button[href*="play.google.com"] i {
    color: #4285F4;
}

/* Web app buttons */
.app-store-buttons .cta-button[href*="app.pass-mcq.ca"] {
    background: #E8D5F2;
    border-color: rgba(133, 92, 166, 0.3);
    color: var(--text-primary);
}

.app-store-buttons .cta-button[href*="app.pass-mcq.ca"]:hover {
    background: #D4B8E5;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(133, 92, 166, 0.2);
}

.app-store-buttons .cta-button[href*="app.pass-mcq.ca"] i {
    color: var(--accent-color);
}

/* When app-store-buttons is inside FAQ items on desktop, break out of faq-item padding */
.faq-item .app-store-buttons,
.faq-answer .app-store-buttons {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 768px) {
    .app-store-buttons {
        flex-direction: column;
        max-width: 100%;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    /* When app-store-buttons is inside content-block, break out of content-block padding to match free-trial spacing */
    .content-block .app-store-buttons,
    .cta-button-container.app-store-buttons {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* When app-store-buttons is inside FAQ items, break out of faq-item padding */
    .faq-item .app-store-buttons,
    .faq-answer .app-store-buttons {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .app-store-buttons .cta-button {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        padding: 0.75rem 1rem;
        min-height: 60px;
        justify-content: center;
    }
    
    .app-store-buttons .cta-button i {
        font-size: 1.4rem;
    }
    
    .app-store-buttons .cta-button span {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Latest News CTA – synced from pass-ee.ca */

/* Latest News CTA – synced from pass-ee.ca */
/* Floating CTA buttons: shared styling for passMCQ and Latest News */
.floating-mcq-button,
.floating-news-button {
    position: fixed;
    bottom: 20px;
    background-color: var(--cta-color);
    color: var(--dark-accent);
    padding: 12px 15px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
    line-height: 1.3;
    width: 140px;
    border: 2px solid transparent;
}

.floating-cta-stack {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    z-index: 1000;
}

.floating-cta-stack .floating-mcq-button,
.floating-cta-stack .floating-news-button {
    position: static;
}

.floating-mcq-button {
    left: 20px;
    bottom: calc(20px + 75px);
}

.floating-news-button {
    left: 20px;
    bottom: 20px;
    background-color: var(--accent-color);
    color: #ffffff;
}

.floating-news-button i {
    color: #ffffff;
}

.floating-news-button .floating-news-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ffffff;
    color: var(--accent-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 0;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
}

.floating-news-button .floating-news-close:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: scale(1.05);
}

.floating-news-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    display: none;
}

.floating-mcq-button i {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--dark-accent);
}

.floating-news-button i {
    color: #ffffff;
}

.floating-mcq-button span,
.floating-news-button span {
    display: block;
    width: 100%;
    line-height: 1.2;
}

.floating-mcq-button:hover,
.floating-news-button:hover {
    background-color: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(133, 92, 166, 0.25);
}

.floating-mcq-button:hover i,
.floating-news-button:hover i {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .floating-mcq-button,
    .floating-news-button {
        width: 120px;
        padding: 6px 8px;
        bottom: 15px;
        font-size: 0.75rem;
        line-height: 1.2;
        min-height: auto;
    }

    .floating-cta-stack {
        left: 15px;
        bottom: 15px;
        gap: 5px;
    }

    .floating-mcq-button {
        left: 15px;
        bottom: calc(15px + 70px);
    }

    .floating-news-button {
        left: 15px;
        bottom: 15px;
    }

    .floating-news-button .floating-news-close {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .floating-mcq-button i,
    .floating-news-button i {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .floating-mcq-button span,
    .floating-news-button span {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}
