Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| excursions [2024/11/05 13:22] – ayush | excursions [2025/03/29 20:12] (current) – ayush | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| < | < | ||
| .research-container { | .research-container { | ||
| - | max-width: | + | max-width: |
| margin: 0 auto; | margin: 0 auto; | ||
| + | padding: 20px 0; | ||
| } | } | ||
| .research-grid { | .research-grid { | ||
| display: flex; | display: flex; | ||
| flex-wrap: wrap; | flex-wrap: wrap; | ||
| - | gap: 35px; /* Increased space between cards */ | + | gap: 35px; |
| - | justify-content: | + | justify-content: |
| } | } | ||
| .research-card { | .research-card { | ||
| - | flex: 1 1 calc(33.333% - 30px); | + | flex: 0 0 calc(25% - 26.25px); /* 4 columns accounting for gap */ |
| background-color: | background-color: | ||
| border-radius: | border-radius: | ||
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | ||
| padding: 30px; | padding: 30px; | ||
| - | | + | |
| transition: transform 0.2s ease; | transition: transform 0.2s ease; | ||
| - | | + | |
| - | flex-direction: | + | |
| - | justify-content: space-between; | + | |
| } | } | ||
| - | | ||
| - | .research-card a { | ||
| - | text-decoration: | ||
| - | color: rgb(0, 123, 255); | ||
| - | transition: color 0.3s ease; | ||
| - | } | ||
| - | |||
| - | .research-card a:hover { | ||
| - | color: rgb(0, 100, 210); /* Slightly darker color on hover */ | ||
| - | } | ||
| + | /* Maintain aspect ratio for images */ | ||
| .research-card img { | .research-card img { | ||
| - | display: block; | ||
| - | margin: 0 auto; | ||
| width: 100%; | width: 100%; | ||
| height: 250px; | height: 250px; | ||
| - | object-fit: cover;; | + | object-fit: cover; |
| border-radius: | border-radius: | ||
| - | margin-bottom: | + | margin-bottom: |
| } | } | ||
| - | .research-card h3 { | ||
| + | /* Responsive Design */ | ||
| + | @media (max-width: 1200px) { | ||
| + | .research-card { | ||
| + | flex: 0 0 calc(33.333% - 23.33px); /* 3 columns */ | ||
| + | } | ||
| + | } | ||
| + | @media (max-width: 992px) { | ||
| + | .research-card { | ||
| + | flex: 0 0 calc(50% - 17.5px); /* 2 columns */ | ||
| + | } | ||
| + | } | ||
| + | @media (max-width: 768px) { | ||
| + | .research-container { | ||
| + | max-width: 95%; | ||
| + | } | ||
| + | .research-card { | ||
| + | flex: 0 0 100%; /* 1 column */ | ||
| + | } | ||
| + | } | ||
| + | |||
| + | /* Existing hover and text styles remain unchanged */ | ||
| + | .research-card a { | ||
| + | text-decoration: | ||
| + | color: rgb(0, 123, 255); | ||
| + | transition: color 0.3s ease; | ||
| + | } | ||
| + | .research-card a:hover { | ||
| + | color: rgb(0, 100, 210); | ||
| + | } | ||
| + | .research-card h3 { | ||
| margin: 15px 0; | margin: 15px 0; | ||
| } | } | ||
| .research-card p { | .research-card p { | ||
| - | |||
| color: #666; | color: #666; | ||
| margin-bottom: | margin-bottom: | ||
| Line 55: | Line 71: | ||
| .research-card: | .research-card: | ||
| transform: scale(1.01); | transform: scale(1.01); | ||
| - | } | ||
| - | /* Responsive adjustments */ | ||
| - | @media (max-width: 900px) { | ||
| - | .research-card { | ||
| - | flex: 1 1 calc(50% - 30px); | ||
| - | } | ||
| - | } | ||
| - | @media (max-width: 600px) { | ||
| - | .research-card { | ||
| - | flex: 1 1 100%; | ||
| - | } | ||
| } | } | ||
| </ | </ | ||
| Line 125: | Line 130: | ||
| < | < | ||
| < | < | ||
| + | < | ||
| + | </ | ||
| + | | ||
| + | <div class=" | ||
| + | <a href=" | ||
| + | <img src=" | ||
| + | < | ||
| + | </a> | ||
| + | < | ||
| + | < | ||
| < | < | ||
| </ | </ | ||