/* EBSB Page Styles - Central University of Gujarat */

:root {
    --orange: #f57c00;
    --blue: #005cb9;
    --white: #ffffff;
    --dark: #333333;
    --light-gray: #f8f9fa;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

/* Page Header */
.page-header {
    background: var(--orange);
    color: var(--white);
    margin-top: 24px;
    padding: 15px 0 !important;
    text-align: center;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
}

.breadcrumb {
    background: transparent;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 12px 0;
        margin-top: 80px !important;
    }

    .page-header h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media (max-width: 991.98px) {
    .page-header {
        margin-top: 90px !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-top: 100px !important;
    }
}

/* Header Logos Section */
.header-logos {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}

.logo-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 91, 185, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ebsb-logo,
.state-flag,
.cultural-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0;
    line-height: 1.4;
}

.ebsb-badge {
    background: var(--orange);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* Main Content Structure */
.main-content {
    padding: 0;
    margin: 0;
}

.main-content .row {
    margin: 0;
}

.main-content .row .col-lg-2 {
    padding: 0;
}

.main-content .row .col-lg-10 {
    padding: 30px 30px 60px 30px;
}

/* Sidebar */
.sidebar {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 0;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    min-height: calc(100vh - 140px);
    border-left: none;
    padding-top: 20px;
}

.sidebar h4 {
    color: var(--white) !important;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    padding: 12px 15px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 92, 185, 0.3);
    position: sticky;
    top: 0;
    z-index: 101;
    letter-spacing: 0.5px;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: -20px;
}

.sidebar h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    margin: 8px auto 0;
    border-radius: 1px;
}

.sidebar ul {
    padding-left: 20px;
    margin-top: 15px !important;
}

.sidebar ul li:first-child {
    margin-top: 10px !important;
    padding-top: 5px !important;
}

.col-lg-2 .sidebar .sticky-sidebar ul,
div.sidebar ul.list-unstyled {
    margin-top: 15px !important;
    padding-top: 10px !important;
}

.sidebar ul li {
    margin-bottom: 5px;
    list-style-type: none;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--orange);
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0;
    font-size: 0.9rem;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: var(--blue);
    padding-left: 10px;
}

.sticky-sidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: fit-content;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    display: none;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.mobile-toggle-btn {
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.mobile-toggle-btn:hover {
    background: #004494;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.mobile-toggle-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.mobile-menu-list.open {
    max-height: 800px;
    padding: 10px 0;
}

.mobile-menu-list a {
    display: block;
    padding: 12px 20px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
    color: var(--blue);
    background: rgba(245, 124, 0, 0.08);
    padding-left: 30px;
}

.mobile-menu-list a:last-child {
    border-bottom: none;
}

/* Section heading */
.section-heading-full,
h2.section-heading-full,
.content-section .section-heading-full {
    background-color: #005cb9 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    text-align: left !important;
    margin-bottom: 20px !important;
    position: relative !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
}

.section-heading-full::after {
    content: '';
    display: block;
    width: 65px;
    height: 3px;
    background-color: #f57c00;
    margin-top: 6px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-heading-full,
    h2.section-heading-full,
    .content-section .section-heading-full {
        font-size: 18px !important;
        padding: 10px 16px !important;
        text-align: left !important;
        margin-bottom: 16px !important;
    }

    .section-heading-full::after {
        width: 40px !important;
        height: 2px !important;
        margin-top: 4px !important;
        margin-left: 0 !important;
    }
}

/* Content sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anchor-offset::before {
    content: "";
    display: block;
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
}

.section-content {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border-top: 4px solid var(--orange);
}

.section-body {
    padding: 30px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.component-card {
    background: rgba(0, 91, 185, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid var(--orange);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 92, 185, 0.2);
}

.component-card h5 {
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 20px;
}

.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid var(--orange);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card h5, .info-card h6 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--blue) 100%);
}

.timeline-item {
    position: relative;
    margin: 30px 0;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--orange);
}

.timeline-item h5 {
    color: var(--blue);
    margin-bottom: 10px;
}

.btn {
    background: var(--orange);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.btn:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
    color: var(--white);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item .caption {
    padding: 15px;
    background: white;
    text-align: center;
    font-weight: 600;
    color: var(--blue);
}

.highlight-box {
    background: rgba(245, 124, 0, 0.1);
    border-left: 5px solid var(--orange);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
}

.contact-info {
    background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    margin-top: 2px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(245, 124, 0, 0.25);
}

.activity-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--orange);
    margin-bottom: 20px;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.activity-card h6 {
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.activity-card .date {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 10px;
}

.table th {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .sidebar {
        display: none !important;
    }

    .mobile-dropdown {
        display: block !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
    }

    .main-content .row .col-lg-2,
    .main-content .row .col-lg-10 {
        padding: 10px 15px 30px 15px !important;
    }
    
    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .sticky-sidebar {
        position: static;
        height: auto;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .main-content .row .col-lg-2,
    .main-content .row .col-lg-10 {
        padding: 5px 15px 20px 15px !important;
    }

    .mobile-dropdown {
        margin-bottom: 10px !important;
    }
    
    .logo-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .ebsb-logo,
    .state-flag,
    .cultural-image {
        width: 100px;
        height: 100px;
    }
    
    .logo-title {
        font-size: 0.85rem;
    }
    
    .section-body {
        padding: 20px;
    }

    .component-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ebsb-logo,
    .state-flag,
    .cultural-image {
        width: 80px;
        height: 80px;
    }
}