.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 90px;                  
    right: 20px;                   
    background: #25d366;           
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 9998;                 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    will-change: transform;        
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);         
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;  
}

.dark-mode-toggle {
    position: fixed;
    top: 100px;                    
    right: 20px;                   
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #e8f0fe;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1e4096;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: rotate(20deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

body.dark-mode .dark-mode-toggle {
    background: #1e4096;
    color: white;
    border-color: #2c5aa0;
}

body.dark-mode {
    background: #1a1a2e;           
    color: #e4e4e7;                
}

body.dark-mode .header {
    background: #16213e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

body.dark-mode .sidebar,
body.dark-mode .main-section,
body.dark-mode .quick-link-card,
body.dark-mode .featured-course-card,
body.dark-mode .review-card,
body.dark-mode .instructor-card,
body.dark-mode .news-item {
    background: #0f3460;
    border-color: #16213e;
    color: #e4e4e7;
}

body.dark-mode .institute-intro {
    background: #0f3460;
    border-color: #16213e;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4 {
    color: #e4e4e7;
}

body.dark-mode .statistics-section {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

body.dark-mode .newsletter-section {
    background: #16213e;
}

body.dark-mode .footer {
    background: #0f0f1e;
}

body.dark-mode .sidebar::-webkit-scrollbar {
    width: 12px !important;
    display: block !important;
}

body.dark-mode .sidebar::-webkit-scrollbar-track {
    background: #16213e !important;
}

body.dark-mode .sidebar::-webkit-scrollbar-thumb {
    background: #2c5aa0 !important;
    min-height: 40px;
}

body.dark-mode .sidebar::-webkit-scrollbar-thumb:hover {
    background: #3d6bb3 !important;
}

body.dark-mode .sidebar {
    scrollbar-color: #2c5aa0 #16213e !important;
    scrollbar-width: auto !important;
}

.reviews-section {
    padding: 60px 40px;
    background: white;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
}

.reviews-section h3 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.reviews-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 2px;
}

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

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.review-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.review-rating i {
    color: #fbbf24;                
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e8f0fe;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #1e4096;
}

.review-author h5 {
    color: #1e4096;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.review-author span {
    color: #666;
    font-size: 0.9rem;
}

.instructors-section {
    padding: 60px 40px;
    background: #f5f7fa;
    margin: 40px 0;
    border-radius: 15px;
}

.instructors-section h3 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.instructors-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 2px;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.instructor-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.instructor-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #1e4096;
    box-shadow: 0 5px 15px rgba(30, 64, 150, 0.3);
}

.instructor-card h4 {
    color: #1e4096;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.instructor-title {
    color: #2c5aa0;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.instructor-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.instructor-credentials {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.instructor-credentials span {
    background: #e8f0fe;
    color: #1e4096;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.instructor-credentials i {
    color: #1e4096;
}

.newsletter-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    margin: 40px 0;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(30, 64, 150, 0.3);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 15px 35px;
    background: white;
    color: #1e4096;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.review-card,
.instructor-card,
.featured-course-card,
.quick-link-card,
.whatsapp-float,
.dark-mode-toggle {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

img[loading="lazy"] {
    background: linear-gradient(90deg, #e8f0fe 25%, #f5f7fa 50%, #e8f0fe 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

@media (max-width: 768px) {
    .reviews-grid,
    .instructors-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .reviews-section,
    .instructors-section,
    .newsletter-section {
        padding: 40px 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
    }
    
    .dark-mode-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .instructor-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Event Cards */
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date-badge {
        width: 100%;
        max-width: 100px;
        margin: 0 auto 15px;
    }
    
    /* News Ticker */
    .ticker-content {
        font-size: 0.8rem;
        animation-duration: 45s !important;
    }
    
    .ticker-content span {
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-section h3,
    .instructors-section h3,
    .newsletter-section h3 {
        font-size: 1.5rem;
    }
    
    .review-card,
    .instructor-card {
        padding: 20px;
    }
    
    /* Reviews */
    .review-card {
        padding: 20px 15px;
    }
    
    .review-rating {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .review-author {
        padding-top: 15px;
    }
    
    .review-author img {
        width: 45px;
        height: 45px;
    }
    
    .review-author h5 {
        font-size: 1rem;
    }
    
    .review-author span {
        font-size: 0.85rem;
    }
    
    /* Newsletter */
    .newsletter-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .newsletter-section h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .newsletter-section p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .newsletter-form {
        gap: 8px;
    }
    
    .newsletter-form input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .newsletter-form button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    /* Events */
    .events-section {
        padding: 40px 20px;
    }
    
    .events-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .event-card {
        padding: 20px;
    }
    
    .event-content h4 {
        font-size: 1.2rem;
    }
    
    .event-content p {
        font-size: 0.9rem;
    }
    
    .event-meta {
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .event-meta span {
        font-size: 0.85rem;
    }
    
    .event-register-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Client Cards */
    .client-card {
        height: auto;
        min-height: 150px;
        padding: 15px 10px;
    }
    
    .client-logo-wrapper {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
    }
    
    .client-logo {
        max-width: 55px !important;
        max-height: 55px !important;
    }
    
    .client-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .client-card h5 {
        font-size: 0.85rem;
    }
    
    /* Accreditation Cards */
    .accreditation-card {
        height: auto;
        min-height: 220px;
        padding: 20px 15px;
    }
    
    .accreditation-logo-wrapper {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
        margin: 0 auto 15px;
    }
    
    .accreditation-logo {
        max-width: 75px !important;
        max-height: 75px !important;
    }
    
    .accreditation-badge {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .accreditation-card h4 {
        font-size: 0.95rem;
    }
    
    .accreditation-desc {
        font-size: 0.85rem;
    }
    
    /* News Ticker Mobile */
    .ticker-content {
        font-size: 0.75rem;
        animation-duration: 40s !important;
    }
    
    .ticker-content span {
        margin-right: 15px;
    }
}

.events-section {
    padding: 60px 40px;
    background: white;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
}

.events-section h3 {
    color: #1e4096;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.events-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    border-radius: 2px;
}

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

.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #e8f0fe;
    display: flex;
    gap: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(30, 64, 150, 0.15);
    border-color: #1e4096;
}

.event-date-badge {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    min-width: 70px;
    flex-shrink: 0;
}

.event-date-badge .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
}

.event-content {
    flex: 1;
}

.event-content h4 {
    color: #1e4096;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.event-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.event-meta span {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta i {
    color: #1e4096;
}

.event-register-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.event-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 64, 150, 0.3);
    text-decoration: none;
    color: white;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 30px;
    border-bottom: 2px solid #e8f0fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #1e4096;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f7fa;
    color: #1e4096;
}

.modal-body {
    padding: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.dashboard-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white;
}

.dashboard-card .stat {
    font-size: 2.5rem;
    font-weight: 700;
}

.course-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.course-progress {
    flex: 1;
    margin: 0 20px;
}

.progress-bar {
    height: 8px;
    background: #e8f0fe;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1e4096 0%, #2c5aa0 100%);
    transition: width 0.3s ease;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    border: 2px solid #e8f0fe;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #1e4096;
    background: #f5f7fa;
}

.payment-option.selected {
    border-color: #1e4096;
    background: #e8f0fe;
}

.payment-option i {
    font-size: 2rem;
    color: #1e4096;
    margin-bottom: 10px;
}

.payment-option span {
    display: block;
    font-weight: 600;
    color: #333;
}

.payment-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e8f0fe;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e4096;
}

.payment-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

body.dark-mode .modal-container {
    background: #0f3460;
    color: #e4e4e7;
}

body.dark-mode .modal-header {
    border-bottom-color: #16213e;
}

body.dark-mode .modal-header h3 {
    color: #e4e4e7;
}

body.dark-mode .course-list-item {
    background: #16213e;
}

body.dark-mode .payment-option {
    background: #16213e;
    border-color: #16213e;
}

body.dark-mode .form-group input {
    background: #16213e;
    border-color: #16213e;
    color: #e4e4e7;
}

@media print {
    .whatsapp-float,
    .dark-mode-toggle,
    .security-badge,
    .portal-btn,
    .newsletter-form,
    .modal-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 40px 20px;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date-badge {
        width: 100%;
    }
    
    .event-meta {
        justify-content: center;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}
