
/* =========================================
   TIMES THYAGARAJA AWARDS
   OFFICIAL FONTS
   ========================================= */

@font-face {
    font-family: 'OriyaMN';
    src:
        local('Oriya MN'),
        local('OriyaMN'),
        url('fonts/OriyaMN.woff2') format('woff2'),
        url('fonts/OriyaMN.ttf') format('truetype'),
        url('fonts/OriyaMN.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Taiganja Type';
    src:
        local('Taiganja Type'),
        local('TaiganjaType'),
        url('fonts/TaiganjaType.woff2') format('woff2'),
        url('fonts/TaiganjaType.ttf') format('truetype'),
        url('fonts/TaiganjaType.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue LT Pro';
    src:
        local('Helvetica Neue LT Pro'),
        url('fonts/HelveticaNeueLTPro.woff2') format('woff2'),
        url('fonts/HelveticaNeueLTPro.ttf') format('truetype'),
        url('fonts/HelveticaNeueLTPro.otf') format('opentype');
    font-display: swap;
}


/* =========================================
   GLOBAL STYLES
   ========================================= */

:root {
    --primary: #a51625;
    --maroon: #851e35;
    --gold: #ab7837;

    --body-font: 'Helvetica Neue LT Pro',
                 'Helvetica Neue',
                 Helvetica,
                 Arial,
                 sans-serif;

    --heading-font: 'Taiganja Type',
                    'OriyaMN',
                    Georgia,
                    serif;

    --edition-font: 'OriyaMN',
                    Georgia,
                    serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #252525;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.65;
}

h1,
h2 {
    font-family: var(--heading-font);
}

h3,
h4,
h5,
h6 {
    font-family: var(--edition-font);
}

p,
input,
button,
select,
textarea,
label {
    font-family: var(--body-font);
}

[hidden] {
    display: none !important;
}


/* =========================================
   HEADER AND NAVIGATION
   ========================================= */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6%;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 15px;
    height: auto;
    min-height: 0;
}

header .brand {
    color: #791d2e;
    text-decoration: none;
    line-height: 1.05;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

header .brand img {
    width: 190px;
    height: 85px;
    max-height: 85px;
    object-fit: cover;
    object-position: 50% 43%;
    display: block;
}

.brand span {
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 10px;
    color: #8f142b;
    letter-spacing: 1.4px;
}

.brand b {
    font-family: var(--edition-font);
    font-size: 25px;
    font-weight: bold;
}

.brand small {
    font-family: var(--body-font);
    letter-spacing: 3px;
    font-size: 10px;
}

.toi {
    font-family: var(--edition-font);
    font-size: 17px;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

nav a {
    font-family: var(--body-font);
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

nav a:hover {
    color: var(--primary);
}

.menu {
    display: none;
}

.gallery-menu {
    position: relative;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-menu div {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #fff;
    box-shadow: 0 4px 15px #0002;
    padding: 12px;
    display: grid;
    gap: 10px;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-block;
    background: var(--maroon);
    color: #fff !important;
    border: 0;
    padding: 13px 23px;
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    transition: background 0.2s ease;
}

.button:hover {
    background: var(--primary);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

header .button {
    padding: 10px 18px;
    font-size: 14px;
}

.gold {
    background: #e9bf72;
    color: #431322 !important;
}


/* =========================================
   HERO BANNER
   ========================================= */

.hero {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 0;
    height: auto;
    display: block;
    overflow: hidden;
    background: #b5092c;
}

.hero .slides,
.hero .campaign {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero .campaign.red {
    background: linear-gradient(
        to bottom,
        #e52e4a,
        #a6092b
    );
}

.hero .campaign.teal {
    background: linear-gradient(
        to bottom,
        #009e95,
        #004f4c
    );
}

.hero .campaign-art {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 700px;
    max-height: 700px;
    object-fit: fill;
    margin: 0;
    padding: 0;
}

.hero .campaign[hidden] {
    display: none !important;
}

.hero .campaign-copy,
.hero .heroart,
.hero .controls {
    display: none !important;
}


/* =========================================
   PARTNER AND SPONSOR STRIP
   ========================================= */

.partner-strip {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 12px 5%;
    border-bottom: 1px solid #eee;
}

.partner-strip img {
    width: min(100%, 850px);
    height: auto;
    object-fit: contain;
}


/* =========================================
   GENERAL SECTION STYLES
   ========================================= */

.section {
    padding: 45px 8%;
}

.section h2,
.registration h2 {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--primary);
    margin: 12px 0 24px;
}

.section h2 i,
.registration h2 i {
    font-style: normal;
    font-weight: bold;
}

.eyebrow {
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--gold);
}


/* =========================================
   REMOVE OLD REGISTRATION CTA
   ========================================= */

.register-cta {
    display: none !important;
}


/* =========================================
   INLINE REGISTRATION FORM - OUTER BOX
   ========================================= */

section#register.inline-registration {
    display: block;
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 35px auto;
    padding: 0;
    scroll-margin-top: 25px;
}

#register .formcard {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #d9d9d9 !important;
    border-radius: 12px;
    padding: 35px !important;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.09) !important;
}

#register form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.formcard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
}


/* =========================================
   REGISTRATION INPUT FIELDS
   ========================================= */

.fields,
#register .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.fields label,
#register .fields label {
    display: block;
    min-width: 0;
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #252525;
}

