/* Public website styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* FIX: Prevent flickering */
    min-height: 120px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth transition for shrink animation */
    transition: min-height 0.25s ease, box-shadow 0.2s ease;
}

/* Shrunk state when scrolling */
.main-header.shrink {
    min-height: 80px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.navbar {
    padding: 1rem 0;
    position: relative;
    transition: padding 0.25s ease;
}

.main-header.shrink .navbar {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* FIX: Remove all transitions to prevent jumps */
    transition: none !important;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Smooth logo shrink */
    transition: font-size 0.25s ease, transform 0.25s ease;
}

/* Shrink logo when header shrinks */
.main-header.shrink .nav-logo a {
    font-size: 1.2rem;
}

.nav-logo i {
    color: #3498db;
    margin-right: 0.5rem;
    transition: font-size 0.25s ease;
}

.main-header.shrink .nav-logo i {
    font-size: 0.9rem;
}

/* Logo image smooth shrink */
.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height 0.25s ease, transform 0.25s ease;
    transform: translateZ(0);
}

.main-header.shrink .logo-img {
    height: 60px;
}

/* Removed - now handled in the centered version below */

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #3498db;
}

.enquiry-btn {
    background: #3498db;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.enquiry-btn:hover {
    background: #2980b9;
}

.login-btn {
    background: #2c3e50;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.login-btn:hover {
    background: #34495e;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 120px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 2rem 0;
    }
}


/* Error handling */
.field-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-control.error {
    border-color: #e74c3c;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-info {
    background: #3498db;
}

.notification-success {
    background: #27ae60;
}

.notification-warning {
    background: #f39c12;
}

.notification-error {
    background: #e74c3c;
}

/* Lazy loading images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}


/* 
Social Media Sharing Styles */
.floating-share-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
}

.floating-share-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.social-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.social-share-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.share-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-share-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.share-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.facebook-share {
    border-color: #1877f2;
}

.facebook-share:hover {
    background: #1877f2;
    color: white;
}

.twitter-share {
    border-color: #1da1f2;
}

.twitter-share:hover {
    background: #1da1f2;
    color: white;
}

.linkedin-share {
    border-color: #0077b5;
}

.linkedin-share:hover {
    background: #0077b5;
    color: white;
}

.whatsapp-share {
    border-color: #25d366;
}

.whatsapp-share:hover {
    background: #25d366;
    color: white;
}

.email-share {
    border-color: #ea4335;
}

.email-share:hover {
    background: #ea4335;
    color: white;
}

.copy-link {
    border-color: #6c757d;
}

.copy-link:hover {
    background: #6c757d;
    color: white;
}

.copy-link.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Newsletter Signup */
.newsletter-signup {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
}

.newsletter-signup h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #34495e;
    border-radius: 5px;
    background: #2c3e50;
    color: white;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: #bdc3c7;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3498db;
}

.newsletter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-btn:hover {
    background: #2980b9;
}

/* Footer Enhancements */
.footer-certifications {
    margin-top: 1.5rem;
}

