/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Category Cards Grid */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-major-card {
    cursor: pointer;
    background: white;
    color: #333;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-major-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-major-card .card-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.category-major-card h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.category-major-card .card-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Category Stats */
.category-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.category-stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.category-stat-item .stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
}

.category-stat-item .stat-label {
    font-size: 14px;
    color: #666;
}

/* STEM accent color */
.stem-accent { color: #667eea; }

/* Humanities accent color */
.humanities-accent { color: #f093fb; }

/* ============================================
   INFO CARDS SECTION
   ============================================ */

.info-cards-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-cards-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-cards-section .section-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.info-cards-section .section-header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Generic Info Card */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-card-icon i {
    color: white;
    font-size: 20px;
}

.info-card-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.info-card-body {
    color: #6c757d;
    line-height: 1.7;
}

.info-card-body p {
    margin-bottom: 15px;
}

.info-card-body ol,
.info-card-body ul {
    padding-left: 20px;
    margin: 0;
}

.info-card-body li {
    margin-bottom: 10px;
}

.info-card-body .info-note {
    margin-top: 15px;
    font-style: italic;
    color: #495057;
}

.info-card-body .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
}

.info-card-body .feature-list li {
    margin-bottom: 8px;
}

/* Icon accent colors */
.icon-yellow  { background: #ffc107; }
.icon-teal    { background: #17a2b8; }
.icon-purple  { background: #6f42c1; }
.icon-orange  { background: #fd7e14; }
.icon-green   { background: #20c997; }

/* ============================================
   BANNER CARDS (Discord, News, Team, Propose)
   ============================================ */

.banner-card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: white;
    margin-bottom: 30px;
}

.banner-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-card-content {
    flex: 1;
    min-width: 250px;
}

.banner-card-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.banner-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.banner-card-icon i {
    color: #fff;
    font-size: 20px;
}

.banner-card-title-row h3 {
    margin: 0;
    color: white !important;
    font-size: 20px;
}

.banner-card-content p {
    margin: 0;
    color: white !important;
    line-height: 1.6;
}

.banner-card-action {
    flex-shrink: 0;
}

.banner-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white !important;
}

/* Banner gradient variants */
.banner-propose  { background: linear-gradient(135deg, #9b59b6 0%, #7d3c98 100%); }
.banner-discord  { background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%); }
.banner-news     { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.banner-archive  { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); }
.banner-team     { background: linear-gradient(135deg, #6c5ce7 0%, #5f4dd1 100%); }

/* ============================================
   CALL TO ACTION
   ============================================ */

.cta-section {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.cta-section p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn-primary {
    background: #007bff;
    color: white;
}

.cta-btn-primary:hover {
    background: #0056b3;
    color: white;
}

.cta-btn-success {
    background: #28a745;
    color: white;
}

.cta-btn-success:hover {
    background: #1e7e34;
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-major-card {
        padding: 30px 20px;
    }

    .category-major-card .card-icon {
        font-size: 56px;
    }

    .category-major-card h2 {
        font-size: 26px;
    }

    .category-major-card .card-description {
        font-size: 15px;
    }

    .category-stats-grid {
        gap: 10px;
    }

    .category-stat-item .stat-value {
        font-size: 22px;
    }

    .banner-card {
        padding: 20px;
    }

    .banner-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-btn {
        width: 100%;
        justify-content: center;
    }

    .info-cards-section {
        padding: 0 12px;
    }

    .cta-section {
        padding: 30px 16px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        justify-content: center;
    }

    .featured-subjects h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .category-major-card {
        padding: 24px 16px;
    }

    .category-major-card .card-icon {
        font-size: 44px;
    }

    .category-major-card h2 {
        font-size: 22px;
    }

    .category-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-stat-item {
        padding: 10px 6px;
    }

    .category-stat-item .stat-value {
        font-size: 18px;
    }

    .category-stat-item .stat-label {
        font-size: 12px;
    }
}

/* Override theme.css heading color for accent elements */
.category-major-card .card-icon.stem-accent,
.stat-value.stem-accent {
    color: #667eea !important;
}

.category-major-card .card-icon.humanities-accent,
.stat-value.humanities-accent {
    color: #f093fb !important;
}

/* ============================================
   HERO QUICK LINKS
   ============================================ */

.hero-top {
    padding-bottom: 0;
}

.hero-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px;
    width: 70%;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s;
    will-change: transform;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-quick-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Social hover */
.hero-btn-social:hover {
    background: #fd7e14;
}
.hero-btn-social:hover .hero-btn-icon {
    background: white;
}
.hero-btn-social:hover .hero-btn-icon i {
    color: #fd7e14;
}
.hero-btn-social:hover .hero-btn-label {
    color: white;
}

/* Contribution hover */
.hero-btn-contribution:hover {
    background: #6C3483;
}
.hero-btn-contribution:hover .hero-btn-icon {
    background: white;
}
.hero-btn-contribution:hover .hero-btn-icon i {
    color: #6C3483;
}
.hero-btn-contribution:hover .hero-btn-label {
    color: white;
}

/* News hover */
.hero-btn-news:hover {
    background: #17a2b8;
}
.hero-btn-news:hover .hero-btn-icon {
    background: white;
}
.hero-btn-news:hover .hero-btn-icon i {
    color: #17a2b8;
}
.hero-btn-news:hover .hero-btn-label {
    color: white;
}

/* Team hover */
.hero-btn-team:hover {
    background: #6c5ce7;
}
.hero-btn-team:hover .hero-btn-icon {
    background: white;
}
.hero-btn-team:hover .hero-btn-icon i {
    color: #6c5ce7;
}
.hero-btn-team:hover .hero-btn-label {
    color: white;
}

.hero-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: white;
}

.hero-btn-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.hero-btn-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-btn-sub {
    display: none;
}

/* Individual button colors — white bg, colored border + icon circle */
.hero-btn-social {
    border-color: #fd7e14;
}
.hero-btn-social .hero-btn-icon {
    background: #fd7e14;
}
.hero-btn-social .hero-btn-label {
    color: #fd7e14;
}

.hero-btn-contribution {
    border-color: #6C3483;
}
.hero-btn-contribution .hero-btn-icon {
    background: #6C3483;
}
.hero-btn-contribution .hero-btn-label {
    color: #6C3483;
}

.hero-btn-news {
    border-color: #17a2b8;
}
.hero-btn-news .hero-btn-icon {
    background: #17a2b8;
}
.hero-btn-news .hero-btn-label {
    color: #17a2b8;
}

.hero-btn-team {
    border-color: #6c5ce7;
}
.hero-btn-team .hero-btn-icon {
    background: #6c5ce7;
}
.hero-btn-team .hero-btn-label {
    color: #6c5ce7;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-quick-links {
        width: 80%;
        gap: 10px;
        padding: 14px;
    }
}

@media (max-width: 600px) {
    .hero-quick-links {
        width: 100%;
        gap: 6px;
        padding: 8px;
    }

    .hero-quick-btn {
        flex-direction: row;
        padding: 6px 10px;
        gap: 6px;
        border-radius: 8px;
        border-width: 1.5px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .hero-quick-btn:hover {
        transform: none;
    }

    .hero-btn-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
        flex-shrink: 0;
    }

    .hero-btn-text {
        text-align: left;
        align-items: flex-start;
    }

    .hero-btn-label {
        font-size: 11px;
        font-weight: 700;
    }
}

/* ============================================
   PARTNERSHIP CARD — Net2077
   ============================================ */

.partnership-card {
    position: relative;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #0d1b3e 0%, #0a2a6e 40%, #0d1b3e 100%);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(10, 42, 110, 0.35);
    transition: box-shadow 0.3s ease;
}

.partnership-card:hover {
    box-shadow: 0 12px 48px rgba(30, 90, 200, 0.5);
}

/* animated glow border */
.partnership-glow {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #1e5eff 60deg,
        #00c8ff 120deg,
        transparent 180deg,
        transparent 360deg
    );
    animation: partnershipSpin 4s linear infinite;
    opacity: 0.6;
    z-index: 0;
}

@keyframes partnershipSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.partnership-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0b1730 0%, #0e2050 60%, #0b1730 100%);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* Logo circle */
.partnership-logo-wrap {
    flex-shrink: 0;
}

.partnership-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a3a8f;
    border: 2px solid #1e5eff;
    box-shadow: 0 0 18px rgba(30, 94, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.partnership-card:hover .partnership-logo-circle {
    box-shadow: 0 0 32px rgba(30, 94, 255, 0.85);
}

.partnership-logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
}

/* Content */
.partnership-content {
    flex: 1;
    min-width: 200px;
}

.partnership-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1e5eff;
    margin-bottom: 4px;
}

.partnership-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.partnership-desc {
    font-size: 14px;
    color: #8ba4d4 !important;
    line-height: 1.65;
    margin: 0;
    max-width: 520px;
}

/* Button */
.partnership-action {
    flex-shrink: 0;
}

.partnership-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e5eff 0%, #00c8ff 100%);
    color: #ffffff !important;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(30, 94, 255, 0.4);
    white-space: nowrap;
}

.partnership-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Dark mode keeps same dark-blue look — already dark */
.dark-mode .partnership-card {
    box-shadow: 0 8px 32px rgba(10, 42, 110, 0.6);
}

@media (max-width: 768px) {
    .partnership-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
    }

    .partnership-btn {
        width: 100%;
        justify-content: center;
    }
}
