/* Student offer page layout styling */
.hero {
    position: relative;
    padding: 140px 0 90px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(66, 133, 244, 0.12), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(52, 168, 83, 0.08), transparent 60%),
        linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(52, 168, 83, 0.04));
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(4px);
    animation: floatOrb 16s ease-in-out infinite;
    animation-play-state: paused;
}

.orb-1 {
    top: -120px;
    left: -100px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.8), rgba(0, 176, 255, 0.25));
}

.orb-3 {
    bottom: -120px;
    right: -140px;
    background: linear-gradient(135deg, rgba(234, 128, 252, 0.65), rgba(66, 133, 244, 0.25));
    animation-delay: 6s;
}

.hero-grid-lines {
    position: absolute;
    inset: -200px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 75%);
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(66, 133, 244, 0.95);
}

.hero-title {
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    margin: 18px 0 12px;
    line-height: 1.1;
    color: var(--offer-color-text);
}

[data-color-scheme="dark"] .hero {
    background: radial-gradient(circle at 20% 20%, rgba(66, 133, 244, 0.2), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(15, 157, 88, 0.18), transparent 60%),
        linear-gradient(135deg, rgba(10, 14, 26, 0.95), rgba(5, 8, 15, 0.98));
}

[data-color-scheme="dark"] .hero-grid-lines {
    opacity: 0.35;
}

.offers-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
}

.offers-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--offer-color-primary) 0%, var(--offer-color-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offers-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding-bottom: 60px;
}

.offer-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(66, 133, 244, 0.18);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

[data-color-scheme="dark"] .offer-card {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.9), rgba(17, 25, 40, 0.7));
    border-color: rgba(66, 133, 244, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.offer-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.offer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(66, 133, 244, 0.1), 0 0 40px rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.5);
}

[data-color-scheme="dark"] .offer-card:hover {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.95), rgba(17, 25, 40, 0.8));
    box-shadow: 0 20px 40px rgba(50, 184, 198, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(50, 184, 198, 0.15), 0 0 40px rgba(50, 184, 198, 0.15);
    border-color: rgba(50, 184, 198, 0.4);
}

.offer-card::after {
    content: '';
    position: absolute;
    inset: -40% 50% 60% -30%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.offer-card:hover::after {
    opacity: 0.6;
}

.offer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.offer-card:hover .offer-logo {
    transform: scale(1.1);
}

.offer-content {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.offer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--offer-color-text);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    transition: color 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
    overflow: hidden;
    border-radius: 999px;
    padding: 0 8px;
    margin: 0 -8px;
}

.offer-title::after {
    content: '';
    position: absolute;
    inset: -30% -15%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 10%, rgba(var(--offer-color-primary-rgb), 0.18) 40%, rgba(255, 255, 255, 0.85) 50%, rgba(var(--offer-color-primary-rgb), 0.18) 60%, rgba(255, 255, 255, 0) 90%);
    filter: blur(8px);
    transform: translateX(-140%) skewX(-12deg);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 75%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 75%);
}

.offer-card:hover .offer-title {
    color: var(--offer-color-primary);
    text-shadow: 0 6px 24px rgba(var(--offer-color-primary-rgb), 0.3);
    transform: translateY(-1px);
}

.offer-card:hover .offer-title::after {
    opacity: 1;
    transform: translateX(200%) skewX(-12deg);
}

[data-color-scheme="dark"] .offer-title::after {
    background: linear-gradient(120deg, rgba(11, 18, 36, 0) 10%, rgba(96, 140, 255, 0.08) 40%, rgba(146, 176, 255, 0.18) 52%, rgba(83, 126, 255, 0.1) 64%, rgba(11, 18, 36, 0) 90%);
    filter: blur(5px);
    opacity: 0;
}

[data-color-scheme="dark"] .offer-card:hover .offer-title::after {
    opacity: 0.35;
    transform: translateX(190%) skewX(-10deg);
}

.offer-desc {
    font-size: 15px;
    color: var(--offer-color-text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.offer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.offer-tag {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(var(--offer-color-gray-400-rgb), 0.1);
    color: var(--offer-color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.offer-card:hover .offer-tag {
    background: rgba(var(--offer-color-primary-rgb), 0.1);
    color: var(--offer-color-primary);
}

.btn-offer {
    margin-top: auto;
    padding: 10px 24px;
    font-size: 14px;
    gap: 8px;
}

.btn-offer .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-card:hover .btn-offer .material-symbols-outlined {
    transform: translateX(4px);
}

.offer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offer-modal-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 32px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 20px 40px rgba(66, 133, 244, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(66, 133, 244, 0.05);
    transform: scale(0.8) translateY(40px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.offer-modal-overlay.active .offer-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

[data-color-scheme="dark"] .offer-modal-container {
    background: linear-gradient(145deg, rgba(17, 25, 40, 0.95), rgba(17, 25, 40, 0.9));
    border-color: rgba(66, 133, 244, 0.3);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 16px 32px rgba(66, 133, 244, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.offer-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.offer-modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    border: 1px solid rgba(66, 133, 244, 0.2);
    color: var(--gdg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-color-scheme="dark"] .modal-close {
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.15), rgba(138, 180, 248, 0.08));
    border-color: rgba(138, 180, 248, 0.25);
    color: #8AB4F8;
}

.modal-close:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.15), rgba(234, 67, 53, 0.08));
    border-color: rgba(234, 67, 53, 0.3);
    color: var(--gdg-red);
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.2);
}

[data-color-scheme="dark"] .modal-close:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.2), rgba(234, 67, 53, 0.1));
    color: #f87171;
}

