/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px 0px; /* Increased top padding for more space */
}

.logo {
    max-width: 150px;
    height: auto;
    margin: 30px 0 20px 0; /* Increased top margin for more space */
    display: block;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
}

.text-center {
    text-align: center;
}

.col-sm-12, .col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
}

.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.m-t-25 {
    margin-top: 20px;
}

.m-b-30 {
    margin-bottom: 20px;
}

/* Login Page Styles */
.login-box {
    padding: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    transition: border-color 0.3s;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Roboto', monospace;
}

.input-group input:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.error {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    min-height: 16px;
}

/* Gallery Page Styles */
.heading-block {
    padding: 30px 0 40px 0; /* Increased padding for more space */
    text-align: left;
}

.heading {
    color: #333;
    font-size: 42px; /* Slightly reduced size for better balance */
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.img-box {
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: backwards;
    border-radius: 8px; /* Added rounded corners */
    margin: 5px; /* Added margin for spacing */
}


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.img-box:nth-child(1) { animation-delay: 0.1s; }
.img-box:nth-child(2) { animation-delay: 0.2s; }
.img-box:nth-child(3) { animation-delay: 0.3s; }

.box-thumb img {
    width: 100%;
    height: auto; /* Allow natural height */
    object-fit: cover;
    display: block;
}

.box-content {
    padding: 15px 0px 5px 0px; /* Adjusted padding to work with new container styling */
}

.box-content h4 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.box-content p {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
    text-align: left;
}

.img-box a {
    display: inline-block;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0 10px 0; /* Adjusted margin */
    padding: 8px 0px; /* Added padding */
}

footer {
    margin-top: 40px; /* Increased top margin */
    padding: 20px 0; /* Increased padding */
    color: #666;
    font-size: 12px;
    text-align: left; /* Left aligned */
    border-top: none; /* Removed top border */
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-box {
        padding: 25px 15px;
    }
}
@media (max-width: 767px) {
    .heading-block h1.heading {
        font-size: 32px; /* Slightly reduced for better balance */
        line-height: 46px;
    }
}