/* Base Styles */
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --brick-primary: #8B0000;
            --brick-secondary: #A52A2A;
            --brick-light: #CD5C5C;
            --brick-dark: #5C0000;
            --brick-accent: #B22222;
            --text-light: #f5f5f5;
            --text-dark: #333;
            --text-muted: #777;
             --brick-900: #5a1f1b;   /* darkest */
                --brick-700: #8b2f2b;   /* primary deep brick */
                --brick-500: #c3493f;   /* mid / main */
                --brick-300: #e68a7f;   /* highlight */
                --cream:     #fff7f6;
                --muted:     #f6e9e8;
                --glass:     rgba(255,255,255,0.06);
                --accent:    #ffd966;
           
        }

        body {
            background-color: #f9f9f9;
            color: var(--text-dark);
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        section {
            margin: 0rem;
        }

        h2 {
            color: var(--brick-primary);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--brick-light);
            position: relative;
        }

        h2:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100px;
            height: 2px;
            background: var(--brick-dark);
        }
/*********************************************/
        /* Header Styles */
    .banner {
         /* Tri-Color gradient 
       background: linear-gradient(
  160deg,
  #FF9933 0%,
  #FF9933 53%,
  #FFFFFF 23%,
  #FFFFFF 36%,
  #138808 36%,
  #138808 100%
);*/

       /* background: linear-gradient(65deg, #8B0000 65%,#2c3e50 0%, #487057 25%);
      /*   background: linear-gradient(135deg, #1a2a6c 0%, #2c3e50 50%, #3498db 100%);*/
      background: linear-gradient(160deg, #8B0000 70%, #2c3e50 20%, #000000 100%);
    
        padding: 20px 0;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        border-bottom: 5px solid #e74c3c;
        position: relative;
        overflow: hidden;
    }
    
    
    .banner::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 100 100" preserveAspectRatio="none"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        pointer-events: none;
    }
    .login-links{
    margin-left:auto;      /* pushes to far right */
    display:flex;
    gap:8px;
    white-space:nowrap;    /* keeps both links one line */
}

.login-links a{
    font-weight:600;
    text-decoration:none;
}

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 0px;
        position: relative;
        z-index: 2;
    }
    
    /* Enhanced Logo Section */
    .logo {
        display: flex;
        align-items: center;
        gap: 5px;
        flex: 1;
    }
    
   

    .logo-icon {
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        padding: 2px;
        border-radius: 20px;
        box-shadow: 
            0 8px 25px rgba(0,0,0,0.2),
            inset 0 1px 0 rgba(255,255,255,0.8),
            inset 0 -1px 0 rgba(0,0,0,0.1);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 2px solid rgba(255,255,255,0.3);
        position: relative;
        overflow: hidden;
    }

    .logo-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }

    .logo-icon:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 
            0 15px 35px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.9);
    }

    .logo-icon:hover::before {
        left: 100%;
    }

    .logo-icon img {
        display: block;
        border-radius: 12px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        transition: transform 0.3s ease;
    }

    .logo-icon:hover img {
        transform: scale(1.05);
    }

    /* Enhanced Text Styling */
    .logo-text h1 {
        color: #ffffff;
        font-size: 2.5rem;
        margin: 0 0 12px 0;
        font-family: 'Playfair Display', 'Georgia', serif;
        text-shadow: 
            2px 2px 4px rgba(0,0,0,0.4),
            0 0 30px rgba(255,255,255,0.3);
        font-weight: 700;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
    }

    .logo-text h1::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #e74c3c, #3498db);
        border-radius: 2px;
    }

    .logo-text p {
        color: #ffffff;
        margin: 15px 0 0 0;
        font-size: 1.1rem;
        line-height: 1.6;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        font-family: 'Inter', 'Arial', sans-serif;
        font-weight: 400;
        background: rgba(255,255,255,0.1);
        padding: 2px 2px;
        border-radius: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.2);
        position: relative;
    }
/*   Department name   css */
      /* ======= Department Header Banner ======= */
header .deptbanner {
    background: linear-gradient(135deg, #0b2d5c 25%, #154c79 100%, #1f6ba3 100%);
    padding: 5px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
}

/* Elegant Indian-flag accent strip */
header .deptbanner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 6px;
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
    border-radius: 10px;
    opacity: 0.9;
}

/* Header inner layout */
.deptheader-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
}

