/* ----------------------------------------------------------------------
   GLOBAL & MODAL STYLES
   ---------------------------------------------------------------------- */

* {
    font-family: "Poppins", sans-serif;
}
button:focus {
    outline: none;
}

.btn-style-two-more {
    position: relative;
    padding: 2px 16px;
    font-size: 16px;
    line-height: 30px;
    color: #222222;
    font-weight: 400;
    text-align: center;
    background-color: #faac1d;
    overflow: hidden;
    border-radius: 10px;
}

.fancybox-slide {
    display: flex !important;
    justify-content: center !important;
}

/* TNWISE Modal */
.tnwise-modal {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
    backdrop-filter: blur(3px);
}

.tnwise-modal.show {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.tnwise-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-100px) scale(0.95);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.tnwise-modal.show .tnwise-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.tnwise-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 100;
}

.tnwise-close:hover,
.tnwise-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.tnwise-modal-header {
    padding: 20px 30px;
    background-color: #ffffff;
    color: #333;
    border-bottom: 1px solid #eee;
}

.tnwise-modal-body {
    padding: 30px;
    overflow-y: auto;
}

/* ----------------------------------------------------------------------
   SECTION TYPOGRAPHY
   ---------------------------------------------------------------------- */
.sec-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-top: 5px;
}

/* ----------------------------------------------------------------------
   PRIZE & IMPACT SECTION (Refined Compact Theme)
   ---------------------------------------------------------------------- */
.prize-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #fffbf2 100%);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.prize-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#faac1d 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

.prize-container {
    position: relative;
    z-index: 2;
}

.prize-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
}

.prize-header .badge-pill {
    display: inline-block;
    padding: 8px 20px;
    background: #fff;
    color: #946307;
    font-weight: 700;
    border-radius: 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(250, 172, 29, 0.2);
    position: relative;
    overflow: hidden;
}

.prize-header .badge-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.prize-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: #1a2a3a;
    margin: 0 0 20px;
    line-height: 1.2;
    position: relative;
    display: block !important;
    letter-spacing: -1px;
}

.prize-header h2 span {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #1a2a3a 0%, #faac1d 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prize-header h2 span::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(250, 172, 29, 0.2);
    z-index: -1;
    border-radius: 4px;
    transform: skewX(-10deg);
}

.prize-header p {
    color: #556677;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.prize-pool-wrapper {
    margin-bottom: 40px;
    perspective: 1500px;
}

