/* Dashboard Styles */
.main-app {
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    height: 100vh;
    width: 18rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-logo {
    height: 3rem;
    width: 9rem;
    margin-left: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-nav {
    flex: 1;
}

    .sidebar-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        margin-left: 0px;
    }

    .sidebar-nav li {
        margin-bottom: 0px;
    }


.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    font-size:16px !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration:none;
}

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        text-decoration: none;
    }

    .nav-link:focus {
        text-decoration: none;
    }
        .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    stroke: #C39B5A;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    width: 100%;
}

/* Top Navigation */
.top-nav {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 30;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 2rem;
    width: auto;
    margin-right: 1.5rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #6b7280;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.menu-toggle span {
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-menu {
    position: relative;
}

.profile-button {
    width: 2rem;
    height: 2rem;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-button:hover {
    transform: scale(1.05);
}

.user-initials {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.profile-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    z-index: 50;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Page Content */
.page-content {
    /*min-height: calc(100vh - 4rem); comment by vishnu 20250722*/ 
    min-height: calc(90vh - 4rem);
}

/* Welcome Banner */
.welcome-banner {
    position: relative;
    width: 100%;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../public/golf_banner.jpg');
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.banner-content h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(-2px);
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    /*transform: translateY(-2px);*/
}

.service-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    z-index: -1;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

    .service-content p {
        color: #d7caca;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

.service-button {
    display: block;
    width: 100%;
    background-color: #9C1D26;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}
a.service-button {
    color: white !important;
    text-decoration: none;
}

    .service-button:hover {
        background-color: #7A1520;
        transform: translateY(-1px);
    }

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.quick-link-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.quick-link-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1);
}

.quick-link-icon.history-icon,
.quick-link-icon.benefits-icon,
.quick-link-icon.cards-icon,
.quick-link-icon.courses-icon {
    background-color: #C3985A;
}

.quick-link-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.quick-link-card h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.quick-link-card:hover h4 {
    color: #9C1D26;
}

.quick-link-card h4 a {
    color: inherit;
    text-decoration: none;
}

.quick-link-card p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 1.5rem;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-container {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.faq-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #9C1D26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-top: 0.125rem;
}

.faq-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.faq-question h3 {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    line-height: 1.5;
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #9C1D26;
    margin-left: 1rem;
    margin-top: 0.125rem;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 24rem;
    opacity: 1;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin-left: 3.5rem;
    padding-right: 2.25rem;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Profile Page */
.profile-container {
    min-height: calc(100vh - 4rem);
    background-color: #f9fafb;
    padding: 2rem 1rem;
}

.profile-content {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.profile-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 1rem;
}

.profile-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer */
.main-footer {
    background-color: #111827 !important;
    color: white;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand img {
    height: 2rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
}

/* Responsive Design for Dashboard */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .banner-content h1 {
        font-size: 2.25rem;
    }
    
    .banner-content p {
        font-size: 1.125rem;
    }
    
    .welcome-banner {
        height: 15rem;
    }
}