input:not([type="checkbox"]):not([type="hidden"]) {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #cdbba7;
    border-radius: 4px;
    background: #fff;
    color: #252525;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.5;
}

#register .fields input,
#register .fields select {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 50px;
    padding: 12px 14px;
    margin-top: 7px;
    border: 1px solid #d1c6bd;
    border-radius: 5px;
    background-color: #fff;
    color: #252525;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    box-sizing: border-box;
}

input::placeholder {
    font-family: var(--body-font);
    color: #888;
    font-weight: normal;
}

#register input:focus,
#register select:focus {
    border-color: var(--maroon);
    outline: 2px solid rgba(133, 30, 53, 0.15);
    outline-offset: 0;
}


/* =========================================
   EVENT SOURCE DROPDOWN
   ========================================= */

#register .source-field {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
}

#register select#source {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    display: block;
    width: 100% !important;
    height: 50px;
    padding: 12px 42px 12px 14px;
    margin-top: 7px;

    border: 1px solid #d1c6bd;
    border-radius: 5px;
    background-color: #fff;
    color: #252525;

    font-family: var(--body-font);
    font-size: 16px;
    font-weight: normal;

    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23851e35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

#register select#source:invalid {
    color: #888;
}

#register select#source option {
    color: #252525;
    background: #fff;
    font-size: 16px;
}

#register select#source:focus {
    border-color: var(--maroon);
    outline: 2px solid rgba(133, 30, 53, 0.15);
}


/* =========================================
   CONSENT CHECKBOX
   ========================================= */

.consent,
#register .consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: normal;
    line-height: 1.6;
    margin: 22px 0;
    color: #444;
}

.consent input,
#register .consent input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: var(--maroon);
    cursor: pointer;
}


/* =========================================
   SPAM PROTECTION FIELD
   ========================================= */

.trap {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================
   REGISTRATION SUBMIT BUTTON
   ========================================= */

#register .button {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px 24px;
    border: 0;
    border-radius: 5px;
    background: var(--maroon);
    color: #fff !important;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

#register .button:hover {
    background: var(--primary);
}

#register .button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* =========================================
   REGISTRATION ERROR MESSAGE
   ========================================= */

.notice,
#register .notice {
    padding: 14px 16px;
    background: #f9e8b8;
    color: #554019;
    border: 1px solid #f0dca5;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 14px;
    margin: 0 0 20px;
}


/* =========================================
   REGISTRATION SUCCESS MESSAGE
   EMAIL ONLY - NO DOWNLOAD BUTTON
   ========================================= */

