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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes textAnimation {
    to {
        opacity: 1; /* Fade in the text */
        transform: translateX(0); /* Slide in from left to right */
    }
}

@keyframes borderAnimation {
    to { height: 88%; }
}

.faculties-page {
    /* ========================================
       PREMIUM TIMELINE DESIGN - WHITE BACKGROUND
       RED & GOLD THEME
       ======================================== */
    --primary: #ff3b3b;
    --primary-dark: #cc0000;
    --primary-light: #a50000;
    --accent: #d4af37;
    --accent-light: #f0c94d;
    --accent-dark: #b8942e;
    --secondary: #ff6b6b;
    --dark: #1a0f0f;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-600: #666666;
    --gray-700: #4a4a4a;
    --gray-900: #171717;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
}

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

/* Subtle Background Pattern */
.faculties-page .services-section {
    padding: 80px 0;
    position: relative;
    background: white;
}

.faculties-page .services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 50%, rgba(255, 59, 59, 0.02) 1%, transparent 1%);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Hero Section */
.faculties-page .hero-section {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.faculties-page .hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.08) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.faculties-page .hero-badge i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.faculties-page .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease-out;
    letter-spacing: -0.02em;
}

.faculties-page .hero-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out;
}

/* Feature Box
---------------------*/
.faculties-page .btn-link{
    color: #8d0000;
}
.faculties-page .btn-link:hover{
    color: #980000;
}
.faculties-page .services-section p{
    line-height: 25px;
    letter-spacing:1.5px ;
    margin-top: 10px;
}
.faculties-page .services-section .feature-content p{
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 19px;
}
.faculties-page .feature-box-1 {
    padding: 32px;
    margin: 10px;
    box-shadow: 0 0 30px rgba(31, 45, 61, 0.125);
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    -moz-transition: ease all 0.35s;
    -o-transition: ease all 0.35s;
    -webkit-transition: ease all 0.35s;
    transition: ease all 0.35s;
    top: 0;
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}
.faculties-page .feature-box-1 * {
    -moz-transition: ease all 0.35s;
    -o-transition: ease all 0.35s;
    -webkit-transition: ease all 0.35s;
    transition: ease all 0.35s;
}
.faculties-page .feature-box-1 .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 22px;
    font-size: 27px;
}
.faculties-page .feature-box-1 .icon i {
  line-height: 10px;
}
.faculties-page .feature-box-1 h5 {
  color: #030303;
  font-weight: 500;
  letter-spacing: 1px;
}.faculties-page .services-section .feature-box-1 p {
  margin: 0;
}
.faculties-page .feature-box-1:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 0;
  background: #e8e8e8;
  z-index: -1;
  -moz-transition: ease all 0.60s;
  -o-transition: ease all 0.60s;
  -webkit-transition: ease all 0.60s;
  transition: ease all 0.60s;
}
.faculties-page .feature-box-1:hover {
  top: -5px;
}
.faculties-page .feature-box-1:hover h5 {
  color: #000000;
}
.faculties-page .feature-box-1:hover p {
  color: rgba(0, 0, 0, 0.8);
}
.faculties-page .feature-box-1:hover:after {
  width: 100%;
  height: 100%;
  left: 0;
  right: auto;
}
  /* Un-animated Feature Box
---------------------*/
.faculties-page .feature-box-2 {
    padding: 32px;
    margin: 10px;
    box-shadow: 0 0 30px rgba(31, 45, 61, 0.125);
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    -moz-transition: ease all 0.35s;
    -o-transition: ease all 0.35s;
    -webkit-transition: ease all 0.35s;
    transition: ease all 0.35s;
    top: 0;
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}
.faculties-page .feature-box-2 * {
    -moz-transition: ease all 0.35s;
    -o-transition: ease all 0.35s;
    -webkit-transition: ease all 0.35s;
    transition: ease all 0.35s;
}
.faculties-page .feature-box-2 .icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: #ffffff;
    color: #000000;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 22px;
    font-size: 27px;
}
.faculties-page .feature-box-2 .icon i {
    line-height: 10px;
}
.faculties-page .feature-box-2 h5 {
    color: #030303;
    font-weight: 500;
}
.faculties-page .services-section .feature-box-2 p {
    margin: 0;
}
.faculties-page .feature-box-2:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    border-radius: 1px;
    width: 0;
    background: #e8e8e8;
    z-index: -1;
    -moz-transition: ease all 1s;
    -o-transition: ease all 1s;
    -webkit-transition: ease all 1s;
    transition: ease all 1s;
}
.faculties-page .section {
    padding: 100px 0;
    position: relative;
}
.faculties-page .section-title h2 {
    font-weight: 700;
    color: #000000;
    padding-left: 20px;
    font-size: 45px;
    margin: 0 0 20px;
    position: relative; /* Required for absolute positioning of pseudo-element */
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 0.5s ease-out forwards;

}

