/* DC Brains - Clean, Minimal, Mobile-First CSS */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.nav-brand .logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand .logo-img:hover {
    transform: scale(1.05);
}



.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
    background-color: #ecf0f1;
}

.nav-btn {
    background-color: #e74c3c !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    background-color: #c0392b !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-btn.active {
    background-color: #c0392b !important;
    color: white !important;
}



.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 12rem 0 5rem 0;
    text-align: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 160px;
    padding: 15px 30px;
    font-size: 1.1rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #3498db;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 1rem 0;
}

.card .duration {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    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;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Admin Styles */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.admin-nav {
    background: #34495e;
    padding: 1rem 0;
    position: relative;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.admin-nav a:hover {
    background-color: #2c3e50;
}

.admin-content {
    padding: 2rem 0;
}

/* Admin Interface Styles */
.btn-small {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-success {
    color: white;
    background-color: #28a745;
}

.badge-secondary {
    color: white;
    background-color: #6c757d;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 3px;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom-links a {
    color: #bdc3c7;
    text-decoration: none;
}

/* Image Upload Styles */
.image-upload {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.image-upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload:hover,
.image-upload-container:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.image-upload.dragover,
.image-upload-container.dragover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.upload-text {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.upload-text strong {
    color: #3498db;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.upload-progress {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
}

.image-upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.image-url-toggle {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.image-url-toggle:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .image-upload-container {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
    
    .image-upload-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Design */
/* Medium screens and foldable devices */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-buttons {
        gap: 2rem;
    }
    
    .hero-buttons .btn {
        min-width: 180px;
        padding: 16px 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-btn {
        margin-top: 1rem;
        display: inline-block;
        width: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-brand .logo-img {
        height: 45px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
        background-attachment: scroll;
        min-height: 50vh;
    }

    .hero-buttons {
        gap: 1.25rem;
    }

    .hero-buttons .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }

    .section {
        padding: 2rem 0;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Admin Responsive Styles */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.75rem 0;
    }
    
    .admin-header .container > div {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .admin-nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background: #34495e;
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .admin-nav-menu.active {
        left: 0;
    }
    
    .admin-nav-menu li {
        width: 100%;
    }
    
    .admin-nav-menu a {
        display: block;
        padding: 1.25rem 2rem;
        border-bottom: 1px solid #2c3e50;
        font-size: 1.1rem;
        min-height: 56px;
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .admin-nav-menu a:hover {
        background-color: #2c3e50;
        transform: translateX(5px);
        transition: all 0.3s ease;
    }
    
    .admin-nav-menu a.active {
        background-color: #3498db;
        border-left: 4px solid #2980b9;
    }
    
    .admin-nav-menu a.active::after {
        content: '●';
        position: absolute;
        right: 2rem;
        color: #fff;
    }
    
    .admin-content {
        padding: 1rem 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .admin-nav-menu {
        top: 140px;
        height: calc(100vh - 140px);
    }
    
    .admin-nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-dropdown {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 140px;
}

.lang-dropdown option {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.lang-dropdown:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.lang-dropdown:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-link:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
}

.lang-link.active {
    background-color: #3498db;
    color: white;
}

.lang-link.active:hover {
    background-color: #2980b9;
}

.flag {
    width: 20px;
    height: 15px;
    display: inline-block;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

.flag-en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjE1IiBmaWxsPSIjMDEyMTY5Ii8+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIxLjE1IiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB5PSIyLjMiIHdpZHRoPSIyMCIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQ0UxMTI0Ii8+CjxyZWN0IHk9IjQuNiIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHk9IjYuOSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IiNDRTExMjQiLz4KPHJlY3QgeT0iOS4yIiB3aWR0aD0iMjAiIGhlaWdodD0iMS4xNSIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeT0iMTEuNSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IiNDRTExMjQiLz4KPHJlY3QgeT0iMTMuOCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHdpZHRoPSI4IiBoZWlnaHQ9IjciIGZpbGw9IiMwMTIxNjkiLz4KPC9zdmc+');
}

.flag-vi {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMCAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjE1IiBmaWxsPSIjREEwMjBFIi8+Cjxwb2x5Z29uIHBvaW50cz0iMTAsMyAxMS4yLDYuMiAxNSw2LjIgMTIuNCw4LjQgMTMuNiwxMS42IDEwLDkuNCAwLjQsMTEuNiA3LjYsOC40IDUsNi4yIDguOCw2LjIiIGZpbGw9IiNGRkRENDAiLz4KPC9zdmc+');
}

.lang-name {
    font-weight: 500;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .lang-dropdown {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .lang-link {
        padding: 0.5rem 1rem;
        border-radius: 6px;
    }
    
    .flag {
        width: 24px;
        height: 18px;
    }
}

/* Team Section Specific Styles */
.team-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.team-section .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.team-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.team-section .section-underline {
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.team-section .section-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.team-carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-carousel {
    position: relative;
    height: 550px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    background: white;
}

.team-member-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem;
    box-sizing: border-box;
}

.team-member-card.active {
    opacity: 1;
    transform: translateX(0);
}

.team-member-card.prev {
    transform: translateX(-100%);
}

.member-photo-wrapper {
    flex: 0 0 220px;
    margin-right: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo, .member-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-photo-placeholder {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 700;
}

.member-position {
    font-size: 1.2rem;
    color: #3498db;
    margin: 0 0 1.2rem 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.member-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.member-courses {
    margin: 0 0 1.2rem 0;
    font-size: 1rem;
    background: #e3f2fd;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
}

.member-courses strong {
    color: #2c3e50;
    font-weight: 600;
}

.member-bio {
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0 0 1.8rem 0;
    font-size: 1rem;
}

.member-social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.social-btn.facebook { background: #3b5998; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-btn.tiktok { background: #000000; }
.social-btn.youtube { background: #ff0000; }
.social-btn.website { background: #6c757d; }
.social-btn.email { background: #28a745; }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-nav:hover {
    background: #3498db;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: #3498db;
    transform: scale(1.3);
}

/* YouTube Videos Section */
.youtube-section {
    padding: 5rem 0;
    background: #ffffff;
}

.youtube-section .section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.youtube-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.youtube-section .section-underline {
    width: 80px;
    height: 4px;
    background: #e74c3c;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.youtube-section .section-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.youtube-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.youtube-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.youtube-thumbnail {
    position: relative;
    overflow: hidden;
}

.youtube-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-card:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 4rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.youtube-card:hover .play-overlay {
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-info {
    padding: 1.5rem;
}

.youtube-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.youtube-info h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.youtube-info h3 a:hover {
    color: #e74c3c;
}

.youtube-info p {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

/* Responsive Design for YouTube Section */
@media (max-width: 992px) {
    .youtube-section .section-title {
        font-size: 2rem;
    }
    
    .youtube-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .youtube-thumbnail img {
        height: 160px;
    }
    
    .play-overlay {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .youtube-section {
        padding: 3rem 0;
    }
    
    .youtube-section .section-title {
        font-size: 1.8rem;
    }
    
    .youtube-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .youtube-thumbnail img {
        height: 200px;
    }
    
    .play-overlay {
        font-size: 3.5rem;
    }
    
    .youtube-info {
        padding: 1rem;
    }
    
    .youtube-info h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 576px) {
    .youtube-section .section-title {
        font-size: 1.6rem;
    }
    
    .youtube-thumbnail img {
        height: 160px;
    }
    
    .play-overlay {
        font-size: 2.5rem;
    }
    
    .youtube-info h3 {
        font-size: 1.1rem;
    }
    
    .youtube-info p {
        font-size: 0.9rem;
    }
}

/* Responsive Design for Team Section */
@media (max-width: 992px) {
    .team-carousel {
        height: auto;
        min-height: 500px;
    }
    
    .member-photo-wrapper {
        flex: 0 0 180px;
    }
    
    .member-photo, .member-photo-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .member-name {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .team-member-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .member-photo-wrapper {
        flex: none;
        margin: 0 0 2rem 0;
    }
    
    .member-photo, .member-photo-placeholder {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    
    .member-name {
        font-size: 1.6rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .team-carousel {
        height: auto;
        min-height: 450px;
    }
    
    .team-carousel-container {
        padding: 0 1rem;
    }
    
    .member-position::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 3rem 0;
    }
    
    .team-carousel-container {
        padding: 0 0.5rem;
    }
    
    .team-member-card {
        padding: 1.5rem 1rem;
    }
    
    .member-photo, .member-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===================================
   TikTok Icon Fixes and Fallbacks
   ================================= */

/* Custom TikTok icon using CSS when Font Awesome fails */
.tiktok-icon-fallback {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background: #000;
    color: white;
    text-align: center;
    line-height: 1.2em;
    border-radius: 20%;
    font-weight: bold;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
}

.tiktok-icon-fallback::before {
    content: "TT";
}

/* Alternative TikTok icon using Unicode music note */
.tiktok-unicode::before {
    content: "🎵";
    font-style: normal;
}

/* Ensure Font Awesome TikTok icon loads properly */
.fab.fa-tiktok,
.fa-brands.fa-tiktok {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

/* Enhanced TikTok styling */
.social-btn.tiktok {
    background: #000000 !important;
    position: relative;
}

.social-btn.tiktok:hover {
    background: #333333 !important;
}

/* TikTok icon loading detection and fallback */
.tiktok-with-fallback {
    position: relative;
}

.tiktok-with-fallback .fa-tiktok {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands Free", "FontAwesome";
}

/* If TikTok icon appears as white square, this will help */
.tiktok-with-fallback .fa-tiktok:empty::before,
.tiktok-with-fallback .fa-tiktok[aria-hidden="true"]::before {
    content: "\f2c4" !important; /* TikTok Unicode in Font Awesome */
}

/* Ultimate fallback - if Font Awesome completely fails */
.tiktok-text-fallback {
    display: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    background: #000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
}

/* Show text fallback if icon fails */
@supports not (font-family: "Font Awesome 6 Brands") {
    .fa-tiktok {
        display: none;
    }
    .tiktok-text-fallback {
        display: inline-block;
    }
}

/* Footer specific TikTok fixes */
footer .fa-tiktok {
    font-size: 1.2rem;
}

/* Team section TikTok fixes */
.social-btn .fa-tiktok {
    font-size: 16px;
    line-height: 1;
}

/* Admin interface TikTok fixes */
.social-link.social-tiktok {
    background: #000000;
}

.social-link.social-tiktok:hover {
    background: #333333;
}

/* CSS-only TikTok fallback solution */
.tiktok-icon-wrapper {
    position: relative;
    display: inline-block;
}

.tiktok-icon-wrapper .fa-tiktok {
    display: inline-block;
}

.tiktok-icon-wrapper .tiktok-css-fallback {
    display: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9em;
    background: #000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

/* Show fallback when Font Awesome fails to load TikTok icon */
@supports not (font-family: "Font Awesome 6 Brands") {
    .tiktok-icon-wrapper .fa-tiktok {
        display: none;
    }
    .tiktok-icon-wrapper .tiktok-css-fallback {
        display: inline-block;
    }
}

/* Alternative detection method - if icon appears as empty */
.tiktok-icon-wrapper .fa-tiktok:empty + .tiktok-css-fallback {
    display: inline-block;
}

.tiktok-icon-wrapper .fa-tiktok:empty {
    display: none;
}