﻿

/* Main Container */
.about-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .about-main-wrapper:hover {
        transform: translateY(-5px);
    }

/* Headings */
.about-main-title {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

    .about-main-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: #1abc9c;
        transition: width 0.4s ease, left 0.4s ease;
    }

    .about-main-title:hover::after {
        width: 100px;
        left: calc(50% - 50px);
    }

/* Alerts */
.about-success-msg, .about-error-msg {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.about-success-msg {
    background: #e8f5e9;
    color: #2e7d32;
}

.about-error-msg {
    background: #ffebee;
    color: #c62828;
}

/* Buttons */
.about-btn-create, .about-btn-update, .about-btn-remove, .about-btn-back {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.about-btn-create {
    background: #1abc9c;
}

    .about-btn-create:hover {
        background: #16a085;
        transform: scale(1.05);
    }

.about-btn-update {
    background: #3498db;
}

    .about-btn-update:hover {
        background: #2980b9;
        transform: scale(1.05);
    }

.about-btn-remove {
    background: #e74c3c;
}

    .about-btn-remove:hover {
        background: #c0392b;
        transform: scale(1.05);
    }

.about-btn-back {
    background: #7f8c8d;
}

    .about-btn-back:hover {
        background: #6c7a89;
        transform: scale(1.05);
    }

/* Card Layout for Index */
.about-item-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .about-item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.about-card-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-right: 3px solid #1abc9c;
}

.about-card-details {
    padding: 20px;
    flex: 1;
}

    .about-card-details h5 {
        font-size: 1.5rem;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .about-card-details p {
        color: #34495e;
        font-size: 1rem;
        line-height: 1.6;
    }

/* Form Styles */
.about-form-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.about-form-group {
    margin-bottom: 20px;
}

    .about-form-group label {
        display: block;
        font-size: 1.1rem;
        color: #2c3e50;
        margin-bottom: 8px;
    }

.about-input-text, .about-input-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dcdcdc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.about-input-textarea {
    resize: vertical;
    min-height: 100px;
}

    .about-input-text:focus, .about-input-textarea:focus {
        border-color: #1abc9c;
        outline: none;
    }

/* Custom File Upload */
.about-file-upload {
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .about-file-upload input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .about-file-upload span {
        display: inline-block;
        padding: 10px 20px;
        background: #1abc9c;
        color: #fff;
        border-radius: 8px;
        font-weight: 500;
        transition: background 0.3s ease;
    }

    .about-file-upload:hover span {
        background: #16a085;
    }

.about-error-text {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Image in Delete/Edit Pages */
.about-display-img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-main-wrapper {
        padding: 15px;
    }

    .about-main-title {
        font-size: 2rem;
    }

    .about-item-card {
        flex-direction: column;
    }

    .about-card-img {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 3px solid #1abc9c;
    }

    .about-btn-create, .about-btn-update, .about-btn-remove, .about-btn-back {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .about-main-title {
        font-size: 1.8rem;
    }

    .about-input-text, .about-input-textarea {
        font-size: 0.9rem;
    }

    .about-display-img {
        max-width: 150px;
    }
}

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Headings */
.heading-title {
    font-size: 2.5rem;
    color: #1a3c34;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

/* Alert Messages */
.alert-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alert-success-msg {
    background-color: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.alert-error-msg {
    background-color: #fce7e7;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

/* Buttons */
.button-style {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.5rem;
    border: none;
    cursor: pointer;
}

.button-green {
    background-color: #2e7d32;
    color: white;
}

    .button-green:hover {
        background-color: #25632a;
        transform: translateY(-2px);
    }

.button-blue {
    background-color: #1976d2;
    color: white;
}

    .button-blue:hover {
        background-color: #1565c0;
        transform: translateY(-2px);
    }

.button-red {
    background-color: #d32f2f;
    color: white;
}

    .button-red:hover {
        background-color: #b71c1c;
        transform: translateY(-2px);
    }

.button-grey {
    background-color: #616161;
    color: white;
}

    .button-grey:hover {
        background-color: #424242;
        transform: translateY(-2px);
    }

/* Offer Grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Offer Card */
.offer-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .offer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.offer-icon i {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a3c34;
    margin-bottom: 0.75rem;
}

.offer-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.offer-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Form Styles */
.form-wrapper {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #1a3c34;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #2e7d32;
        box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    }

.textarea-control {
    min-height: 100px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .heading-title {
        font-size: 2rem;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .button-style {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .page-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .heading-title {
        font-size: 1.75rem;
    }

    .form-control, .textarea-control {
        font-size: 0.9rem;
    }

    .offer-card {
        padding: 1rem;
    }

    .offer-icon i {
        font-size: 2rem;
    }
}