.footer-certifications h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.cert-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cert-logo:hover {
    opacity: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.share-page-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.share-page-btn:hover {
    background: #2980b9;
}

/* Accessibility Enhancements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators for better accessibility */
button:focus,
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .course-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-share-modal {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .share-modal-content {
        background: #2c3e50;
        color: white;
    }
    
    .share-btn {
        background: #34495e;
        color: white;
        border-color: #4a5f7a;
    }
    
    .close-share-modal:hover {
        background: #34495e;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive adjustments for new features */
@media (max-width: 768px) {
    .floating-share-btn {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .share-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .print-btn {
        position: static;
        margin: 1rem 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .cert-logos {
        justify-content: center;
    }
}/* Cour
se Actions and Share Buttons */
.course-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.course-actions .btn {
    flex: 1;
}

.btn-share {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    min-width: 50px;
}

.btn-share:hover {
    background: #7f8c8d;
}

.btn-share:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Individual content sharing */
.content-share-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.card:hover .content-share-btn,
.course-card:hover .content-share-btn {
    opacity: 1;
    transform: translateY(0);
}

.content-share-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}



.inline-share-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.inline-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.inline-share-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
}

.inline-share-btn.facebook {
    background: #1877f2;
}

.inline-share-btn.twitter {
    background: #1da1f2;
}

.inline-share-btn.linkedin {
    background: #0077b5;
}

.inline-share-btn.whatsapp {
    background: #25d366;
}

.inline-share-btn:hover {
    transform: scale(1.1);
}

/* SEO and Accessibility Enhancements */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Schema.org microdata styling */
[itemscope] {
    position: relative;
}

/* Breadcrumb navigation */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* Performance and loading indicators */
.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile optimizations for sharing */
@media (max-width: 768px) {
    .course-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .course-actions .btn {
        width: 100%;
    }
    
    .btn-share {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .inline-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .content-share-btn {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 1rem;
        width: 100%;
        border-radius: 5px;
        height: auto;
        padding: 0.75rem;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .btn-share,
    .content-share-btn,
    .inline-share-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn-share,
    .content-share-btn,
    .inline-share-btn {
        transition: none;
    }
    
    .loading-indicator {
        animation: none;
        border-top-color: transparent;
    }
}

/* Lo
go Styles */
.nav-logo img.logo-img {
    max-height: 50px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo {
    max-height: 50px;
    max-width: 180px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Ensure logo link doesn't add extra spacing */
.nav-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .nav-logo img.logo-img {
        max-height: 40px;
        max-width: 150px;
    }
    
    .footer-logo {
        max-height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .nav-logo img.logo-img {
        max-height: 35px;
        max-width: 120px;
    }
    
    .footer-logo {
        max-height: 35px;
        max-width: 120px;
    }
}


/* Logo Styles Override - Optimized for Square Logos */
.nav-logo img.logo-img {
    height: 60px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
}

.footer-logo {
    height: 50px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* Responsive logo adjustments for square logos */
@media (max-width: 768px) {
    .nav-logo img.logo-img {
        height: 45px !important;
    }
    
    .footer-logo {
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .nav-logo img.logo-img {
        height: 35px !important;
    }
    
    .footer-logo {
        height: 35px !important;
    }
}


/* Full-width header alignment fix */
.main-header {
    width: 100%;
}

.navbar {
    width: 100%;
}

.nav-container {
    box-sizing: border-box;
}

/* Center logo and menu */
.nav-logo {
    flex-shrink: 0;
    text-align: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}


/* Remove any default body margins that might cause spacing */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure header starts at the very edge */
.main-header {
    margin: 0 !important;
    padding: 0 !important;
}

.navbar {
    margin: 0 !important;
}

/* Minimal padding for nav container */
.nav-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Responsive padding adjustments */
@media (min-width: 769px) {
    .nav-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 1200px) {
    .nav-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}


/* Debug and fix any spacing issues */
.nav-logo a {
    margin: 0 !important;
    padding: 0 !important;
}

.nav-logo {
    margin: 0 !important;
    padding: 0 !important;
}

/* Make sure logo image has no extra spacing */
.nav-logo img.logo-img {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}


/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 2rem;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0.5rem 0;
        display: none;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.5rem 2rem;
    }
    
    .dropdown-item:hover {
        padding-left: 2.5rem;
    }
}


/* Centered Navigation Layout */
.navbar {
    text-align: center;
}

.nav-logo img.logo-img {
    margin: 0 auto;
}

/* Adjust dropdown positioning for centered layout */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
}

/* Ensure buttons stay inline with menu items */
.enquiry-btn,
.login-btn {
    display: inline-block;
}

/* Desktop centered layout adjustments */
@media (min-width: 769px) {
    .nav-container {
        padding: 1.5rem 2rem;
    }
    
    .nav-logo {
        margin-bottom: 0.5rem;
    }
    
    .nav-menu {
        justify-content: center;
    }
}


/* Sticky Header with Scroll Effect - No Flicker */
.main-header {
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: box-shadow, padding;
}

.main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* Change layout when scrolled - Smooth transitions */
.nav-container {
    will-change: flex-direction, padding, gap;
}

.nav-container.scrolled {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    gap: 2rem;
}

.nav-logo {
    will-change: margin-bottom;
    transition: margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container.scrolled .nav-logo {
    margin-bottom: 0;
    order: 1;
}

.nav-menu {
    will-change: gap;
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container.scrolled .nav-menu {
    order: 2;
    justify-content: center;
    flex-grow: 1;
    gap: 1rem;
}

.nav-container.scrolled .nav-toggle {
    order: 3;
}

/* Smaller logo when scrolled - Smooth transition */
.nav-logo img.logo-img {
    will-change: height;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-container.scrolled .nav-logo img.logo-img {
    height: 40px !important;
}

/* Adjust dropdown position when scrolled */
.nav-dropdown .dropdown-menu {
    will-change: transform;
}

.nav-container.scrolled .nav-dropdown .dropdown-menu {
    left: 0;
    transform: translateY(-10px);
}

.nav-container.scrolled .nav-dropdown:hover .dropdown-menu {
    transform: translateY(0);
}

/* Mobile: keep centered layout even when scrolled */
@media (max-width: 768px) {
    .nav-container.scrolled {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .nav-container.scrolled .nav-logo {
        order: 1;
    }
    
    .nav-container.scrolled .nav-menu {
        order: 2;
    }
    
    .nav-container.scrolled .nav-logo img.logo-img {
        height: 35px !important;
    }
}


/* Prevent flicker and layout shift during scroll transition */
.nav-container {
    min-height: 140px;
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                flex-direction 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container.scrolled {
    min-height: 70px;
}

/* Ensure smooth logo transition without jump */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent menu from jumping */
.nav-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hardware acceleration for smoother transitions */
.main-header,
.nav-container,
.nav-logo,
.nav-logo img,
.nav-menu {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    perspective: 1000px;
}

/* Smaller buttons in scrolled state */
.nav-container.scrolled .enquiry-btn,
.nav-container.scrolled .login-btn {
    padding: 0.4rem 0.9rem !important;
    font-size: 0.85rem;
}


/* Fix reverse animation - ensure smooth transition back to centered */
.nav-container:not(.scrolled) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-container:not(.scrolled) .nav-logo {
    order: 0;
    margin-bottom: 0;
}

.nav-container:not(.scrolled) .nav-menu {
    order: 0;
    justify-content: center;
    flex-grow: 0;
}

.nav-container:not(.scrolled) .nav-toggle {
    order: 0;
}

/* Ensure logo size transitions smoothly in both directions */
.nav-logo img.logo-img {
    height: 60px !important;
}

.nav-container.scrolled .nav-logo img.logo-img {
    height: 45px !important;
}

/* Ensure all transitions are bidirectional */
.main-header,
.nav-container,
.nav-logo,
.nav-menu,
.nav-logo img.logo-img {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.4s;
}


/* Scroll to Top Button Styles */
.scroll-to-top-btn {
    position: fixed;
    bottom: 800px;
    right: 20px;
    z-index: 999;
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.scroll-to-top-btn:hover {
    background: #2980b9;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.scroll-to-top-btn:active {
    transform: scale(0.95) !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Ensure button is above other elements */
.scroll-to-top-btn {
    will-change: opacity, transform;
}


/* Ensure print-only elements are never visible on screen */
.print-only,
.print-header,
.print-footer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Only show print elements when actually printing */
@media print {
    .print-only,
    .print-header,
    .print-footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        left: auto !important;
    }
}


/* Hide breadcrumb navigation */
nav.breadcrumb,
.breadcrumb-nav,
.breadcrumb-list {
    display: none !important;
    visibility: hidden !important;
}


/* Hide newsletter signup - not needed */
.newsletter-signup,
.newsletter-form,
.newsletter-input,
.newsletter-btn {
    display: none !important;
}


/* Fix share modal visibility and styling */
.social-share-modal {
    z-index: 10000 !important;
}

.social-share-modal.active {
    display: flex !important;
}

.share-modal-content {
    position: relative;
    z-index: 10001;
    max-width: 500px;
    width: 90%;
    background: #2c3e50 !important;
    color: white;
    pointer-events: auto;
    padding: 2rem;
    border-radius: 15px;
}

.share-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #34495e;
    margin-bottom: 1.5rem;
}

.share-header h3 {
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #bdc3c7;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-share-modal:hover {
    color: #e74c3c;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white !important;
}

.share-btn i {
    font-size: 1.2rem;
}

.facebook-share {
    background: #1877f2;
}

.twitter-share {
    background: #1da1f2;
}

.linkedin-share {
    background: #0077b5;
}

.whatsapp-share {
    background: #25d366;
}

.email-share {
    background: #ea4335;
}

.copy-link {
    background: #6c757d;
    grid-column: span 2;
}

.copy-link:hover {
    background: #5a6268;
}

.copy-link.copied {
    background: #28a745 !important;
}

.copy-link.copied:hover {
    background: #28a745 !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .copy-link {
        grid-column: span 1;
    }
}
