/*
Theme Name: Realize Club Theme
Theme URI:
Description: A custom theme for Realize Club
Version: 1.0.0
Author: ThinhDA
Author URI:
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: realize-club-theme
*/

html {
    margin-top: unset !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #333333;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    /*top: 0;*/
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 5px;
    max-width: 100%;
}

.logo {
    color: #269746;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.user-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-left: auto;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    height: 527px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    padding: 20px;
    color: #ffffff;
    width: 100%;
}

.hero-text h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
}

.hero-text p {
    font-size: 16px;
    opacity: 0.9;
}

/* Benefits Introduction */
.benefits-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    text-align: center;
}

.benefits-intro .container {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
}

.intro-icon {
    width: 125px;
    height: 89px;
}

/* Category Buttons */
.category-buttons {
    padding: 20px 0 40px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(30deg, #3BAD87 0%, #43AC83 36%, #70BB6D 56%, #70B973 100%);
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.button-icon {
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

/* Benefits Sections */
.benefits-section {
    padding: 40px 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 77px;
}

.section-icon {
    max-width: 129px;
    max-height: 69px;
}

/* Benefits Cards */
.benefits-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 3 columns */
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    gap: 30px;
    max-width: 1440px;
    margin: 0 auto;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.benefit-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.light-pink-bg {
    background-color: #fbede8;
}

/* Card Components */
.card-image {
    /*height: 328px;*/
    /*overflow: hidden;*/

    position: relative;
    width: 100%;
    padding-top: 66.67%; /* For 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 10px;
}

.card-image img {
    /*width: 100%;*/
    /*height: 100%;*/
    object-fit: fill;
    /*border-radius: 10px;*/

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*object-fit: cover; !* Maintains aspect ratio while covering container *!*/
    object-position: center;
    border-radius: 10px;
}

.card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h4 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 500;
    color: #269746;
}

#life-stage h4 {
    color: #EF5800;
}

.digital-card-content h4 {
    color: #3B82AF !important;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333333;
    line-height: 140%;
}

/* Buttons */
.green-button, .blue-button, .warm-orange-button {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.green-button {
    background-color: #269746;
    color: #ffffff;
}

.blue-button {
    background-color: #A9E0ED;
    color: #ffffff;
}

.warm-orange-button {
    background: #ffffff;
    color: #EF5800;
}

.green-button:hover, .blue-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.warm-orange-button:hover {
    background: #EF5800;
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #ffffff;
    padding: 40px 0 15px;
    margin-top: 40px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 14px;
    color: #707070;
}

.footer-links a:hover {
    color: #269746;
}

.copyright {
    text-align: center;
    color: #9ba0aa;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .benefits-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits-cards {
        grid-template-columns: 1fr;
    }

    .three-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo {
        position: static;
        transform: none;
        font-size: 20px;
    }

    .intro-icon {
        width: 80px;
        height: 56px;
    }

    .hero-image {
        height: 255px;
        width: 100%;
    }

    .hero-text {
        bottom: 0;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .button-grid,
    .benefits-cards,
    .three-columns {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: unset;
    }

    .card-image {
        height: unset;
    }

    .section-icon {
        max-width: 79px;
        max-height: 74px;
    }

    .section-header {
        margin: 25px 0 15px;
    }

    footer {
        padding: 10px 0;
        margin-top: 10px;
    }

    .footer-logo img {
        height: 70px;
    }

    .light-green-bg,
    .light-blue-bg {
        background-size: 100% 100% !important;
        background-attachment: scroll;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        object-fit: cover;
        display: block;
    }
}

.user-icon-container {
    position: relative;
    display: inline-block;
}

.user-icon {
    cursor: pointer;
}

.login-btn {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.login-btn a {
    /*display: inline-block;*/
    /*padding: 8px 20px;*/
    /*background-color: #168352;*/
    /*color: white;*/
    /*text-decoration: none;*/
    /*border-radius: 10px;*/
    /*font-family: "Noto Sans JP", sans-serif;*/
    /*font-weight: 500;*/
    /*font-size: 14px;*/
    /*transition: background-color 0.3s ease;*/
}

.login-btn a:hover {
    /*background-color: #0f6a40;*/
}

.user-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    right: 25px;
    top: 45px;
}

.user-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dropdown li {
    padding: 0;
}

.user-dropdown li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    font-size: 14px;
}

.user-dropdown li a:hover {
    background-color: #f5f5f5;
}

.user-icon-container:hover .user-dropdown {
    display: block;
}

/*animation*/
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 30px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 5px rgba(38, 151, 70, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(38, 151, 70, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(38, 151, 70, 0.2);
    }
}

/* Page load animation */
.hero, .benefits-intro, .category-buttons, .benefits-section {
    animation: fadeIn 0.8s ease-in-out;
}

.hero {
    animation-delay: 0.1s;
}

.benefits-intro {
    animation-delay: 0.3s;
}

.category-buttons {
    animation-delay: 0.5s;
}

/* Button animations */
.category-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-button:active {
    transform: translateY(-2px);
}

.category-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.category-button:hover::after {
    left: 100%;
}

/* Button color specific animations */
.green-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.green-button:hover {
    animation: buttonGlow 1.5s infinite;
    transform: translateY(-3px);
}

.warm-orange-button:hover {
    animation: pulse 1.5s infinite;
}

.blue-button:hover {
    animation: buttonGlow 1.5s infinite;
    box-shadow: 0 0 15px rgba(169, 224, 237, 0.7);
}

/* Card animations */
.benefit-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Hero text animation */
.hero-text h2, .hero-text p {
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

.hero-text h2 {
    animation-delay: 0.5s;
}

.hero-text p {
    animation-delay: 1s;
}

/* Section entry animations */
.section-header {
    animation: slideInUp 1s ease-out forwards;
}

/* Login button animation */
.login-btn a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.login-btn a:hover::after {
    left: 100%;
}

/* User dropdown animation */
.user-dropdown {
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(-10px);
    display: block;
    pointer-events: none;
}

.user-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
