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

/* FONTS */
@font-face {
    font-family: 'Roboto';
    src: url(assets/img/fonts/Roboto-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: 'Roboto';
    src: url(assets/img/fonts/Roboto-Bold.ttf);
    font-weight: 700;
}

/* COLORS */
:root {
    /* primary */
    --brand-color: rgb(99, 24, 24);
    --button: rgb(134, 28, 28);
    /* neutral */
    --dark: rgb(116, 21, 21);
    --light: rgb(238, 237, 253);
    --light-grey: rgb(230, 52, 52);
    --background-color: #f5eef7;
    background-color: var(--background-color);
}

body {
    min-height: 100vh;
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--light-grey);
    background-color: var(--background-blue);
}

/* PAGE HEADING */
.page-heading {
    text-align: center;
    color: maroon;
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 25px;
    margin-top: 73px;
}
.page-heading2{
    text-align: center !important;
    color: rgb(22, 32, 49);
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 25px;
    margin-top: 73px;
}

/* CONTAINER: 4 cards per row */
.ca-profile-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
    padding: 90px;
    padding-top: 50px;
    margin-left: 10px;
    margin-right: 40px;
}

/* CARD */
.ca-profile-card {
    width: 320px; 
    height: 490px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 14px;
    background-color: var(--light);
    box-shadow: 0px 3px 8px var(--dark);
    overflow: hidden; 
}

/* PROFILE IMAGE */
.ca-profile-pic {
    padding: 5px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(70%);
    border: 3px solid var(--brand-color);
    transition: all 0.3s ease;
    margin: 7px;
}

.ca-profile-pic:hover {
    transform: translateY(-5px);
    filter: brightness(100%);
}

/* DETAILS */
.ca-profile-details {
    flex: 1;
    width: 100%;
    padding: -0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: linear-gradient(#ca4c5d , #dd7881);
    border-radius: 50px 50px 14px 14px;
    text-align: left;
    overflow: hidden;
}

.ca-profile-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
    text-align: center;
    margin-top: 10px;
}

/* DESCRIPTION */
.ca-profile-description {
    font-size: 0.85rem;
    line-height: 1.2;
    max-height: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

/* BUTTONS */
.ca-profile-button {
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.ca-profile-message-btn {
    width: 105px;
    padding: -0.3rem 1rem;
    border: none;
    background-color: var(--dark);
    color: var(--light);
    border-radius: 5px;
    box-shadow: 0px 1px 3px 0px black;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 20px;
}

.ca-profile-message-btn:hover {
    transform: translateY(-3px);
    color: white;
    background-color: var(--button);
}

/* SKILLS */
.ca-profile-info {
    margin-top: 5px;
    padding: 0.5rem 0;
    border-top: 2px solid var(--dark);
    width: 100%;
}

.ca-profile-info h2 {
    padding: 0.3rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

.ca-profile-info p {
    padding: 0.1rem 1rem;
    margin: 2px 0px;
    font-size: 1rem;
    border-radius: .4rem;
    display: block;
    color: rgb(73, 3, 46);
    transition: all 0.3s ease;
}

/* Banner Section */
.ca-banner {
    background: linear-gradient(135deg, #9c0f2254 , #7a0c0c);
    color: #fff;
    padding: 80px 0;
}

.ca-banner .faculty-highlight {
    color: #fff;
}

.ca-banner .badge-wrapper .icon-circle {
    background: #fff;
    color: #6C55A3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* RESPONSIVE BREAKPOINTS */

/* Large desktops */
@media (max-width: 1200px) {
    .ca-profile-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 70px 20px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .ca-profile-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 50px 15px;
    }
    .page-heading {
        font-size: 2rem;
        margin-top: 50px;
        margin-bottom: 30px;
    }
    .ca-profile-card {
        width: 280px;
        height: auto;
    }
    .ca-profile-pic {
        width: 130px;
        height: 130px;
    }
}

/* Small devices / mobile */
@media (max-width: 600px) {
    .ca-profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 10px;
    }
    .ca-profile-card {
        width: 100%;
        height: auto;
    }
    .ca-profile-pic {
        width: 120px;
        height: 120px;
        margin: 10px 0;
    }
    .ca-profile-details {
        padding: 10px;
        border-radius: 25px 25px 14px 14px;
    }
    .ca-profile-name {
        font-size: 1.1rem;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .ca-profile-description {
        font-size: 0.8rem;
        max-height: 50px;
    }
    .ca-profile-message-btn {
        width: 90px;
        height: 25px;
        font-size: 0.8rem;
    }
    .ca-banner {
        padding: 40px 10px;
        font-size: 0.9rem;
    }
}


/* Modal Styles */
    .faculty-modal .modal-content {
      border-radius: 15px;
      overflow: hidden;
    }
    
    .faculty-modal .modal-header {
      background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
      color: white;
      border-bottom: none;
      padding: 1.5rem;
    }
    
    .faculty-modal .modal-body {
      padding: 2rem;
      max-height: 70vh;
      overflow-y: auto;
    }
    
    .faculty-modal .btn-close {
      filter: invert(1);
    }
    
    .faculty-modal .profile-img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid #f0f0f0;
      margin: 0 auto 1rem;
      display: block;
    }
    
    .faculty-modal .profile-section {
      margin-bottom: 1.5rem;
    }
    
    .faculty-modal .profile-section h5 {
      color: #0d6efd;
      border-bottom: 2px solid #f0f0f0;
      padding-bottom: 0.5rem;
      margin-bottom: 1rem;
    }
    
    .faculty-info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1rem;
    }
    
    .faculty-info-item {
      background-color: #f8f9fa;
      border-radius: 8px;
      padding: 1rem;
    }
    
    .faculty-info-item h6 {
      color: #495057;
      margin-bottom: 0.5rem;
    }
    
    .faculty-info-item p {
      margin-bottom: 0;
      color: #6c757d;
    }
    
    .social-links-modal {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 1rem;
    }
    
    .social-links-modal a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #f0f0f0;
      color: #0d6efd;
      transition: all 0.3s ease;
    }
    
    .social-links-modal a:hover {
      background-color: #0d6efd;
      color: white;
      transform: translateY(-3px);
    }
    
    /* Loading animation */
    @keyframes pulse {
      0% { opacity: 1; }
      50% { opacity: 0.5; }
      100% { opacity: 1; }
    }
    
    .loading-content {
      animation: pulse 1.5s ease-in-out infinite;
    }

    .faculty-details .p{
        color: rgb(65, 63, 63);
    }

    .modal-title {
        color: #f5eef7;
    }

    