:root {
        --primary-gradient: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
        --secondary-gradient: linear-gradient(135deg, #5fcf80 0%, #3a9d5d 100%);
        --gold-gradient: linear-gradient(135deg, #5fcf80 0%, #37423b 100%);
        --elegant-shadow: 0 20px 40px rgba(0,0,0,0.1);
        --card-shadow: 0 10px 30px rgba(0,0,0,0.12);
        --hover-shadow: 0 25px 50px rgba(0,0,0,0.18);
    }

    .principal-history-page {
        background: #f8fafc;
    }

    .hero-section {
        background: var(--primary-gradient);
        padding: 100px 0 80px;
        position: relative;
        overflow: hidden;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
        background-size: cover;
        background-position: bottom;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
    }

    .hero-title {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        animation: fadeInUp 1s ease-out;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        font-weight: 300;
        opacity: 0.9;
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease-out 0.3s both;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
        opacity: 0.8;
        line-height: 1.6;
        animation: fadeInUp 1s ease-out 0.6s both;
    }

    .timeline-container {
        padding: 80px 0;
        position: relative;
    }

    .section-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2.8rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }

    .section-subtitle {
        font-size: 1.2rem;
        color: #7f8c8d;
        font-weight: 300;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.6;
    }

    .timeline {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
    }

    .timeline::after {
        content: '';
        position: absolute;
        width: 6px;
        background: var(--primary-gradient);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -3px;
        border-radius: 3px;
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    .timeline-item {
        padding: 20px 40px;
        position: relative;
        background-color: inherit;
        width: 50%;
        opacity: 0;
        animation: slideInTimeline 0.8s ease-out forwards;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        animation-delay: 0.2s;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        animation-delay: 0.4s;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        right: -17px;
        background: var(--gold-gradient);
        border: 4px solid white;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 50%;
        z-index: 1;
        box-shadow: 0 0 15px rgba(255, 215, 155, 0.5);
    }

    .timeline-item:nth-child(even)::after {
        left: -17px;
    }

    .principal-card {
        background: white;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
    }

    .principal-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--hover-shadow);
    }

    .card-header {
        background: var(--primary-gradient);
        color: white;
        padding: 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .card-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.05) 10px,
            rgba(255,255,255,0.05) 20px
        );
        animation: shimmer 3s linear infinite;
    }

    .tenure-badge {
        background: rgba(255,255,255,0.2);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 10px;
        display: inline-block;
        backdrop-filter: blur(10px);
    }

    .principal-name {
        font-size: 1.4rem;
        font-weight: 600;
        margin: 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        color:white;
    }

    .card-body {
        padding: 0;
        display: flex;
        align-items: stretch;
    }

    .image-container {
        flex: 0 0 272px;
        position: relative;
        overflow: hidden;
    }

    .principal-image {
        width: 272px;
        height: 336px;
        object-fit: cover;
        transition: transform 0.5s ease;
        border-radius: 0;
    }

    .principal-card:hover .principal-image {
        transform: scale(1.1);
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            45deg,
            rgba(102, 126, 234, 0.8) 0%,
            rgba(118, 75, 162, 0.8) 100%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .principal-card:hover .image-overlay {
        opacity: 1;
    }

    .no-image-placeholder {
        width: 272px;
        height: 336px;
        background: linear-gradient(135deg, #e3e3e3 0%, #f0f0f0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: #999;
        border-radius: 0;
    }

    .no-image-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .details-container {
        flex: 1;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .college-status {
        color: #667eea;
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .college-status i {
        margin-right: 8px;
        font-size: 1.2rem;
    }

    .tenure-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .tenure-item {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #667eea;
    }

    .tenure-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .tenure-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
    }

    .duration-display {
        background: var(--gold-gradient);
        color: white;
        padding: 15px;
        border-radius: 10px;
        text-align: center;
        font-weight: 600;
        margin-top: 15px;
    }

    .current-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #28a745;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 10;
        animation: pulse 2s infinite;
    }

    .stats-section {
        background: white;
        padding: 60px 0;
        margin: 60px 0;
        border-radius: 20px;
        box-shadow: var(--card-shadow);
    }

    .stat-item {
        text-align: center;
        padding: 20px;
    }

    .stat-number {
        font-size: 3rem;
        font-weight: 700;
        color: #667eea;
        display: block;
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: 1.1rem;
        color: #666;
        font-weight: 500;
    }

    .empty-state {
        text-align: center;
        padding: 100px 20px;
        color: #666;
    }

    .empty-state i {
        font-size: 5rem;
        margin-bottom: 2rem;
        opacity: 0.3;
    }

    .empty-state h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #2c3e50;
    }

    .empty-state p {
        font-size: 1.1rem;
        max-width: 400px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideInTimeline {
        from {
            opacity: 0;
            transform: translateX(100px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
        100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
    }

    /* Enhanced Mobile Responsive Design */
    @media (max-width: 992px) {
        .hero-section {
            padding: 60px 0 40px;
        }
        
        .hero-title { 
            font-size: 2.8rem; 
            line-height: 1.2;
        }
        
        .stats-section {
            padding: 40px 0;
            margin: 40px 0;
        }
        
        .stat-number { font-size: 2.5rem; }
        
        .timeline-container {
            padding: 60px 0;
        }
        
        .section-header {
            margin-bottom: 40px;
        }
        
        .principal-card {
            margin-bottom: 2rem;
        }
    }

    @media (max-width: 768px) {
        .hero-section {
            padding: 50px 0 30px;
        }
        
        .hero-title { 
            font-size: 2.2rem;
            margin-bottom: 1.5rem;
        }
        
        .hero-subtitle { 
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }
        
        .hero-description {
            font-size: 1rem;
            padding: 0 1rem;
        }
        
        .section-title { 
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
        
        .section-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }
        
        /* Mobile Timeline Adjustments */
        .timeline::after { 
            left: 20px; 
            width: 4px;
        }
        
        .timeline-item {
            width: 100%;
            padding-left: 50px;
            padding-right: 15px;
            margin-bottom: 2rem;
        }
        
        .timeline-item::after { 
            left: 8px;
            width: 20px;
            height: 20px;
        }
        
        .timeline-item:nth-child(even) {
            left: 0%;
        }
        
        /* Mobile Card Layout */
        .principal-card {
            margin-bottom: 2rem;
            border-radius: 15px;
        }
        
        .card-body {
            flex-direction: column;
            padding: 0;
        }
        
        .image-container {
            flex: none;
            align-self: center;
            margin-bottom: 1rem;
        }
        
        .principal-image,
        .no-image-placeholder {
            width: 100%;
            max-width: 272px;
            height: auto;
            aspect-ratio: 272/336;
            margin: 0 auto;
        }
        
        .details-container {
            padding: 1.5rem;
        }
        
        .college-status {
            font-size: 1rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        
        .tenure-info {
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 1.5rem;
        }
        
        .tenure-item {
            padding: 12px;
            text-align: left;
        }
        
        .duration-display {
            padding: 12px;
            font-size: 0.95rem;
        }
        
        /* Mobile Statistics */
        .stats-section {
            padding: 30px 0;
            margin: 30px 0;
        }
        
        .stat-item {
            padding: 15px 10px;
            margin-bottom: 1rem;
        }
        
        .stat-number { 
            font-size: 2.2rem; 
            margin-bottom: 8px;
        }
        
        .stat-label { 
            font-size: 1rem; 
        }
        
        /* Current Badge Mobile */
        .current-badge {
            top: 10px;
            right: 10px;
            padding: 6px 12px;
            font-size: 0.8rem;
        }
    }

    @media (max-width: 576px) {
        .hero-section {
            padding: 40px 0 25px;
        }
        
        .hero-title { 
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }
        
        .hero-subtitle { 
            font-size: 1rem;
            margin-bottom: 1rem;
        }
        
        .hero-description {
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        .section-title { 
            font-size: 1.7rem;
        }
        
        .section-subtitle {
            font-size: 1rem;
        }
        
        /* Extra Small Mobile Timeline */
        .timeline::after { 
            left: 15px; 
            width: 3px;
        }
        
        .timeline-item {
            padding-left: 40px;
            padding-right: 10px;
        }
        
        .timeline-item::after { 
            left: 6px;
            width: 18px;
            height: 18px;
        }
        
        /* Extra Small Mobile Cards */
        .principal-card {
            border-radius: 12px;
            margin-bottom: 1.5rem;
        }
        
        .card-header {
            padding: 15px;
        }
        
        .principal-name {
            font-size: 1.2rem;
        }
        
        .tenure-badge {
            font-size: 0.8rem;
            padding: 4px 12px;
        }
        
        .principal-image,
        .no-image-placeholder {
            max-width: 240px;
            height: auto;
            aspect-ratio: 272/336;
        }
        
        .details-container {
            padding: 1rem;
        }
        
        .college-status {
            font-size: 0.95rem;
        }
        
        .tenure-item {
            padding: 10px;
            border-radius: 8px;
        }
        
        .tenure-label {
            font-size: 0.85rem;
        }
        
        .tenure-value {
            font-size: 1rem;
        }
        
        .duration-display {
            padding: 10px;
            font-size: 0.9rem;
        }
        
        /* Mobile Statistics Compact */
        .stat-item {
            padding: 10px 5px;
        }
        
        .stat-number { 
            font-size: 1.8rem; 
        }
        
        .stat-label { 
            font-size: 0.9rem; 
        }
        
        /* Mobile Empty State */
        .empty-state {
            padding: 60px 15px;
        }
        
        .empty-state i {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
        }
        
        .empty-state h3 {
            font-size: 1.5rem;
        }
        
        .empty-state p {
            font-size: 1rem;
            max-width: 300px;
        }
        
        /* Mobile Touch Improvements */
        .principal-card:hover {
            transform: none;
        }

        .principal-image:hover {
            transform: none;
        }

        .image-overlay {
            display: none;
        }
        
        .principal-card.touching {
            transform: scale(0.98);
            transition: transform 0.1s ease;
        }
    }

    @media (max-width: 400px) {
        .hero-title { 
            font-size: 1.6rem;
        }
        
        .section-title { 
            font-size: 1.5rem;
        }
        
        .principal-image,
        .no-image-placeholder {
            max-width: 200px;
            height: auto;
            aspect-ratio: 272/336;
        }
        
        .details-container {
            padding: 0.75rem;
        }
        
        .college-status {
            font-size: 0.9rem;
        }
        
        .stat-number { 
            font-size: 1.6rem; 
        }
    }

.legacy-excellence__title {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.legacy-excellence__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}