.modal-close .material-symbols-outlined {
    font-size: 22px;
}

.offer-modal-header {
    padding: 48px 48px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid rgba(var(--offer-color-gray-400-rgb), 0.1);
    background: linear-gradient(to bottom, rgba(var(--offer-color-primary-rgb), 0.05), transparent);
    position: relative;
}

.offer-modal-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.offer-modal-title-group h2 {
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--offer-color-primary), var(--offer-color-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(var(--offer-color-primary-rgb), 0.1);
    color: var(--offer-color-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--offer-color-primary-rgb), 0.2);
}

.offer-modal-body {
    padding: 40px 48px;
}

.offer-full-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--offer-color-text);
    margin-bottom: 40px;
}

.offer-claim-section {
    background: rgba(var(--offer-color-gray-400-rgb), 0.05);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(var(--offer-color-gray-400-rgb), 0.1);
}

.offer-claim-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--offer-color-primary);
}

.claim-steps {
    margin: 0;
    padding-left: 24px;
}

.claim-steps li {
    margin-bottom: 16px;
    color: var(--offer-color-text);
    line-height: 1.6;
    font-size: 16px;
}

.claim-steps li:last-child {
    margin-bottom: 0;
}

.claim-steps a {
    color: var(--offer-color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(var(--offer-color-primary-rgb), 0.2);
    transition: all 0.2s ease;
}

.claim-steps a:hover {
    border-bottom-color: var(--offer-color-primary);
}

.offer-modal-footer {
    padding: 32px 48px 48px;
    border-top: 1px solid rgba(var(--offer-color-gray-400-rgb), 0.1);
    background: var(--offer-color-surface);
}

.btn-full-width {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 16px;
    background: var(--offer-color-primary);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(var(--offer-color-primary-rgb), 0.4);
}

.btn-full-width:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--offer-color-primary-rgb), 0.5);
    background: var(--offer-color-primary-hover);
}

.offer-modal-footer .btn-full-width,
.offer-modal-footer .btn-full-width:hover,
.offer-modal-footer .btn-full-width:focus,
.offer-modal-footer .btn-full-width:active {
    color: #fff;
}

.offer-modal-footer .btn-full-width .material-symbols-outlined {
    color: #fff;
}

.offer-modal-header,
.offer-modal-body,
.offer-modal-footer {
    opacity: 0;
    transform: translateY(20px);
}

.offer-modal-overlay.active .offer-modal-header,
.offer-modal-overlay.active .offer-modal-body,
.offer-modal-overlay.active .offer-modal-footer {
    animation: offerModalContent 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.offer-modal-overlay.active .offer-modal-header {
    animation-delay: 0.05s;
}

.offer-modal-overlay.active .offer-modal-body {
    animation-delay: 0.15s;
}

.offer-modal-overlay.active .offer-modal-footer {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-30px) scale(1.05);
        opacity: 0.45;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.35;
    }
}

@keyframes offerModalContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 84px 0 52px;
    }

    .hero-background {
        overflow: hidden;
    }

    .hero>.container {
        position: relative;
        z-index: 1;
    }

    .hero-orb {
        width: clamp(170px, 54vw, 260px);
        height: clamp(170px, 54vw, 260px);
        opacity: 0.24;
        filter: blur(18px);
    }

    .orb-1 {
        top: -58px;
        left: -64px;
    }

    .orb-3 {
        right: -70px;
        bottom: -66px;
    }

    .hero-grid-lines {
        inset: 0;
        background-size: 72px 72px;
        opacity: 0.5;
    }

    .offers-hero {
        padding-top: 76px;
        padding-bottom: 48px;
    }

    .offers-header {
        margin-bottom: 34px;
    }

    .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 0.12em;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.6rem);
        line-height: 1.08;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.55;
    }

    .offers-controls {
        gap: 18px;
        margin-bottom: 34px;
        width: 100%;
        max-width: 660px;
        margin-left: auto;
        margin-right: auto;
    }

    .offers-controls .search-bar,
    .offers-controls .filter-tags {
        width: 100%;
    }

    .offers-controls .filter-tags {
        justify-content: center;
        gap: 10px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 44px;
    }

    .offer-card {
        border-radius: 20px;
        padding: 24px 20px;
    }

    .offer-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .offer-modal-body {
        padding: 24px;
    }

    .offer-modal-footer {
        padding: 24px;
    }

    .offer-title {
        font-size: 20px;
    }

    .offer-modal-container {
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 64px;
        padding-bottom: 44px;
    }

    .offers-hero {
        padding-top: 58px;
        padding-bottom: 42px;
    }

    .offer-card {
        padding: 22px 18px;
    }

    .offers-controls .filter-tag {
        padding: 9px 18px;
    }
}

/* Reduced motion preference for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    .hero-orb {
        animation: none;
        opacity: 0.3;
    }
    
    .offers-header,
    .offers-controls,
    .offer-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .offer-card.is-visible {
        opacity: 1;
        transform: none;
    }
    
    .offer-card:hover,
    .offer-card:hover .offer-logo,
    .offer-card:hover .offer-title::after {
        transform: none;
    }
    
    .offer-modal-container {
        animation: none;
    }
}
