/* Button Base Styles */
.btn-kamaraj {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-kamaraj:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-kamaraj:active {
    transform: translateY(0);
}

/* Size Variants */
.btn-kamaraj.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-kamaraj.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Primary Button (For Light Backgrounds) */
.btn-primary.btn-kamaraj {
    background: #154979;
    border-color: #154979;
    color: #ffffff;
}

.btn-primary.btn-kamaraj:hover {
    background: #103a5f;
    border-color: #103a5f;
    color: #ffffff;
}

/* Gradient Button 1 (Primary Gradient - For Light Backgrounds) */
.btn-gradient.gradient-1.btn-kamaraj {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-gradient.gradient-1.btn-kamaraj:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #ffffff;
}

/* Gradient Button 2 (Red/Orange - Special CTA) */
.btn-gradient.gradient-2.btn-kamaraj {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #ffffff;
}

.btn-gradient.gradient-2.btn-kamaraj:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #ffffff;
}

/* Secondary Outline Button (For Light Backgrounds) */
.btn-outline-primary.btn-kamaraj {
    border: 2px solid #154979;
    color: #154979;
    background: transparent;
}

.btn-outline-primary.btn-kamaraj:hover {
    background: #154979;
    border-color: #154979;
    color: #ffffff;
}

/* White Button (For Dark Backgrounds) */
.btn-white.btn-kamaraj {
    background: #ffffff;
    border-color: #ffffff;
    color: #154979;
}

.btn-white.btn-kamaraj:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
    color: #154979;
    transform: translateY(-2px);
}

/* White Outline Button (For Dark Backgrounds) */
.btn-outline-white.btn-kamaraj {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-outline-white.btn-kamaraj:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #154979;
}

/* Icon Spacing */
.btn-kamaraj i {
    font-size: 1.1em;
}

.btn-kamaraj.btn-sm i {
    font-size: 1em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn-kamaraj {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-kamaraj.btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* Button Group Spacing */
.btn-kamaraj + .btn-kamaraj {
    margin-left: 0.75rem;
}

@media (max-width: 576px) {
    .btn-kamaraj + .btn-kamaraj {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/* Additional Styles for Teaching Methodology Section */
.bg-gradient-reverse-primary {
    background: linear-gradient(135deg, #154979 0%, #1e5a8e 100%);
}

.card.lift {
    transition: all 0.3s ease;
}

.card.lift:hover {
    transform: translateY(-10px);
}

/* Icon animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.icon-box i {
    animation: float 3s ease-in-out infinite;
}

/* AOS Animation Support - Add this library to your project */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .display-3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2rem;
    }

    .card-body.p-6 {
        padding: 1.5rem !important;
    }

    .card-body.p-5 {
        padding: 1.25rem !important;
    }
}

.btn-sm, .btn-group-sm > .btn {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.7rem !important;
    border-radius: 0.2rem !important;
}


.view-bio-btn {
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.813rem;
}

.view-bio-btn:hover {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #154979 0%, #1e5a8e 100%);
}

.modal-dialog {
    max-width: 800px;
}

.modal-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

#modalFacultyDescription {
    white-space: pre-line;
    word-wrap: break-word;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Smooth modal animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-50px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}
/* Faculty Page Custom Styles */
.faculty-image-wrapper {
    position: relative;
    display: inline-block;
}

.faculty-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #ddd;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.faculty-img-placeholder {
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
}

.faculty-image-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #154979;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card-hover {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* .team-card-hover:hover {
    transform: translateY(-2px);
}

.team-card-hover:hover .faculty-img {
    transform: scale(1);
} */

/* .team-card-hover:hover .faculty-image-border {
    opacity: 1;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
} */

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Lift Effect */
.lift {
    transition: all 0.3s ease;
}

.lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,.15) !important;
}

/* Section Title Underline Animation */
.section-title-underline {
    position: relative;
    display: inline-block;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .faculty-img,
    .faculty-img-placeholder {
        width: 120px;
        height: 120px;
    }

    .card-body.p-5 {
        padding: 1.5rem !important;
    }

    h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .faculty-img,
    .faculty-img-placeholder {
        width: 100px;
        height: 100px;
    }

    .icon.btn-xl {
        width: 50px;
        height: 50px;
    }

    .icon.btn-xl i {
        font-size: 24px !important;
    }
}

/* Animation for cards entrance */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

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

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Card border on hover for non-director cards */


/* Image loading animation */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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



/* Additional Enhanced Styles */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.lift {
    transition: all 0.3s ease;
}

.lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

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

.social-icon-link {
    text-decoration: none;
    display: block;
}

.social-icon-link:hover .icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.card {
    transition: all 0.3s ease;
}


/* Image hover effects */
.card-img-top {
    transition: transform 0.3s ease;
}

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

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 24px !important;
    }
}

/* Owl Carousel custom styling */
.owl-carousel .owl-nav button {
    background: #154979 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}

.owl-carousel .owl-nav button:hover {
    background: #103a5f !important;
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: #154979 !important;
}

/* Section spacing improvements */
.wrapper {
    position: relative;
}

/* Card shadow enhancements */
.{
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline for links */
.hover {
    position: relative;
    transition: all 0.3s ease;
}

.hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.hover:hover::after {
    width: 100%;
}

/* Loading animation for images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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

/* Scroll to top button enhancement */
.progress-wrap {
    transition: all 0.3s ease;
}

.progress-wrap:hover {
    transform: scale(1.1);
}
