/* Reset and base styles */
:root {
    /* Modern Professional Color Scheme */
    --primary-color: #2563eb;        /* Deep blue */
    --primary-light: #3b82f6;        /* Light blue */
    --primary-dark: #1d4ed8;         /* Dark blue */
    --secondary-color: #10b981;      /* Teal/Green */
    --accent-color: #f59e0b;         /* Amber */
    --text-dark: #1f2937;            /* Dark gray for text */
    --text-light: #6b7280;           /* Light gray for secondary text */
    --bg-light: #f9fafb;             /* Very light gray for backgrounds */
    --bg-white: #ffffff;             /* White */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Header styles */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover:after, nav a.active:after {
    width: 100%;
}

nav a.active {
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-weight: 600;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

/* Hero section */
.hero {
    padding: 80px 0;
    background: linear-gradient(120deg, var(--bg-white) 60%, var(--primary-light) 60%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #0d9668;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Stats section */
.stats {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Features section */
.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-box ul {
    padding-left: 20px;
}

.feature-box li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.feature-box li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Case Studies Page */
.case-studies {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.case-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}

.case-stats {
    display: flex;
    gap: 30px;
}

.case-stats .stat {
    text-align: center;
}

.case-stats .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.case-stats .label {
    font-size: 1rem;
    opacity: 0.9;
}

.case-content {
    padding: 30px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.case-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.industry-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-section h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.detail-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.detail-section p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.detail-section ul {
    list-style: none;
}

.detail-section ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.detail-section ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .cta-button {
    background-color: var(--accent-color);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.cta .cta-button:hover {
    background-color: #e29009;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: #d1d5db;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-light);
    margin-top: 10px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: white;
}

.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-social h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-light);
    margin-top: 10px;
}

.qrcode {
    width: 120px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        background: var(--bg-white);
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .stats .container {
        flex-direction: column;
    }
    
    .stat-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Page Hero */
.page-hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 90px 0 110px; /* 底部留白，配合弧形更自然 */
    background:
        radial-gradient(1200px 500px at -10% -20%, rgba(62,199,224,0.25), transparent 60%),
        radial-gradient(900px 450px at 110% -30%, rgba(11,99,246,0.23), transparent 60%),
        linear-gradient(135deg, #0f1838 0%, #0b63f6 55%, #3ec7e0 100%);
    border-bottom-left-radius: 50% 12%;
    border-bottom-right-radius: 50% 12%;
    overflow: hidden; /* 裁剪伪元素 */
}

/* 科技感点阵叠加 */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1.2px);
    background-size: 22px 22px;
    opacity: .35;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* 底部弧形高光增强层 */
.page-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -160px;
    transform: translateX(-50%);
    width: 140%;
    height: 360px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Features Detail */
.features-detail {
    padding: 80px 0;
}

.feature-category {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.category-icon i {
    font-size: 1.8rem;
    color: white;
}

.category-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
}

.feature-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.2rem;
    }
    .page-hero {
        padding: 70px 0 90px;
        border-bottom-left-radius: 50% 18%;
        border-bottom-right-radius: 50% 18%;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        margin: 0 0 20px 0;
    }
    
    .feature-image {
        height: 180px;
    }
}

/* Service Process Section */
.service-process {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.1;
}

.process-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.process-icon i {
    font-size: 1.5rem;
    color: white;
}

.process-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.process-item p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.process-item ul {
    list-style: none;
}

.process-item ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.process-item ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Contact Form Section */
.contact-form {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-content h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: grid;
    gap: 20px;
}

.info-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .process-item {
        text-align: center;
    }
    
    .process-icon {
        margin: 0 auto 20px;
    }
} 


/* About Page Styles */
.about-intro {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.member-company {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.member-contact {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.value-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        height: 250px;
    }
}

/* Teaching Center Styles */
.teaching-center {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.teaching-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Text Tutorials */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.teaching-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teaching-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.tutorial-list {
    list-style: none;
    margin-bottom: 20px;
}

.tutorial-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.tutorial-list li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Video Tutorials */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn i {
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

.video-card:hover .play-btn {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.video-duration {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-duration i {
    margin-right: 5px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.faq-answer ol {
    padding-left: 20px;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .teaching-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .teaching-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image,
    .video-thumbnail {
        height: 180px;
    }
}

/* Homepage: XGD Overview Cards (based on mini.html overview) */
.xgd-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.xgd-feature-item {
    position: relative;
    background: linear-gradient(145deg,#ffffff,#f5f8fc);
    border: 1px solid #e6eef5;
    border-radius: 14px;
    padding: 18px 18px 60px 18px;
    overflow: hidden;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.04), 0 2px 4px -1px rgba(0,0,0,0.04);
    transition: all .35s ease;
}
.xgd-feature-item:before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%,rgba(22,119,255,0.18),transparent 70%);
    top: -40px;right: -40px;
    transform: rotate(25deg);
}
.xgd-feature-item:after {
    content: "";
    position: absolute;
    width: 90px;height: 90px;
    background: radial-gradient(circle at 30% 30%,rgba(22,119,255,0.12),transparent 70%);
    bottom: -25px;left: -25px;
    border-radius: 50%;
}
.xgd-feature-item:hover {
    box-shadow: 0 10px 28px -6px rgba(0,82,217,0.25);
    transform: translateY(-4px);
    border-color:#d0e4f9;
}
.xgd-feature-icon {
    width: 46px;height:46px;
    background: linear-gradient(135deg,#1677ff,#3f95ff);
    border-radius: 14px;
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:20px;
    box-shadow:0 4px 10px -2px rgba(0,89,255,0.45);
    margin-bottom:14px;
}
.xgd-feature-item h3 {margin:0 0 10px 0;font-size:18px;color:#1a1f29;letter-spacing:.5px;}
.xgd-feature-item p {margin:0;font-size:13px;line-height:1.6;color:#4c5865;}
.xgd-feature-badge {
    position:absolute;bottom:14px;left:18px;
    background:#fff;border:1px solid #e1ecf7;color:#2a65c8;
    font-size:11px;font-weight:600;letter-spacing:.5px;
    padding:4px 10px;border-radius:30px;
    display:inline-flex;align-items:center;gap:4px;
    box-shadow:0 2px 4px rgba(0,0,0,0.06);
}
.xgd-feature-badge i {font-size:12px;}
.xgd-overview-visual {margin-top:34px;text-align:center;}
.xgd-overview-visual img {max-width:100%;border-radius:18px;box-shadow:0 12px 40px -12px rgba(0,70,160,0.25);} 

/* XGD modifiers */
.xgd-icon-cyan { background: linear-gradient(135deg,#13c2c2,#36cfc9) !important; }
.xgd-icon-purple { background: linear-gradient(135deg,#722ed1,#9254de) !important; }
.xgd-icon-orange { background: linear-gradient(135deg,#fa8c16,#ffa940) !important; }
.xgd-icon-green { background: linear-gradient(135deg,#52c41a,#73d13d) !important; }
.xgd-icon-red { background: linear-gradient(135deg,#ff4d4f,#ff7875) !important; }
.xgd-badge-cyan { color:#0b7979 !important; border-color:#b9ecec !important; }
.xgd-badge-purple { color:#4f2c91 !important; border-color:#e1d7f6 !important; }
.xgd-badge-orange { color:#b45507 !important; border-color:#ffe2c4 !important; }
.xgd-badge-green { color:#28620d !important; border-color:#d3f2c2 !important; }
.xgd-badge-red { color:#a82325 !important; border-color:#ffd6d6 !important; }

/* XGD subtitle in homepage */
.xgd-subtitle { text-align:right; margin-top:-40px; padding-bottom:18px; font-size:20px; color:#4c5865; letter-spacing:.5px; }

/* Responsive columns for XGD grid */
@media (max-width: 992px) {
    .xgd-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .xgd-feature-grid { grid-template-columns: 1fr; }
}
