/* ===== Student Area Styles ===== */
.student__area {
    height: 360px;
    background-color: #f6f5f1; 
    padding: 50px 0; 
    text-align: center; 
}

.student__title--2 {
    margin-bottom: 20px; 
}

.title__line {
    font-size: 80px; 
    color: #fcf9f9; 
    margin-bottom: 20px; 
    margin-top: 100px;
    text-align: center;
}

.student__area p {
    font-size: 20px; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 20px; 
}

/* ===== Card Area Styles ===== */
.card__area {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.card__title {
    display: flex;
    margin-left: 0px;
    position: absolute;
    left: 150px;
    top: 69%;
    font-size: 30px;
    color: #333;
}

.card__line {
    width: 5px;
    height: 50px;
    margin-left: 120px;
    background-color: #4CAF50;
    position: absolute;
    left: 10px;
    top: 72%;
    transform: translateY(-50%);
}

.card_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 20px;
    margin-top: 100px;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(25% - 20px);
    margin: 10px;
    padding: 15px;
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.card p {
    color: #555;
}

/* ===== Show Area Styles ===== */
.Show__area {
    height: auto;
    width: 100%;
}

.show__title {
    display: flex;
    position: relative;
    left: 50px;
    margin-top: 40px;
    font-size: 30px;
    color: #333;
}

.show__line {
    width: 5px;
    height: 50px;
    margin-left: -20px;
    background-color: #edaa35;
    position: absolute;
    top: 25px;
    transform: translateY(-50%);
}

/* ===== Tab System Styles ===== */
.tab-container {
    width: 95%;
    margin: 50px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

/* Main Tab Titles */
.tab-titles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #f1f1f1;
    justify-content: space-around;
}

.tab-title {
    padding: 15px 20px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.tab-title.active {
    background-color: #edaa35;
    color: white;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
    transition: opacity 0.3s;
}

.tab-pane.active {
    display: block;
}

/* Sub Tab Styles */
.sub-tab-container {
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.sub-tab-titles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #f9f9f9;
    justify-content: space-around;
}

.sub-tab-title {
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.sub-tab-title.active {
    background-color: #f4efef;
    color: #edaa35;
}

.sub-tab-content {
    padding: 20px;
}

.sub-tab-pane {
    display: none;
    transition: opacity 0.3s;
}

.sub-tab-pane.active {
    display: block;
}

/* ===== Product Display Styles ===== */
.show_tabcontent {
    margin-top: 20px;
}

.show_product_row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.show_product {
    text-align: center;
    max-width: 32%;
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
}

.show_product img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.show_product p {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* ===== User Profile & Auth Styles ===== */
.user-profile {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    display: none;
}

.user-profile.visible {
    display: inline-block;
}

/* Profile button styling to match nav items */
.profile-btn {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    height: 80px;
    line-height: 60px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    padding: 0 15px;
}

.profile-btn:hover {
    color: #4285f4;
}

.profile-btn::after {
    content: "▼";
    font-size: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Dropdown content */
.user-profile .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0px;
    right: 0;
    top: 80px;
    padding: 0;
}

.user-profile:hover .dropdown-content {
    display: block;
}

/* Dropdown links */
.user-profile .dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px !important;
    color: #333333 !important;
    margin-top: 1px;
    text-decoration: none !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.user-profile .dropdown-content a:last-child {
    border-bottom: none;
}

.user-profile .dropdown-content a:hover {
    background-color: #f0f0f0 !important;
    color: #4285f4 !important;
}

/* Auth buttons visibility */
.auth-buttons.hidden {
    display: none !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .show_product {
        max-width: 48%;
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .student__area {
        height: auto;
        padding: 30px 0;
    }
    
    .title__line {
        font-size: 40px;
        margin-top: 50px;
    }
    
    .card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .show_product {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .tab-titles,
    .sub-tab-titles {
        flex-direction: column;
    }
    
    .tab-title,
    .sub-tab-title {
        flex: none;
    }
    
    .card__title {
        position: static;
        text-align: center;
        margin: 20px 0;
    }
    
    .card__line {
        position: static;
        margin: 0 auto 20px;
        transform: none;
    }
    
    .show__title {
        left: 0;
        justify-content: center;
    }
    
    .show__line {
        position: relative;
        top: 0;
        margin: 0 10px 0 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 0 0 100%;
    }
    
    .tab-container {
        width: 100%;
        margin: 20px auto;
    }
    
    .tab-content,
    .sub-tab-content {
        padding: 10px;
    }
    
    .profile-btn {
        height: 60px;
        line-height: 40px;
        font-size: 12px;
        padding: 0 10px;
    }
    
    .user-profile .dropdown-content {
        top: 60px;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ===== Animation Enhancements ===== */
.tab-pane,
.sub-tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.show_product {
    transition: all 0.3s ease;
}

.card:hover,
.show_product:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}