.faculties-page .section-title h2::before {
    content: ""; /* Create an empty pseudo-element for the border */
    position: absolute;
    left: -5px;
    bottom: 0;
    width: 1.5px;
    height: 0; /* Initially set height to 0 */
    background-color: #890000;
    animation: borderAnimation 1.5s ease-out forwards; /* Border animation properties */
}

.faculties-page .section-title h2 {
    position: relative; /* Set position to relative for proper animation */
    opacity: 0; /* Initially set opacity to 0 */
    transform: translateX(-10px); /* Initial position outside the viewport */
    animation: textAnimation 1s ease-out forwards; /* Text animation properties */
}
.faculties-page .services-section a{
    text-decoration: none;
    color: #070101;
}
.faculties-page .services-section ul{
    list-style: none;
    font-weight: 500;
}
.faculties-page .show-button-div{
    display: flex;
    justify-content: end;
}
.faculties-page .hide-button-div{
    display: flex;
    justify-content: end;
}


/* Stats Section */
.faculties-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 40px 0 60px;
    position: relative;
    z-index: 2;
}

.faculties-page .stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.faculties-page .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.faculties-page .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faculties-page .stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* View Toggle Buttons */
.faculties-page .view-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.faculties-page .view-btn {
    background: white;
    border: 2px solid var(--gray-200);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faculties-page .view-btn i {
    color: var(--primary);
}

.faculties-page .view-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.2);
}

.faculties-page .view-btn.active i {
    color: white;
}

.faculties-page .view-btn:hover:not(.active) {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Timeline Container */
.faculties-page .timeline-container {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.faculties-page .timeline-header {
    text-align: center;
    margin-bottom: 50px;
}

.faculties-page .timeline-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.faculties-page .timeline-header p {
    color: var(--gray-600);
}

.faculties-page .timeline-header .accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* Timeline Grid */
.faculties-page .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Center Line */
.faculties-page .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
    transparent 0%,
    var(--accent) 15%,
    var(--primary) 50%,
    var(--accent) 85%,
    transparent 100%);
    border-radius: 3px;
}

/* Timeline Items */
.faculties-page .timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 80px;
    width: 50%;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.faculties-page .timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: auto;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger animations */
.faculties-page .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.faculties-page .timeline-item:nth-child(2) { animation-delay: 0.2s; }
.faculties-page .timeline-item:nth-child(3) { animation-delay: 0.3s; }
.faculties-page .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.faculties-page .timeline-item:nth-child(5) { animation-delay: 0.5s; }
.faculties-page .timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* Timeline Badge */
.faculties-page .timeline-badge {
    position: absolute;
    right: -46px;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}

.faculties-page .timeline-item:nth-child(even) .timeline-badge {
    right: auto;
    left: -46px;
}

.faculties-page .timeline-item:hover .timeline-badge {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.faculties-page .timeline-badge i {
    font-size: 1.5rem;
    color: white;
}

/* Timeline Content */
.faculties-page .timeline-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s;
    width: 100%;
    cursor: pointer;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.faculties-page .timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--accent);
}

.faculties-page .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Level Tag */
.faculties-page .level-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.faculties-page .level-tag i {
    font-size: 0.875rem;
}

/* Title */
.faculties-page .timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

/* Programs Grid */
.faculties-page .programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.faculties-page .program-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.faculties-page .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s;
}

.faculties-page .program-card:hover::before {
    left: 100%;
}

.faculties-page .program-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.faculties-page .program-name {
    font-size: 0.8125rem;
    color: white;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}

.faculties-page .program-icon {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* Expand/Collapse */
.faculties-page .expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
}

.faculties-page .expand-btn:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.faculties-page .programs-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faculties-page .programs-collapse.show {
    max-height: 2000px;
}

.faculties-page .faculty-expand-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

/* Faculty View Styling - Card Grid */
.faculties-page .faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px);
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.faculties-page .faculty-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.faculties-page .faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.faculties-page .faculty-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 2rem;
    text-align: center;
    position: relative;
}

.faculties-page .faculty-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--accent);
}

.faculties-page .faculty-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.faculties-page .faculty-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.faculties-page .faculty-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.faculties-page .faculty-body {
    padding: 1.5rem;
}

.faculties-page .faculty-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.faculties-page .faculty-programs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faculties-page .faculty-program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.faculties-page .faculty-program-item:hover {
    background: rgba(255, 59, 59, 0.05);
    transform: translateX(5px);
    border-color: var(--accent);
}

.faculties-page .faculty-program-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    line-height: 1.4;
    flex: 1;
}

.faculties-page .faculty-program-level {
    background: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Floating Action Button */
.faculties-page .fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 1000;
    border: 2px solid var(--accent);
}

.faculties-page .fab:hover {
    transform: scale(1.1) rotate(360deg);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.faculties-page .fab i {
    color: white;
    font-size: 1.5rem;
}
