:root {
    --institute-border: #d9dee5;
}

.hero {
    position: relative;
    min-height: 42vh;
    display: grid;
    align-items: end;
    color: #fff;
}
.hero-photo {
    position: absolute;
    inset: 0;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.25), rgba(11, 31, 58, 0.82));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 4rem 1.5rem 3rem;
}
.hero-content .eyebrow {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-content h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: 0.4rem 0 0.75rem;
}
.filters-section {
    background: #f7f8fa;
    border-bottom: 1px solid var(--institute-border);
    padding: 1.25rem 1.5rem;
}
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1100px;
}
.filter-group {
    display: grid;
    gap: 0.35rem;
    min-width: 200px;
}
.filter-group label {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
}
.filter-group input {
    border: 1px solid var(--institute-border);
    font: inherit;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
}
.filter-actions {
    align-items: end;
    display: flex;
    gap: 0.6rem;
}
.filter-actions button {
    background: var(--navy);
    border: 2px solid var(--navy);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 44px;
    padding: 0.55rem 1rem;
}
.filter-actions button[type="reset"] {
    background: transparent;
    color: var(--navy);
}
.institutes-section {
    margin: 0 auto;
    max-width: 1100px;
    padding: 2rem 1.5rem 4rem;
}
.section-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-heading h2 {
    color: var(--navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin: 0;
}
.institutes-status {
    color: var(--text-muted, #5b6573);
    margin: 0;
}
.institute-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.institute-card {
    background: #fff;
    border: 1px solid var(--institute-border);
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem;
}
.institute-card img {
    aspect-ratio: 16 / 9;
    background: #eef1f5;
    object-fit: cover;
    width: 100%;
}
.institute-card h3 {
    color: var(--navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    margin: 0;
}
.institute-card p {
    color: var(--text-muted, #5b6573);
    margin: 0;
}
.institute-card button {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    justify-self: start;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
}
.institute-pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}
.institute-pagination button {
    background: var(--navy);
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
}
.institute-pagination button:disabled {
    opacity: 0.45;
}
.institute-dialog {
    border: 1px solid var(--institute-border);
    max-width: 720px;
    padding: 0;
    width: calc(100% - 2rem);
}
.institute-dialog::backdrop {
    background: rgba(11, 31, 58, 0.55);
}
.institute-dialog-header {
    align-items: center;
    border-bottom: 1px solid var(--institute-border);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}
.institute-dialog-header h2 {
    color: var(--navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    margin: 0;
}
.institute-dialog-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}
#instituteDetailContent {
    padding: 1.25rem;
}
#instituteDetailContent img {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}
.institute-state {
    color: var(--text-muted, #5b6573);
    padding: 0 1.25rem;
}
.site-footer {
    border-top: 1px solid var(--institute-border);
    color: var(--text-muted, #5b6573);
    padding: 1.5rem;
    text-align: center;
}
@media (max-width: 700px) {
    .filter-group { min-width: 100%; }
}
