/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-purple: #6A1B9A;
    --silver: #BDBDBD;
    --white: #FFFFFF;
    --turquoise: #26C6DA;
    --text-dark: #333;
    --text-light: #666;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-purple);
    color: var(--white);
    border-left: 5px solid var(--turquoise);
    padding: 20px;
    z-index: 1000;
    display: block;
    max-width: 800px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(106, 27, 154, 0.3);
}

.cookie-popup.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--turquoise);
    text-decoration: underline;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-purple);
    background: rgba(106, 27, 154, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),url('../images/crystallearn.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    background: var(--turquoise);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1e9aa8;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--turquoise);
}

.feature h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-light);
}

/* Registration Section */
.registration {
    padding: 80px 0;
    background: var(--white);
}

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

.reg-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    /* display: block; */
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--silver);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-purple);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--turquoise);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: var(--silver);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

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

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Knowledge Base Section */
.knowledge-base {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #e8f4f8);
}

.knowledge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.knowledge-base h2 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.knowledge-base p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.knowledge-list {
    list-style: none;
    margin-bottom: 2rem;
}

.knowledge-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.knowledge-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--turquoise);
    font-weight: bold;
}

.btn-secondary {
    background: var(--primary-purple);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a1580;
    transform: translateY(-2px);
}

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

.knowledge-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.knowledge-img:first-child {
    grid-column: 1 / -1;
    height: 200px;
}

/* Specialties Section */
.specialties {
    padding: 80px 0;
    background: var(--white);
}

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

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

.specialty-item {
    padding: 2rem;
    border: 2px solid #e8f4f8;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.specialty-item:hover {
    border-color: var(--turquoise);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(38, 198, 218, 0.1);
}

.specialty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.specialty-item h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.specialty-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .knowledge-images {
        grid-template-columns: 1fr;
    }

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

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .reg-form {
        padding: 2rem 1rem;
    }
}

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

    .hero {
        padding: 120px 0 80px;
    }

    .about,
    .registration {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

/* News Carousel Styles */
.news-carousel {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-carousel h2 {
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-card {
    min-width: 100%;
    display: flex;
    background: var(--white);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.news-card.active {
    opacity: 1;
    transform: translateX(0);
}

.news-image {
    width: 300px;
    
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    color: var(--turquoise);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    color: var(--primary-purple);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    color: var(--turquoise);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-link:hover {
    color: var(--primary-purple);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-purple);
}

.indicator:hover {
    background: var(--turquoise);
    border-color: var(--turquoise);
}

/* Thank You Page Styles */
.thank-you-content {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you-content h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.thank-you-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.thank-you-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-actions .btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .thank-you-content {
        padding: 2rem 0;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .news-carousel {
        padding: 2rem 0;
    }
    
    .news-carousel h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .carousel-container {
        margin: 0 1rem;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .carousel-btn {
        display: none;
    }
}

/* Enhanced Feature Cards */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

/* Laboratory Research Section */
.laboratory-research {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.research-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.research-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Tools and Equipment Section */
.tools-equipment {
    padding: 4rem 0;
    background: white;
}

.tools-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tools-list {
    margin-top: 2rem;
}

.tool-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.tool-item h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tools-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Community Section */
.community {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
}

.community-header {
    text-align: center;
    margin-bottom: 3rem;
}

.community-header .section-icon {
    color: white;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

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

.community-features .feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.community-features .feature-item h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* Certification Section */
.certification {
    padding: 4rem 0;
    background: white;
}

.cert-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.cert-icon-large {
    width: 400px;
    height: auto;
    color: #2c5aa0;
}

.cert-levels {
    margin: 2rem 0;
}

.cert-level {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cert-level:hover {
    border-color: #2c5aa0;
    background: #f8f9fa;
}

.cert-level h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.cert-duration {
    display: inline-block;
    background: #2c5aa0;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Mobile App Section */
.mobile-app {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.app-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.app-feature {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-feature h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.app-feature p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.app-download {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.download-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #1e3d72;
}

.app-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .tools-content,
    .cert-content,
    .app-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .app-download {
        flex-direction: column;
    }
    
    .cert-icon-large {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        display: block;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-icon {
        width: 48px;
        height: 48px;
    }
}