/* Professional Header Styles */

/* Main Header Container */
#tophead.professional-header {
    background: linear-gradient(135deg, #0f3c7d 0%, #1d5ca6 50%, #0f3c7d 100%);
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #d4a574;
    position: relative;
    overflow: hidden;
}

#tophead.professional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Header Top Section */
.header-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Header Left - Logo and Info */
.header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.header-logo-section {
    flex-shrink: 0;
    margin-top: 5px;
}

.college-logo {
    height: 70px;
    width: auto;
    max-width: 90px;
    border-radius: 6px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.college-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Header Text Section */
.header-text-section {
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.college-name-punjabi {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    word-break: break-word;
}

.college-name-english {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #ffd700;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.college-affiliation {
    font-size: 11px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    letter-spacing: 0.2px;
    word-break: break-word;
}

/* Header Right - Contact Info */
.header-right {
    flex: 0 1 auto;
    width: auto;
    max-width: 520px;
    margin-top: 2px;
    min-width: 0;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

/* Ensure email and phone sit on the same row on larger screens */
.header-contact-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.header-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.header-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.header-icon-link,
.header-social-btn,
.header-bell-btn {
    min-width: 0;
}

.header-icon-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon-text {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: auto;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.contact-label {
    font-size: 10px;
    font-weight: 700;
    color: #0f3c7d;
    text-transform: uppercase;
    min-width: 89px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.contact-value {
    font-size: 12px;
    font-weight: 600;
    color: #1d5ca6;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-value:hover {
    color: #d4a574;
}

.contact-item.phone-item .contact-value i {
    font-size: 13px;
}

/* Notice Bar */
.notice-bar {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    padding: 12px 20px;
    margin-top: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease;
}

.notice-icon {
    font-size: 18px;
    color: #0f3c7d;
    flex-shrink: 0;
}

.notice-title {
    font-weight: 600;
    color: #0f3c7d;
    flex: 1;
    font-size: 14px;
}

.notice-link {
    background: #0f3c7d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.notice-link:hover {
    background: #1d5ca6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Quick Links */
.quick-links {
    margin-top: 12px;
}

.links-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #0f3c7d;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.links-btn:hover {
    background: white;
    color: #1d5ca6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Header Social Wrapper */
.header-social-wrapper {
    margin-top: 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-right {
        width: auto;
        max-width: 100%;
    }
    
    .college-name-punjabi {
        font-size: 18px;
    }
    
    .college-name-english {
        font-size: 13px;
    }
    
    .college-affiliation {
        font-size: 10px;
    }
}

@media (max-width: 1050px) {
    .footer, .header-right, .contact-info-wrapper {
        min-width: 0;
    }

    .header-icon-text {
        max-width: 180px;
    }
}

@media (max-width: 1246px) {
    .header-top-section {
        gap: 10px;
    }

    .header-left,
    .header-text-section,
    .header-right {
        min-width: 0;
    }

    .header-right {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .header-contact-row {
        gap: 10px;
    }

    .header-icon-text {
        max-width: 162px;
    }

    .header-social-icons {
        gap: 6px;
    }
}

@media (max-width: 1180px) {
    .header-top-section {
        gap: 8px;
    }

    .header-contact-row {
        gap: 8px;
    }

    .header-icon-text {
        max-width: 164px;
    }

    .header-divider {
        height: 18px;
    }
}

@media (max-width: 992px) {
    .header-action-row {
        width: 100%;
    }

    .header-social-icons {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .header-top-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        min-width: auto;
    }
    
    .header-right {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .contact-item {
        flex: 1;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    #tophead.professional-header {
        padding: 12px 0;
        border-bottom-width: 3px;
    }
    
    .header-left {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .college-logo {
        height: 55px;
        max-width: 75px;
    }
    
    .college-name-punjabi {
        font-size: 16px;
    }
    
    .college-name-english {
        font-size: 12px;
    }
    
    .college-affiliation {
        font-size: 9px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .contact-info-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-item {
        flex: 1;
    }
    
    .contact-label {
        font-size: 9px;
        min-width: 90px;
    }
    
    .contact-value {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .header-left {
        gap: 10px;
    }
    
    .college-logo {
        height: 50px;
        max-width: 65px;
    }
    
    .college-name-punjabi {
        font-size: 14px;
    }
    
    .college-name-english {
        font-size: 11px;
    }
    
    .college-affiliation {
        font-size: 8px;
        line-height: 1.3;
    }
    
    .contact-item {
        padding: 7px 10px;
        flex-wrap: wrap;
    }
    
    .contact-label {
        font-size: 8px;
        min-width: 80px;
    }
    
    .contact-value {
        font-size: 10px;
    }
    
    .notice-bar {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .notice-icon {
        font-size: 16px;
    }
    
    .notice-title {
        font-size: 12px;
        flex-basis: 100%;
    }
    
    .notice-link {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Mobile override: left-align header icons and contact items for better stacked layout */
@media (max-width: 600px) {
    #tophead.professional-header .contact-info-wrapper,
    #tophead.professional-header .header-contact-row,
    #tophead.professional-header .header-action-row {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100%;
    }

    #tophead.professional-header .header-icon-link {
        justify-content: flex-start !important;
        text-align: left;
        width: 100%;
        padding-left: 0.25rem;
    }

    #tophead.professional-header .header-icon-text {
        display: inline;
        text-align: left;
        white-space: normal;
    }

}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Elements */
.header-left::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, #d4a574, transparent);
    margin-left: 20px;
    opacity: 0.3;
}
