/*
 * Theme Name: CCN
 * Author: Christ ND
 * Author URI/Mail: christnd@congolaisdenanjing.com
 * Version: 2.0
 * */

/* FONT
================================================== */
@font-face {
  font-family: 'fontello';
  src: url('../fonts/fontello.eot?37927580');
  src: url('../fonts/fontello.eot?37927580#iefix') format('embedded-opentype'),
       url('../fonts/fontello.woff2?37927580') format('woff2'),
       url('../fonts/fontello.woff?37927580') format('woff'),
       url('../fonts/fontello.ttf?37927580') format('truetype'),
       url('../fonts/fontello.svg?37927580#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
.icon-twitter:before { content: '\f099'; } /* '' */
.icon-facebook:before { content: '\f09a'; } /* '' */
.icon-gplus:before { content: '\f0d5'; } /* '' */
.icon-linkedin:before { content: '\f0e1'; } /* '' */
.icon-linkedin:before { content: '\f0e1'; } /* '' */
.icon-up:before { content: '\f176'; } /* '' */

/* CUSTOM RESETS
================================================== */
a {
    transition: color 0.25s ease-in-out;
    -moz-transition: color 0.25s ease-in-out;
    -webkit-transition: color 0.25s ease-in-out;
    -o-transition: color 0.25s ease-in-out;
    -ms-transition: color 0.25s ease-in-out;
}

a:focus,
a:hover {
    outline: 0 none;
    text-decoration: none;
}

h4 {
    font-size: 30px;
}

/* Buttons */ 
.btn {
    min-width: 145px;
    line-height: 50px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #212121;
    background-color: transparent;
    border: 1px solid #212121;
    border-radius: 10px;
    border-radius: 5px;
    transform: skewX(-10deg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-fill:hover, .btn-fill:focus {
    background-color: #333;
    transform: skewX(0);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #007A33, #E1C700, #B22222);
}


/* Input fields */
.form-control {
    padding-left: 10px;
    border: 0;
    border-bottom: 1px solid #212121;
    border-radius: 0;
    background-color: transparent; 
    box-shadow: none;
    outline: 0 none transparent;
    -webkit-appearance:none;
 }

textarea {
    margin-top: 40px;
    min-height: 200px;
    resize: none;
}

.form-control:focus {
    box-shadow: none;
    border-bottom-color: #e1e1e1;
}

::-moz-placeholder,
::-webkit-input-placeholder {
    font-size: 16px;
}

/* LAYOUT
================================================== */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #212121;
}

.img-res {
    display: block;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.col-md-6.text-right {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.col-md-6.text-right .img-res {
    display: block;
    max-width: 90%;
    height: auto;
    object-fit: contain; /* or 'cover' depending */
}

.col-md-6.text-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

/* .col-md-7.text-left .animation-img {
    display: block;
    max-width: 90%;
    height: auto;
    object-fit: contain; /* or 'cover' depending 
} */


.visible-xxs {
    display: none;
}

/* Background-color */
.gray-bg {
    background-color: #e1e1e1;
}

/* HEADER
================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 5;
}

.site-logo img {
    padding-bottom: 2px;
}

/* Navigation */
.navbar-nav > li > a {
    padding: 5px 0;
    font-weight: 600;
    color: #212121;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease-in-out;
    -moz-transition: border-color 0.25s ease-in-out;
    -webkit-transition: border-color 0.25s ease-in-out;
    -o-transition: border-color 0.25s ease-in-out;
    -ms-transition: border-color 0.25s ease-in-out;
}

.navbar-nav.navbar-right {
    margin-right: 0;
}

.navbar-nav > li + li > a {
    margin-left: 40px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.nav > li > a:hover,
.nav > li.active > a {
    background-color: transparent;
    border-bottom: 2px solid #212121;
}

.nav > li > a:focus {
    background-color: transparent;
}

/* HERO
================================================== */
.hero { 
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 700px;
    overflow: hidden; /* Prevents any overflow outside the container */
}

.hero dotlottie-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the animation covers the entire space */
    z-index: -1; /* Places the animation behind other content inside the hero section */
}


.hero .container {
    position: relative;
    height: 100%;
}

.hero .col-md-6:first-child {
    position: absolute;
    top: 35%;
    left: 0;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    z-index: 2;
}

.hero .col-md-6:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.job-title {
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 1;
} 

.hero img {
    height: 600px;
}

/* SITEMAIN
================================================== */
.site-main {
    position: relative;
    margin-bottom: 100px;
    background-color: #fff;
    z-index: 1;
}
/* site-section */
.site-section {
   padding-top: 120px;
}

.site-section h2,
.site-section h3 {
    font-size: 36px;
    margin: 0;
    text-transform: uppercase;
}

.img-lines {
    margin: 15px 0 40px;
}

.site-section p {
    margin-bottom: 35px;
}

/* Section: Engagements */
.section-skills {
    padding: 60px 0; /* Adjust padding for top and bottom */
}

/* Skill Blocks */
.skill {
    text-align: center;
    margin-bottom: 50px; /* Space between skill blocks */
}

/* Margin between skill blocks */
.skill + .skill {
    margin-top: 50px; /* Space between adjacent skill blocks */
}

/* Skill Headings */
.skill h4 {
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 15px; /* Margin below heading */
}

/* Progress Circle */
.progress-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center horizontally within its container */
}

/* SVG inside progress-circle */
.progress-circle svg {
    display: block; /* Removes the extra space below the SVG */
    margin: 0 auto; /* Center SVG if not already centered by parent */
}

/* Progress Circle Elements */
.progress-circle circle {
    transition: stroke-dashoffset 0.5s ease; /* Smooth transition for progress changes */
}

/* Progress Bars */
.progress {
    height: 15px;
    margin-bottom: 0;
    border-radius: 0;
    background-color: #dfdfdf;
    box-shadow: none;
}

.progress-bar {
    background-color: #212121;  
}

/* Responsive Adjustments for Smaller Screens */
@media (max-width: 767px) {
    .section-skills {
        padding: 30px 0; /* Adjust padding for mobile screens */
    }

    .skill {
        margin-bottom: 30px; /* Space between skill blocks on small screens */
    }
}


/* Section: Services */
.section-services {
    position: relative;
    padding-top: 220px;
}

.section-services:before {
    content: '';
    background: url(../img/services-bg.jpg) no-repeat fixed center / cover;
    width: 100%;
    height: 400px; 
    position: absolute;
    left: 0;
    top: 0;
}

.overlay:after {
    content: '';
    width: 100%;
    height: 400px; 
    position: absolute;
    background-color: rgba(255,255,255,0.5);
    top: 0;
    left: 0;
    z-index: 0;
}

.section-services .container {
    padding: 120px 100px;
    position: relative;
    background-color: #fff;
    box-shadow: 0px 0px 40px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service h4 {
    margin: 25px 0;
    font-size: 24px;
    font-weight: 700;
}

.service p {
    color: #000;
    margin-bottom: 0;
}

/* Section: Portfolio */
.section-portfolio {
    padding-bottom: 120px;
}

.portfolio-item {
    height: 280px;
    margin-bottom: 30px;
    position: relative;
}

.section-portfolio .col-md-4:nth-last-child(-n+3) .portfolio-item {
    margin-bottom: 0;
}

.portfolio-item:before {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: background-color 0.25s ease-in-out;
    -moz-transition: background-color 0.25s ease-in-out;
    -webkit-transition: background-color 0.25s ease-in-out;
    -o-transition: background-color 0.25s ease-in-out;
    -ms-transition: background-color 0.25s ease-in-out;
}

.portfolio-item:hover:before{
    background-color: rgba(33,33,33,0.6);
}

.portfolio-item-info {
    position: absolute;
    top: 150px;
    left: 0px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease-in-out, left 0.25s ease-in-out;
    -moz-transition: opacity 0.25s ease-in-out, left 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out, left 0.25s ease-in-out;
    -o-transition: opacity 0.25s ease-in-out, left 0.25s ease-in-out;
    -ms-transition: opacity 0.25s ease-in-out, left 0.25s ease-in-out;
}

.portfolio-item:hover .portfolio-item-info {
    left: 50px;
    opacity: 1;
}

.portfolio-item-info h4 {
    margin: 0 0 20px;
    font-weight: 700;
    color: #fff;
}

.portfolio-item-info a {
    padding: 6px 7px 4px;
    font-size: 12px;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff;
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
    -moz-transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
    -webkit-transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
    -o-transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
    -ms-transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

.portfolio-item-info a:hover {
    color: #212121;
    background-color: #fff;
}

.section-portfolio .btn {
    margin-top: 10px;
}

/* Modal */
.modal {
    z-index: 9999;
}

.modal-content {
    border-radius: 0;
    box-shadow: 0px 0px 40px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    position: relative;
    padding: 0;
    height: 500px;
}

.modal-header .close {
    position: absolute;
    right: 0;
    padding: 10px 11px;
    margin-top: 0;
    background-color: #fff;
    font-size: 16px;
    color: #212121;
    border-left: 1px solid #212121;
    border-bottom: 1px solid #212121;
    opacity: 1;
    transition: box-shadow 0.25s ease-in-out;
    -moz-transition: box-shadow 0.25s ease-in-out;
    -webkit-transition: box-shadow 0.25s ease-in-out;
    -o-transition: box-shadow 0.25s ease-in-out;
    -ms-transition: box-shadow 0.25s ease-in-out;
}

.modal-header .close:hover {
    box-shadow: 0px 10px 18px 0px rgba(0, 0, 0, 0.2);
}

.modal-body h4 {
    font-weight: 700;
}

.modal-footer {
    text-align: center;
}

/* Section: Counters */
.section-counters {
    background: url(../img/counters-bg.jpg) no-repeat fixed center / cover;
    width: 100%;
    padding: 100px 0;
    position: relative;
}

.section-counters:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.section-counters h4 {
    color: #fff;
    margin: 25px 0 0;
}

.site-section p.counter {
    font-size: 100px;
    font-weight: 300;
    color: #fff;
    margin: 0;
    line-height: 0.8;
}

/* Section: Form*/
.section-form {
    padding-bottom: 120px;
}

.section-form .btn {
    margin-top: 40px;
}

/* FOOTER
================================================== */
.site-footer {
    position: relative;
    bottom: 0;
    left: 0;
    padding: 30px 0;
    width: 100%;
    background-color: #212121;
    z-index: 1000;
    color: #fff;
    text-align: center;
}

.icon {
    line-height: 10px; /*  vertical alignment */
    padding: 8px; /* clickable area */
    font-size: 10px; /* font-size for icon size */
    color: #fff;
    border: 6px solid #fff; /* border for better visibility */
    border-radius: 50%;
    display: inline-block;
    margin: 0 10px; /* margin for spacing between icons */
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.icon i:before {
    margin: 0;
}

.icon:hover {
    background-color: #fff;
    color: #212121;
    border-color: #212121; /* border color for the background */
}

.site-footer a {
    transition: color 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

a.twitter-bg:hover {
    color: #55acee;
}

a.facebook-bg:hover {
    color: #3b5998;
}

a.instagram-bg:hover {
    color: #dd4b39;
}

a.linkedin-bg:hover {
    color: #007bb5;
}

a.icon-up-bg:hover {
    color: #212121;
}

a.whatsapp-bg:hover {
    color: #25D366;
}


.copyright {
    margin-bottom: 0;
    line-height: 40px;
    color: #fff;
    text-align: center;
}

/* Team members */

.our-team {
    text-align: center;
    position: relative;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.our-team:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Elevate the card on hover */
    background-color: #e0eaf5; /* Subtle background change */
}

.our-team .pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #4a76a8;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.our-team:hover .pic {
    transform: scale(1.05); /* Slight zoom effect on hover */
    border-color: #3b5f87; /* Darker border on hover */
}

.our-team img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.our-team .team-content {
    padding: 10px;
    background-color: #4a76a8;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.our-team:hover .team-content {
    background-color: #3b5f87; /* Slightly darker blue on hover */
}

.our-team .title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f0; /* Metallic base color */
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 
        1px 1px 1px rgba(0, 0, 0, 0.8), 
        -1px -1px 1px rgba(255, 255, 255, 0.5); /* Metallic shine */
}




.our-team:hover .title {
    color: #ffffff; /* bright title text on hover */
}

.our-team .post {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.our-team:hover .post {
    color: #ffffff; /* Brighter post text on hover */
}

.our-team .description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.our-team:hover .description {
    color: #444; /* Slight darkening of text */
    background-color: #f5f5f5; /* Subtle background change */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Enhance box shadow */
}

@media only screen and (max-width: 990px) {
    .our-team {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 359px) {
    .our-team .pic {
        width: 150px;
        height: 150px;
    }
}



/* <!-- Text Animation Section --> */

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

.text-effect {
    color: #333;
    text-align: center;
}

/* Main Text: CCN */
.text-effect .main-text {
    font-family: 'Lora', serif;
    font-size: 100px; /* Larger font for main text */
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.text-effect .main-text span {
    text-shadow: 0px 2px 10px rgba(46, 74, 81, 0.3);
    display: inline-block;
    opacity: 0;
    animation: moveLetters 2.6s infinite ease-in-out;
}

/* Animation delay for CCN (Main Text) */
.text-effect .main-text span:nth-child(1) { animation-delay: 0.1s; }
.text-effect .main-text span:nth-child(2) { animation-delay: 0.3s; }
.text-effect .main-text span:nth-child(3) { animation-delay: 0.5s; }

/* Subscript Text: Communauté Congolaise de Nanjing */
.text-effect .sub-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px; /* Smaller font for subscript */
    font-weight: 500;
    margin-top: 15px;
    color: #555;
    letter-spacing: 0.08em; /* Add more space between letters for clarity */
    text-transform: uppercase;
    opacity: 0.85;
}

.text-effect .sub-text span {
    opacity: 0;
    display: inline-block;
    animation: moveLettersSub 2.6s infinite ease-in-out;
    text-shadow: none; /* No shadow for subscript */
    transition: color 0.3s ease;
}

/* Subscript animation delay (Synchronized with main text) */
.text-effect .sub-text span:nth-child(1) { animation-delay: 0.6s; }
.text-effect .sub-text span:nth-child(2) { animation-delay: 0.7s; }
.text-effect .sub-text span:nth-child(3) { animation-delay: 0.8s; }
/* Continue nth-child animations for remaining letters... */

.text-effect .sub-text span:hover {
    color: #333; /* Change color on hover for subtle interactivity */
}

/* Keyframes for Main Text Animation */
@keyframes moveLetters {
    0% {
        opacity: 0;
        transform: translateX(-15vw);
    }
    33.3%, 66% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(15vw);
    }
}

/* Keyframes for Subscript Animation */
@keyframes moveLettersSub {
    0% {
        opacity: 0;
        transform: translateY(-10px); /* Subtle vertical entrance */
    }
    33.3%, 66% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px); /* Subtle vertical exit */
    }
}

@media only screen and (max-width: 990px) {
    .text-effect .main-text {
        font-size: 70px;
    }

    .text-effect .sub-text {
        font-size: 22px;
    }
}

@media only screen and (max-width: 767px) {
    .text-effect .main-text {
        font-size: 60px;
    }

    .text-effect .sub-text {
        font-size: 20px;
    }
}

@media only screen and (max-width: 576px) {
    .text-effect .main-text {
        font-size: 50px;
    }

    .text-effect .sub-text {
        font-size: 18px;
    }
}


/* Preloader Container */
#preloader {
    position: fixed; /* Fixed position to cover the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Light background */
    z-index: 9999; /* High z-index to appear above other content */
}

/* Progress Container */
.progress-container {
    width: 80%; 
    background-color: #ddd; /* Light grey background for the progress bar */
    border-radius: 25px; /* Rounded corners */
    overflow: hidden; /* Prevent overflow of segments */
    position: relative;
    height: 30px; /* Height of the progress bar */
}

/* Progress Bar */
.progress-bar {
    display: flex;
    height: 100%;
    width: 0; /* Start at 0 width */
}

/* Progress Segment Styles */
.progress-segment {
    height: 100%;
}

.green {
    background-color: #009e49; /* Congo Brazzaville green */
    width: 33.33%; /* Each segment takes up one-third */
}

.yellow {
    background-color: #ffcc00; /* Congo Brazzaville yellow */
    width: 33.33%;
}

.red {
    background-color: #ce1126; /* Congo Brazzaville red */
    width: 33.33%;
}

/* Message Styling */
.preloader-message {
    margin-top: 20px;
    font-size: 24px; /* Larger font size for impact */
    color: #333; /* Dark text color */
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px; /* Add letter spacing for a modern look */
    text-transform: uppercase; /* Uppercase for emphasis */
}

/* Percentage Display */
.loading-percentage {
    margin-top: 10px; /* Space above percentage */
    font-size: 20px; /* Font size for percentage */
    color: #333; /* Dark text color */
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .progress-container {
        width: 90%; /* Adjust for smaller screens */
    }

    .preloader-message {
        font-size: 20px; /* Smaller font size for mobile */
    }

    .loading-percentage {
        font-size: 18px; /* Smaller font size for mobile */
    }
}

/* Visually hide elements but keep them accessible */
[hidden] {
    display: none !important;
}



/* Invalid input styling */
.invalid-feedback {
    display: none; /* Initially hide the feedback */
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
  }
  
  input.is-invalid {
    border-color: red;
  }
.is-invalid {
    border-color: #dc3545;
  }
  
  /* Feedback message styling */
  .alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
  }
  
  .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
  }
  
  .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
  }
  

/* Team Slider Custom Styles */
.team-slider {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ensure it wraps in smaller screens */
    gap: 20px; /* Space between boxes */
}


/* Head of Department Card */
.our-head-of-department {
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    margin: 0 20px; /* Horizontal margin for spacing */
    flex: 1 1 30%; /* Adjusts box width to be responsive */
}

.our-head-of-department:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Profile Picture */
.our-head-of-department .pic {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ff595e;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.our-head-of-department .pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.our-head-of-department:hover .pic img {
    transform: perspective(1000px) rotateY(360deg) scale(1.1);
    transition: transform 0.6s ease-in-out;
    transform-origin: center;
}


/* .our-head-of-department:hover .pic img {
    transform: scale(1.1) rotate(-5deg);  Gentle zoom-in and slight rotation 
    transform-origin: center;  Keeps the image transformation centered 
    transition: transform 0.4s ease-in-out;  Smoothens the transition 
} */


/* Team Member Name */
.our-head-of-department .title {
    font-size: 22px;
    font-weight: 700;
    color: #f0f0f0; /* Metallic base color */
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 
        1px 1px 1px rgba(0, 0, 0, 0.8), 
        -1px -1px 1px rgba(255, 255, 255, 0.5); /* Metallic shine */
}


/* Team Member Position */
.our-head-of-department .post {
    display: inline-block;
    font-size: 16px;
    color: #555;
    text-transform: capitalize;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden; /* Ensure content does not overflow */
    transition: color 0.3s ease; /* Smooth color transition */
}

.our-head-of-department .post:after {
    content: "";
    width: 40px;
    height: 4px;
    background: #eee;
    margin: 8px auto 0;
    display: block;
    border-radius: 2px;
    transition: background 0.3s ease; /* Smooth transition for underline */
}

/* Biometric Scan Effect on Hover */
.our-head-of-department .post:hover {
    color: #ff595e; /* Change text color on hover */
}

.our-head-of-department .post:hover:after {
    background: #ff595e; /* Change underline color on hover */
}

/* Biometric scan animation effect */
.our-head-of-department .post:hover::before {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #ff595e;
    bottom: 0;
    left: 0;
    animation: biometric-scan 0.6s linear forwards;
}

@keyframes biometric-scan {
    0% {
        bottom: 0;
        opacity: 0;
    }
    50% {
        bottom: 50%;
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}


/* Description */
.our-head-of-department .description {
    font-size: 14px;
    color: #666;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Social Media Icons */
.our-head-of-department .social {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.our-head-of-department .social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0b0b0b; /* Dark theme */
    color: #ffffffde; /* Neon green */
    font-size: 18px;
    transition: background 0.3s ease, transform 0.4s ease;
}

.our-head-of-department .social li a:hover {
    transform: rotate(360deg);
}


/* Slick Carousel Navigation Arrows */
.slick-prev:before,
.slick-next:before {
    color: #7740ff;
    font-size: 30px;
}

/* Responsive Adjustments */
@media only screen and (max-width: 1200px) {
    .our-head-of-department .pic {
        width: 160px;
        height: 160px;
    }

    .our-head-of-department .title {
        font-size: 20px;
    }

    .our-head-of-department .post {
        font-size: 15px;
    }
}

@media only screen and (max-width: 992px) {
    .our-head-of-department {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 768px) {
    .our-head-of-department .description {
        display: none; /* Hide description on medium screens for a cleaner look */
    }
}

@media only screen and (max-width: 576px) {
    .our-head-of-department .pic {
        width: 140px;
        height: 140px;
    }

    .our-head-of-department .social li a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
