/* FRSI Specific Styles - Premium Aesthetic */

:root {
    /* FRSI specific color palette */
    --frsi-primary: #3b82f6; /* Vibrant Blue */
    --frsi-secondary: #8b5cf6; /* Vibrant Purple */
    --frsi-accent: #f43f5e; /* Vibrant Rose */
    --frsi-dark: #0f172a;
    --frsi-light: #f8fafc;
    --frsi-glass-bg: rgba(255, 255, 255, 0.85);
    --frsi-glass-border: rgba(255, 255, 255, 0.4);
    --frsi-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --frsi-gradient: linear-gradient(135deg, var(--frsi-primary), var(--frsi-secondary));
}

/* Base Adjustments */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Panel Class */
.glass-panel {
    background: var(--frsi-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--frsi-glass-border);
    box-shadow: var(--frsi-glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Typography Enhancements */
.text-highlight {
    color: var(--frsi-primary);
}

.text-primary {
    color: var(--frsi-primary);
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Hero Section FRSI */
.frsi-hero {
    position: relative;
    padding: 180px 5% 100px;
    background: linear-gradient(180deg, var(--frsi-dark) 0%, rgba(15, 23, 42, 0.9) 100%), url('assets/hero-bg.jpg') center/cover;
    color: #fff;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.frsi-hero .hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.frsi-hero .hero-title span {
    background: var(--frsi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frsi-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 2px;
}

/* Glow Orbs specific to FRSI */
.frsi-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: var(--frsi-primary);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    background: var(--frsi-secondary);
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(120deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Buttons */
.btn-primary {
    background: var(--frsi-gradient);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--frsi-dark);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--frsi-light);
    transform: translateY(-2px);
    color: var(--frsi-primary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.7rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.vm-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--frsi-primary);
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateX(5px);
}

.vm-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--frsi-dark);
}

/* Focus Areas Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.focus-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.focus-item i {
    font-size: 1.8em;
    color: var(--frsi-primary);
    background: var(--frsi-light);
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 5px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--frsi-primary);
}

.focus-item:hover i {
    background: var(--frsi-gradient);
    color: white;
    transform: scale(1.1);
}

.focus-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--frsi-dark);
}

/* Research Tabs */
.research-tabs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.research-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

.r-tab {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.r-tab:hover {
    color: var(--frsi-primary);
}

.r-tab.active {
    color: var(--frsi-primary);
}

.r-tab.active::after {
    content: '';
    position: absolute;
    bottom: -18px; /* Match the padding + border */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--frsi-gradient);
    border-radius: 3px 3px 0 0;
}

.r-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Domains Grid */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.domain-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-top: 4px solid var(--frsi-primary);
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.domain-card i {
    font-size: 2.5rem;
    color: var(--frsi-primary);
    margin-bottom: 1rem;
}

.domain-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--frsi-dark);
}

.domain-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    overflow: hidden;
    padding: 0; /* Override glass-panel default */
}

.event-date {
    background: var(--frsi-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 5px;
}

.event-info {
    padding: 1.5rem;
    flex: 1;
}

.event-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--frsi-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.event-info h4 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--frsi-dark);
}

.event-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    gap: 10px;
}

/* Resources & Publications Grid */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.resource-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.resource-panel h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--frsi-dark);
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.resource-panel h3 i {
    color: var(--frsi-primary);
}

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

.styled-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.styled-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.styled-list li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--frsi-dark);
    margin-bottom: 0.4rem;
}

.styled-list li p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 0.8rem 0;
}

.styled-list li a {
    color: var(--frsi-primary);
    text-decoration: none;
    font-weight: 500;
}

.styled-list li a:hover {
    text-decoration: underline;
}

/* Pricing / Membership */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.pricing-card.featured {
    border: 2px solid var(--frsi-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge-featured {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--frsi-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pricing-card h4 {
    font-size: 1.4rem;
    color: var(--frsi-dark);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--frsi-primary);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--frsi-primary);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 600px) {
    .frsi-hero .hero-title {
        font-size: 2.5rem;
    }
    .research-tabs {
        flex-direction: column;
    }
    .r-tab.active::after {
        display: none;
    }
    .r-tab.active {
        background: var(--frsi-primary);
        color: white;
        border-radius: 8px;
    }
}