.prize-pool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow:
        0 20px 50px -10px rgba(50, 50, 93, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.prize-pool-card:hover {
    transform: translateY(-5px);
}

.prize-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(
        circle,
        rgba(250, 172, 29, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.prize-label {
    font-size: 13px;
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
}

.prize-amount {
    font-size: 72px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
    text-shadow:
        2px 2px 0px rgba(255, 255, 255, 1),
        4px 4px 0px rgba(0, 0, 0, 0.05);
    display: block;
}

.prize-sub {
    color: #7a5209;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.impact-stats-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    justify-content: center;
}

.impact-col {
    width: 33.333%;
    padding: 10px;
    box-sizing: border-box;
}

.impact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(240, 240, 240, 0.9);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #faac1d, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(250, 172, 29, 0.1);
}

.impact-card:hover::before {
    opacity: 1;
}

.impact-icon-circle {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #946307;
    box-shadow: 0 5px 15px rgba(214, 143, 10, 0.1);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.impact-icon-circle::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #faac1d, #f39c12);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.impact-card:hover .impact-icon-circle {
    transform: scale(1.05);
    color: #fff;
    background: linear-gradient(135deg, #faac1d, #f39c12);
}

.impact-card:hover .impact-icon-circle::after {
    opacity: 0;
}

.impact-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #2c3e50;
    line-height: 1;
}

.impact-desc {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .impact-col {
        width: 50%;
    }

    .prize-amount {
        font-size: 56px;
    }

    .prize-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .impact-col {
        width: 100%;
    }

    .prize-amount {
        font-size: 48px;
    }

    .prize-header h2 {
        font-size: 28px;
    }

    .prize-pool-card {
        padding: 30px 20px;
    }

    .prize-header h2 span::after {
        height: 6px;
        bottom: 3px;
    }
}

/* ----------------------------------------------------------------------
   THEME WRAPPER (Project Domains Section)
   ---------------------------------------------------------------------- */
.home-theme-wrapper {
    --primary-bg: #f3f6fc;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-light: #596b7e;
    --accent-gold: #c5a059;
    --accent-blue: #3498db;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-main);
    padding-bottom: 50px;
}

.home-theme-wrapper .theme-row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.home-theme-wrapper .theme-col {
    width: 25%;
    padding: 8px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .home-theme-wrapper .theme-col {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .home-theme-wrapper .theme-col {
        width: 100%;
    }
}

.home-theme-wrapper .theme-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.home-theme-wrapper .theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.home-theme-wrapper .card-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-theme-wrapper .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.home-theme-wrapper .college-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px 15px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 10%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    color: white;
    text-align: left;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-theme-wrapper .college-logo-small {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.home-theme-wrapper .college-text-wrapper {
    display: flex;
    flex-direction: column;
}

.home-theme-wrapper .college-name {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    color: #ffffff;
}

.home-theme-wrapper .college-location {
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.home-theme-wrapper .theme-highlight {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.home-theme-wrapper .date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    padding: 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 50px;
}

.home-theme-wrapper .date-badge .month {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #595959;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.home-theme-wrapper .date-badge .day {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.home-theme-wrapper .theme-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #595959;
    margin-bottom: 5px;
    font-weight: 600;
}

.home-theme-wrapper .theme-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-theme-wrapper .color-pmist {
    color: #0d6efd;
}

.home-theme-wrapper .color-kct {
    color: #198754;
}

.home-theme-wrapper .color-pmc {
    color: #b34500;
}

.home-theme-wrapper .color-rec {
    color: #6f42c1;
}

.home-theme-wrapper .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.home-theme-wrapper .feature-item {
    border-bottom: 1px solid #f0f0f0;
}

.home-theme-wrapper .feature-item:last-child {
    border-bottom: none;
}

.home-theme-wrapper .feature-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-theme-wrapper .feature-header:hover {
    background-color: #f8f9fa;
    color: var(--accent-blue);
}

.home-theme-wrapper .pmist .feature-header:hover,
.home-theme-wrapper .pmist .feature-header.active {
    color: #0d6efd;
}

.home-theme-wrapper .kct .feature-header:hover,
.home-theme-wrapper .kct .feature-header.active {
    color: #198754;
}

.home-theme-wrapper .pmc .feature-header:hover,
.home-theme-wrapper .pmc .feature-header.active {
    color: #d35400;
}

.home-theme-wrapper .rec .feature-header:hover,
.home-theme-wrapper .rec .feature-header.active {
    color: #6f42c1;
}

.home-theme-wrapper .feature-icon {
    font-size: 0.8rem;
    color: #ccc;
    transition: transform 0.3s ease;
    margin-top: 4px;
}

.home-theme-wrapper .feature-header.active .feature-icon {
    transform: rotate(180deg);
}

.home-theme-wrapper .feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fcfcfc;
}

.home-theme-wrapper .feature-body {
    padding: 15px 25px 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.home-theme-wrapper .sub-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.home-theme-wrapper .sub-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.home-theme-wrapper .sub-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.8;
}

/* Fix White Space Top */
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* themelist page  */

:root {
    --primary-bg: #f3f6fc;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-light: #596b7e;
    --accent-gold: #c5a059;
    --accent-blue: #3498db;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Scoped wrapper for the new content */
.theme-page-wrapper {
    background-color: var(--primary-bg);
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text-main);
    padding-top: 50px;
    padding-bottom: 50px;
}

/* ___ HERO SECTION ___ */
.hero-section {
    background: linear-gradient(135deg, #0f1c2e 0%, #1a2a40 100%);
    padding: 80px 0 140px;
    color: white;
    position: relative;
    margin-bottom: -100px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(197, 160, 89, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ___ GRID LAYOUT ___ */
.cards-container {
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.theme-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ___ CARD HEADER & IMAGE ___ */
.card-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.theme-card:hover .card-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.college-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
}

.college-name {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    /* Adjusted for longer titles */
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    text-transform: uppercase;
}

.college-location {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ___ THEME BADGE ___ */
.theme-highlight {
    padding: 20px 25px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.theme-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Date Badge Style */
.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    padding: 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 50px;
}

.date-badge .month {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.date-badge .day {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.theme-name {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    /* Adjusted for longer theme names */
    font-weight: 700;
    line-height: 1.35;
}

/* Color Modifiers */
.color-pmist {
    color: #0d6efd;
}

.color-kct {
    color: #198754;
}

.color-pmc {
    color: #d35400;
}

.color-rec {
    color: #6f42c1;
}

/* ___ ACCORDION / LIST ___ */
.features-list {
    padding: 0;
    margin: 0;
    list-style: none;
    flex-grow: 1;
}

.feature-item {
    border-bottom: 1px solid #f5f7fa;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align top for multi-line titles */
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-header span {
    padding-right: 10px;
}

.feature-header:hover {
    background-color: #fcfcfc;
    color: var(--text-main);
    /* Keep text dark */
    padding-left: 30px;
    /* Slide effect */
}

.feature-header.active {
    background-color: #f8f9fa;
}

/* Dynamic coloring for active state */
.pmist .feature-header:hover,
.pmist .feature-header.active {
    color: #0d6efd;
}

.kct .feature-header:hover,
.kct .feature-header.active {
    color: #198754;
}

.pmc .feature-header:hover,
.pmc .feature-header.active {
    color: #d35400;
}

.rec .feature-header:hover,
.rec .feature-header.active {
    color: #6f42c1;
}

.feature-icon {
    font-size: 0.8rem;
    color: #ccc;
    transition: transform 0.3s ease;
    margin-top: 4px;
    /* Align with text */
}

.feature-header.active .feature-icon {
    transform: rotate(180deg);
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fcfcfc;
}

.feature-body {
    padding: 15px 25px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.sub-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.sub-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.sub-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.8;
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Accessibility Fixes */
.tnwise-year-title {
    color: #8a5e0b;
    font-weight: 700;
}
