/* ===================================
   PUBLIC WEBSITE STYLES
   =================================== */

:root {
    --primary-blue: #0066CC;
  --dark-blue: #003D7A;
    --light-blue: #E6F2FF;
    --accent-orange: #FF6B35;
    --success-green: #00C851;
    --warning-yellow: #FFB800;
    --danger-red: #FF3547;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.public-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-item {
 display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.top-bar-item i {
    font-size: 16px;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
}

/*.logo-icon {
 width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}*/

.logo-icon {
    width: 60px;
    height: 60px;
    /* background: var(--accent-orange); */
    border-radius: 50%;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-image: url(/images/jharkhand-logo.png);
    background-size: cover;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.9;
  margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
  color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-orange);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-admin-login {
    background: var(--accent-orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
gap: 8px;
}

.btn-admin-login:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-user-login, .btn-user-dashboard {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.btn-user-login:hover, .btn-user-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
    margin-left: 10px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
  font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* ===================================
   STATS SECTION
   =================================== */

.stats-section {
    background: var(--bg-light);
    padding: 60px 20px;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
 text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-medium);
    font-weight: 500;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
}

/* ===================================
   EVENT CARDS
   =================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
 gap: 30px;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.event-content {
    padding: 25px;
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
 flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-medium);
}

.meta-item i {
    color: var(--primary-blue);
}

.event-title {
    font-size: 20px;
    font-weight: 600;
 color: var(--text-dark);
    margin-bottom: 12px;
}

.event-description {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
 margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.event-status {
  padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background: rgba(0, 200, 81, 0.1);
    color: var(--success-green);
}

.status-closed {
    background: rgba(255, 53, 71, 0.1);
    color: var(--danger-red);
}

.status-upcoming {
    background: rgba(255, 184, 0, 0.1);
    color: var(--warning-yellow);
}

.btn-view-details {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-view-details:hover {
    color: var(--accent-orange);
    gap: 10px;
}

/* ===================================
   FORMS
   =================================== */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.required {
    color: var(--danger-red);
}

.form-control {
 width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ===================================
   FOOTER
   =================================== */

.public-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
 font-size: 18px;
 margin-bottom: 20px;
    color: var(--accent-orange);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   ALERTS & MESSAGES
   =================================== */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid rgba(0, 200, 81, 0.2);
    color: var(--success-green);
}

.alert-danger {
    background: rgba(255, 53, 71, 0.1);
    border: 1px solid rgba(255, 53, 71, 0.2);
    color: var(--danger-red);
}

.alert-warning {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.2);
    color: var(--warning-yellow);
}

.alert-info {
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    color: var(--primary-blue);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s;
    color: inherit;
    font-size: 16px;
}

.alert-close:hover {
    opacity: 1;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    /* Hide the top bar on mobile */
    .top-bar {
        display: none;
    }

    /* Reduce header padding */
    .header-main {
        padding: 10px 15px;
    flex-direction: row;
        gap: 10px;
        align-items: center;
        position: relative;
   flex-wrap: nowrap;
    }

    /* Make logo more compact */
    .site-logo {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: 16px;
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 9px;
        line-height: 1.2;
        opacity: 0.8;
    }

    .mobile-menu-toggle {
        display: block;
  position: relative;
        top: auto;
      right: auto;
     padding: 8px;
        order: 3;
        flex-shrink: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
      height: 100vh;
        background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
    }

    .main-nav.mobile-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
 gap: 0;
        text-align: left;
        padding: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--white);
    }

    .main-nav a::after {
   display: none;
    }

  /* Compact header actions */
    .header-actions {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
        align-items: center;
        order: 2;
    }

  .btn-user-login, 
  .btn-user-dashboard, 
    .btn-admin-login {
        font-size: 12px;
        padding: 6px 10px;
        margin-right: 0;
        white-space: nowrap;
     border-radius: 6px;
    }

    /* Hide button text, show only icons on mobile */
    .btn-admin-login span,
    .btn-user-login span,
    .btn-user-dashboard span {
    display: none;
    }

    .btn-admin-login i,
    .btn-user-login i,
    .btn-user-dashboard i {
        margin: 0;
        font-size: 16px;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
    position: fixed;
        top: 0;
      left: 0;
   width: 100%;
     height: 100%;
        background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    }

    .hero-content h1 {
    font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
      font-size: 28px;
    }

    .form-container {
        padding: 25px;
    }

    /* Reduce stats grid spacing */
    .stats-section {
        padding: 40px 15px;
    }

    .stats-grid {
     gap: 15px;
    }

    /* Make footer more compact */
    .public-footer {
  padding: 40px 15px 15px;
    }

    .footer-grid {
        gap: 25px;
  margin-bottom: 25px;
    }
}

/* Extra small devices (phones in portrait, less than 375px) */
@media (max-width: 375px) {
    .header-main {
        padding: 8px 10px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
  }

    .logo-text h1 {
  font-size: 14px;
    }

    .logo-text p {
   font-size: 8px;
    }

    .btn-user-login, 
    .btn-user-dashboard, 
    .btn-admin-login {
      padding: 5px 8px;
    }

    .btn-admin-login i,
    .btn-user-login i,
    .btn-user-dashboard i {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        padding: 6px;
      font-size: 20px;
    }
}
