/* Custom Styles for Institute Web App - FRONTEND ONLY */

/* These styles only apply to frontend pages, not admin */

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    padding: 10px 0;
}

.gallery-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Course Cards */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* News Ticker */
.news-ticker-container {
    background: linear-gradient(90deg, #0066cc 0%, #004999 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticker-label {
    background-color: #dc3545;
    border-radius: 3px;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.ticker-content {
    overflow: hidden;
}

.ticker-content marquee {
    font-size: 14px;
    line-height: 1.5;
}

/* Result Page Enhancement */
.result-student-image {
    max-width: 200px;
    border: 3px solid #0066cc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Course Detail Page */
.course-description {
    line-height: 1.8;
    font-size: 16px;
}

.course-subjects .list-group-item {
    border-left: 3px solid #0066cc;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.course-subjects .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 20px;
}

/* Dropdown Menu Styling */
.st-head-menu .dropdown-menu {
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0;
}

.st-head-menu .dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.st-head-menu .dropdown-menu li:last-child {
    border-bottom: none;
}

.st-head-menu .dropdown-menu li a {
    padding: 10px 20px;
    color: #333;
    transition: all 0.3s ease;
}

.st-head-menu .dropdown-menu li a:hover {
    background-color: #0066cc;
    color: #fff;
    padding-left: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item img {
        height: 200px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .ticker-label {
        font-size: 12px;
        padding: 5px 10px !important;
    }
    
    .ticker-content marquee {
        font-size: 12px;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(90deg, #0066cc 0%, #004999 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #004999 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Section Headings */
.st-head.big {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.st-head.big::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #004999 100%);
}

/* Card Shadow Enhancement */
.shadow {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Table Styling for Result */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 102, 204, 0.05);
}

.table thead th {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px;
}

.table td, .table th {
    vertical-align: middle;
}

/* Header Layout Fixes */
.header-main-col {
    width: 100%;
    min-height: 120px;
}

.hm-lt {
    flex-shrink: 0;
}

/* Institute Information Styles - Enhanced */
.institute-info {
    max-width: 500px;
    flex: 1;
    margin-left: 30px;
}


.institute-text h4.institute-name {
    color: #0066cc;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.institute-text h4.institute-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #28a745 100%);
    border-radius: 2px;
}

.institute-details {
    /* margin-top: 1rem; */
}

/* Middle Box - Registration & Address Info */
.info-middle-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-middle-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #17a2b8 100%);
}

.info-content {
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 0px 0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.info-item:hover {
    transform: translateX(8px);
    /* background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-text {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
    font-weight: 600;
    flex: 1;
}

/* Call to Action Box */
.cta-box {
    margin-top: 20px;
}

.cta-button {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 15px;
    padding: 0;
    border: none;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cta-button:hover{
    text-decoration: none;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.cta-content {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: white;
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 1.8rem;
    margin-right: 18px;
    animation: pulse 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.95;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-number {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-arrow {
    font-size: 1.4rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover .cta-arrow {
    transform: translateX(8px);
}

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

/* Mobile Institute Information - Enhanced */
.mobile-institute-info {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.mobile-institute-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.mobile-institute-content {
    position: relative;
    z-index: 2;
}

.mobile-institute-name {
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.mobile-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-info-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-info-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-info-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile CTA Button */
.mobile-cta-box {
    margin-top: 20px;
}

.mobile-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 15px;
    padding: 18px 25px;
    color: white;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-cta-button:hover::before {
    left: 100%;
}

.mobile-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.mobile-cta-button i:first-child {
    font-size: 1.8rem;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.mobile-cta-button .cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.mobile-cta-button .cta-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 3px;
}

.mobile-cta-button .cta-number {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.mobile-cta-button i:last-child {
    font-size: 1.3rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.mobile-cta-button:hover i:last-child {
    transform: translateX(5px);
}

/* Responsive adjustments for institute info */
@media (max-width: 1199px) {
    .institute-info {
        max-width: 420px;
        margin-left: 20px;
    }
    
    .institute-text h4.institute-name {
        font-size: 1.3rem;
    }
    
    .info-middle-box {
        padding: 18px;
    }
    
    .info-text {
        font-size: 0.95rem;
    }
    
    .info-item {
        padding: 10px 0;
        margin-bottom: 6px;
    }
    
    .info-item i {
        font-size: 1.2rem;
        margin-right: 12px;
    }
}

@media (max-width: 991px) {
    .institute-info {
        max-width: 380px;
        margin-left: 15px;
    }
    
    .institute-text h4.institute-name {
        font-size: 1.2rem;
    }
    
    .info-middle-box {
        padding: 15px;
    }
    
    .info-text {
        font-size: 0.9rem;
    }
    
    .info-item {
        padding: 8px 0;
        margin-bottom: 6px;
    }
    
    .info-item i {
        font-size: 1.1rem;
        margin-right: 10px;
    }
    
    .cta-content {
        padding: 18px 20px;
    }
    
    .cta-icon {
        font-size: 1.6rem;
        margin-right: 15px;
    }
    
    .cta-label {
        font-size: 0.9rem;
    }
    
    .cta-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Stack elements vertically on smaller screens */
    .header-main-col {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
    }
    
    .institute-info {
        margin-left: 0;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .mobile-institute-name {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .mobile-info-item span {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .mobile-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 1.2rem;
    }
    
    .mobile-info-item {
        padding: 15px 12px;
        border-radius: 12px;
    }
    
    .mobile-info-item i {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .mobile-cta-button {
        padding: 18px 25px;
        margin-top: 25px;
    }
    
    .mobile-cta-button i:first-child {
        font-size: 1.8rem;
        margin-right: 15px;
    }
    
    .mobile-cta-button .cta-label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .mobile-cta-button .cta-number {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .mobile-institute-name {
        font-size: 1rem;
    }
    
    .mobile-info-item i {
        font-size: 1.3rem;
    }
    
    .mobile-info-item span {
        font-size: 0.75rem;
    }
    
    .mobile-cta-button {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-cta-button i:first-child {
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .mobile-cta-button .cta-text {
        text-align: center;
    }
    
    .mobile-cta-button .cta-label {
        font-size: 0.8rem;
    }
    
    .mobile-cta-button .cta-number {
        font-size: 1rem;
    }
    
    .mobile-cta-button i:last-child {
        font-size: 1.1rem;
        margin-left: 0;
        margin-top: 5px;
    }
}

