:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    /* background: var(--gradient); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* display: inline-block; */
    color: #212121;
}

.section-title .subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-size: 18px;
    color: #7e7e7e;
    font-weight: 400;
    line-height: 1.8;
}

/* Modern Navigation */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark) !important;
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-text {
    font-size: 24px;
    text-transform: uppercase;
    line-height: 24px;
}

.navbar-brand .brand-text span {
    letter-spacing: 7.2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

/* .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
} */


.language_dropdown .dropdown-menu {
    padding: 0px 0px;
}

.language_dropdown .dropdown-menu li {
    padding: 5px 0px;
    border-bottom: 1px solid #EEE;
}

.language_dropdown .dropdown-menu button {
    background: transparent !important;
    color: #000 !important;
}

.language_dropdown .dropdown-menu li:last-child {
    border: none;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:last-child:hover:after,
.nav-link:last-child.active:after {
    display: none;
}

.nav-btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Modern Hero Section */
.hero-section {
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 150px 0px;
    background: #F8F7F4;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section:before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #000;
    opacity: .3;
}

/* .hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
} */

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    /* background: linear-gradient(135deg, hsl(160 25% 15%) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    font-family: "Playfair Display", serif;
    max-width: 700px;
    margin: auto;
    margin-bottom: 20px;
    color: #fff;
}

#how-it-works {
    padding: 100px 0px;
}

#learn {
    padding: 100px 0px;
}

.famous_family {
    background: #F8F7F4;
    padding: 100px 0px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin: auto;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Modern Cards */
.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(224 224 224) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* .feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
} */

.feature-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border: 2px solid #ddd;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
}

.feature-icon i {
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Interactive Preview */
.interactive-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.interactive-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
}

.preview-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-title i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Learning Path */
.learning-path {
    position: relative;
}

.path-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 40px;
}

.path-item:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
}

.path-item:last-child:before {
    display: none;
}

.path-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.path-content {
    flex: 1;
}

.path-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Resources Grid */
.resource-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

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

.resource-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.resource-icon i {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.subscribe-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"/></svg>') no-repeat;
    background-size: cover;
}

.subscribe-section h2,
.subscribe-section .subtitle {
    color: white !important;
}

.subscribe-section .section-title h2 {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subscribe-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.subscribe-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.form-control-subscribe {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    width: 100%;
}

.form-control-subscribe::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-subscribe:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.btn-subscribe {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
}

.btn-subscribe:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.privacy-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.5rem;
}

/* Interactive Family Tree Section */
.interactive-family-tree {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Primary styles for btn-overlay */
.btn-overlay {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.btn-overlay img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Button overlay container - initially hidden */
.btn-overlay .btn-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Button styling */
.btn-content .btn {
    background: var(--gradient);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-content .btn:hover {
    background: linear-gradient(165deg #2c5530e6, #2c5530d9);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
}

/* Hover effects */
.btn-overlay:hover .btn-content {
    opacity: 1;
    visibility: visible;
}

.btn-overlay:hover .btn-content .btn {
    transform: translateY(0);
}

.btn-overlay:hover img {
    transform: scale(1.05);
}

.btn-overlay iframe {
    width: 100%;
    min-height: 65vh;
    border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-content .btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .btn-overlay {
        border-radius: 8px;
    }
}


/* FAQ Section Styles */
.faq-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.faq-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.03)" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"/></svg>') no-repeat;
    background-size: cover;
}

.faq-section h2,
.faq-section .subtitle {
    color: white !important;
}

.faq-section .section-title h2 {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
}

.accordion-item {
    border: 0 !important;
    margin-bottom: 15px;
    background-color: transparent !important;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-item .accordion-collapse {
    margin-bottom: 15px;
}

.accordion-button:not(.collapsed) {
    margin-bottom: 0;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    border-radius: 10px !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.accordion-body {
    background: rgba(255, 255, 255 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: rgba(255, 255, 255, 0.8);
}

.accordion-item:last-child .accordion-button {
    margin-bottom: 0 !important;
}

/* How It Works Steps */
.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

section {
    scroll-margin-top: 95px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-card {
        padding: 2rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .faq-card {
        padding: 1.5rem;
    }
}

/* Modern Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

/* Modern Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(10px);
    }

    50% {
        transform: translateY(-10px);
    }
}


.floating {
    animation: float 6s ease-in-out infinite;
}

/* Circle Node Styles */
.circle-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.circle-node-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-bg {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .subscribe-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .feature-card,
    .guide-card,
    .resource-card {
        padding: 1.5rem;
    }

    .subscribe-card {
        padding: 1.5rem;
    }
}

#home,
#learn,
#tools,
#tree,
#subscribe {
    scroll-margin-top: 100px;
}


.view_all {
    font-size: 16px;
    text-decoration: none;
    color: #000;
}

.member-item__title a {
    color: #000;
    line-height: 1.4;
    transition: all .3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-pack: start;
    overflow: hidden;
    text-transform: none;
    text-decoration: none;
}

.member-item__desc {
    font-size: 16px;
    margin-bottom: 20px;
}

.member-item__birth {
    display: flex;
    align-items: center;
    color: #000;
    margin-bottom: 12px;
}

.member-item__birth:before {
    content: "\f1fd";
    /* Font Awesome birthday cake */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    /* required for solid icons */
    font-size: 18px;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    top: -1px;
}


.member-item__born-place:before {
    content: "\f3c5";
    /* Font Awesome location-dot */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    /* solid icon */
    font-size: 18px;
    display: inline-block;
    margin-right: 8px;
}


.member-item__born-place {
    display: flex;
    align-items: center;
    color: #000;
    margin-bottom: 30px;
}

.member-item__view-tree {
    margin-bottom: 24px;
}

.member-item__thumbnail {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    width: 8px !important;
    stroke: #000000;
    fill: #000000 !important;
}

.swiper-button-next,
.swiper-button-prev {
    background: #ddd;
    border-radius: 7px;
    opacity: 0 !important;
    /* default hidden */
    transition: opacity 0.3s ease;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1 !important;
    /* show on hover */
}

/* Gallery Modal Styles */
#galleryCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    height: 40px;
    border-radius: 50px !important;
    top: 50%;
    margin: 0px 10px;
}

#galleryCarousel .carousel-control-prev {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#galleryCarousel .carousel-control-next-icon,
#galleryCarousel .carousel-control-prev-icon {
    width: 17px;
}

#galleryCarousel .carousel-control-next {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Gallery Thumbnails */
#galleryModal .col-3 img,
#galleryModal .col-sm-2 img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#galleryModal .col-3 img:hover,
#galleryModal .col-sm-2 img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Offcanvas Scrollbar */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-profile-img {
        width: 80px !important;
        height: 80px !important;
    }

    #galleryPreview .col-4 {
        width: 33.33%;
    }
}

.social-links a {
    text-decoration: none;
}


.gallery_img {
    text-align: center !important;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #fafafa;
    height: 500px;
    overflow: hidden;
    border-radius: 12px 12px 0 0 !important;
}

.gallery_img img {
    width: auto !important;
    max-height: 500px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}



 


/* Active thumbnail border */
.thumbnail-active {
    border: 2px solid #0d6efd !important;
    opacity: 1;
}

/* Non-active thumbnails */
.gallery-thumb {
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.carousel-item img {
    transition: 0.4s ease-in-out;
}

 