/* Custom styles for Android Farsi Website */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Professional Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
    font-weight: 700;
}

.lead {
    font-family: 'Inter', 'Vazirmatn', sans-serif;
    font-weight: 400;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: slideInUp 1s ease-out 0.4s both;
}

/* Page Headers */
.page-header {
    margin-top: 76px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Cards */
.card {
    border-radius: 1.5rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-img-top {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Feature Icons */
.feature-icon {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Enhanced Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333 !important;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    color: white !important;
}

.navbar-nav .nav-link {
    font-family: 'Inter', 'Vazirmatn', sans-serif;
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar.scrolled .nav-link {
    color: white !important;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.3s ease;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer h5, .footer h6 {
    color: white !important;
}

.footer p, .footer span, .footer small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: white !important;
    text-decoration: none;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: white !important;
    padding-right: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Image and Vector Styles */
.hero-image {
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.about-image {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.vector-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.vector-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.feature-vector {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: #667eea;
    transition: all 0.3s ease;
    border: 3px solid rgba(102, 126, 234, 0.2);
}

.feature-vector:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: #667eea;
}

/* Decorative Elements */
.decorative-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-radius: 20px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    top: 50%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-grid-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-grid-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 991px) {
    .container, .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-lg-4, .col-md-6, .col-lg-6, .col-lg-8, .col-6, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .navbar {
        padding: 0.5rem 0.5rem !important;
    }
    .footer {
        padding: 1rem 0.5rem !important;
    }
    .hero-title, .display-4, .display-5 {
        font-size: 2rem !important;
    }
    .lead {
        font-size: 1.1rem !important;
    }
    .btn, .btn-lg, .btn-professional {
        padding: 0.5rem 1.2rem !important;
        font-size: 1rem !important;
    }
    .feature-card, .professional-card, .section-card, .info-card, .content-card, .card, .news-card, .arch-card, .topic-card, .tech-card {
        padding: 1.2rem !important;
        margin-bottom: 1.5rem !important;
        min-width: 0;
        max-width: 100%;
        height: auto !important;
        box-sizing: border-box;
    }
    .card-img-top, .course-preview-img, .about-image, .hero-image, .team-card img {
        height: 140px !important;
        max-width: 100%;
        object-fit: cover;
    }
    .image-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .image-grid-item {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    .faq-question, .faq-answer {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    .vector-icon, .feature-vector {
        font-size: 1.3rem !important;
        margin-right: 0.5rem !important;
    }
    .about-hero-image {
        max-width: 160px !important;
    }
    .stat-number {
        font-size: 1.3rem !important;
    }
    .timeline-item, .news-card, .team-card {
        padding: 1rem !important;
    }
    .navbar-brand img, .footer-brand img {
        height: 24px !important;
    }
}

@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-lg-4, .col-md-6, .col-lg-6, .col-lg-8, .col-6, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .feature-card, .professional-card, .section-card, .info-card, .content-card, .card, .news-card, .arch-card, .topic-card, .tech-card {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
        min-width: 0;
        max-width: 100%;
        height: auto !important;
        box-sizing: border-box;
    }
    .feature-card h4, .professional-card h4, .section-card h4, .info-card h4, .content-card h4, .card-title {
        font-size: 1.1rem !important;
    }
    .feature-card p, .professional-card p, .section-card p, .info-card p, .content-card p, .card-text {
        font-size: 0.95rem !important;
    }
    .card-img-top, .course-preview-img, .about-image, .hero-image, .team-card img {
        height: 110px !important;
        max-width: 100%;
        object-fit: cover;
    }
    .image-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .image-grid-item {
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }
    .navbar {
        padding: 0.05rem 0.5rem !important;
        min-height: 36px !important;
    }
    .navbar-brand img {
        height: 16px !important;
    }
    .navbar-nav .nav-link {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
        font-size: 1rem !important;
    }
    .faq-question, .faq-answer {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    .display-4, .display-5 {
        font-size: 1.3rem !important;
    }
    .lead {
        font-size: 0.95rem !important;
    }
    .btn, .btn-lg, .btn-professional {
        padding: 0.5rem 1rem !important;
        font-size: 0.95rem !important;
    }
    .vector-icon, .feature-vector {
        font-size: 1.1rem !important;
        margin-right: 0.5rem !important;
    }
    .about-hero-image {
        max-width: 120px !important;
    }
    .stat-number {
        font-size: 1.1rem !important;
    }
    .timeline-item, .news-card, .team-card {
        padding: 0.8rem !important;
    }
    .hero-section {
        min-height: 60vh !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .hero-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 576px) {
    .container, .container-fluid {
        padding-left: 4px;
        padding-right: 4px;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-lg-4, .col-md-6, .col-lg-6, .col-lg-8, .col-6, .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .feature-card, .professional-card, .section-card, .info-card, .content-card, .card, .news-card, .arch-card, .topic-card, .tech-card {
        padding: 0.7rem !important;
        margin-bottom: 1rem !important;
        min-width: 0;
        max-width: 100%;
        height: auto !important;
        box-sizing: border-box;
    }
    .feature-card h4, .professional-card h4, .section-card h4, .info-card h4, .content-card h4, .card-title {
        font-size: 1rem !important;
    }
    .feature-card p, .professional-card p, .section-card p, .info-card p, .content-card p, .card-text {
        font-size: 0.9rem !important;
    }
    .card-img-top, .course-preview-img, .about-image, .hero-image, .team-card img {
        height: 90px !important;
        max-width: 100%;
        object-fit: cover;
    }
    .image-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .image-grid-item {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .navbar {
        padding: 0.01rem 0.3rem !important;
        min-height: 28px !important;
    }
    .navbar-brand img {
        height: 12px !important;
    }
    .navbar-nav .nav-link {
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
        font-size: 0.95rem !important;
    }
    .faq-question, .faq-answer {
        padding: 0.7rem !important;
        font-size: 0.9rem !important;
    }
    .display-4, .display-5 {
        font-size: 1rem !important;
    }
    .lead {
        font-size: 0.9rem !important;
    }
    .btn, .btn-lg, .btn-professional {
        padding: 0.3rem 0.7rem !important;
        font-size: 0.9rem !important;
    }
    .vector-icon, .feature-vector {
        font-size: 1rem !important;
        margin-right: 0.3rem !important;
    }
    .about-hero-image {
        max-width: 80px !important;
    }
    .stat-number {
        font-size: 0.9rem !important;
    }
    .timeline-item, .news-card, .team-card {
        padding: 0.5rem !important;
    }
    .hero-section {
        min-height: 45vh !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .hero-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Loading animation */
.loading {
    /* Remove opacity animation that causes navbar jumping */
}

/* Contact Page Social Media Icons */
.contact-info .bg-primary.rounded-circle {
    width: 38px !important;
    height: 38px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.contact-info .bg-primary.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-info .bg-primary.rounded-circle i {
    font-size: 1.35rem;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Page Styles */
.faq-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faq-question {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-right: 4rem;
}

.faq-question:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.faq-question::before {
    content: "❓";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-answer {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-right: 4px solid #667eea;
    line-height: 1.8;
}

.faq-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.faq-category h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.faq-category p {
    margin: 1rem 0 0 0;
    opacity: 0.9;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
}

.search-box i {
    color: #667eea;
    font-size: 1.2rem;
}

.highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
    display: inline-block;
}

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.section-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

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

.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

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

.tech-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin: 0.3rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: scale(1.05);
}

.tech-badge.old {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.tech-badge.new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.tech-badge.kotlin {
    background: linear-gradient(135deg, #7F52FF 0%, #FF6B6B 100%);
}

.tech-badge.java {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.roadmap-step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-right: 4px solid #667eea;
    position: relative;
}

.roadmap-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.roadmap-container {
    counter-reset: step-counter;
}

.highlight-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #667eea;
}

.warning-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 5px solid #ffc107;
}

.code-example {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    position: relative;
}

.code-example::before {
    content: attr(data-language);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: center;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.timeline {
    position: relative;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.reading-time {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
}

.table-of-contents {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.table-of-contents h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.table-of-contents li:last-child {
    border-bottom: none;
}

.table-of-contents a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #667eea;
}

.breadcrumb-custom {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #6c757d;
}

.step-guide {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 1rem;
}

/* Featured Tutorials 2+1 Grid Fix */
.tutorials-featured-row {
  min-height: 500px;
}
.tutorials-featured-row .d-flex.flex-column {
  height: 100%;
}
.tutorials-featured-row .card {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tutorials-featured-row .card .ratio {
  flex-shrink: 0;
}
.tutorials-featured-row .card .card-body {
  flex: 1 1 auto;
}
@media (max-width: 991px) {
  .tutorials-featured-row {
    min-height: unset;
  }
  .tutorials-featured-row .d-flex.flex-column {
    height: auto;
  }
  .tutorials-featured-row .card {
    min-height: unset;
  }
}

/* Force right video to fill card height in featured tutorials */
.video-fill-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 440px;
}
.video-fill-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 991px) {
  .video-fill-wrapper, .video-fill-wrapper iframe {
    position: static;
    min-height: unset;
    height: auto;
    width: 100%;
  }
}

/* Logo styles to replace inline styles */
.navbar-brand img {
    height: 36px;
    vertical-align: middle;
}

.footer-brand img {
    height: 36px;
    vertical-align: middle;
}

/* Footer logo specific styling */
.footer h5 img {
    height: 36px;
    vertical-align: middle;
    width: auto;
}

/* Blog footer logo styling */
.bg-dark h5 img {
    height: 36px;
    vertical-align: middle;
    width: auto;
}

/* Comprehensive footer logo styling for all scenarios */
footer h5 img,
.footer h5 img,
.bg-dark h5 img {
    height: 36px !important;
    vertical-align: middle;
    width: auto;
    max-width: none;
}

/* Course preview image styles */
.course-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.professional-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.professional-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.professional-card .card-body p {
    flex: 1;
}

/* CTA section background */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* About page specific styles */
.team-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.team-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.team-card .social-links a {
    color: #667eea;
    margin-left: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-card .social-links a:hover {
    color: #764ba2;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-right: 4px solid #667eea;
    position: relative;
}

.timeline-item h5 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: #6c757d;
    margin-bottom: 0;
}

/* About page hero image */
.about-hero-image {
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.about-hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* News Page Styles */
.news-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    position: relative;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.news-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.news-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
}

.news-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.news-featured {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.news-upcoming {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.news-update {
    border-left: 5px solid #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
}

.news-technology {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
}

.speaker-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.event-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.event-details h5 {
    color: #667eea;
    margin-bottom: 1rem;
}

.event-details ul {
    list-style: none;
    padding: 0;
}

.event-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.event-details li:last-child {
    border-bottom: none;
}

.event-details li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-left: 0.5rem;
}

.newsletter-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-card h3 {
    margin-bottom: 1rem;
}

.newsletter-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-input {
    border-radius: 50px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.newsletter-btn {
    border-radius: 50px;
    border: none;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
}

.news-navigation .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .news-content {
        margin-top: -2rem;
        padding: 2rem !important;
    }
    
    .newsletter-card {
        padding: 2rem 1rem;
    }
    
    .newsletter-input {
        max-width: 100%;
    }
}

/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 220px;
    overflow: hidden;
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: #333;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.navbar-nav .dropdown-menu .dropdown-item:first-child,
.navbar-nav .dropdown-menu .dropdown-item:last-child {
    border-radius: 0 !important;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Show dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

/* Contact Form Styles */
.contact-form-container {
    position: relative;
}

.contact-form-container .alert {
    border-radius: 1rem;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-form-container .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.contact-form-container .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.contact-form-container .form-control {
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form-container .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.contact-form-container .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form-container .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form-container .invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.contact-form-container .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.contact-form-container .btn {
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form-container .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form-container .btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Loading animation for form submission */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contact-form-container .btn:disabled {
    animation: pulse 1.5s infinite;
}

/* Form validation animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.contact-form-container .form-control.is-invalid {
    animation: shake 0.5s ease-in-out;
}

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

@media (max-width: 576px) {
  .container, .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  .col-lg-4, .col-md-6, .col-6, .col-lg-6, .col-lg-8, .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .feature-card, .professional-card, .section-card, .info-card, .content-card, .card, .news-card, .arch-card, .topic-card, .tech-card {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
    min-width: 0;
    max-width: 100%;
    height: auto !important;
    box-sizing: border-box;
  }
  .feature-card h4, .professional-card h4, .section-card h4, .info-card h4, .content-card h4, .card-title {
    font-size: 1.2rem !important;
  }
  .feature-card p, .professional-card p, .section-card p, .info-card p, .content-card p, .card-text {
    font-size: 1rem !important;
  }
  .card-img-top, .course-preview-img, .about-image, .hero-image, .team-card img {
    height: 120px !important;
    max-width: 100%;
    object-fit: cover;
  }
  .image-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .image-grid-item {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }
  .navbar {
    padding: 0.5rem 0.5rem !important;
  }
  .footer {
    padding: 1rem 0.5rem !important;
  }
  .faq-question, .faq-answer {
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  .display-4, .display-5 {
    font-size: 1.5rem !important;
  }
  .lead {
    font-size: 1rem !important;
  }
  .btn, .btn-lg, .btn-professional {
    padding: 0.5rem 1rem !important;
    font-size: 1rem !important;
  }
  .vector-icon, .feature-vector {
    font-size: 1.5rem !important;
    margin-right: 0.5rem !important;
  }
  .about-hero-image {
    max-width: 180px !important;
  }
  .stat-number {
    font-size: 1.5rem !important;
  }
  .timeline-item, .news-card, .team-card {
    padding: 1rem !important;
  }
  .navbar-brand img, .footer-brand img {
    height: 28px !important;
  }
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 !important;
}

/* Section Spacing for Tutorials Page */
.section-spacing {
    margin-top: 3.5rem !important;
    margin-bottom: 3.5rem !important;
}
@media (max-width: 768px) {
    .section-spacing {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

.section-divider {
  border: none;
  border-top: 2px solid #eee;
  margin: 3.5rem auto;
  width: 60%;
}
.section-bg-alt {
  background: #f4f6fa;
  border-radius: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  background: #764ba2;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#backToTopBtn:hover {
  background: #667eea;
}

/* Uniform height for video-scroll-row cards */
.video-scroll-row .card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.video-scroll-row .card-img-top {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  object-fit: cover;
}
.video-scroll-row .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.video-scroll-row .card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 4.5em;
  max-height: 4.5em;
} 

.rounded-circle {
  border-radius: 50% !important;
  width: 100px !important;
  height: 100px !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
}

@media (max-width: 768px) {
  .rounded-circle {
    width: 80px !important;
    height: 80px !important;
  }
} 

.team-card img.rounded-circle {
  border-radius: 50% !important;
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1 !important;
}
@media (max-width: 768px) {
  .team-card img.rounded-circle {
    width: 64px !important;
    height: 64px !important;
  }
} 

.team-card-mobile .team-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .team-card-mobile {
    margin-bottom: 1.5rem !important;
    padding: 1.2rem 0.5rem !important;
  }
  .team-card-mobile .team-card-content img {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 0.5rem;
  }
  .team-card-mobile .social-links {
    margin-top: 0.5rem;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .team-card-mobile .social-links a {
    font-size: 1.4rem;
    margin: 0 0.3rem;
  }
} 

@media (max-width: 768px) {
  .blog-content .text-center > a.btn,
  .blog-content .text-center .btn-group {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }
  .blog-content .text-center .btn-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .blog-content .row.mt-5 > .col-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
  }
  .blog-content .row.mt-5 {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .blog-content .row.mt-5 a.btn {
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }
} 