:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #e8f0fe;
    --secondary: #28a745;
    --accent: #dc3545;
    --gold: #ffc107;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border: #dee2e6;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn-primary, .btn-outline, .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: transparent;
}

.btn-login {
    background: transparent;
    color: var(--primary);
    padding: 0.5rem 1rem;
}

.btn-login:hover {
    color: var(--primary-dark);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
}

.main-nav.scrolled {
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
}

.logo-mark {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 6px;
    position: relative;
}

.logo-mark::after {
    content: 'N';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Source Serif Pro', serif;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Mobile Navigation Active State */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    z-index: 999;
}

/* Mobile Toggle Animation */
.mobile-toggle {
    transition: transform 0.3s ease;
}

.mobile-toggle.active {
    transform: rotate(90deg);
}

/* Ensure no horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover, .btn-outline:hover, .nav-link:hover {
        transform: none;
    }
    
    .course-card:hover, .program-card:hover, .audience-card:hover {
        transform: none;
        border-color: var(--border);
    }
    
    .course-card:active, .program-card:active, .audience-card:active {
        border-color: var(--primary);
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Safe area insets for modern phones */
@supports (padding: max(0px)) {
    .nav-container, .hero, .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .main-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.6;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.hero-scroll a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Mission Section */
.mission {
    padding: 6rem 0;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.mission-statement {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.mission-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    color: var(--secondary);
}

.mission-visual {
    display: grid;
    gap: 1.5rem;
}

.visual-card {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.visual-card:hover {
    background: var(--primary-light);
}

.visual-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.visual-card h3 {
    margin-bottom: 0.5rem;
}

/* Programs Section */
.programs {
    padding: 6rem 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.program-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.program-card:hover {
    border-color: var(--primary);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.program-card h3 {
    margin-bottom: 1.5rem;
}

.program-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.program-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--gray);
}

.program-list li:last-child {
    border-bottom: none;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.program-link:hover {
    gap: 1rem;
}

/* Courses Section */
.courses {
    padding: 6rem 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.course-card:hover {
    border-color: var(--primary);
}

.course-card.featured {
    border: 2px solid var(--gold);
}

.course-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gold);
    color: var(--dark);
    padding: 0.25rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-header {
    margin-bottom: 1.5rem;
}

.course-header h3 {
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.course-meta i {
    margin-right: 0.25rem;
}

.course-description {
    margin-bottom: 1.5rem;
    color: var(--gray);
    min-height: 80px;
}

.course-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.course-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-enroll {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-enroll:hover {
    background: var(--primary-dark);
}

.view-all {
    text-align: center;
}

/* Methodology Section */
.methodology {
    padding: 6rem 0;
    background: var(--light-gray);
}

.methods-grid {
    max-width: 800px;
    margin: 0 auto;
}

.method-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.method-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    min-width: 60px;
}

.step-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.step-content i {
    color: var(--primary);
}

/* Certification Section */
.certification {
    padding: 6rem 0;
    background: var(--white);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cert-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cert-features {
    list-style: none;
    margin: 2rem 0;
}

.cert-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.cert-features i {
    color: var(--secondary);
}

.cert-note {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

.certificate-sample {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.cert-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.cert-logo {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 6px;
    margin: 0 auto 1rem;
    position: relative;
}

.cert-logo::after {
    content: 'NIDHA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.cert-body {
    margin: 2rem 0;
}

.cert-body h4 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 1rem 0;
}

.cert-body h5 {
    font-size: 1.25rem;
    margin: 1rem 0;
}

.cert-details {
    text-align: left;
    margin-top: 1.5rem;
    padding-left: 1rem;
}

.cert-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.signature-line {
    width: 150px;
    height: 1px;
    background: var(--dark);
    margin: 0 auto 0.5rem;
}

/* Audience Section */
.audience {
    padding: 6rem 0;
    background: var(--light-gray);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.audience-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.audience-card:hover {
    border-color: var(--primary);
}

.audience-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.audience-card h3 {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
}

.footer-top {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-text h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--white);
}

.footer-logo-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.contact-info i {
    width: 20px;
    color: var(--primary);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    /* Updated: Hero buttons side by side on mobile */
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 3rem;
        gap: 1rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        flex: 1;
        min-width: 150px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Updated: CTA buttons side by side on mobile */
    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem;
        gap: 1rem;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        flex: 1;
        min-width: 150px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .methods-grid {
        padding: 0 1rem;
    }
    
    .method-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        min-width: auto;
    }
    
    .mission-features {
        grid-template-columns: 1fr;
    }
    
    .visual-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .mission-text h2 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .course-card {
        padding: 1.5rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .audience-card {
        padding: 1.5rem;
    }
    
    .method-step {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Updated: Smaller screen button adjustments */
    .hero-actions {
        max-width: 350px;
        gap: 0.75rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        min-width: 140px;
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .cta-actions {
        max-width: 350px;
        gap: 0.75rem;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        min-width: 140px;
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .certificate-sample {
        padding: 1.5rem;
    }
    
    .cert-body h4 {
        font-size: 1.5rem;
    }
    
    .cert-body h5 {
        font-size: 1.1rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-mark {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.25rem;
        margin: 0;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .mobile-toggle {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        top: 70px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    /* Updated: Extra small screen button adjustments */
    .hero-actions {
        max-width: 100%;
        gap: 0.5rem;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        min-width: 130px;
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .cta-actions {
        max-width: 100%;
        gap: 0.5rem;
    }
    
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        min-width: 130px;
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero-actions, .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .course-features {
        flex-direction: column;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .course-price {
        text-align: center;
        width: 100%;
    }
    
    .btn-enroll {
        width: 100%;
    }
    
    .program-list {
        font-size: 0.9rem;
    }
}

/* New: Very small mobile screens (under 320px) */
@media (max-width: 320px) {
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        max-width: 280px;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-outline,
    .cta-actions .btn-primary,
    .cta-actions .btn-outline {
        min-width: 100%;
        width: 100%;
    }
}

/* Fix horizontal overflow in hero section */
.hero {
    width: 100%;
    overflow-x: hidden;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.hero-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0;
    }
    
    .stat {
        padding: 0.5rem;
    }
    
    .stat h3 {
        font-size: 1.75rem;
    }
    
    .stat p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat {
        text-align: center;
    }
}

/* Prevent all horizontal scrolling globally */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

img, video, canvas {
    max-width: 100%;
}

/* Fix any potential overflow in other sections */
.container {
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

/* Ensure no content exceeds viewport */
section {
    width: 100%;
    overflow: hidden;
}


/* Certification Section */
.certification {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Certificate Showcase Layout */
.certificate-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Certificate Details */
.cert-feature-list {
    display: grid;
    gap: 1.5rem;
}

.cert-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.cert-feature:hover {
    transform: translateX(10px);
    border-left-color: var(--gold);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Certificate Frame */
.certificate-frame {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.certificate-design {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Beautiful Background Layers */
.cert-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 40%, rgba(0, 86, 179, 0.03) 40%),
        linear-gradient(-135deg, transparent 40%, rgba(0, 86, 179, 0.03) 40%),
        radial-gradient(circle at 20% 80%, rgba(40, 167, 69, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.cert-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" opacity="0.03"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Arial" font-size="60" font-weight="bold" fill="%230056b3">NIDHA</text></svg>');
    background-repeat: repeat;
    z-index: 0;
}

.cert-border-design {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(0, 86, 179, 0.1);
    border-radius: 15px;
    z-index: 0;
}

.certificate-content {
    position: relative;
    z-index: 1;
}

/* Certificate Header */
.cert-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 86, 179, 0.1);
    position: relative;
}

.academy-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 86, 179, 0.15);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.academy-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    line-height: 1;
}

.academy-fullname {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.cert-title-section {
    margin-top: 1rem;
}

.cert-main-title {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.cert-main-title::before,
.cert-main-title::after {
    content: "✧";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.2rem;
}

.cert-main-title::before {
    left: 0;
}

.cert-main-title::after {
    right: 0;
}

.cert-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Certificate Body */
.cert-body {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.student-name {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin: 1.5rem 0;
    padding: 1rem 0;
    position: relative;
    display: inline-block;
}

.student-name::before,
.student-name::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.student-name::before {
    left: 0;
}

.student-name::after {
    bottom: 0;
    top: auto;
}

.course-label {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-style: italic;
}

.course-name {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 1rem 0 2rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.08) 0%, rgba(0, 86, 179, 0.04) 100%);
    border-radius: 10px;
    display: inline-block;
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
}

.cert-achievement {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.achievement-text {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

/* Certificate Footer */
.cert-footer {
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 86, 179, 0.1);
}

.cert-meta-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    border-radius: 10px;
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.signatures-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.signature {
    text-align: center;
    flex: 1;
}

.signature-line {
    width: 150px;
    height: 1px;
    background: var(--dark);
    margin: 0 auto 0.75rem;
    position: relative;
}

.signature-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark);
}

.signer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.signer-title {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

.official-seal {
    text-align: center;
    flex-shrink: 0;
}

.seal-ring {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--primary);
    font-size: 2rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.seal-text {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Certificate Footer Note */
.certificate-footer-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 86, 179, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 86, 179, 0.2);
}

.certificate-footer-note p {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.certificate-footer-note i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Responsive Certificate */
@media (max-width: 1024px) {
    .certificate-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .certificate-design {
        padding: 1.5rem;
    }
    
    .student-name {
        font-size: 2rem;
    }
    
    .course-name {
        font-size: 1.5rem;
        padding: 0.75rem 2rem;
    }
}

@media (max-width: 768px) {
    .cert-meta-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .signatures-section {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .signature {
        width: 100%;
        max-width: 250px;
    }
    
    .student-name {
        font-size: 1.75rem;
    }
    
    .cert-main-title {
        font-size: 1.75rem;
    }
    
    .academy-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .logo-text {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .certificate-design {
        padding: 1rem;
    }
    
    .cert-body {
        padding: 0 1rem;
    }
    
    .student-name {
        font-size: 1.5rem;
    }
    
    .course-name {
        font-size: 1.25rem;
        padding: 0.5rem 1.5rem;
    }
    
    .cert-main-title {
        font-size: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .cert-main-title::before,
    .cert-main-title::after {
        font-size: 1rem;
    }
    
    .seal-ring {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}