/* Logo container (if you add logo later) */
.deptlogo {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Department Text Styling */
.deptlogo-text h1 {
    color: #ffffff;
    font-size: 55px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 2px 3px 6px rgba(0,0,0,0.4);
    font-family: "Segoe UI", "Poppins", sans-serif;
}

/* Responsive for mobile devices */
@media (max-width: 768px) {
    .deptlogo-text h1 {
        font-size: 26px;
    }
}

/* Smooth fade animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


       
    /* Enhanced Options Section */
    .options {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        padding: 5px;
        text-align: right;
    }

    .options a {
         
        color: white;
        text-decoration: none;
        padding: 1px 1px;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
    }

    .options a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        transition: left 0.6s;
    }

    .options a:hover {
         
        
    }

    .options a:hover::before {
        left: 100%;
    }

    .options a:active {
         
    }

    .options label {
        color: rgba(255,255,255,0.95);
        font-size: 12px;
        margin: 0;
        line-height: 1.4;
         
        font-family: 'Inter', 'Arial', sans-serif;
        padding: 8px 16px;
        
         
        
         
    }

    .options label:hover {
         
    }

    .options label:first-of-type {
        font-weight: 700;
        font-size: 12px;
       align-items: flex-end;
    }

    .options label:last-of-type {
        font-style: italic;
        font-size: 14px;
        
    }

    /* Remove <br> tags spacing */
    .options br {
        display: none;
    }

    /* Enhanced Icons */
    .options label:first-of-type::before {
        content: "📞 ";
        margin-right: 8px;
        filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    }

    .options label:last-of-type::before {
        content: "📧 ";
        margin-right: 8px;
        filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
    }

    /* Responsive Design */
    @media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0px;
        padding: 0 2px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .options {
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .logo-text h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-text p {
        font-size: 1rem;
        padding: 10px 15px;
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .options a {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .options label {
        font-size: 14px;
        padding: 6px 12px;
    }
}

        /* Navigation Styles */
        .navigation {
             background: var(--brick-dark);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            position: sticky;   /* keep menu stuck at top */
            top: 0;             /* position at top */
            z-index: 9999; 
            
        }

        .navbar {
            padding: 0;
        }

        .navbar-nav {
            display: flex;
            width: 100%;
            justify-content: space-between;
        }

        .nav-item {
            position: relative;
        }

        .nav-item > a {
            color: var(--text-light) !important;
            padding: 15px 20px !important;
            display: block;
            text-decoration: none;
            transition: all 0.3s;
            font-weight: 500;
        }

        .nav-item > a:hover {
            background: var(--brick-primary);
            color: var(--text-light) !important;
        }

        .navbar-toggler {
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 5px 10px;
        }

        .icon-bar {
            display: block;
            width: 22px;
            height: 2px;
            background: white;
            margin: 4px 0;
            transition: all 0.3s;
        }

        /* Submenu Styles */
        .sub-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--brick-dark);
            min-width: 250px;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
            list-style: none;
            padding: 0;
        }

        .nav-item:hover > .sub-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .sub-menu li {
            margin: 0;
            width: 100%;
            position: relative;
        }

        .sub-menu li a {
            padding: 12px 15px;
            display: block;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            color: var(--text-light);
            text-decoration: none;
        }

        .sub-menu li:last-child a {
            border-bottom: none;
        }

        .sub-menu li a:hover {
            background: var(--brick-primary);
            padding-left: 20px;
        }

        /* Multi-level dropdown styles */
        .dropdown-submenu {
            position: relative;
        }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -6px;
            margin-left: -1px;
            border-radius: 0 6px 6px 6px;
            display: none;
        }

        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }

        .dropdown-submenu > a:after {
            display: block;
            content: " ";
            float: right;
            width: 0;
            height: 0;
            border-color: transparent;
            border-style: solid;
            border-width: 5px 0 5px 5px;
            border-left-color: #ccc;
            margin-top: 5px;
            margin-right: -10px;
        }

        .dropdown-menu {
            background: var(--brick-dark);
            border: none;
            border-radius: 0 0 8px 8px;
            padding: 0;
        }

        .dropdown-item {
            color: var(--text-light);
            padding: 10px 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
        }

        .dropdown-item:hover {
            background: var(--brick-primary);
            color: var(--text-light);
        }

        .dropdown-toggle::after {
            margin-left: 5px;
            border-top: 5px solid;
            border-right: 5px solid transparent;
            border-left: 5px solid transparent;
        }

        /* Slider and Principal Message Row */
        .row-1 {
            display: flex;
            margin: 0.5rem 0;
            gap: 0.5rem;
            height: 400px;
        }

        .slider-container {
            flex: 2;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .slider {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .slide {
            min-width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: flex-end;
            padding: 20px;
            color: white;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            position: relative;
        }

        .slide:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            
        }

        .slide-content {
            position: relative;
            z-index: 1;
            background: rgba(139, 0, 0, 0.8);
            padding: 15px;
            border-radius: 5px;
            max-width: 80%;
        }

        .slider-arrows {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            z-index: 10;
            padding: 0 15px;
        }

        .arrow {
            background: rgba(139, 0, 0, 0.7);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid white;
        }

        .arrow:hover {
            background: var(--brick-primary);
            transform: scale(1.1);
        }
         
         /* =========================================================
            RESPONSIVE BREAKPOINTS
         ========================================================= */

         /* ===== Tablets ===== */
         @media (max-width: 992px){

             .row-1{
                 height:45vh;
             }

             .slide-content{
                 max-width:90%;
                 padding:12px;
             }

             .arrow{
                 width:36px;
                 height:36px;
             }
         }

         /* ===== Mobile ===== */
         @media (max-width: 768px){

             .row-1{
                 flex-direction:column;
                 height:auto;
             }

             .slider-container{
                 flex:unset;
                 height:260px;
             }

             .slide{
                 padding:12px;
             }

             .slide-content{
                 max-width:100%;
                 font-size:0.9rem;
                 padding:10px;
             }

             .arrow{
                 width:30px;
                 height:30px;
             }
         }

         /* ===== Small Phones ===== */
         @media (max-width: 480px){

             .slider-container{
                 height:220px;
             }

             .slide-content{
                 font-size:0.8rem;
                 padding:8px;
             }

             .arrow{
                 width:26px;
                 height:26px;
                 border-width:1px;
             }
         }


         
        .principal-message {
            flex: 1;
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border-left: 5px solid var(--brick-primary);
            display: flex;
            flex-direction: column;
            height: 400px;
            padding-bottom: 0;
        }

        .principal-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            gap: 15px;
        }

        .principal-photo {
            width: 150px;
            height: 130px;
            border-radius: 50%;
            background-color: #ddd;
            overflow: hidden;
            border: 3px solid var(--brick-primary);
            box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
            flex-shrink: 0;
        }

        .principal-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .principal-name {
            text-align: left;
            flex: 1;
        }

        .principal-name h5 {
            color: var(--brick-primary);
            margin: 0 0 5px 0;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .principal-name p {
            color: var(--text-muted);
            margin: 0;
            font-size: 14px;
            line-height: 1.3;
        }

        .message-content {
            flex: 1;
            overflow-y: auto;
            padding-right: 8px;
            text-align: justify;
            margin-top: 0;
        }

        .message-content p {
            margin: 0;
            font-size: 12px;
            line-height: 1.4;
        }

        /* Scrollbar styling for message content */
       /* Scrollbar Styling - Merged for all scrollable elements */
.message-content::-webkit-scrollbar,
.notice-list::-webkit-scrollbar {
    width: 6px;
}

.message-content::-webkit-scrollbar-track,
.notice-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb,
.notice-list::-webkit-scrollbar-thumb {
    background: var(--brick-primary);
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb:hover,
.notice-list::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Row 2 - Elegant Notices and College Tarana */
.row-2 {
    display: flex;
    margin: 0.5rem 0;
    gap: 0.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

        /* Elegant Notices Section */
        .notices {
            flex: 0 0 65%;
            background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.9),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            position: relative;
            overflow: hidden;
        }

        .notices::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #8B0000, #722F37, #8B0000);
            border-radius: 20px 20px 0 0;
        }

        /* Elegant College Tarana Section */
        .college-tarana {
            flex: 0 0 40%;
            background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: 
                0 10px 40px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            display: flex;
            flex-direction: column;
            gap: 2rem;
            position: relative;
            overflow: hidden;
        }

        .college-tarana::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #8B0000, #722F37, #8B0000);
            border-radius: 20px 20px 0 0;
        }

        .college-tarana h2 {
            color: #2c3e50;
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
            text-align: center;
            position: relative;
            padding-bottom: 1rem;
        }

        .college-tarana h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #8B0000, #722F37);
            border-radius: 2px;
        }

        .college-tarana iframe {
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.8);
            transition: all 0.3s ease;
            width: 100%;
        }

        .college-tarana iframe:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        }

        /* Elegant Notices Header */
        .notices-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid rgba(139, 0, 0, 0.1);
            position: relative;
            line-height: 1;
    margin-bottom: 0;
        }

        .notices-header h2 {
            color: #2c3e50;
            font-size: 2.2rem;
            font-weight: 700;
            margin: 0;
            position: relative;
            padding-left: 1.5rem;
            line-height: 1;
    margin-bottom: 0;
        }

        .notices-header h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 35px;
            background: linear-gradient(135deg, #8B0000, #722F37);
            border-radius: 3px;
        }

        /* Elegant Notice Tabs */
        .notice-tabs {
            display: flex;
            border-bottom: 2px solid rgba(139, 0, 0, 0.08);
            margin-bottom: 2rem;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .notice-tab {
            padding: 12px 24px;
            cursor: pointer;
            border: none;
            background: transparent;
            color: #6c757d;
            font-weight: 500;
            font-size: 0.95rem;
            border-radius: 12px 12px 0 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .notice-tab::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, #8B0000, #722F37);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .notice-tab.active {
            color: #8B0000;
            background: rgba(139, 0, 0, 0.05);
            font-weight: 600;
        }

        .notice-tab.active::before {
            width: 80%;
        }

        .notice-tab:hover:not(.active) {
            color: #722F37;
            background: rgba(139, 0, 0, 0.03);
            transform: translateY(-1px);
        }

        /* Elegant Notice Content */
        .notice-content {
            height: 500px;
            overflow: hidden;
            position: relative;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.5);
            line-height: 1;
            margin-bottom: 0;
        }

        .notice-list {
            display: none;
            height: 100%;
            overflow-y: auto;
            scroll-behavior: auto !important;
            padding: 1.5rem;
            background: white;
            border-radius: 12px;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.04);
            animation: elegantFadeIn 0.6s ease-out;
            line-height: 1;
            margin-bottom: 0;
        }

        .notice-list.active {
            display: block;
        }

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

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

        /* Elegant Notice Items */
        .notice-item {
            padding: 1.5rem;
            border-bottom: 1px solid rgba(139, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-radius: 10px;
            margin-bottom: 0.5rem;
            background: white;
            position: relative;
            overflow: hidden;
            line-height: 1;
            margin-bottom: 0;
        }

        .notice-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #8B0000, #722F37);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .notice-item:hover {
            background: linear-gradient(135deg, #fff9f9, #fff5f5);
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(139, 0, 0, 0.1);
        }

        .notice-item:hover::before {
            opacity: 1;
        }

        .notice-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .notice-date {
            font-size: 0.85rem;
            color: #8B0000;
            margin-bottom: 8px;
            font-weight: 600;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
            line-height: 1;
            margin-bottom: 0;
        }

        .notice-date::before {
            content: '📅';
            font-size: 0.8rem;
        }

        .notice-item h4 {
            color: #2c3e50;
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 8px 0;
            line-height: 1.4;
        }

        .notice-item p {
            color: #6c757d;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
            line-height: 1;
    margin-bottom: 0;
        }

        /* Elegant Admissions Section */
        .admissions {
            width: 100%;
            height: 140px;
        }

        /* Keep your existing animated admissions button styles */
        .admissions-btn {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #8B0000, #FF0000, #8B0000);
            background-size: 200% 200%;
            border: none;
            border-radius: 15px;
            color: white;
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            padding: 30px;
            box-shadow: 
                0 10px 30px rgba(139, 0, 0, 0.4),
                0 0 0 3px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            animation: pulse-glow 2s infinite alternate;
        }

        /* All your existing admissions button animations and styles remain the same */
        /* Pulsing glow animation */
        @keyframes pulse-glow {
            0% {
                box-shadow: 
                    0 10px 30px rgba(139, 0, 0, 0.4),
                    0 0 0 3px rgba(255, 255, 255, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }
            100% {
                box-shadow: 
                    0 10px 40px rgba(255, 0, 0, 0.6),
                    0 0 0 3px rgba(255, 255, 255, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
            }
        }

        /* Animated gradient background */
        .admissions-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.8s;
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            50% { left: -100%; }
            100% { left: 100%; }
        }

        /* Sparkle effect */
        .admissions-btn::after {
            content: '✨';
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 1.5rem;
            animation: sparkle 2s infinite;
        }

        @keyframes sparkle {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.2); }
        }

        .admissions-btn:hover {
            transform: translateY(-8px) scale(1.05);
            background: linear-gradient(135deg, #FF0000, #FF4500, #FF0000);
            background-size: 200% 200%;
            animation: none;
            box-shadow: 
                0 20px 50px rgba(255, 0, 0, 0.6),
                0 0 0 4px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .admissions-btn:active {
            transform: translateY(-2px) scale(1.02);
            transition: all 0.1s ease;
        }

        .admissions-text {
            font-size: 2rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 0;
            color: white;
            text-shadow: 
                2px 2px 4px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 255, 255, 0.5);
            position: relative;
            z-index: 2;
            animation: text-glow 2s infinite alternate;
        }

        @keyframes text-glow {
            0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.5); }
            100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.8); }
        }

        .admissions-year {
            font-size: 2.8rem;
            font-weight: 900;
            color: #FFD700;
            text-shadow: 
                3px 3px 6px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(255, 215, 0, 0.8);
            margin: 0;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
            padding: 12px 25px;
            border-radius: 30px;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 215, 0, 0.5);
            position: relative;
            z-index: 2;
            transition: all 0.3s ease;
            animation: year-bounce 3s infinite;
        }

        @keyframes year-bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .admissions-btn:hover .admissions-year {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), rgba(255, 165, 0, 0.4));
            border-color: rgba(255, 215, 0, 0.8);
            transform: scale(1.15);
            animation: none;
        }

        /* Urgency badge */
        .admissions-btn .urgency-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #FFD700;
            color: #8B0000;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: bold;
            animation: urgent-pulse 1s infinite;
            z-index: 3;
        }

        @keyframes urgent-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Call-to-action arrow */
        .admissions-btn .cta-arrow {
            position: absolute;
            bottom: 15px;
            font-size: 1.5rem;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* Row 3 - About the College */
        .row-3 {
            background: white;
            padding: 0.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .about-content {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .about-text {
            flex: 2;
        }

        .about-text p {
            margin-bottom: 1rem;
        }

        .about-image {
            flex: 1;
            height: 250px;
            background: linear-gradient(135deg, var(--white-primary), var(--white-light));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .row-2 {
                flex-direction: column;
                gap: 0.5rem;
            }

            .notices, .college-tarana {
                flex: 0 0 100%;
            }

            .notice-tabs {
                overflow-x: auto;
                flex-wrap: nowrap;
            }
        }

        @media (max-width: 768px) {
            .row-2 {
                margin: 0.5rem 0;
                gap: 0.5rem;
            }

            .notices, .college-tarana {
                padding: 2rem;
            }

            .notices-header h2 {
                font-size: 1.8rem;
            }

            .college-tarana iframe {
                width: 100%;
                height: 250px;
            }

            .admissions-btn {
                padding: 20px;
                gap: 10px;
            }

            .admissions-text {
                font-size: 1.6rem;
                letter-spacing: 2px;
            }

            .admissions-year {
                font-size: 2.2rem;
                padding: 8px 20px;
            }
        }

        @media (max-width: 480px) {
            .notices, .college-tarana {
                padding: 1.5rem;
                border-radius: 15px;
            }

            .notices-header h2 {
                font-size: 1.5rem;
            }

            .notice-tab {
                padding: 10px 16px;
                font-size: 0.9rem;
            }
        /*8888888888    Admission Button  **************************************/    
           /* container (optional) */
            /* --- IMPROVED & STRIKING RED-BRICK PALETTE --- */
        :root{
          --brick-dark: #7a0505;   /* Deep intense red brick */
          --brick-main: #b30909;   /* Prominent visible red brick */
          --brick-bright: #e02121; /* Vibrant highlight red */
          --brick-glow: rgba(255, 65, 65, 0.55);
          --cream: #fffdfc;
          --accent: #ffef5f;
          --muted: #ffe2df;
        }

        /* ---------------------------------------------- */
        /* BUTTON BASE — NOW STRIKING & VIBRANT */
        .admissions-btn{
          --pad: 18px 28px;
          position: relative;
          display: inline-grid;
          grid-template-columns: auto 1fr auto;
          gap: 12px;
          align-items: center;
          padding: var(--pad);

          /* 🔥 BOLDER RED BRICK LOOK */
          background: linear-gradient(
              180deg,
              var(--brick-bright) 0%,
              var(--brick-main) 45%,
              var(--brick-dark) 100%
          );

          border: none;
          border-radius: 14px;

          /* 💥 MUCH STRONGER DEPTH */
          box-shadow:
            0 10px 30px rgba(145, 0, 0, 0.55),
            0 0 12px var(--brick-glow),
            inset 0 1px 1px rgba(255,255,255,0.25);

          color: var(--cream);
          cursor: pointer;
          transform: translateZ(0);
          transition: all 260ms ease;
          overflow: visible;
          min-width: 260px;
        }

        /* ---------------------------------------------- */
        /* HOVER — POWERFUL POP-UP EFFECT NOW */
        .admissions-btn:hover,
        .admissions-btn:focus{
          transform: translateY(-6px) scale(1.03);

          box-shadow:
            0 18px 50px rgba(145,0,0,0.7),
            0 0 18px rgba(255,60,60,0.8),
            inset 0 1px 1px rgba(255,255,255,0.35);

          background: linear-gradient(
              180deg,
              #ff3b3b 0%,
              #d10b0b 50%,
              #8a0404 100%
          );

          outline: none;
        }

        /* Glow when focused using keyboard */
        .admissions-btn:focus-visible{
          box-shadow:
            0 0 0 4px rgba(255, 90, 90, 0.4),
            0 18px 50px rgba(145,0,0,0.6);
        }

        /* ---------------------------------------------- */
        /* URGENCY BADGE — MORE POPPING & BRIGHT */
        .urgency-badge{
          background: linear-gradient(90deg, #ffef5f, #ffd447);
          color: #222;
          font-weight: 800;
          padding: 6px 12px;
          border-radius: 999px;
          box-shadow: 0 6px 14px rgba(255,215,80,0.55);
          animation: badge-pulse 1.8s infinite ease-in-out;
        }

        /* ---------------------------------------------- */
        /* TEXT */
        .admissions-text{
          font-weight: 800;
          font-size: 1.12rem;
          text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        .admissions-year{
          color: #ffe8e4;
          font-size: 0.85rem;
          margin-top: 2px;
        }

        /* ---------------------------------------------- */
        /* SPARKLE — MORE VISIBLE */
        .sparkle-2{
          font-size: 1.12rem;
          opacity: 1;
          filter: drop-shadow(0 8px 8px rgba(255, 60, 60, 0.7));
        }

        /* ---------------------------------------------- */
        /* PARTICLES — MADE BRIGHTER */
        .admissions-btn .particle{
          background: rgba(255,255,255,0.3);
          box-shadow: 0 0 6px rgba(255,255,255,0.8);
          opacity: 0.95;
        }

        /* ---------------------------------------------- */
        /* PARTICLE BURST MORE DRAMATIC */
        .admissions-btn:hover .particle{
          transform: translateY(-30px) scale(1.2);
          opacity: 0.3;
        }

        /* ---------------------------------------------- */
        /* BADGE PULSE — STRONGER */
        @keyframes badge-pulse{
          0% { transform: scale(1); }
          50% { transform: scale(1.12); }
          100% { transform: scale(1); }
        }

}
        /* *************************************Row 4 - Latest Events */
        .row-4 {
            background: white;
            padding: 0.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            position: relative;
        }

      .events-container {
            position: relative;
        }

        .events-scroller {
            overflow: hidden;
            position: relative;
            height: 220px;
        }

        .events-track {
            display: flex;
            transition: transform 0.5s ease;
            gap: 2rem;
            align-items: stretch;
            height: 100%;
        }

        .event-card {
            width: 300px;
            flex: 0 0 300px;
            background: linear-gradient(135deg, var(--brick-primary), var(--brick-dark));
            color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s;
            height: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
        }

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

        .event-date {
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 1.1rem;
            color: #ffffff;
            flex-shrink: 0; /* Prevent date from shrinking */
        }

        .event-card h3 {
            margin: 0 0 10px 0;
            font-size: 1.2rem;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Limit to 3 lines max */
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-shrink: 0; /* Prevent title from shrinking */
        }

        .event-card p {
            margin: 0;
            text-align: justify;
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            flex-grow: 1; /* Allow description to grow and fill remaining space */
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 4; /* Limit description to 4 lines */
            -webkit-box-orient: vertical;
        }

        .events-arrows {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            z-index: 10;
            padding: 0 10px;
        }

        .events-arrow {
            background: rgba(139, 0, 0, 0.7);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid white;
        }

        .events-arrow:hover {
            background: var(--brick-primary);
            transform: scale(1.1);
        }
        /* Former Principals */
        .row-7 {
            background: white;
            padding: 0.5rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .principals-slider {
            position: relative;
            overflow: hidden;
            height: 320px;
        }

        .principals-track {
            display: flex;
            transition: transform 0.5s ease;
        }

        .principal-card {
            min-width: 280px;
            margin-right: 2rem;
            text-align: center;
            background: #f5f5f5;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }

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

        .principal-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--brick-primary), var(--brick-light));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.5rem;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }

        .principal-name {
            font-weight: bold;
            color: var(--brick-primary);
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .principal-tenure {
            font-size: 0.9rem;
            color: var(--brick-accent);
            margin-bottom: 10px;
        }

        .slider-controls {
            display: flex;
            justify-content: center;
            margin-top: 1.5rem;
            gap: 10px;
        }

        .slider-btn {
            background: var(--brick-primary);
            border: none;
            color: white;
            padding: 10px 20px;
            margin: 0 5px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .slider-btn:hover {
            background: var(--brick-dark);
            transform: translateY(-2px);
        }

       /* Footer */
        /* Compact Footer */
/* Ultra Compact Footer */
footer {
    background: var(--brick-primary);
    color: var(--text-light);
    padding: 1rem 0 0.3rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

.footer-heading {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-icon {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.footer-section h3 {
    margin: 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--brick-light);
    padding-bottom: 0.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0; /* REMOVED ALL SPACE */
    line-height: 1.2; /* Tight line height */
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.1rem 0; /* Minimal padding instead of margin */
}

.footer-links a i {
    margin-right: 0.3rem;
    font-size: 0.6rem;
}

.footer-links a:hover {
    color: var(--brick-light);
    background: rgba(255, 255, 255, 0.05); /* Add background on hover for better visibility */
}

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

.footer-info img {
    max-width: 70px;
    margin-bottom: 0.3rem;
}

.footer-info h4 {
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

.footer-info p {
    margin: 0.1rem 0;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.2rem;
}

.social-links a:hover {
    color: var(--brick-light);
    transform: translateY(-1px);
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.footer-bottom {
    padding-top: 2px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.2;
}

.text-light {
    color: var(--text-light) !important;
}

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

.fw-bold {
    font-weight: bold;
}
        /* Responsive Design */
        @media (max-width: 992px) {
            .row-1, .row-2 {
                flex-direction: column;
            }
            
            .header-content {
                flex-direction: column;
                text-align: center;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .slider-container {
                order: 2;
            }
            
            .principal-message {
                order: 1;
                height: auto;
            }
            
            .row-1 {
                height: auto;
            }
            
            .navbar-nav {
                flex-direction: column;
            }
            
            .nav-item {
                width: 100%;
            }
            
            .sub-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                display: none;
                background: var(--brick-secondary);
                margin-top: 5px;
                border-radius: 4px;
            }
            
            .nav-item:hover .sub-menu {
                display: block;
            }
            
            .dropdown-menu {
                position: static;
                float: none;
                width: 100%;
            }
        }

        @media (max-width: 768px) 
        {
            .logo {
                flex-direction: column;
                text-align: center;
            }
            
            .logo-icon {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .event-card, .principal-card {
                min-width: 250px;
            }
            
            .notice-tabs {
                flex-wrap: wrap;
            }
            
            .notice-tab {
                flex: 1;
                min-width: 100px;
                text-align: center;
            }
        }
        .timetable-links a:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        background: white !important;}
        
        /*  Principal Tracker */
        .principals-slider1 {
                position: relative;
                overflow-x: auto;
                padding: 1rem 0;
                width: 100%;
            }

            .principals-track1 {
                display: flex;
                gap: 2rem;
                padding: 0 1rem;
                min-width: min-content;
            }

            .principal-card1 {
                min-width: 280px;
                background: white;
                border-radius: 12px;
                padding: 1.5rem;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
                text-align: center;
                flex-shrink: 0;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                border: 1px solid #e0e0e0;
            }

            .principal-card1:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            }

            .principal-img1 {
                width: 120px;
                height: 120px;
                background: linear-gradient(135deg, var(--brick-primary), var(--brick-dark));
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto 1rem;
                overflow: hidden;
                border: 4px solid var(--brick-light);
                position: relative;
            }

            .principal-img1 img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center center;
                border-radius: 50%;
                display: block;
            }

            .principal-img1 .fas.fa-user-tie {
                color: white;
                font-size: 2.5rem;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            .principal-name1 {
                font-weight: bold;
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
                color: var(--brick-primary);
                line-height: 1.3;
            }

            .principal-tenure1 {
                color: #666;
                font-style: italic;
                margin-bottom: 1rem;
                font-size: 0.95rem;
                font-weight: 500;
            }

            .principal-card1 p {
                color: #555;
                line-height: 1.5;
                margin: 0;
                font-size: 0.9rem;
            }

            /* Scrollbar styling for webkit browsers */
            .principals-slider1::-webkit-scrollbar {
                height: 8px;
            }

            .principals-slider1::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 4px;
            }

            .principals-slider1::-webkit-scrollbar-thumb {
                background: var(--brick-primary);
                border-radius: 4px;
            }

            .principals-slider1::-webkit-scrollbar-thumb:hover {
                background: var(--brick-dark);
            }

            /* Responsive design */
            @media (max-width: 768px) {
                .principals-track1 {
                    gap: 1.5rem;
                    padding: 0 0.5rem;
                }

                .principal-card1 {
                    min-width: 250px;
                    padding: 1.2rem;
                }

                .principal-img1 {
                    width: 100px;
                    height: 100px;
                }

                .principal-img1 .fas.fa-user-tie {
                    font-size: 2rem;
                }

                .principal-name1 {
                    font-size: 1.1rem;
                }
            }

            @media (max-width: 480px) {
                .principal-card1 {
                    min-width: 220px;
                    padding: 1rem;
                }

                .principal-img1 {
                    width: 90px;
                    height: 90px;
                }

                .principal-name1 {
                    font-size: 1rem;
                }

                .principal-tenure1 {
                    font-size: 0.9rem;
                }

                .principal-card1 p {
                    font-size: 0.85rem;
                }
            }
        
        /**************Faculty starts here ***************/
        /* Faculty Card */
        .faculty-card {
            background: #8B3A3A;                 /* Brick Red background */
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #5a2222;
            color: #ffffff !important;           /* Force ALL text inside to white */
        }

        .faculty-card * {
            color: #ffffff !important;           /* Make EVERYTHING white */
        }

        /* Faculty Image */
        .faculty-img {
            width: 100%;
            height: 230px;
            overflow: hidden;
        }

        .faculty-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.4s ease;
        }

        .faculty-card:hover .faculty-img img {
            transform: scale(1.1);
        }

        /* Specific Text Styles (All White) */
        .faculty-name {
            font-weight: 700;
            color: #ffffff !important;
        }

        .faculty-designation,
        .faculty-small,
        .faculty-contact {
            color: #ffffff !important;
        }

        /* Icons white */
        .faculty-contact i {
            color: #ffffff !important;
            margin-right: 5px;
        }

        /* Category Title */
        .category-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #ffffff !important;
            background: linear-gradient(135deg, #0b2d5c 25%, #154c79 100%, #1f6ba3 100%);
            width: fit-content;
            border-left: 6px solid #5a2222;
            margin-bottom: 10px;
        }

/**********  Marquee CSS *****/
       .marq_container {
    width: 100%;
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.marq_header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e63946 0%, #d62839 100%);
    color: white;
    padding: 5px 5px;
}

.marq_label {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.marq_label i {
    margin-right: 12px;
}

.marq_wrapper {
    background: #f8f9fa;
    padding: 0px 0;
    position: relative;
}

.marq_inner {
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

.marq_content {
    display: flex;
    animation: marqueeScroll 15s linear infinite;
    width: max-content;
    padding-left: 100%;
    animation-play-state: running;
    margin: 0;
}

.marq_content.paused {
    animation-play-state: paused;
}

/* CHANGED: Allow marquee items to grow with content */
.marq_item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 5px 5px; /* Increased padding slightly for better readability */
    margin-right: 25px;
    min-width: 330px;
    max-width: 600px; /* Added max-width to prevent excessive stretching */
    width: auto; /* Allow width to adjust based on content */
    text-decoration: none !important;
    color: #333;
    border-left: 4px solid #4361ee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    flex-shrink: 0;
}

.marq_item:hover {
    transform: translateY(-3px);
    border-left-color: #e63946;
}

.marq_item.exam {
    border-left-color: #e63946;
    background: #fff4f4;
}

.marq_icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a0ca3;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.marq_item.exam .marq_icon {
    background: #e63946;
}

/* CHANGED: Removed text truncation and allow text wrapping */
.marq_title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: normal; /* Changed from nowrap to allow wrapping */
    overflow: visible; /* Changed from hidden to show all text */
    text-overflow: clip; /* Changed from ellipsis */
    word-break: break-word; /* Allow long words to break */
    flex-grow: 1; /* Allow title to take available space */
    max-width: none; /* Remove max-width restriction */
}

.imp_badge {
    background: #e63946;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 0.75rem;
    flex-shrink: 0; /* Prevent badge from shrinking */
}

.marq_date {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap; /* Keep date on one line */
    flex-shrink: 0; /* Prevent date from shrinking */
}

/* CHANGED: Title container to handle badge and text better */
.marq_text_container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0; /* Important for text wrapping in flex container */
}

.marq_title_container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.marq_title_text {
    flex-grow: 1;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}

/* Control buttons */
.marq_controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.marq_btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #4361ee;
}

.marq_btn:hover {
    background: #4361ee;
    color: white;
    border-color: #4361ee;
}

.marq_btn i {
    font-size: 0.9rem;
}

/* Animation for continuous scrolling */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Additional reset for parent elements */
.marq_container * {
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marq_item {
        min-width: 280px;
        max-width: 400px; /* Adjusted for mobile */
        padding: 10px 12px;
    }
    
    .marq_title_text {
        font-size: 0.95rem; /* Slightly smaller on mobile */
    }
    
    .marq_controls {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 10px;
    }

    .marq_wrapper {
        padding: 15px 0;
    }
    
    /* For very small screens */
    @media (max-width: 480px) {
        .marq_item {
            min-width: 250px;
            max-width: 300px;
        }
        
        .marq_icon {
            width: 35px;
            height: 35px;
            margin-right: 10px;
        }
    }
}