.success,
#register .success {
    margin: 0;
    padding: 20px 10px;
    text-align: center;
    border: 0;
}

.success h2,
.success h3,
#register .success h3 {
    font-family: var(--heading-font);
    color: #287848;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0 0 15px;
}

.success p,
#register .success p {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    margin: 10px auto;
    max-width: 600px;
}

#entry-download {
    display: none !important;
}


/* =========================================
   ABOUT US PAGE
   ========================================= */

.about-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-page main {
    flex: 1;
}

.about {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.about-page .about {
    padding-block: 65px;
}

.about-page .about h2 {
    font-family: var(--heading-font);
}

.about-page .about p {
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.9;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto 24px;
}

.about-page #nav a[aria-current="page"] {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 5px;
}


/* =========================================
   EVENT SCHEDULE - HIDDEN
   ========================================= */

.schedule {
    display: none !important;
}


/* =========================================
   GENERAL CARD STYLES
   ========================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cards article {
    min-width: 0;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cards h3 {
    font-family: var(--edition-font);
    font-size: 28px;
    font-weight: normal;
    margin: 14px 0;
}

.cards span {
    font-family: var(--body-font);
    font-size: 12px;
    letter-spacing: 2px;
}


/* =========================================
   HOMEPAGE GALLERY
   ========================================= */

#gallery .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.galleryart {
    height: 160px;
    display: grid;
    place-items: center;
    background: #eee;
    color: var(--primary);
}

.galleryart span {
    font-family: var(--edition-font);
    font-size: 60px;
}

.edition-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.edition-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.edition-link:hover h3 {
    color: var(--primary);
}

.placeholder {
    padding: 40px;
    border: 2px dashed #bb9c7d;
    text-align: center;
}


/* =========================================
   INDIVIDUAL GALLERY PAGES
   12TH, 13TH, 14TH AND 15TH EDITIONS
   ========================================= */

.gallery-heading {
    background: #f7f5f1;
    text-align: center;
    padding: 35px 6%;
    border-bottom: 1px solid #eee;
}

.gallery-heading h1 {
    font-family: var(--heading-font);
    font-size: clamp(26px, 4vw, 43px);
    font-weight: normal;
    line-height: 1.2;
    color: var(--primary);
    margin: 12px 0;
}

.gallery-heading p {
    font-family: var(--body-font);
    font-size: 13px;
    color: #666;
}

.gallery-heading a {
    color: var(--primary);
}

.photo-section {
    max-width: 1450px;
    margin: auto;
    min-height: 50vh;
}

.photo-section h2 {
    font-family: var(--heading-font);
    text-align: center;
}

.edition-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 28px;
    gap: 12px;
}

.edition-tabs a {
    font-family: var(--edition-font);
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
}

.edition-tabs a[aria-current="page"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.edition-tabs a:hover {
    border-color: var(--primary);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.photo-tile {
    display: block;
    overflow: hidden;
    background: #eee;
    border-radius: 3px;
    aspect-ratio: 4 / 3;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
    display: block;
}

.photo-tile:hover img {
    transform: scale(1.04);
}


/* =========================================
   15TH EDITION PHOTO PLACEHOLDERS
   ========================================= */

.photo-slot {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: #777;
    border: 1px dashed #ccc;
    background: #f7f5f1;
    font-family: var(--body-font);
    font-size: 14px;
    text-align: center;
    padding: 15px;
}


/* =========================================
   GALLERY IMAGE LIGHTBOX
   ========================================= */

#photo-viewer {
    border: 0;
    background: #161616;
    color: #fff;
    padding: 42px 55px 30px;
    max-width: 96vw;
    max-height: 95vh;
    overflow: auto;
    text-align: center;
}

#photo-viewer::backdrop {
    background: #000d;
}

#photo-viewer img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    margin: auto;
}

#photo-viewer button {
    position: absolute;
    background: #0009;
    color: #fff;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 25px;
    cursor: pointer;
    line-height: 1;
}

.viewer-close {
    right: 10px;
    top: 5px;
}

.viewer-prev {
    left: 8px;
    top: 50%;
}

.viewer-next {
    right: 8px;
    top: 50%;
}

.viewer-count {
    margin: 10px 0 0;
    font-family: var(--body-font);
    font-size: 13px;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    background: var(--primary);
    color: #fff;
    padding: 35px 8%;
    text-align: center;
    font-family: var(--body-font);
}

footer a {
    color: #fff;
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #ba883a;
    outline-offset: 3px;
}


/* =========================================
   TABLET RESPONSIVE STYLES
   ========================================= */

@media (max-width: 1024px) {

    header {
        gap: 15px;
    }

    nav {
        gap: 15px;
    }

    .hero .campaign-art {
        height: 450px;
        max-height: 450px;
    }

    #gallery .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    section#register.inline-registration {
        max-width: 850px;
    }
}


/* =========================================
   MOBILE RESPONSIVE STYLES
   ========================================= */

@media (max-width: 760px) {

    header {
        padding: 5px 4%;
        flex-wrap: wrap;
        gap: 8px;
    }

    header .brand img {
        width: 145px;
        height: 65px;
        max-height: 65px;
    }

    header .brand span {
        font-size: 9px;
    }

    .toi {
        font-size: 13px;
    }

    .brand b {
        font-size: 20px;
    }

    .menu {
        display: block;
        background: none;
        border: 1px solid #791d2e;
        padding: 8px;
        color: #791d2e;
        cursor: pointer;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    nav.open {
        display: flex;
    }

    .gallery-menu div {
        position: static;
        box-shadow: none;
    }

    /* MOBILE BANNER */

    .hero .campaign-art {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .partner-strip {
        padding: 8px;
    }

    /* MOBILE REGISTRATION FORM */

    section#register.inline-registration {
        width: calc(100% - 30px);
        max-width: 100%;
        margin: 25px auto;
        padding: 0;
    }

    #register .formcard {
        padding: 22px 18px !important;
        border-radius: 10px;
    }

    #register .fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #register .fields label {
        font-size: 14px;
    }

    #register .fields input,
    #register .fields select {
        height: 48px;
        font-size: 16px;
    }

    #register select#source {
        height: 48px;
    }

    #register .consent {
        font-size: 12px;
        margin: 18px 0;
    }

    #register .button {
        width: 100%;
        padding: 13px;
        font-size: 15px;
    }

    #register .success h3 {
        font-size: 24px;
    }

    #register .success p {
        font-size: 15px;
    }

    /* GENERAL SECTIONS */

    .section {
        padding: 35px 6%;
    }

    .section h2 {
        font-size: 28px;
    }

    .cards,
    .fields {
        grid-template-columns: 1fr;
    }

    .formcard {
        padding: 20px;
    }

    /* ABOUT US */

    .about-page .about {
        padding-block: 40px;
    }

    .about-page .about p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* GALLERY */

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .edition-tabs {
        flex-direction: row;
        width: auto;
    }

    .edition-tabs a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .photo-section {
        padding: 30px 5%;
    }

    #photo-viewer {
        padding: 40px 36px 20px;
    }

    .viewer-prev {
        left: 0;
    }

    .viewer-next {
        right: 0;
    }

    footer {
        padding: 25px 5%;
        font-size: 13px;
    }
}


/* =========================================
   SMALL MOBILE SCREENS
   ========================================= */

@media (max-width: 500px) {

    #gallery .cards {
        grid-template-columns: 1fr;
    }

    .cards article {
        padding: 18px;
    }

    .brand b {
        font-size: 18px;
    }

    section#register.inline-registration {
        width: calc(100% - 24px);
    }

    #register .formcard {
        padding: 20px 16px !important;
    }

    .photo-slot {
        font-size: 12px;
    }
}
